Thanks, Amila. I tried the work around you suggested, but didn't to work. I opened a thread at a WSO2 forum [1] where I include two tests. One [3] includes axis2-spring jar while the other [2] doesn't.
Are there any mistakes in these tests? Regards. [1] http://wso2.org/forum/thread/11284 [2] http://wso2.org/files/test_1.zip [3] http://wso2.org/files/test2.zip ________________________________ De: Amila Suriarachchi <amilasuriarach...@gmail.com> Para: java-user@axis.apache.org Enviado: jue,13 enero, 2011 05:03 Asunto: Re: Axis2 Spring integration On Wed, Jan 12, 2011 at 9:18 PM, nch <underscore_...@yahoo.com> wrote: Hi, there. > >I have developed two Axis2 web services. Both integrate with Spring >following http://axis.apache.org/axis2/java/core/docs/spring.html#a26 >Both services work correctly when deployed alone but, if both are deployed, only >the service that was last deployed works. The previously deployed services fail >with: > this is a know issue of axis2 because of some limitations of this class. it is singleton and always has the last application context. work around for this problem in axis2 level is to copy the axis2-spring jar to your .aar file. which creates the above mentioned class in different class loaders. thanks, Amila. [1] https://svn.apache.org/repos/asf/axis/axis2/java/core/trunk/modules/spring/src/org/apache/axis2/extensions/spring/receivers/ApplicationContextHolder.java ><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> > <soapenv:Body> > <soapenv:Fault> > <faultcode>soapenv:Server</faultcode> > <faultstring>unknown</faultstring> > <detail/> > </soapenv:Fault> > </soapenv:Body> ></soapenv:Envelope> > >My guess is that both services are using the same application context so, as if >each time one of them is deployed it makes a refresh of the context, the >previous definitions are lost. If so, how can I have a per-service application >context? >Anyway what do you think is causing this issue? How can I solve it? > >Many thanks in advance. > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org >For additional commands, e-mail: java-user-h...@axis.apache.org > > -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/