3 Replies Latest reply on May 22, 2002 12:49 PM by sumeer khosa

    Integrating TomCat 4.0.1 with Jboss 2.4.4

    sumeer khosa Newbie

      Hi,
      I am trying to run the Jboss-Tomcat with run_with_catalina.bat. It starts fines, but when i try to access the http://localhost:8080 it thorws an error. The error message is:

      [INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING configuration error for request URI
      [ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke
      java.lang.NullPointerException
      at org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.java:280)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:180)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
      at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
      at java.lang.Thread.run(Unknown Source)

      Does anyone know whats wrong with what i am doing? I have set all teh required environment variables and they seem to be fine as Catalina does get started fine when i start JBoss. Any help is greatly appreciated.

      Thanks
      Sumeer.

        • 1. Re: Integrating TomCat 4.0.1 with Jboss 2.4.4
          james elliot Newbie

          Hi,

          If you are placing your web application archive (war, ear, jar) in the deploy folder of jboss, Jboss assigns a context path for your application

          When you start jboss you will see the lines:

          [INFO,J2eeDeployer] inflate and install WEB module mvc.war
          [INFO,ContainerFactory] Deploying:file:/D:/jboss/tmp/deploy/Default/mvc.war
          [INFO,ContainerFactory] Deployed application: file:/D:/jboss/tmp/deploy/Default/mvc.war
          [INFO,J2eeDeployer] Starting module mvc.war
          [INFO,EmbeddedCatalinaServiceSX] deploy, ctxPath=/mvc, warUrl=file:/D:/jboss/tmp/deploy/Default/mvc.
          war/web1003/

          To access the web application, add the ctxPath value (last line above) to the usual URL. For this example, the base url is:

          http://localhost:8080/mvc/

          hope this helps,

          jack

          • 2. Re: Integrating TomCat 4.0.1 with Jboss 2.4.4
            sumeer khosa Newbie

            Hi,

            I tried deploying the .war file, which in my case is called sampleTest.war. The message JBoss gives is:

            [INFO,AutoDeployer] Auto deploy of file:/D:/JBTomcat/jboss/deploy/sampleTest.war
            [INFO,J2eeDeployer] Deploy J2EE application: file:/D:/JBTomcat/jboss/deploy/sampleTest.war
            [INFO,J2eeDeployer] Create application sampleTest.war
            [INFO,J2eeDeployer] inflate and install WEB module sampleTest.war
            [INFO,ContainerFactory] Deploying:file:/D:/JBTomcat/jboss/tmp/deploy/Default/sampleTest.war
            [INFO,ContainerFactory] Deployed application: file:/D:/JBTomcat/jboss/tmp/deploy/Default/sampleTest.war
            [INFO,J2eeDeployer] Starting module sampleTest.war
            [INFO,EmbeddedCatalinaServiceSX] deploy, ctxPath=/sampleTest, warUrl=file:/D:/JBTomcat/jboss/tmp/deploy/Default/sampleTest.war/web1005/
            [INFO,EmbeddedCatalinaServiceSX] WebappLoader[/sampleTest]: Deploying class repositories to work directory D:\JBTomcat\catalina\work\localhost\sampleTest
            [INFO,EmbeddedCatalinaServiceSX] StandardManager[/sampleTest]: Seeding random number generator class java.security.SecureRandom
            [INFO,EmbeddedCatalinaServiceSX] StandardManager[/sampleTest]: Seeding of random number generator has been completed
            [INFO,EmbeddedCatalinaServiceSX] ContextConfig[/sampleTest]: Added certificates -> request attribute Valve
            [INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/sampleTest:default]: Loading container servlet default
            [INFO,EmbeddedCatalinaServiceSX] default: init
            [INFO,EmbeddedCatalinaServiceSX] StandardWrapper[/sampleTest:invoker]: Loading container servlet invoker
            [INFO,EmbeddedCatalinaServiceSX] invoker: init
            [INFO,EmbeddedCatalinaServiceSX] jsp: init
            [INFO,J2eeDeployer] J2EE application: file:/D:/JBTomcat/jboss/deploy/sampleTest.war is deployed.

            Finally i tried accessing the servlet as:
            http://localhost:8080/sampleTest
            but this take me to the directory listings of ApacheTomcat. Am still puzzled with the way it works. Any corrections i need to do?

            Thanks
            Sumeer.

            • 3. Re: Integrating TomCat 4.0.1 with Jboss 2.4.4
              sumeer khosa Newbie

              Thanks for all the help guys. I figured out the solution. It was due one stupid mistake on my side. INstead of accessing as "http://localhost:8080/sampleTest/servlet/sampletest" i was accessing it as "http://localhost:8080/sampleTest/servlets/sampleTest"..:-). It works great now.

              Thanks
              Sumeer.