4 Replies Latest reply on May 30, 2002 1:29 PM by sgturner

    Question on running JBoss with Tomcat

    ffabbroc

      When I run JBoss with Tomcat, how come Tomcat isn't listening on port 8080?

      Using "run_with_catalina.bat", everything seems to come ok in that there are no errors or exceptions. However, if I go to "http://localhost:8080/" there is no server listening. The page "http://localhost:8080/jboss/index.html" works however...

      However, if I statup tomcat using "statup.bat" in the tomcat bin directory and then start up JBoss using "run.bat", then the server is listening on "http://localhost:8080/". The page "http://localhost:8080/jboss/index.html" no longer works now.

      Can someone explain this to me? It seems like the Tomcat instance that runs with JBoss doesn't use the same config...

      Thanks,
      Frank

        • 1. Re: Question on running JBoss with Tomcat
          sgturner

          If something comes up, then that proves that it is listening at <hostname:port>. It what comes after, that matters and that has to do with the context. Context is the part after the port # and before the ? in the URL string. Refer to the docs for the servlet in question to see what config file you should put the mapping of the context.

          • 2. Re: Question on running JBoss with Tomcat
            ffabbroc

            But aren't all the "contexts" defined in Tomcat's server.xml? I checked, and there is only one server.xml and it has all the contexts defined there, including root. My problem is, why am I seeing different behavior if I start Tomcat with JBoss and without---doesn't either invocation result in the same configuration?

            • 3. Re: Question on running JBoss with Tomcat
              arijit

              I too have a similar doubt....

              If I have downloaded JBOSS and TOMCAT separately, how can I integrate the 2 i.e. start TOMCAT as part of JBOSS ?

              • 4. Re: Question on running JBoss with Tomcat
                sgturner

                If you are running the JBoss/Tomcat combo forget about the server.xml file. In this situation Tomcat is running under Jboss, that is, Tomcat is just another MBean within JBoss. In this situation, you need to install a *.ear file in /JBoss/deploy. Get yourself some docs on J2EE application jar files. Somewhere in these forums I uploaded an example ear file that configured Tomcat for returning an html file when "root" is browsed.