9 Replies Latest reply on Jun 26, 2002 6:08 PM by pcolot

    web.xml not found

    lobo

      Hi,
      I'm using JBoss-3.0.0_Tomcat-4.0.2.tgz beta under Win2000 and JDK1.4.0.
      I've just written a bean.jar (with ejbs) and a test.war with some jsps using the struts-framework.
      My problem:
      If I deploy the test.war with the same tomcat in standalone-mode everything works.
      But if I deploy with JBoss I got the following:

      2002-04-05 13:55:58,665 INFO [org.jboss.deployment.MainDeployer] Deploying: file:/C:/jboss-3.0.0beta/deploy/test.war
      2002-04-05 13:55:58,815 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] deploy, ctxPath=/test, warUrl=file:/C:/jboss-3.0.0beta/tmp/deploy/91.test.war
      2002-04-05 13:56:00,207 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] WebappLoader[/test]: Deploying class repositories to work directory C:\jboss-3.0.0beta\jakarta-tomcat-4.0.2\work\localhost\test
      2002-04-05 13:56:00,248 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] StandardManager[/test]: Seeding random number generator class java.security.SecureRandom
      2002-04-05 13:56:00,969 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] StandardManager[/test]: Seeding of random number generator has been completed
      2002-04-05 13:56:01,369 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] ContextConfig[/test]: Missing application web.xml, using defaults only
      2002-04-05 13:56:01,399 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] ContextConfig[/test]: Added certificates -> request attribute Valve
      2002-04-05 13:56:01,399 WARN [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] No /WEB-INF/web.xml descriptor found
      2002-04-05 13:56:01,409 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] StandardWrapper[/test:default]: Loading container servlet default
      2002-04-05 13:56:01,970 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] default: init
      2002-04-05 13:56:01,980 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] StandardWrapper[/test:invoker]: Loading container servlet invoker
      2002-04-05 13:56:02,010 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] invoker: init
      2002-04-05 13:56:02,050 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] jsp: init
      2002-04-05 13:56:02,300 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Internal Error: File /WEB-INF/web.xml not found

      Any Idea?



        • 1. Re: web.xml not found
          dshand

          did you get an answer to this ?

          I have the same problem. I have packaged up the examples into a .war and deployed an dthese work OK. But my own application has the same problem as you.

          • 2. Re: web.xml not found
            lobo

            < did you get an answer to this ?

            No.
            < I have the same problem. I have packaged up the examples into a .war and deployed an dthese work OK.
            < But my own application has the same problem as you.

            Which Example do you mean?

            What do you think where the difference is?

            • 3. Re: web.xml not found
              thl-mot
              • 4. Re: web.xml not found
                lobo

                &gt; see:
                &gt; http://main.jboss.org/thread.jsp?forum=50&thread=12467

                But my test.war-file has just one entry 'WEB-INF' in capital letters. So it seems there's a different problem.

                Is there a How-To to embed Jetty with Jboss3beta or alpha.(alpha seems more stable to me)
                I would like to try Jetty but there is no bundle for download available.

                • 5. Re: web.xml not found
                  lobo
                  • 6. Re: web.xml not found
                    dshand

                    I meant the tomcat examples. If I package them into a .war and deply them inti the JBOSS deploy directory they work fine.

                    If I do the same with my webapp (currently funcyioning on another tomcat installation) and then deploy it I get the problem outlined.

                    • 7. Re: web.xml not found
                      muaddib

                      Do you get the answer? I have the same problem.

                      • 8. Re: web.xml not found
                        boru

                        I have had trouble with WAR files created from the tools in JBuilder that manifests a problem like this. It too works with the Tomcat Deployer but not the JBoss deployer.

                        It seems the JBuilder tools create a vary basic JAR/WAR that has entries for just the files in question not the directories and subdirectories. So if you list the JB JAR/WAR with the JAR tool from the JDK it seems quite short compared to the one it creates.

                        Try building the WAR/JAR with the JAR tool from the JDK or with Ant, which also makes the correct formatted ZIP/JAR/WAR.

                        • 9. Re: web.xml not found
                          pcolot

                          Hi,

                          I also had the problem till I use Ant with war and ear tags to generate my deployers. Winzip and WinRar generated file seems not to be completlty reckognized.

                          The Jboss Ant buildmajic make framework is so complete and easy to use, I adopt it for my personal developpment.

                          Best

                          PCO