servicemix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lhe <lr.m...@web.de>
Subject Re: Building SMX3 Trunk version fails at CXF BC
Date Sun, 10 Feb 2008 10:07:25 GMT

Gert,

thank you for the quick answer.
This was really the problem. I didn't even knew that Java 6 now comes with
such libs out of the box.
Anyway, now it works fine.

Thanks,
Lars



Gert Vanthienen wrote:
> 
> Lars,
> 
> 
> This error occurs if you're using Java 6 to build ServiceMix.  Update 4 
> of this JDK ships with JAX-WS 2.1, but earlier versions include JAX-WS 
> 2.0, resulting in this exception.  If you can upgrade to your JDK _04 or 
> above, this will solve your problem.  On any other version of Java 6, 
> the solution would be to copy the JAXB 2.1 API jar files (jaxb-api.jar 
> or  jaxws-api.jar) to the <java_home>/lib/endorsed folder.
> 
> 
> Gert
> 
> 
> 
> 
> lhe wrote:
>> Hi,
>>
>> today I checked out the trunk version of smx3 and tried to build it.
>>
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building ServiceMix :: Binding Components
>> [INFO]    task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [site:attach-descriptor]
>> [INFO] [install:install]
>> [INFO] Installing
>> /mnt/daten/development/java/smx3/deployables/bindingcomponents/pom.xml to
>> /home/lhe/.m2/repository/org/apache/servicemix/bindingcomponents/3.3-SNAPSHOT/bindingcomponents-3.3-SNAPSHOT.pom
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building ServiceMix :: CXF Binding Component
>> [INFO]    task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [xbean:mapping {execution: default}]
>> [INFO] Generating META-INF properties file:
>> /mnt/daten/development/java/smx3/deployables/bindingcomponents/servicemix-cxf-bc/target/xbean/META-INF/services/org/apache/xbean/spring/http/servicemix.apache.org/cxfbc/1.0
>> for namespace: http://servicemix.apache.org/cxfbc/1.0
>> [INFO] Generating Spring 2.0 handler mapping:
>> /mnt/daten/development/java/smx3/deployables/bindingcomponents/servicemix-cxf-bc/target/xbean/META-INF/spring.handlers
>> for namespace: http://servicemix.apache.org/cxfbc/1.0
>> [INFO] Generating Spring 2.0 schema mapping:
>> /mnt/daten/development/java/smx3/deployables/bindingcomponents/servicemix-cxf-bc/target/xbean/META-INF/spring.schemas
>> for namespace: http://servicemix.apache.org/cxfbc/1.0
>> [INFO] Generating HTML documentation file:
>> /mnt/daten/development/java/smx3/deployables/bindingcomponents/servicemix-cxf-bc/target/xbean/servicemix-cxf-bc.xsd.html
>> for namespace: http://servicemix.apache.org/cxfbc/1.0
>> [INFO] Generating XSD file:
>> /mnt/daten/development/java/smx3/deployables/bindingcomponents/servicemix-cxf-bc/target/xbean/servicemix-cxf-bc.xsd
>> for namespace: http://servicemix.apache.org/cxfbc/1.0
>> [INFO] Generating WIKI documentation file:
>> /mnt/daten/development/java/smx3/deployables/bindingcomponents/servicemix-cxf-bc/target/xbean/servicemix-cxf-bc.xsd.wiki
>> for namespace: http://servicemix.apache.org/cxfbc/1.0
>> Warning, could not load class:
>> org.apache.servicemix.cxfbc.CxfBcEndpointType:
>> java.lang.ClassNotFoundException:
>> org.apache.servicemix.cxfbc.CxfBcEndpointType
>> [INFO] ...done.
>> [INFO] [cxf-codegen:wsdl2java {execution: generate-test-sources}]
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] JAXB 2.0 API is being loaded from the bootstrap classloader, but
>> this
>> RI (from
>> jar:file:/home/lhe/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.6/jaxb-impl-2.1.6.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class)
>> needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar
>> in
>> the bootstrap classloader. (See
>> http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: JAXB 2.0 API is
>> being loaded from the bootstrap classloader, but this RI (from
>> jar:file:/home/lhe/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.6/jaxb-impl-2.1.6.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class)
>> needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar
>> in
>> the bootstrap classloader. (See
>> http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>         at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: JAXB 2.0 API
>> is
>> being loaded from the bootstrap classloader, but this RI (from
>> jar:file:/home/lhe/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.6/jaxb-impl-2.1.6.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class)
>> needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar
>> in
>> the bootstrap classloader. (See
>> http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
>>         at
>> org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.java:296)
>>         at
>> org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:202)
>>         at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>>         ... 16 more
>> Caused by: java.lang.LinkageError: JAXB 2.0 API is being loaded from the
>> bootstrap classloader, but this RI (from
>> jar:file:/home/lhe/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.6/jaxb-impl-2.1.6.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class)
>> needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar
>> in
>> the bootstrap classloader. (See
>> http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
>>         at
>> com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:173)
>>         at
>> com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
>>         at
>> com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
>>         at
>> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
>>         at
>> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
>>         at
>> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:188)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at
>> javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:132)
>>         at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
>>         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
>>         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
>>         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
>>         at
>> org.apache.cxf.tools.wsdlto.core.PluginLoader.init(PluginLoader.java:83)
>>         at
>> org.apache.cxf.tools.wsdlto.core.PluginLoader.<init>(PluginLoader.java:73)
>>         at
>> org.apache.cxf.tools.wsdlto.core.PluginLoader.getInstance(PluginLoader.java:122)
>>         at
>> org.apache.cxf.tools.wsdlto.WSDLToJava.<init>(WSDLToJava.java:44)
>>         at
>> org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.java:292)
>>         ... 19 more
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 49 seconds
>> [INFO] Finished at: Sun Feb 10 09:51:14 CET 2008
>> [INFO] Final Memory: 48M/63M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>>
>> It seems that there is some library misconfiguration. Can someone have a
>> look at it?
>>
>> Regards,
>> Lars
>>
>>   
> 
> 
> 
> -----
> ---
> Gert Vanthienen
> http://www.anova.be
> 

-- 
View this message in context: http://www.nabble.com/Building-SMX3-Trunk-version-fails-at-CXF-BC-tp15394499s12049p15394903.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.


Mime
View raw message