servicemix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <freeman.f...@gmail.com>
Subject Re: Facing problem while building servicemix from source
Date Fri, 15 Feb 2008 08:51:10 GMT
Hi,

This is a known issue, see the faq wiki [1]

[1]http://cwiki.apache.org/confluence/display/SM/LinkageError+on+JAXB+API+when+building+with+JDK+6

Freeman

puneet.jain1@wipro.com wrote:
> Hi,
>
>  
>
>  
>
> I am facing problem while building servicemix from source.
>
> I am following steps from the URL given below
>
> http://servicemix.apache.org/building.html
>
>  
>
>  
>
> Environment:
>
> =========
>
> Servicemix 3.2.1
>
> Java 1.6
>
>  
>
> Steps Performed:
>
> ============
>
> 1.	Downloaded the servicemix source from 
>
> http://svn.apache.org/repos/asf/servicemix/smx3/trunk/
>
> 2.	Build the code using maven tool
>
> mvn -Dmaven.test.skip=true -Pstep1 install
>
> mvn -Dmaven.test.skip=true -Pstep2 install
>
>  
>
> When I execute the second command I got the following exception.
>
>  
>
>  
>
>  
>
> Exception Raised:
>
> =============
>
>  [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:/D:/OKISoft/maven-2.0.6/com/sun/xml/bind/jaxb-impl/2.1.6/jaxb-i
> mpl-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:/D:/OKISoft/maven-2.0.6/com/sun/xml/bind/jaxb-impl/2.1.6/jaxb-i
> mpl-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(Default
> LifecycleExecutor.java:564)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
> ycle(DefaultLifecycleExecutor.java:480)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
> ifecycleExecutor.java:459)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
> Failures(DefaultLifecycleExecutor.java:311)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:278)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
> ycleExecutor.java:143)
>
>         at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
>
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.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:/D:/OKISoft/maven-2.0.6/com/sun/xml/bind/jaxb-impl/2.1.6/jaxb-i
> mpl-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(DefaultPluginMa
> nager.java:443)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
> LifecycleExecutor.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:/D:/OKISoft/maven-2.0.6/com/sun/xml/bind/jaxb-impl/2.1.6/jaxb-i
> mpl-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:1
> 73)
>
>         at
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextIm
> pl.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.jav
> a:39)
>
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.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:80)
>
>         at
> org.apache.cxf.tools.wsdlto.core.PluginLoader.<init>(PluginLoader.java:7
> 0)
>
>         at
> org.apache.cxf.tools.wsdlto.core.PluginLoader.getInstance(PluginLoader.j
> ava:119)
>
>         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: 9 minutes 23 seconds
>
> [INFO] Finished at: Fri Feb 15 12:01:26 IST 2008
>
> [INFO] Final Memory: 68M/122M
>
> [INFO]
> ------------------------------------------------------------------------
>
>  
>
>  
>
> Please help me to resolve my problem
>
>  
>
> Regards,
>
> Puneet
>
>
> The information contained in this electronic message and any attachments to this message
are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential
or privileged information. If you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and destroy all copies
of this message and any attachments. 
>
> WARNING: Computer viruses can be transmitted via email. The recipient should check this
email and any attachments for the presence of viruses. The company accepts no liability for
any damage caused by any virus transmitted by this email.
>
> www.wipro.com
>
>
>   

Mime
View raw message