tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Oxley <d...@daveoxley.co.uk>
Subject Re: DO NOT REPLY [Bug 31677] - Cannot undeploy and deploy war file with on the same context
Date Tue, 12 Oct 2004 22:22:29 GMT
Remy,

I'm sorry that you feel my comments were not constructive. My app uses 
Log4j and mail.jar to send an email when the server starts up.
With antiJARLocking set:
An undeploy leaves mail.jar and I am unable to delete it without 
stopping Tomcat.
With antiResourceLocking set:
Stopping Tomcat (I didn't do an undeploy), the webapp is deleted except 
for ALL jars which are left in the lib directory. Also the 
server/webapps/admin and server/webapps/manager folders are deleted but 
this maybe because I manually added the Contexts to server.xml. Please 
note I didn't do an undeploy.

I've attached the server.xml I'm using. When did you last test the 
deploy/undeploy on Windows? Maybe it broke recently. Also I have had no 
such problems with TC5.5 under Linux but I do not have either 
antiJARLocking or antiResourceLocking set as I have never required them 
under Linux. I think the bug should be reopened.

<Server port="8005" shutdown="SHUTDOWN" debug="0">

  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
            debug="0"/>

  <Listener 
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
            debug="0"/>

  <GlobalNamingResources>

    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved"
           factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
          pathname="conf/tomcat-users.xml" />

  </GlobalNamingResources>

  <Service name="Catalina">

    <Connector port="8015"
               enableLookups="false" redirectPort="443" debug="0"
               protocol="AJP/1.3" />

    <Connector port="8025"
               enableLookups="false" redirectPort="8055" debug="0"
               protocol="AJP/1.3" />

    <Connector port="8035" scheme="https" secure="true"
               enableLookups="false" debug="0"
               protocol="AJP/1.3" />

    <Connector port="8045" scheme="https" secure="true"
               enableLookups="false" debug="0"
               protocol="AJP/1.3" />

    <Engine name="HTTP" jvmRoute="ajp13_node1"
            defaultHost="www1.staffplanner.com" debug="0">

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                 debug="0" resourceName="UserDatabase"/>

      <Host name="www1.staffplanner.com" debug="0" 
appBase="../../Apps/Server1"
       unpackWARs="true" autoDeploy="false"
       xmlValidation="false" xmlNamespaceAware="false">

        <Alias>www.staffplanner.com</Alias>

        <Context path="/admin" docBase="../../Tomcat/server/webapps/admin"
                 debug="0" privileged="true">

          <ResourceLink name="users" global="UserDatabase"
                        type="org.apache.catalina.UserDatabase"/>

        </Context>

        <Context path="/manager" 
docBase="../../Tomcat/server/webapps/manager"
                debug="0" privileged="true">

          <ResourceLink name="users" global="UserDatabase"
                        type="org.apache.catalina.UserDatabase"/>

        </Context>

        <Context path="/admin1" docBase="../../Tomcat/server/webapps/admin"
                 debug="0" privileged="true">

          <ResourceLink name="users" global="UserDatabase"
                        type="org.apache.catalina.UserDatabase"/>

        </Context>

        <Context path="/manager1" 
docBase="../../Tomcat/server/webapps/manager"
                debug="0" privileged="true">

          <ResourceLink name="users" global="UserDatabase"
                        type="org.apache.catalina.UserDatabase"/>

        </Context>

      </Host>

    </Engine>

  </Service>

</Server>

Dave

bugzilla@apache.org wrote:

>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=31677>.
>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=31677
>
>Cannot undeploy and deploy war file with on the same context
>
>remm@apache.org changed:
>
>           What    |Removed                     |Added
>----------------------------------------------------------------------------
>             Status|NEW                         |RESOLVED
>         Resolution|                            |INVALID
>
>
>
>------- Additional Comments From remm@apache.org  2004-10-12 22:02 -------
>I did test it, and I think you are not being very constructive in your comments.
>Tested with Struts' example webapp, precompiled, deployed and undeployed using
>the Tomcat deployer (which uses the Ant tasks), with both antiJARLocking and
>antiResourceLocking (which both do deployment where expected). Without one of
>these two options, some JARs remain, which is to be expected.
>
>Please don't reopen this report.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>  
>


---------------------------------------------------------------------
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