Hi Eric,
I'm not sure what has happened. I see two things in error.log that you
posted:
1. tomcat tries to remove the child while shutting down, and gets an error
that the context /apress has not been started yet.
2. while starting up, tomcat again tries to bring up the context /apress but
encounters an error while trying to configure resources, and does not load
the context.
Also, you mentioned you have that context mentioned in the server.xml - i
don't think you need to do that. maybe, while starting up, tomcat sees that
context in server.xml and tries to load it and finds nothing and fails. when
it next finds the apress.war maybe it doesn't load it since it assumes that
a context with the same name had to failed to start.
could you try cleaning up your work folders, removing the entry from the
server.xml about the context apress and try again?
~manav.
- Original Message -
From: eric [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, January 19, 2003 1:45 AM
Subject: Re: WAR Problem - No Go
Mark,
Tried that and it still didn't work. Here's the output of the error log.
Perhaps I need to disable the context /apress in server.xml? Doesn't make
much sense though.
2003-01-19 10:39:46 StandardHost[localhost]: Removing web application at
context path /admin
2003-01-19 10:39:46 StandardHost[localhost]: Removing web application at
context path /webdav
2003-01-19 10:39:46 StandardHost[localhost]: Removing web application at
context path /apress
2003-01-19 10:39:46 StandardHost[localhost]: ContainerBase.removeChild:
stop:
LifecycleException: Container StandardContext[/apress] has not been
started
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036)
at
org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.ja
va:420)
at org.apache.catalina.core.StandardHost.remove(StandardHost.java:852)
at
org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:919)
at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:899)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:370)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1221)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1233)
at org.apache.catalina.core.StandardService.stop(StandardService.java:554)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2224)
at org.apache.catalina.startup.Catalina.start(Catalina.java:543)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
2003-01-19 10:39:46 StandardHost[localhost]: Removing web application at
context path /examples
2003-01-19 10:39:46 StandardHost[localhost]: Removing web application at
context path /tomcat-docs
2003-01-19 10:39:46 StandardHost[localhost]: Removing web application at
context path
2003-01-19 10:39:46 StandardHost[localhost]: Removing web application at
context path /manager
2003-01-19 10:39:46 StandardHost[localhost]: Removing web application at
context path /ch03
2003-01-19 10:39:53 StandardContext[/apress]: Starting
2003-01-19 10:39:53 StandardContext[/apress]: Processing start(), current
available=false
2003-01-19 10:39:53 StandardContext[/apress]: Configuring default
Resources
2003-01-19 10:39:53 StandardContext[/apress]: Resources start failed:
2003-01-19 10:39:53 StandardContext[/apress]: Configuring non-privileged
default Loader
2003-01-19 10:39:53 StandardContext[/apress]: Configuring default Manager
2003-01-19 10:39:53 StandardContext[/apress]: Processing standard
container
startup
2003-01-19 10:39:53 StandardContext[/apress]: Context startup failed due
to
previous errors
2003-01-19 10:39:53 StandardContext[/apress]: Exception during cleanup
after
start failed
LifecycleException: Container StandardContext[/apress] has not been
started
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497