8 Replies Latest reply on Jan 27, 2004 10:17 AM by thejavafreak

    Tomcat and jboss under the same jvm

    balteo

      Hello,
      I run the 3.0.0 version of Jboss (jboss-3.0.0_tomcat-4.0.3) together with Tomcat and I would like to start them under the same JVM. How do I do that please?
      Thanks in advance,
      Balteo

        • 1. Re: Tomcat and jboss under the same jvm

          The default config runs tomcat embedded within jboss.
          Look at tomcat4-service.xml in server/default/deploy
          for the config

          Regards,
          Adrian

          • 2. Tomcat and jboss under the same jvm
            balteo

            Hello Warjort,
            When I start Jboss with the following command "run -c all", the web server is not available on port 8080. (only on port 8082) I have to start Catalina separately in its own JVM.
            How do I configure JBoss to start with tomcat?
            Balteo

            • 3. Re: Tomcat and jboss under the same jvm

              What error message do you see?
              Look in server/all/log/server.log for the tomcat
              deployment.

              Regards,
              Adrian

              • 4. Tomcat and jboss under the same jvm
                balteo

                Hello Adrian,
                There does not appear to be any error from a quick look at the log file.

                • 5. Tomcat and jboss under the same jvm
                  balteo

                  Hello Adrian,
                  There does not appear to be any error from a quick look at the log file.
                  I have included the log file.
                  Regards,
                  Balteo

                  • 6. Re: Tomcat and jboss under the same jvm

                    Correct, there's also no mention of Tomcat or Catalina.

                    Do you have a tomcat4-service.xml or tomcat4.sar
                    in server/all/deploy?

                    Regards,
                    Adrian

                    • 7. Tomcat and jboss under the same jvm
                      balteo

                      Thanks Adrian!
                      I copied both the tomcat4-service.xml and the tomcat4.sar into the server/all/deploy directory and it works fine now.
                      See you soon on the forum,
                      Balteo

                      • 8. Re: Tomcat and jboss under the same jvm
                        thejavafreak

                        Hi guys,

                        I did not know that you have to set up the server in order to get both jBoss and tomcat run under the same jvm. I got this message when trying to run jBoss from the console.

                        Microsoft Windows XP [Version 5.1.2600]
                        (C) Copyright 1985-2001 Microsoft Corp.

                        C:\Documents and Settings\Joshua Simamora>cd %JBOSS_HOME%

                        C:\Documents and Settings\Joshua Simamora>e:

                        E:\jboss>cd bin

                        E:\jboss\bin>run
                        ======================================================================
                        =========
                        .
                        JBoss Bootstrap Environment
                        .
                        JBOSS_HOME: E:\jboss\bin\\..
                        .
                        JAVA: E:\java\bin\java
                        .
                        JAVA_OPTS: -Dprogram.name=run.bat
                        .
                        CLASSPATH: ;E:\java\lib\tools.jar;E:\jboss\bin\\run.jar
                        .
                        ======================================================================
                        =========
                        .
                        java.lang.NoClassDefFoundError:
                        org/jboss/system/server/NoAnnotationURLClassLoad
                        er
                        at org.jboss.Main.boot(Main.java:118)
                        at org.jboss.Main$1.run(Main.java:395)
                        at java.lang.Thread.run(Thread.java:536)
                        Press any key to continue . . .

                        What must I configure in order to get my JBoss up and running.