• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Marking servlet HelloWorld as unavailable

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

my servlet is in /webapps/jspbook/WEB-INF/classes/com/jsp

here is my web.xml located in /webapps/jspbook/WEB-INF/



this is the catalina.out

11-Aug-07 10:53:04 AM org.apache.catalina.startup.HostConfig checkResources
INFO: Reloading context [/jspbook]
11-Aug-07 10:53:04 AM org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jspbook] has not been started
11-Aug-07 10:53:48 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application at '/jspbook'
11-Aug-07 10:53:48 AM org.apache.catalina.core.StandardContext start
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jspbook] has already been started
11-Aug-07 10:53:48 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
11-Aug-07 10:54:12 AM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet HelloWorld as unavailable
11-Aug-07 10:54:12 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Error loading WebappClassLoader

delegate: false

repositories:

/WEB-INF/classes/

----------> Parent Classloader:

org.apache.catalina.loader.StandardClassLoader{urls=[file:/var/lib/tomcat5/shared/classes/], parent=org.apache.catalina.loader.StandardClassLoader{urls=[file:/var/lib/tomcat5/common/classes/,file:/var/lib/tomcat5/common/i18n/tomcat-i18n-es.jar,file:/var/lib/tomcat5/common/i18n/tomcat-i18n-ja.jar,file:/var/lib/tomcat5/common/i18n/tomcat-i18n-en.jar,file:/var/lib/tomcat5/common/i18n/tomcat-i18n-fr.jar,file:/usr/share/java/xml-commons-apis-1.3.02.jar,file:/usr/share/java/xerces-j2-2.7.1.jar,file:/usr/share/java/jakarta-commons-pool-1.3.jar,file:/usr/share/java/tomcat5/naming-factory-5.5.23 .jar,file:/usr/share/java/libgcj-4.1.1.jar,file:/usr/share/java/tomcat5-jsp-2.0-api-5.5.23.jar,file:/usr/share/java/ant-1.6.5.jar,file:/usr/share/java/libgcj-4.1.1.jar,file:/usr/share/java/classpathx-mail-1.3.1-monolithic-1.1.1.jar,file:/usr/share/eclipse/plugins/org.eclipse.jdt.core_3.2.3.v_686_R32x.jar,file:/usr/share/java/jakarta-commons-el-1.0.jar,file:/usr/share/java/jasper5-runtime-5.5.23.jar,file:/usr/share/java/tomcat5-servlet-2.4-api-5.5.23.jar,file:/usr/share/java/jakarta-commons-loggi ng-api-1.0.4.jar,file:/usr/share/java/mx4j/mx4j-3.0.1.jar,file:/usr/share/java/tomcat5/naming-resources-5.5.23.jar,file:/usr/share/java/jakarta-commons-dbcp-1.2.1.jar,file:/usr/share/java/classpathx-jaf-1.0.jar,file:/usr/share/java/jakarta-commons-collections-3.1.jar,file:/usr/share/java/jasper5-compiler-5.5.23.jar,file:/usr/share/java/geronimo/spec-jta-1.0.1B-rc2.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/lib/jvm/java/lib/tools.jar,file:/usr/share/tomcat5/bin/bootstrap.jar,file:/usr/share/tomcat5/bin/commons-logging-api.jar,file:/usr/share/java/mx4j/mx4j-impl.jar,file:/usr/share/java/mx4j/mx4j-jmx.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}}

com.jspbook.HelloWorld
java.lang.ClassNotFoundException: com.jspbook.HelloWorld
at org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.core.StandardWrapper.loadServlet(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.core.StandardWrapper.allocate(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.core.StandardWrapperValve.invoke(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.core.StandardContextValve.invoke(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.core.StandardEngineValve.invoke(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.23.jar.souqoq08.so)
at org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.23.jar.so)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.23.jar.so)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.23.jar.so)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.23.jar.so)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.23.jar.so)
at java.lang.Thread.run(libgcj.so.7rh)
11-Aug-07 10:54:12 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet HelloWorld
java.lang.ClassNotFoundException: com.jspbook.HelloWorld
at org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.core.StandardWrapper.loadServlet(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.core.StandardWrapper.allocate(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.core.StandardWrapperValve.invoke(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.core.StandardContextValve.invoke(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.core.StandardEngineValve.invoke(catalina-5.5.23.jar.souqoq08.so)
at org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.23.jar.souqoq08.so)
at org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.23.jar.so)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.23.jar.so)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.23.jar.so)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.23.jar.so)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.23.jar.so)
at java.lang.Thread.run(libgcj.so.7rh)

please help thanks in advance
[ August 12, 2007: Message edited by: Bear Bibeault ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


my servlet is in /webapps/jspbook/WEB-INF/classes/com/jsp
<servlet-class>com.jspbook.HelloWorld</servlet-class>



If these lines are correct, your package and the directory structure don't match.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Megs Maquito,

Your subject line doesn't match your question.
Also, starting the subject line with 'INFO:' is going to lead people to think it's not a question; that you just wanted to pass some information on to the list.

You might want to look at this for advice on writing a meaningful subject line.
 
Megs Maquito
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry about that I just copied and pasted it from the catalina.out the word INFO was from the log itself.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you get it working?
 
reply
    Bookmark Topic Watch Topic
  • New Topic