java.lang.ClassNotFoundException: org.apache.axis2.transport.http.AxisAdminServlet

6,175 views
Skip to first unread message

enjoylife

unread,
Aug 10, 2009, 1:21:00 PM8/10/09
to vogella
I was following your great tutorial : Webservices with Axis2 and the
Eclipse Web Tool Platform (WTP) - Tutorial @
http://www.vogella.de/articles/Webservice/article.html

I have Tomcat 5.5, Axis 2 1.4.1 and Eclipse galileo. with WTP 3.1

however, in step 3.3, after i click the start server button, the
following exception is always thrown in eclipse console:

[INFO] Marking servlet AxisAdminServlet as unavailable
[ERROR] Error loading WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@376a376a
org.apache.axis2.transport.http.AxisAdminServlet
java.lang.ClassNotFoundException:
org.apache.axis2.transport.http.AxisAdminServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1386)
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1232)
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1068)
at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start
(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start
(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start
(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:
552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:
295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:
433)
[ERROR] Servlet /ExampleHello threw load() exception
java.lang.ClassNotFoundException:
org.apache.axis2.transport.http.AxisAdminServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1386)
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1232)
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1068)
at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start
(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start
(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start
(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:
552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:
295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:
433)


I have spent more than 10 hours in searching a solution. no help.
could you please advice how do you make it work in your case?

thanks in advance!

enjoylife

unread,
Aug 10, 2009, 1:22:11 PM8/10/09
to vogella
I tried eclipse europe version, the same error.

On Aug 10, 10:21 am, enjoylife <enjoyl...@gmail.com> wrote:
>  I was following your great tutorial :  Webservices with Axis2 and the
> Eclipse Web Tool Platform (WTP) - Tutorial  @http://www.vogella.de/articles/Webservice/article.html

enjoylife

unread,
Aug 10, 2009, 3:21:25 PM8/10/09
to vogella
found the root cause it is because eclipse always publish axis 1.5
libraries into C:\tomcat\wtpwebapps\HelloWorld\WEB-INF\lib even though
I changed from axis1.5 to axis1.4.1 in preference: Axis2 Preferences.


I cleaned up everything and reconfigured axis1.4.1. now it works fine.
shot, it wasted me more than 10 hours and frustration.

Lars Vogel

unread,
Aug 10, 2009, 3:33:08 PM8/10/09
to vog...@googlegroups.com
Hi,

sorry for my late response.

The article http://www.vogella.de/articles/Webservice/article.html
actually describes that only 1.4.1 is supported:

http://www.vogella.de/articles/Webservice/article.html#installation_axis2

In my example if you configure Eclipse correctly it will push 1.4.1 to
the right directory.

Best regards, Lars

2009/8/10 enjoylife <enjo...@gmail.com>:
--
Lars
http://www.vogella.de - Tutorial about Java, Eclipse and Web programming
http://www.twitter.com/vogella - Lars on Twitter

enjoylife

unread,
Aug 10, 2009, 4:17:39 PM8/10/09
to vogella
Lars:

thanks for your reply. your set of tutorials are so great, I really
appreciate your sharing and effort to organize them so nicely.

I initially set axis2 1.5, then changed it to axis2 1.4.1 per notes
from your tutorial, however, Eclipse didn't push 1.4.1 lib into my
project.
I have to clean up and build from scratch. hope my experience can help
others if they face the same issue.


best regards!


On Aug 10, 12:33 pm, Lars Vogel <lars.vo...@googlemail.com> wrote:
> Hi,
>
> sorry for my late response.
>
> The article  http://www.vogella.de/articles/Webservice/article.html
> actually describes that only 1.4.1 is supported:
>
> http://www.vogella.de/articles/Webservice/article.html#installation_a...
>
> In my example if you configure Eclipse correctly it will push 1.4.1 to
> the right directory.
>
> Best regards, Lars
>
> 2009/8/10 enjoylife <enjoyl...@gmail.com>:
> Larshttp://www.vogella.de- Tutorial about Java, Eclipse and Web programminghttp://www.twitter.com/vogella- Lars on Twitter
Reply all
Reply to author
Forward
0 new messages