5 Replies Latest reply on Apr 7, 2002 7:53 PM by nixnixnix

    mod_webapp

    herrmann

      Hi,

      i've tried to run the tomcat jsp/servlet examples using apache http server, tomcat, jboss.

      i'm using
      Win 2000
      Apache http server 1.3.23
      Tomcat 4.0.1
      JBoss 2.4.4
      mod_webapp webapp-module-1.0-tc40-windows

      I managed to install Apache, Tomcat and JBoss.
      The Tomcat-JBoss sample (tomcat-test.ear) works fine under http://localhost:8080/jboss.

      My Apache's httpd.conf looks like this:

      ...
      LoadModule webapp_module modules/mod_webapp.so
      ...
      AddModule mod_webapp.c
      ...

      <IfModule mod_webapp.c>
      WebAppConnection conn warp localhost:8008
      WebAppDeploy examples conn /examples
      WebAppInfo /webapp-info


      My JBoss jboss.jcml looks like this:

      ...
      <!-- Uncomment to add embedded catalina service -->






      When i start run_with_catalina.bat the log looks like this:

      ...
      [INFO,Default] Apache Tomcat/4.0.1
      [INFO,EmbeddedCatalinaServiceSX] HttpConnector Opening server socket on all host
      IP addresses
      [INFO,EmbeddedCatalinaServiceSX] HttpConnector[8080] Starting background thread
      [INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][0] Starting background thre
      ad
      [INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][1] Starting background thre
      ad
      [INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][2] Starting background thre
      ad
      [INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][3] Starting background thre
      ad
      [INFO,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] Starting background thre
      ad
      [INFO,EmbeddedCatalinaServiceSX] OK
      [INFO,EmbeddedCatalinaServiceSX] Started
      ...

      So, up to this point every thing looks fine. What do i have to do next?
      I tried to copy the CATALINA_HOME/webapps/example directory to JBOSS_HOME/deploy, but this is not enough. I think i have to build a ear or war file but i don't know how.

        • 1. Re: mod_webapp

          Try copying someone elses war...I personally like the struts documentation war, but the example from tomcat should work as well. Copy it to the deploy directory, and then go to localhost/warname (note no :8080)

          • 2. Re: mod_webapp
            herrmann

            Thanks for your comment. I tried it out, but it works only when i type http://localhost:8080/struts-documentation. http://localhost/struts-documentation doesn't work (Error: HTTP 404).

            I added in my httpd.conf the line
            WebAppDeploy struts-documentation conn /struts-documentation

            Is the starting order from apache and jboss/tomcat important? When i start jboss/tomcat first, i get lots of error messages in the jboss window when apache comes up.

            • 3. Re: mod_webapp

              I have to admint, I am using mod_jk, and not mod_webapp. But if you post the error messages, I might be able to figure o9ut what is happening. I'd like to move my setup to mod_webapp as well, but would like to understand it better first.


              Anyway, post the errors from the log

              • 4. Re: mod_webapp
                herrmann

                Hi,

                i think i've found the problem. You have to put the examples in a war or ear file as explained in the HOWTO: root.ear - tomcat 4.0.1.

                Thanks for your help.

                • 5. Re: mod_webapp
                  nixnixnix

                  Last time I checked the mod_webapp doc it said that Windows was not a supported platform, nor was there any plans for such support.