tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32048] New: - antiJARLocking antiResourceLocking do nothing
Date Wed, 03 Nov 2004 21:49:23 GMT
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=32048>.
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=32048

antiJARLocking antiResourceLocking do nothing

           Summary: antiJARLocking antiResourceLocking do nothing
           Product: Tomcat 5
           Version: 5.5.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: sadiklis@mail.lt


Tomcat manager fails to undeploy Struts web app (e.g. struts-examples.war from
1.2.4 Struts distro). I've tried tar.gz and exe packages of Tomcat.

Here is how to reproduce it:

1. Make sure you've noticed that we talk about Tomcat 5.5.4, Struts 1.2.4 and
Windows 2000 SP4.

2. Tweak Tomcat/conf/context.xml by adding either or both attributes
(antiJARLocking antiResourceLocking) to the <context> tag (set them to "true").

3. Launch Tomcat.

4. Use this (or something similar):

<project>
<property name="contextPath" value="/examples"/>
<property name="appWAR" value="struts-examples.war"/>

<property environment="env"/>
<property name="strutsApps" value="${env.STRUTS_HOME}/webapps"/>

<taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"/>
<taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask"/>

<property file="${env.TOMCAT_PROPERTIES}"/>

<target name="deploy" description="(Re)deploy application to Tomcat">
    <deploy url="${managerURL}" username="${username}" password="${password}"
                war="${strutsApps}/${appWAR}"
                path="${contextPath}" update="true"/>
</target>

<target name="undeploy" description="Remove application from Tomcat">
    <undeploy url="${managerURL}" username="${username}"
                password="${password}" path="${contextPath}"/>
</target>

</project>

5. Deploy the war, invoking the "deploy" target. Enjoy OK message.

6. Navigate to the url: http://localhost[:port]/examples. Enjoy how it forwards
to welcome.do.

7. Undeploy the app using "undeploy" target. Enjoy OK message.

8. Notice that struts.jar is still stuck in the
Tomcat\webapps\examples\WEB-INF\lib directory and refuses to be deleted by hand.
Figure that the OK message in step 7 was a lie and get mad.

9. Shutdown tomcat and erase directory Tomcat\webapps\examples (and
Tomcat\work\Catalina\localhost\examples BTW).

10. Try not to close this bugreport prematurely (it's boring to resubmit them,
you know).

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message