Dave, thanks for info. I solved class
loader problem by setting current thread context class loader. This should work
for me now. Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader()); From: Dave Andreasen
[mailto:[EMAIL PROTECTED] I had the same issue. The problem is
related to the Service using it’s own classloader and Spring wanting to
use the thread context classloader. See http://issues.apache.org/jira/browse/AXIS2-400.
There have been some extensions made to
support Spring in Axis2 in the nightly builds. You try pulling them down
to see if they help you out. Look at JIRA issue http://issues.apache.org/jira/browse/AXIS2-272
for more information I didn’t use the extensions because
they didn’t apply to the approach we used for creating our Spring
beans. I did create an Axis module that loads my Spring beans on Axis
startup. Hope this helps! Dave Andreasen From: Shaowei Mao
[mailto: Hi, I am trying to use
spring configured bean by creating spring container inside skeleton generated
by wsdl2java to create my own implementation class for web service, but spring
container BeanFactory can't load my classes packaged inside axis2 aar file. I
think this is related to class loader aixs2 is using for each web service. Does
anyone have sample code to solve this problem? Shaowei Mao aMind Solutions LLC Phone: 425-313-3107 Email: [EMAIL PROTECTED] website: www.amindsolutions.com |
- RE: [axis2] use spring configured bean inside axis2 as im... Shaowei Mao
- Re: [axis2] use spring configured bean inside axis2 ... Davanum Srinivas
- RE: [axis2] use spring configured bean inside ax... Shaowei Mao
- Re: [axis2] use spring configured bean insid... Davanum Srinivas
- Re: [axis2] use spring configured bean inside axis2 ... Rajith Attapattu
- RE: [axis2] use spring configured bean inside ax... Dave Andreasen
- Re: [axis2] use spring configured bean insid... Rajith Attapattu