DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17279>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17279

Axis does not work when installed in WEB-INF/lib

           Summary: Axis does not work when installed in WEB-INF/lib
           Product: Axis
           Version: 1.1beta
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Basic Architecture
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I'm trying to integrate some Java code that uses Axis into a web application 
that will run under Sun ONE Web Server 6.0. I ran into the problem that 
java.xml.soap.FactoryFinder can't locate jar files installed under WEB-INF/lib. 
This prevents client code from creating SOAPMessage objects because the 
MessageFactoryImpl class is not found.

The reason is that FactoryFinder's find method uses a ClassLoader object that 
does not understand about WEB-INF/lib. The ClassLoader class that does what is 
reqired in this case is com.iplanet.server.http.servlet.NSServletLoader, but 
FactoryFinder uses a sun.misc.Launcher$AppClassLoader (AppClassLoader is the 
parent of NSServletLoader).

I got the web application to work by changing

    classloader = Thread.currentThread().getContextClassLoader();

to

    classloader = FactoryFinder.class.getClassLoader();

in the find method in FactoryFinder.

Reply via email to