1 Reply Latest reply on Mar 7, 2003 2:05 PM by Srinivas

    Apache + Tomcat + Jboss

    Srinivas Newbie

      Hi,

      As My Subject Implies, I am trying link up my Apache Webserver to My JBOSS+Tomcat Setup

      I have 'mod_webapp' installed on my webserver. I have used it successfully with Tomcat in the past. So I dont see a reason for not using it here.

      I have in my apache httpd.conf following lines:

      WebAppConnection conn warp jboss_server:8008
      WebAppDeploy myapp.war conn /myapp

      I want some url like : http://apache_server/myapp to connect and deploy myapp.war in JBOSS's deploy directory.

      I configured my JBOSS Server as follows:

      Added following lines in tomcat41-service.xml file:








      Now when I try to access my webserver from jboss machine: Everything seems to be working fine.

      http://jboss_server:8080/myapp

      But when I try to connect to it using apache machine it does not work.

      It allows me to browse all the files within the web app deployed like a directory deployment, but when i run JSP, it gives me errors. Error message is Below:


      javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.jasper.servlet.JspServlet or a class it depends on

      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:880)

      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)

      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3341)

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3534)

      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)

      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)

      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

      at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257)

      at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)

      at org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(Unknown Source)

      at org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(Unknown Source)

      at org.apache.catalina.connector.warp.WarpConnection.run(Unknown Source)

      at java.lang.Thread.run(Thread.java:536)

      2003-02-08 16:41:27,114 ERROR [org.jboss.web.localhost.Engine] ----- Root Cause -----

      java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet

      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1428)

      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274)

      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:874)

      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)

      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3341)

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3534)

      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)

      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)

      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

      at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257)

      at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)

      at org.apache.catalina.connector.warp.WarpConfigurationHandler.deploy(Unknown Source)

      at org.apache.catalina.connector.warp.WarpConfigurationHandler.handle(Unknown Source)

      at org.apache.catalina.connector.warp.WarpConnection.run(Unknown Source)

      at java.lang.Thread.run(Thread.java:536)




      --
      I have gone through the official document that I bought, but it only defines how to do it with 'mod_jk'. I have not tried it, and But I would assume that this should also work.


      Thanks in Advance

      Srini