DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32771>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32771

           Summary: Cannot undeploy/deploy misconfigured app after tomcat
                    startup
           Product: Tomcat 5
           Version: Unknown
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Tomcat 5.5.0-dev, Java 5, Win XP Pro SP2.
I was hit by Bug 32729 so i've just downloaded source head from CVS and rebuilt
the distribution to test its solution, but i think there are still problems in
that area.
Consider the following scenario (all using ant tasks):
1- deploy a .war containing a META_INF/context.xml with syntax errors
2- the .war is uploaded in webapps, the context.xml is extracted and copied in
conf/Catalina/localhost, the application, as expected, is not correctly deployed
and using list manager command it shows as stopped.
3- stop and restart tomcat
4- the application, as expected, won't deploy again, but this time it won't show
either in list output and i cannot operate on it anymore.

I mean that:
a- i cannot undeploy it because the context path does not exist
b- i cannot deploy. Even if a correct .war is uploaded in webapps the deploy
task issue the following error:
Cannot find message associated with key managerServlet.deployFailed
c- if i manually delete [app].xml, the .war is uploaded, the context.xml is not
extracted (like if Tomcat thinks it still exists), the deploy task issue the
same error as before and the application still doesn't show up in list output.
d- the same happen if i delete both conf/Catalina/localhost/[app].xml and .war
from webapps
e- if i stop Tomcat i get the following error, and it won't stop unless i kill 
it:

 INFO main org.apache.coyote.http11.Http11Protocol - Pausing Coyote HTTP/1.1 on
http-8080
 INFO main org.apache.catalina.core.StandardService - Stopping service Catalina
 java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NullPointerException
        at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java
:883)
        at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1
145)
        at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1117)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:312)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1051)
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1063)
        at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:442)

        at org.apache.catalina.core.StandardService.stop(StandardService.java:51
2)
        at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2044
)
        at org.apache.catalina.startup.Catalina.stop(Catalina.java:586)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:561)
        ... 6 more

Sorry if i've been too much verbose, but i tried to give you as much details as
i could, to help you understand the problem.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to