3 Replies Latest reply on Jun 5, 2004 12:50 PM by rmaucher

    RC2 - Tomcat5 default <Host> definition must have deployXML=

    garu

      3.2.4RC2 installation.
      During first start Tomcat 5 builds conf/jboss.web/localhost dir where it puts all the context.xml from the deployed wars.

      On second and all subsequent starts, being the default deployXML="true", during its deploy Tomcat tries to redeploy by itself the applications starting from context.xml in conf/jboss.web/localhost dir, but this is jboss matter and it cannot do it, so all the deploy attempts fail filling the log with a bunch of exception stack traces.


      15:21:28,600 INFO [StandardHost] Create Host deployer for direct deployment ( non-jmx )
      15:21:28,600 INFO [StandardHostDeployer] Processing Context configuration file
      URL file:C:\home\jboss\server\def\conf\jboss.web\localhost\invoker.xml
      15:21:28,694 ERROR [Digester] Begin event threw exception
      java.util.zip.ZipException: Access is denied
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.(ZipFile.java:112)
      at java.util.jar.JarFile.(JarFile.java:127)
      at java.util.jar.JarFile.(JarFile.java:65)
      at sun.net.www.protocol.jar.URLJarFile.(URLJarFile.java:55)
      at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:40)
      at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78)
      at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.ja
      va:85)
      at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection
      .java:69)
      at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:155)
      at org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:
      131)
      ..... and so on .....

      The default server.xml in jbossweb-tomcat50.sar should be coded with
      to avoid that Tomcat tries to deploy applications by itself.

      If nobody from Jboss group has anything to object, i'm going to open a bug for this.

      Regards, Gabriele.

        • 1. Re: RC2 - Tomcat5 default <Host> definition must have deploy
          rmaucher

          What you describe doesn't happen for me.
          Also, don't post a bug if you just want to suggest a configuration change (this seems safe to me, so I'll do it).

          • 2. Re: RC2 - Tomcat5 default <Host> definition must have deploy
            garu

            Hi Remy,
            first of all i apologize for the fact that the post is almost unreadable.
            Just this morning i realized that anything between < > and " " disappeared from the title and anything between < > disappeared from the body.
            And it continues to do so unless i put spaces after < and before >.
            Is this the correct way to enter XML snippets in the forums?

            Anyhow the title should have read:


            Tomcat5 default < Host > definition must have deployXML="false"


            and the last lines should have read:

            The default server.xml in jbossweb-tomcat50.sar should be coded with
            < Host name="localhost" autoDeploy="false" deployXML="false" >
            to avoid that Tomcat tries to deploy applications by itself.


            Now to the base question:
            i have tried many times, but during deploy of Tomcat sar the behaviour is always the same, when it sees any context.xml in conf/jboss.web/localhost it immediately tries to deploy the associated webapps unless i do what outlined in my previous post.

            If this doesn't happen to you, and i don't understand why since this should be natural Tomcat behaviour, then i must be doing something odd.
            Can you advice on this?

            Thanks, Gabriele.

            • 3. Re: RC2 - Tomcat5 default <Host> definition must have deploy
              rmaucher

              I'll add a flag in Tomcat to allow disabling this for good, as it's bad behavior for embedded.