wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Marking servlet HelloWorld as unavailable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Marking servlet HelloWorld as unavailable" Watch "Marking servlet HelloWorld as unavailable" New topic
Author

Marking servlet HelloWorld as unavailable

Megs Maquito
Ranch Hand

Joined: May 18, 2005
Posts: 84
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 ]

I'm a Hood Ornament
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410


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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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

Joined: May 18, 2005
Posts: 84
sorry about that I just copied and pasted it from the catalina.out the word INFO was from the log itself.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Did you get it working?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Marking servlet HelloWorld as unavailable
 
Similar Threads
Trouble Installing JForum on VPS
not able to run two site simultaneously in a tomcat websrever
java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/B2CConverter
ServletException: Error allocating a servlet instance
Problem grabbing RSS from a website and displaying it from servlet