8 Replies Latest reply on Jan 8, 2002 5:17 AM by aepshteyn

    Jboss + Catalina not working

    nganju

      When I run jboss 2.4.4/Tomcat4.01 using run_with_catalina.sh on my linux box, the web server doesn't start. In the startup messages, I get

      [08:02:39,407,EmbeddedCatalinaServiceSX] Initializing
      [08:02:39,408,EmbeddedCatalinaServiceSX] Initialized

      but nothing actually starts. When I do a "netstat -a", I see nothing is running on 8080, nor are the ajp connectors running on 8009 etc.

      Also, I've noticed that in this version of JBoss the startup messaging is a lot less verbose than jboss 2.3/tomcat3.2.3 , which used to say "Webserver started on 8080" or something, plus a bunch of other status messages. Any ideas why this isn't working, or at least how I can get a more verbose output so I can find the problem? Thanks...

      Nick

        • 1. Re: Jboss + Catalina not working
          nganju


          Incidentally, I'm using all the default config files that came with the install, the jboss.jcml and jboss.properties in the jboss/conf/catalina directory, and the server.xml and web.xml in /catalina/conf/

          • 2. Re: Jboss + Catalina not working

            I am also trying JBoss+Catalina and I get an HTTP Internal Server Error 500 trying to load Tomcat's initial page although I don't get log errors when starting JBoss w/Catalina.

            • 3. Re: Jboss + Catalina not working

              To get more information have a look in
              JBOSS_HOME/log/server.log
              by default this should display some DEBUG information.

              Regards,
              Adrian

              • 4. Re: Jboss + Catalina not working

                The test deployment is not in the root context,
                nothing is.
                Try the following url

                http://localhost:8080/jboss

                replace localhost with whatever's relevant if you
                are not on the same machine.

                Regards,
                Adrian

                • 5. Re: Jboss + Catalina not working
                  objectman

                  Dropping a war file into $CATALINA_HOME/webapps
                  does not get the web app deployed. Also,
                  when dropping a war file into $JBOSS_HOME/deploy
                  results in an exception being thrown by the
                  J2EEDeployer. Complaining that the web-app
                  tag can't be found. Note that this works
                  perfectly with JB/TC version 2.4/3.2.3

                  • 6. Re: Jboss + Catalina not working

                    $CATALINA_HOME/webapps is for running tomcat/catalina by itself.
                    Do you want to post the WEB-INF/web.xml from your war?

                    Regards,
                    Adrian

                    • 7. Re: Jboss + Catalina not working
                      aepshteyn

                      It is possible that web-app is not recognized because <!DOCTYPE is missing in web.xml. By the way, it looks like web.xml for interest servlet in documentation-example.zip has <!DOCTYPE ... > missing.

                      You need something like:

                      <!DOCTYPE web-app
                      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
                      "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">

                      • 8. Re: Jboss + Catalina not working
                        aepshteyn

                        > Dropping a war file into $CATALINA_HOME/webapps
                        > does not get the web app deployed.

                        To the best of my understanding, in order to deploy a web application it's xxx.war has to be placed in $JBOSS_DIST/deploy directory, not webapps. Tomcat root context and examples are not deployed after install, if you want to deploy them, you can do the following:

                        For root context:

                        cd $CATALINA_HOME/webapp/ROOT
                        jar cvf ROOT.war *
                        mv ROOT.war $JBOSS_DIST/deploy/.war

                        For Tomcat examples:

                        cd $CATALINA_HOME/webapp/examples
                        jar cvf examples.war *
                        mv examples.war $JBOSS_DIST/deploy/

                        > Also,
                        > when dropping a war file into $JBOSS_HOME/deploy
                        > results in an exception being thrown by the
                        > J2EEDeployer. Complaining that the web-app
                        > tag can't be found. Note that this works
                        > perfectly with JB/TC version 2.4/3.2.3

                        See my previous post about <!DOCTYPE (or it can be something else :-))

                        Cheers,
                        Alex