#1 2012-05-10 15:08:58

Alan-Su001
New member
Registered: 2012-05-10
Posts: 3

[resolved] Export demo to deploy folder of container,karaf generated errors!

It generated Exceptions when I completed  the domo,and exported it to the deploy folder of the container.
My ESB studio version is 5.1.0, jkd version is java 1.6.

the cmd window tips as below,when installed the servicelocator it showed the same exceptions.

Exceptions:
      ... 14 more

Caused by: org.apache.cxf.service.factory.ServiceConstructionException

                at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:297)

                at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)

                at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:474)

                at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:685)

                at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:536)

                at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248)

                at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)

                at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)

                at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)

                at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:207)

                at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:442)

                at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:329)

                ... 23 more

Caused by: javax.xml.bind.JAXBException

- with linked exception:

[javax.xml.bind.JAXBException: property "com.sun.xml.bind.defaultNamespaceRemap" is not supported]

                at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:237)[:]

                at javax.xml.bind.ContextFinder.find(ContextFinder.java:396)[:]

                at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618)[:]

                at org.apache.cxf.common.jaxb.JAXBContextCache$2.run(JAXBContextCache.java:268)

                at org.apache.cxf.common.jaxb.JAXBContextCache$2.run(JAXBContextCache.java:267)

                at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_01]

                at org.apache.cxf.common.jaxb.JAXBContextCache.createContext(JAXBContextCache.java:266)

                at org.apache.cxf.common.jaxb.JAXBContextCache.getCachedContextAndSchemas(JAXBContextCache.java:172)

                at org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBinding.java:427)

                at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:295)

                ... 34 more

Caused by: javax.xml.bind.JAXBException: property "com.sun.xml.bind.defaultNamespaceRemap" is not supported

                at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:52)[:1.6.0_01]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_01]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_01]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_01]

                at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_01]

                at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:222)[:]

                ... 43 more

Is anyone knows the reason or meets the same problem?I need support from you.

Last edited by Alan-Su001 (2012-05-10 15:13:51)

Offline

#2 2012-05-13 04:48:05

Alan-Su001
New member
Registered: 2012-05-10
Posts: 3

Re: [resolved] Export demo to deploy folder of container,karaf generated errors!

It was caused the jaxb api version,I changed the jdk version to jdk1.6.0_32.
So the problem is solved.

Offline

#3 2012-05-14 08:27:38

zbe
Member
Registered: 2011-05-31
Posts: 59

Re: [resolved] Export demo to deploy folder of container,karaf generated errors!

Just out of curiosity which JDK did you use before?

Regards,
Zsolt

Offline

#4 2012-05-22 10:41:09

Alan-Su001
New member
Registered: 2012-05-10
Posts: 3

Re: [resolved] Export demo to deploy folder of container,karaf generated errors!

At the begin of the test, I used jdk1.6.0_01.

Offline

#5 2012-05-22 12:00:13

zbe
Member
Registered: 2011-05-31
Posts: 59

Re: [resolved] Export demo to deploy folder of container,karaf generated errors!

Where did you get this vintage jdk smile Seriously, we will ensure to document in future the lowest minor version of the JDK to be used.

Regards,
Zsolt

Offline

Board footer

Powered by FluxBB