Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
4.1.27: Manager app 'reload ' causing ClassNotFoundException

4.1.27: Manager app 'reload ' causing ClassNotFoundException

2003-10-10       - By Justin Ruthenbeck

 Back
Reply:     1     2  


Hello All:

Tomcat 4.1.27
JDK 1.4.1_02
OS: Windows 2k

I've thoroughly read:
http://jakarta.apache.org/tomcat/tomcat-4 (See http://cat-4.ora-code.com).1-doc/manager-howto.html
http://jakarta.apache.org/tomcat/tomcat-4 (See http://cat-4.ora-code.com).1-doc/class-loader-howto.html
This list for the past 16 months  :)

Problem: My (simple demonstration) webapp runs fine if Tomcat is started
from scratch.  If I use the Manager app from either the html or ant
interfaces, executing the 'reload' command completes without error, yet all
servlets are unavailable afterwards.  Hitting a servlet results in the
following being logged:

2003-10-10 12:05:06 HTMLManager: restart: Reloading web application at '/news'
2003-10-10 12:05:06 StandardContext[/news]: Reloading this Context has started
2003-10-10 12:05:06 StandardWrapper[/news:default]: Loading container
servlet default
2003-10-10 12:05:06 StandardWrapper[/news:invoker]: Loading container
servlet invoker
2003-10-10 12:05:06 StandardManager[/news]: Seeding random number generator
class java.security.SecureRandom Source code of java.security.SecureRandom
2003-10-10 12:05:06 StandardManager[/news]: Seeding of random number
generator has been completed
2003-10-10 12:05:06 StandardContext[/news]: Reloading this Context is completed
2003-10-10 12:05:12
StandardWrapper[/news:com.nextengine.news.servlet.CalculatorServlet]:
Marking servlet com.nextengine.news.servlet.CalculatorServlet as unavailable
2003-10-10 12:05:12
StandardWrapperValve[com.nextengine.news.servlet.CalculatorServlet]:
Allocate exception for servlet com.nextengine.news.servlet.CalculatorServlet
javax.servlet.ServletException Source code of javax.servlet.ServletException: Wrapper cannot find servlet class
com.nextengine.news.servlet.CalculatorServlet or a class it depends on
  at
org.apache.catalina.core.StandardWrapper Source code of org.apache.catalina.core.StandardWrapper(StandardWrapper.java:891)
  at org.apache.catalina.core.StandardWrapper Source code of org.apache.catalina.core.StandardWrapper(StandardWrapper.java:668)
  at
org.apache.catalina.core.StandardWrapperValve Source code of org.apache.catalina.core.StandardWrapperValve(StandardWrapperValve.java
:210)
  at

<snip>

org.apache.coyote.http11.Http11Processor Source code of org.apache.coyote.http11.Http11Processor(Http11Processor.java:601)
  at
org.apache.coyote.http11.Http11Protocol Source code of org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler
.processConnection(Http11Protocol.java:392)
  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
  at
org.apache.tomcat.util.threads.ThreadPool Source code of org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java
:619)
  at java.lang.Thread Source code of java.lang.Thread(Thread.java:536)
-- -- Root Cause -- --
java.lang.ClassNotFoundException Source code of java.lang.ClassNotFoundException: com.nextengine.news.servlet.CalculatorServlet
  at
org.apache.catalina.loader.WebappClassLoader Source code of org.apache.catalina.loader.WebappClassLoader(WebappClassLoader.java
:1444)
  at
org.apache.catalina.loader.WebappClassLoader Source code of org.apache.catalina.loader.WebappClassLoader(WebappClassLoader.java
:1289)

CalculatorServlet.class exists only under the directory:
$TOMCAT_HOME/webapps/news/WEB-INF/classes/com/nextengine/news/servlet

The only modifications made to the default installation is the appropriate
additions to tomcat-users.xml.  No changes were made to server.xml.  Since
thousands of people use this, I'm assuming there's something simple going
on here.  Restarting the Tomcat process results in all resources being
available once again.

Hoping another pair of eyes can see what's wrong...

Thanks,
justin

__ ____ ____ ____ ____ ____ ____ ___
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential
   See http://www.nextengine.com/confidentiality.php
__ ____ ____ ____ ____ ____ ____ ___


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.