Antoni, Apache ServiceMix 4.5.1 had a few issues related to these Java specifications that might be related. Could you give it another go with the latest 4.5.2-SNAPSHOT to see if that fixes the issue or if there's something else wrong here? You can get the SNAPSHOT at http://servicemix.apache.org/downloads/servicemix-4.5.2.html
Regards, Gert Vanthienen On Mon, Apr 29, 2013 at 7:20 AM, antoni.alatalo <antoni.alat...@cgi.com> wrote: > Hi, > i did install Servicemix 4.5.1 on Ubuntu. JRE is Oracle 1.6.0_43 > Next commands was run after Servicemix was installed: > features:install http > features:install webconsole > features:install war > features:install cxf > feature:install camel-cxf > features:install camel-jaxb > feature:install cxf-xjc-runtime > install -s mvn:mysql/mysql-connector-java/5.1.24 > features:install wrapper > wrapper:install -s AUTO_START -n KARAF -d Karaf -D "Karaf Service" > > I did try to install my own service with MTOM and i got every time > excpetions. After that i did load MTOM example: insurance-fuse.zip > This example also doesn't work. I always get excpetion: > Caused by: org.apache.cxf.service.factory.ServiceConstructionException > at > org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:329) > at > org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:434) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:538) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:252) > 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:211) > at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:453) > at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:333) > ... 23 more > Caused by: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: > 1 counts of IllegalAnnotationExceptions > javax.activation.DataHandler does not have a no-arg default constructor. > this problem is related to the following location: > at javax.activation.DataHandler > at protected javax.activation.DataHandler > org.apache.cxf.mime.types.XopType.attachinfo > at org.apache.cxf.mime.types.XopType > > at > com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:91)[:1.6.0_43] > at > com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:436)[:1.6.0_43] > at > com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:277)[:1.6.0_43] > at > com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1100)[:1.6.0_43] > at > com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:143)[:1.6.0_43] > at > com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:110)[:1.6.0_43] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method)[:1.6.0_43] > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_43] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_43] > at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_43] > at > javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:222)[:2.2.0] > at javax.xml.bind.ContextFinder.find(ContextFinder.java:396)[:2.2.0] > at > javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618)[:2.2.0] > at > org.apache.cxf.common.jaxb.JAXBContextCache.createContext(JAXBContextCache.java:279) > at > org.apache.cxf.common.jaxb.JAXBContextCache.getCachedContextAndSchemas(JAXBContextCache.java:172) > at > org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBinding.java:461) > at > org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:327) > > All jre.properties are defaults. > > Can anybody help me with this? Is this a bug or do i miss something from > configurations? > > Thank you > Antoni > What is wrong with > > > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/Servicemix-4-5-1-MTOM-example-don-t-work-tp5716602.html > Sent from the ServiceMix - User mailing list archive at Nabble.com.