Dave,Shaowei,

If you pick up tonight's nightly, i've fixed this issue class loader
problem and you won't need the hack.

thanks,
dims

On 7/31/06, Shaowei Mao <[EMAIL PROTECTED]> wrote:




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]
 Sent: Monday, July 31, 2006 1:11 PM
 To: [email protected]; [EMAIL PROTECTED]
 Subject: RE: [axis2] use spring configured bean inside axis2 as
implementation class




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:[EMAIL PROTECTED]
 Sent: Monday, July 31, 2006 2:59 PM
 To: [email protected]
 Subject: [axis2] use spring configured bean inside axis2 as implementation
class



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





--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to