axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sidath Dissanayake <sida...@gmail.com>
Subject Re: Axis2 1.4.1 + JDK 1.4 + WebSphere 5.1 Integration Issue
Date Fri, 16 Apr 2010 09:29:20 GMT
Hi,
Try getting rid of the servlet jar in WEB-INF/libs in your war if one
exists.
For deploying axis2 in websphere, the following article provides some useful
tips.
http://www.ibm.com/developerworks/websphere/library/techarticles/1001_thaker2/1001_thaker2.html
Cheers
Sidath.

On Fri, Apr 16, 2010 at 9:58 AM, Saibun Toe <s_toe_15385@yahoo.com> wrote:

> 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<http://www-01.ibm.com/support/docview.wss?rs=0&q1=axis2&q2=technote&uid=swg21315686&loc=en_US&cs=utf-8&cc=us&lang=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<http://www-01.ibm.com/support/docview.wss?rs=0&q1=axis2&q2=technote&uid=swg21264548&loc=en_US&cs=utf-8&cc=us&lang=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 <http://com.ibm.ws.webcontainer.webapp.WebApp.in>.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<http://com.ibm.ws.webcontainer.webapp.WebAppServletManager.ge>.webcontainer.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:455)
> at com.ibm.ws <http://com.ibm.ws.webcontainer.webapp.WebApp.ge>.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<http://com.ibm.ws.webcontainer.webapp.WebAppServletManager.ge>.webcontainer.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:455)
> at com.ibm.ws <http://com.ibm.ws.webcontainer.webapp.WebApp.ge>.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.
>
>
>
>
>
>
>

Mime
View raw message