tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chuck.Irv...@mail.sprint.com
Subject Tomcat 4.0 Reloading Problem - 2nd Post - Please Help
Date Thu, 11 Oct 2001 15:43:27 GMT
I'm having problems with class reloading and was hoping someone could 
give me some help. 

When I recompile my servlet application, my compiled classes go 
directly into my webapp class directory. To enable class reloading for 
our webapp, I inserted:

  <Context path="/fms" docBase="fms" debug="0" reloadable="true"/>

into the server.xml file. Reloading seems to work about 75% of the 
time. Other times I get a message of the form: 

  WebappClassLoader: Resource 
'/WEB-INF/classes/com/sprint/fms/servlet/InitFms.class' is missing

The missing class is always one of our servlet classes. The "missing" 
class is always in a classpath directory. If we bounce tomcat, the 
missing class message goes away. 

When looking at the Tomcat logs (see below), the messge above 
correlates to a ClassNotFoundException. Not surprising.

A couple of notes:

1. This problem didn't occur in Tomcat 3.2.
2. Class reloading was on by default in Tomcat 3.2. It seems that it 
has to be specifically enabled for Tomcat 4.0.
3. Is there a way to make Tomcat load faster. I'm just using it as a 
servlet container. 

Since bouncing Tomcat isn't fast, I'm being irritated by having to 
bounce it so frequently. Any help would be greatly appreciated! Thanks

Chuck

************************ Revelant Log Excerpt 
******************************************

2001-10-10 12:54:24 StandardWrapper[/fms:default]: Loading container 
servlet default
2001-10-10 12:54:24 default: init
2001-10-10 12:54:24 StandardWrapper[/fms:initFms]: Marking servlet 
initFms as unavailable
2001-10-10 12:54:24 StandardContext[/fms]: Servlet /fms threw load() 
exception
javax.servlet.ServletException: Wrapper cannot find servlet class 
com.sprint.fms.servlet.InitFms or a class it depends on
	at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:819)
	at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3292)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3402
)
	at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
	at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:415)
	at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:643)
	at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:647)
	at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:777)
	at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:46
3)
	at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:155)
	at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
	at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
	at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
	at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
	at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218)
----- Root Cause -----
java.lang.ClassNotFoundException: com.sprint.fms.servlet.InitFms
	at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1264)
	at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1113)
	at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
	at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3292)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3402
)
	at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
	at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:415)
	at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:643)
	at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:647)
	at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:777)
	at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:46
3)
	at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:155)
	at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
	at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
	at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
	at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
	at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
	at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
	at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:218)


Mime
View raw message