6 Replies Latest reply on Dec 11, 2003 4:34 AM by ghezzi

    Missing application web.xml, using defaults only

    Sean Howell Newbie

      Weird !

      I'm moving from 2.4.4 to 3.0.0, my .war that deploys fine under 2.4.4 now bombs on 3.0.0 due to these errors...

      [MainDeployer] Deploying: file:/C:/jboss-3.0.0beta/tmp/deploy/97.can.war
      [EmbeddedCatalinaServiceSX] deploy, ctxPath=/can, warUrl=file:/C:/jboss-3.0.0beta/tmp/deploy/100.97.can.war
      [EmbeddedCatalinaServiceSX] WebappLoader[/can]: Deploying class repositories to work directory C:\jboss-3.0.0beta\jakarta-tomcat-4.0.2\work\localhost\can
      [EmbeddedCatalinaServiceSX] StandardManager[/can]: Seeding random number generator class java.security.SecureRandom
      [EmbeddedCatalinaServiceSX] StandardManager[/can]: Seeding of random number generator has been completed
      [EmbeddedCatalinaServiceSX] ContextConfig[/can]: Missing application web.xml, using defaults only
      [EmbeddedCatalinaServiceSX] ContextConfig[/can]: Added certificates -> request attribute Valve
      [EmbeddedCatalinaServiceSX] No /WEB-INF/web.xml descriptor found

      Help !!!!!!!! It works under 2.4.4, and I've checked the case of /WEB-INF and the hyphen not the underscore.

      My /WEB-INF/web.xml is there, really..

      Sean

        • 1. Re: Missing application web.xml, using defaults only
          Adrian Brock Master

          Can you post the output of
          jar -tf can.war

          Regards,
          Adrian

          • 2. Re: Missing application web.xml, using defaults only
            Sean Howell Newbie

            Hi Adrian, thanks for helping, really appreciate it.
            Here's my jar -tf can.war output

            WEB-INF/can.tld
            WEB-INF/classes/ApplicationResources.properties
            WEB-INF/classes/can/AdminAction.class
            WEB-INF/classes/can/Constants.class
            WEB-INF/classes/can/LogoffAction.class
            WEB-INF/classes/can/LogonAction.class
            WEB-INF/classes/can/LogonForm.class
            WEB-INF/classes/ejbs/Organisation.class
            WEB-INF/classes/ejbs/OrganisationBean.class
            WEB-INF/classes/ejbs/OrganisationHome.class
            WEB-INF/classes/ejbs/SystemState.class
            WEB-INF/classes/ejbs/SystemStateBean.class
            WEB-INF/classes/ejbs/SystemStateHome.class
            WEB-INF/classes/tags/SystemStatus.class
            WEB-INF/jboss-web.xml
            WEB-INF/lib/activation.jar
            WEB-INF/lib/castor.jar
            WEB-INF/lib/concurrent.jar
            WEB-INF/lib/counter-plugin.jar
            WEB-INF/lib/crimson.jar
            WEB-INF/lib/getopt.jar
            WEB-INF/lib/gnu-regexp.jar
            WEB-INF/lib/hsqldb-plugin.jar
            WEB-INF/lib/hsqldb.jar
            WEB-INF/lib/jaas.jar
            WEB-INF/lib/javagroups-2.0.jar
            WEB-INF/lib/javax.servlet.jar
            WEB-INF/lib/jaxp.jar
            WEB-INF/lib/jboss-boot.jar
            WEB-INF/lib/jboss-client.jar
            WEB-INF/lib/jboss-common.jar
            WEB-INF/lib/jboss-j2ee.jar
            WEB-INF/lib/jboss-spine.jar
            WEB-INF/lib/jboss.jar
            WEB-INF/lib/jbossha.jar
            WEB-INF/lib/jbossmq-client.jar
            WEB-INF/lib/jbossmq.jar
            WEB-INF/lib/jbossmqha.jar
            WEB-INF/lib/jbossmx.jar
            WEB-INF/lib/jbosssx-client.jar
            WEB-INF/lib/jbosssx.jar
            WEB-INF/lib/jcert.jar
            WEB-INF/lib/jmxri.jar
            WEB-INF/lib/jmxtools.jar
            WEB-INF/lib/jndi.jar
            WEB-INF/lib/jnet.jar
            WEB-INF/lib/jnp-client.jar
            WEB-INF/lib/jnpserver.jar
            WEB-INF/lib/jpl-pattern.jar
            WEB-INF/lib/jpl-util.jar
            WEB-INF/lib/jsr77.jar
            WEB-INF/lib/jsse.jar
            WEB-INF/lib/jts.jar
            WEB-INF/lib/log4j.jar
            WEB-INF/lib/mail-plugin.jar
            WEB-INF/lib/mail.jar
            WEB-INF/lib/org.apache.jasper.jar
            WEB-INF/lib/scheduler-plugin-example.jar
            WEB-INF/lib/scheduler-plugin.jar
            WEB-INF/lib/struts.jar
            WEB-INF/lib/tyrex.jar
            WEB-INF/lib/xalan.jar
            WEB-INF/struts-bean.tld
            WEB-INF/struts-config.xml
            WEB-INF/struts-form.tld
            WEB-INF/struts-html.tld
            WEB-INF/struts-logic.tld
            WEB-INF/struts-template.tld
            WEB-INF/struts.tld
            WEB-INF/web-app.xml
            WEB-INF/web.xml
            admin.jsp
            index.jsp
            logon.jsp
            META-INF/MANIFEST.MF

            Can you see any probs? I know I have too many libs in there, but that wouldn't worry it, right.

            TIA

            Sean

            • 3. Re: Missing application web.xml, using defaults only
              Sean Howell Newbie

              Actually you have prompted me to compare the output from

              jar -tf can.war (prior post - above)
              jar -tf tomcat-test.war (below)

              META-INF/
              META-INF/MANIFEST.MF
              WEB-INF/
              WEB-INF/classes/
              WEB-INF/classes/org/
              WEB-INF/classes/org/jboss/
              WEB-INF/classes/org/jboss/test/
              WEB-INF/classes/org/jboss/test/tomcat/
              WEB-INF/classes/org/jboss/test/tomcat/servlet/
              index.html
              WEB-INF/web.xml
              WEB-INF/classes/org/jboss/test/tomcat/servlet/HelloEJB.class
              WEB-INF/classes/org/jboss/test/tomcat/servlet/PrintClassLoaders.class
              WEB-INF/classes/org/jboss/test/tomcat/servlet/Util.class

              Note that in tomcat-test.war there is an entry for the WEB-INF/ directory itself. This does not appear in my war.

              I have been using JBuilder 6 to create my war. It looks like JB6 somehow doesn't put the directory entry in.

              I then repacked my war with

              jar cvfm can.war *

              this created an archive with a stand-alone WEB-INF/ entry, as follows.

              META-INF/
              META-INF/MANIFEST.MF
              admin.jsp
              index.jsp
              logon.jsp
              WEB-INF/
              WEB-INF/can.tld
              WEB-INF/classes/
              WEB-INF/classes/ApplicationResources.properties
              WEB-INF/classes/can/
              WEB-INF/classes/can/AdminAction.class
              WEB-INF/classes/can/Constants.class
              WEB-INF/classes/can/LogoffAction.class
              WEB-INF/classes/can/LogonAction.class
              WEB-INF/classes/can/LogonForm.class
              WEB-INF/classes/ejbs/
              WEB-INF/classes/ejbs/Organisation.class
              WEB-INF/classes/ejbs/OrganisationBean.class
              WEB-INF/classes/ejbs/OrganisationHome.class
              WEB-INF/classes/ejbs/SystemState.class
              WEB-INF/classes/ejbs/SystemStateBean.class
              WEB-INF/classes/ejbs/SystemStateHome.class
              WEB-INF/classes/tags/
              WEB-INF/classes/tags/SystemStatus.class
              WEB-INF/jboss-web.xml
              WEB-INF/lib/
              WEB-INF/lib/activation.jar
              WEB-INF/lib/castor.jar
              WEB-INF/lib/concurrent.jar
              WEB-INF/lib/counter-plugin.jar
              WEB-INF/lib/crimson.jar
              WEB-INF/lib/getopt.jar
              WEB-INF/lib/gnu-regexp.jar
              WEB-INF/lib/hsqldb-plugin.jar
              WEB-INF/lib/hsqldb.jar
              WEB-INF/lib/jaas.jar
              WEB-INF/lib/javagroups-2.0.jar
              WEB-INF/lib/javax.servlet.jar
              WEB-INF/lib/jaxp.jar
              WEB-INF/lib/jboss-boot.jar
              WEB-INF/lib/jboss-client.jar
              WEB-INF/lib/jboss-common.jar
              WEB-INF/lib/jboss-j2ee.jar
              WEB-INF/lib/jboss-spine.jar
              WEB-INF/lib/jboss.jar
              WEB-INF/lib/jbossha.jar
              WEB-INF/lib/jbossmq-client.jar
              WEB-INF/lib/jbossmq.jar
              WEB-INF/lib/jbossmqha.jar
              WEB-INF/lib/jbossmx.jar
              WEB-INF/lib/jbosssx-client.jar
              WEB-INF/lib/jbosssx.jar
              WEB-INF/lib/jcert.jar
              WEB-INF/lib/jmxri.jar
              WEB-INF/lib/jmxtools.jar
              WEB-INF/lib/jndi.jar
              WEB-INF/lib/jnet.jar
              WEB-INF/lib/jnp-client.jar
              WEB-INF/lib/jnpserver.jar
              WEB-INF/lib/jpl-pattern.jar
              WEB-INF/lib/jpl-util.jar
              WEB-INF/lib/jsr77.jar
              WEB-INF/lib/jsse.jar
              WEB-INF/lib/jts.jar
              WEB-INF/lib/log4j.jar
              WEB-INF/lib/mail-plugin.jar
              WEB-INF/lib/mail.jar
              WEB-INF/lib/org.apache.jasper.jar
              WEB-INF/lib/scheduler-plugin-example.jar
              WEB-INF/lib/scheduler-plugin.jar
              WEB-INF/lib/struts.jar
              WEB-INF/lib/tyrex.jar
              WEB-INF/lib/xalan.jar
              WEB-INF/struts-bean.tld
              WEB-INF/struts-config.xml
              WEB-INF/struts-form.tld
              WEB-INF/struts-html.tld
              WEB-INF/struts-logic.tld
              WEB-INF/struts-template.tld
              WEB-INF/struts.tld
              WEB-INF/web-app.xml
              WEB-INF/web.xml

              I then deployed that on JBoss3.0.0beta_Tomcat4.0.2 and it works !!

              So from this we can take away two things.

              1) The JBoss2.4.4_Tomcat4.0.1 loader doesn't seem to mind that there is no tandalone WEB-INF/ directory entry in the archive. JBoss3.0.0beta_Tomcat4.0.2 does mind.

              2) Beware - JBuilder doesn't necessarily produce the same archive format as does jar.

              Cheers

              Sean

              • 5.
                ghezzi Newbie

                i had the same problem but it was related
                to jboss-tomcat integration not supporting
                symbolic links!!!
                i switch back to jetty which i used before and was fine

                • 6. Re:
                  ghezzi Newbie

                  just a last trick
                  by default also jetty has a symbolic link checkin.
                  Disable it adding this line to the run.sh

                  JAVA_OPTS="$JAVA_OPTS -Dorg.mortbay.util.FileResource.checkAliases=false"

                  "ghezzi" wrote:
                  i had the same problem but it was related
                  to jboss-tomcat integration not supporting
                  symbolic links!!!
                  i switch back to jetty which i used before and was fine