Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

HTTP 503 Servlet action unavailable

Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I migrated from Tomcat 3.2 to 4.1 and now I get this message whenever a struts action is being invoked. I looked at the Tomcat log and this is the stack trace:

javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.struts.action.ActionServlet or a class it depends on
at org.apache.catalina.core.StandardWrapper.loadServlet(
at org.apache.catalina.core.StandardWrapper.load(
----- Root Cause -----
java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(

Now, I've tried copying struts.jar into \tomcat\common\lib to no avail. The system classpath already points to struts.jar but I know Tomcat ignores that. If I modify setclasspath.bat to include %CLASSPATH% Tomcat does not start. So my question is this.. how can I define my own classpath for use with Tomcat?
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you included struts.jar and all the required commons jars in the WEB-INF/lib directory of your WAR file? It should be included here, rather than in any common classpath.
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic