Regards,

I started Java 2 months ago, and I am directly assigned to create and hosting 
web services. I am kind of stuck now for a few days, browsing around for 
solution which get me no where. Finally, I sending my first email to Apache 
Axis Team, hope can get some help.

I am currently working on a Web Services based on this tutorial  
http://wso2.org/library/1719 , my environment as follow:
        * JDK: 1.4.2.18 
        * Axis2 1.4.1
        * Eclipse Dynamic Web 2.3
        * IBM WebSphere Application Server, 5.1.1.13
Everything tested okay in Tomcat Server 5.5, even tried successfully to create 
Client project to call the web services.

After that, I used Eclipse to export my whole project to WAR file. Problem 
arises when I tried to host the WAR file in WAS 5.1. 

I used the config for the installation based on the following source 
http://www-01.ibm.com/support/docview.wss?rs=0&q1=axis2&q2=technote&uid=swg21315686&loc=en_US&cs=utf-8&cc=us〈=en
 and 
http://www-01.ibm.com/support/docview.wss?rs=0&q1=axis2&q2=technote&uid=swg21264548&loc=en_US&cs=utf-8&cc=us〈=en
 , I came to conclusion to modify the config of the "CLASS LOADER MODE" mode to 
"PARENT_LAST" and "WAR CLASSLOADER POLICY" to "APPLICATION". I also moved all 
the .mar file to "lib" and rename to .jar-> hope I did not misinterpret the 
sources.

After finished installation and started the application, the Runtime Events 
logs show 2 logs: 
1. Message Originator: com.ibm.ws.webcontainer.webapp.WebAppServletManager. 
Message: Servlet [AxisAdminServlet]: could not be loadedMessage.
2. Message Originator: com.ibm.ws.webcontainer.srt.WebGroup. Message: 
SRVE0020E: [Servlet Error]-[AxisAdminServlet]: Failed to load servlet: 
java.lang.ExceptionInInitializerError at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java(Compiled
 
Code)) at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java(Compiled
 
Code)) at java.lang.reflect.Constructor.newInstance(Constructor.java(Compiled 
Code)) at java.lang.Class.newInstance3(Class.java(Compiled Code)) at 
java.lang.Class.newInstance(Class.java(Compiled Code)) at 
java.beans.Beans.instantiate(Beans.java:219) at 
java.beans.Beans.instantiate(Beans.java:63) at 
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:188)
 
at 
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
 
at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1394) 
at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:299) at com.ibm.ws.w 
-- 
<truncated> --

But somehow I can opened the link to that application and It succeed fully load 
the Axis2 Welcome Page. When I click the "Service" link, it directed to 
"Internal Server Error" page, and the Runtime Events logs show 2 logs:
1. Message Originator: com.ibm.ws.webcontainer.srt.WebGroup. Message: 
SRVE0020E: [Servlet Error]-[AxisServlet]: Failed to load servlet: 
java.lang.NoClassDefFoundError: org/apache/axis2/transport/http/AxisServlet at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java(Compiled
 
Code)) at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java(Compiled
 
Code)) at java.lang.reflect.Constructor.newInstance(Constructor.java(Compiled 
Code)) at java.lang.Class.newInstance3(Class.java(Compiled Code)) at 
java.lang.Class.newInstance(Class.java(Compiled Code)) at 
java.beans.Beans.instantiate(Beans.java:219) at 
java.beans.Beans.instantiate(Beans.java:63) at 
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:188)
 
at 
com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:455)
 
at com.ibm.ws.webcontainer.webapp.WebApp.getServletReference(WebApp.java:733) 
at 
com.ibm.ws.webcontainer.webapp.WebAppRe -- <truncated> --
2. Message Originator: com.ibm.ws.webcontainer.srt.WebGroup. Message: 
SRVE0026E: [Servlet Error]-[AxisServlet]: java.lang.NoClassDefFoundError: 
org/apache/axis2/transport/http/AxisServlet at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java(Compiled
 
Code)) at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java(Compiled
 
Code)) at java.lang.reflect.Constructor.newInstance(Constructor.java(Compiled 
Code)) at java.lang.Class.newInstance3(Class.java(Compiled Code)) at 
java.lang.Class.newInstance(Class.java(Compiled Code)) at 
java.beans.Beans.instantiate(Beans.java:219) at 
java.beans.Beans.instantiate(Beans.java:63) at 
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:188)
 
at 
com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:455)
 
at com.ibm.ws.webcontainer.webapp.WebApp.getServletReference(WebApp.java:733) 
at 
com.ibm.ws.webcontainer.webapp.WebAppRe -- <truncated> --

I tried different combination of "CLASS LOADER MODE" and "WAR CLASSLOADER 
POLICY", none of these works. May I know what's wrong and what should I do?

Thanks in advance.


      

Reply via email to