OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | jonas-team List | November 2008 Index

<--  Date Index  --> <--  Thread Index  -->

[jonas-team] Re: Re: A problem about JAXB2


Hi!

  I am not so sure why this happens, in fact the stack trace is complete.


  And when I remove the embeded dependency of JAXB-Impl, I traced it and find 
the code that cause the exception is following:

 public static HandlerChainsType loadHandlerChains(InputStream is) {
        try {
            // All the classes we need should be part of this package
            JAXBContext jc = 
JAXBContext.newInstance("org.apache.axis2.jaxws.description.xml.handler",endpointDescriptionImpl.class.getClassLoader());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 this code will cause this exception

 I think this may be a problem about the classloader, but I don't know 
exactly why.

 What's your opinion?

======= 2008-11-22 06:24:11 You wrote in your letter:======

>Hi XiaoDa
>
>In fact, you MAY need the jaxb-api in the dependencies of the axis2
>module only if you need it to compile your classes.
>A dependencies on the bundle or the implementation is not needed (you
>depends on too much classes than what you actually reaaly need)
>
>So, my advice is that we should understand whay it doesn't work when
>JAXB is used (at runtime) from the ow2 jaxb bundle.
>Is the stack trace complete ?
>
>Can you see what happen at DescriptionUtils.java line 380 ?
>Looking at the code you could have some hints about the cause of the
>Exception ...
>
>Cheers
>--G
>
>xiaoda a écrit :
>> Hi,JOnAS
>>
>>      In fact, we have ow2-bundles-externals-jaxb2-1.0.10-SNAPSHOT.jar in 
>> JONAS that exported jaxb-impl , so in axis2, I should just need to write 
>> this dependency on  ow2-bundles-externals-jaxb2 in pom.xml, but I found if 
>> I do like that, I will get this issue when Axis2 is trying to load the 
>> handler chains:
>>
>>     javax.xml.ws.WebServiceException: EndpointDescriptionImpl: 
>> loadHandlerList: thrown when attempting to unmarshall JAXB content
>>      at 
>> org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:172)
>>      at 
>> org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:69)
>>      at 
>> org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:117)
>>      at 
>> org.apache.axis2.jaxws.description.impl.DescriptionUtils.loadHandlerChains(DescriptionUtils.java:380)
>>      at 
>> org.ow2.jonas.ws.axis2.jaxws.Axis2WSEndpoint.configureHandlers(Axis2WSEndpoint.java:378)
>>      at 
>> org.ow2.jonas.ws.axis2.jaxws.Axis2WSEndpoint.init(Axis2WSEndpoint.java:133)
>>      at 
>> org.ow2.jonas.ws.axis2.easybeans.ext.LifeCycleCallback.start(LifeCycleCallback.java:182)
>>      at org.ow2.easybeans.container.JContainer3.start(JContainer3.java:407)
>>      at 
>> org.ow2.jonas.ejb.easybeans.EasyBeansDeployer.deployEJB3(EasyBeansDeployer.java:160)
>>      at 
>> org.ow2.jonas.ejb.easybeans.EasyBeansDeployer.deploy(EasyBeansDeployer.java:130)
>>      at 
>> org.ow2.util.ee.deploy.impl.deployer.DeployerManager.deploy(DeployerManager.java:120)
>>      at 
>> org.ow2.jonas.deployablemonitor.DeployableMonitor.detectNewArchives(DeployableMonitor.java:389)
>>      at 
>> org.ow2.jonas.deployablemonitor.DeployableMonitor.access$000(DeployableMonitor.java:63)
>>      at 
>> org.ow2.jonas.deployablemonitor.DeployableMonitor$1.execute(DeployableMonitor.java:189)
>>      at 
>> org.ow2.jonas.deployablemonitor.DeployableMonitor$1.execute(DeployableMonitor.java:188)
>>      at 
>> org.ow2.jonas.lib.execution.RunnableHelper.execute(RunnableHelper.java:60)
>>      at 
>> org.ow2.jonas.deployablemonitor.DeployableMonitor.checkNewArchives(DeployableMonitor.java:195)
>>      at 
>> org.ow2.jonas.deployablemonitor.DeployableMonitor.run(DeployableMonitor.java:159)
>>     
>>      
>>     but if I use embeded dependency of JAXB-Impl, this issue does not 
>> exist, I don't know why.....
>>
>>      So the version I commit is the embeded version...
>>
>>      Can anybody help me?
>>      
>>      Thanks a lot!
>>
>>
>> Best Wishes!
>>                              
>>           2008-11-21
>>
>> XiaoDa    mailto:http://xiaoda08@xxxxxxxxxxxxxx
>> ____________________________________________________
>>
>> Institute of Software
>> School of Electronics Engineering & Computer Science
>> Peking University
>> Beijing, 100871, P.R.China
>> Tel : (86-10)62757801
>> ____________________________________________________
>>   

= = = = = = = = = = = = = = = = = = = =
                        

Best wishes!
 
                                 
          2008-11-21

XiaoDa    mailto:http://xiaoda08@xxxxxxxxxxxxxx
____________________________________________________

Institute of Software
School of Electronics Engineering & Computer Science
Peking University
Beijing, 100871, P.R.China
Tel : (86-10)62757801
____________________________________________________



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.