This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat error deploying axis

 
Hari priya
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello -

I am new to web services. I am using axis 1.1 with tomcat 5.0.28.

I was able to work with axis when I installed axis yesterday.
But now when I try to run tomcat, I get a bunch of exceptions and an error maessage saying -
"Error deploying web application directory axis". Tomcat works fine and I am able to run jsp/servlet examples.

Please help me in resolving this. I have re-installed everything again, re-booted the system but nothign seems to work.

Below is the stack trace. (Please ignore any spelling mistake in the error messages as I have copy-pasted them).Thanks in advance for your help.

- Error deploying web application directory axis
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:1
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:1
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLo
der.java:1255)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLo
der.java:1189)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper
java:964)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:8
2)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardConte
t.java:4013)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:
357)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas
.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:8
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595

at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDe
loyer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.
ava:701)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:43
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.jav
:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091

at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:47
)
at org.apache.catalina.core.StandardService.start(StandardService.java:
80)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:23
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
[ October 20, 2004: Message edited by: Hari priya ]
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Strange... the installation should be straight forward.
I would delete the axis installation, download new from axis site again and give it a try.
Give it a try.
 
Pradeep Ram
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like your WebApp conked out, re-create your WebApp that runs axis and make sure your WEB-INF/lib has the right jar files. If the WebApp is not able to find HttpServlet, then the WebApp is not able to access the tomcat's library files (common libraries like servlet.jar)
--pradeeP
 
Hari priya
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello !

Thanks for gettign abck Balaji and Pradeep.
Its just that I had to place the servlet.jar from tomcat folder into jdk1.5/jre/lib/ext (because it was giving a servlet not found exception).

This has resolved all the problems though I did not understand why this could be the reaso nas it is not mentioned in the installation instructions in axis.

Thanks again
Hari Priya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic