1 Reply Latest reply on Mar 21, 2002 6:08 PM by Michael Delamere

    Tomcat4.0.3, JBOSS2.4.4, Apache

    Michael Delamere Newbie

      Hi,

      I´ve read all documentation available (almost), I´ve read all the relevant threads in this forum but I´m just not getting anywhere!!

      I´ve also installed the patch from sourceforge that was recommended and it seems that I´m getting nearer to my goal...

      When I had tomcat runinng by itself with apache http server I managed to set up virtual hosts and call my servlets from them. No problem. Now after having added jboss to the combination I can no longer call my servlets using the same url (../servlet/HelloWorldExample).

      I have included the necessary tags in the jboss.jcml and seems that it is working (I get a tomcat error message) but I get a mesage telling me:

      message: No Context configured to process this request

      description: The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request.

      My question is, what am I missing. Previously my setup was to have a WEB-INF folder in my virtual-host folder and in that folder I had the web.xml, a lib and a classes folder.
      - virtual-host (/www/servtest/java)
            - /WEB-INF
                  - /classes
                  - /lib
                  - web.xml

      Does this setup not apply anymore after having setup jboss to run with tomcat. Does everything have to go into a deploy folder(even for tomcat)?

      I´ve been on this for a couple of days now and really stuck! Please, please someone help me out on this!

      ==========================================================
      My jboss.jcml virtual hosts configuration (with new patch)
      ==========================================================


      2
      none
      /host=
      true
      <!-- attribute name="ConnectorType">http</attribute-->
      <!-- attribute name="allowChunking">true</attribute -->







      localhost






      org.jboss.web.catalina.TestInstanceListener
      org.jboss.web.catalina.TestLifecycleListener
      org.jboss.web.catalina.TestContainerListener


      servtest





      <!-- an Ajp13 connector -->





      =========================================================

      I would be more than grateful for any help given!
      Thank in advance.

      Michael Delamere

        • 1. Re: Tomcat4.0.3, JBOSS2.4.4, Apache
          Michael Delamere Newbie

          Hi, (again)

          this is the error message that I get when trying to call a servlet via my virtual host (servtest.intern.delamere.de):

          [00:54:32,956,Default] JBoss-2.4.4 Started in 0m:25s.884
          [00:55:58,042,CatalinaEngine] Ajp13Processor[8009][4] An incoming request is being assigned
          [00:55:58,045,CatalinaEngine] Ajp13Processor[8009][4] The incoming request has been awaited
          [00:55:58,098,Default] [Ajp13] setSocket()
          [00:55:58,099,Default] [Ajp13] receiveNextRequest()
          [00:55:58,100,Default] [Ajp13] receive()
          [00:55:58,101,Default] [Ajp13] receive: total read = 238
          [00:55:58,102,Default] [Ajp13] Received 2 JK_AJP13_FORWARD_REQUEST
          [00:55:58,113,CatalinaEngine] Ajp13Processor[8009][4] invoking...
          [00:55:58,116,de] StandardHost[servtest.intern.delamere.de]: MAPPING configuration error for request URI
          [00:55:58,121,Default] [Ajp13] send()
          [00:55:58,159,CatalinaEngine] Ajp13Processor[8009][4] done invoking, finishing request/response....
          [00:55:58,160,Default] [Ajp13] send()
          [00:55:58,161,Default] [Ajp13] send()
          [00:55:58,162,CatalinaEngine] Ajp13Processor[8009][4] finished handling request.
          [00:55:58,163,Default] [Ajp13] recycle()
          [00:55:58,164,Default] [Ajp13] receiveNextRequest()
          [00:55:58,165,Default] [Ajp13] receive()
          [00:56:18,476,CatalinaEngine] Ajp13Processor[8009][3] An incoming request is being assigned
          [00:56:18,477,CatalinaEngine] Ajp13Processor[8009][3] The incoming request has been awaited
          [00:56:18,477,Default] [Ajp13] setSocket()
          [00:56:18,478,Default] [Ajp13] receiveNextRequest()
          [00:56:18,479,Default] [Ajp13] receive()
          [00:56:18,479,Default] [Ajp13] receive: total read = 364
          [00:56:18,480,Default] [Ajp13] Received 2 JK_AJP13_FORWARD_REQUEST
          [00:56:18,481,CatalinaEngine] Ajp13Processor[8009][3] invoking...
          [00:56:18,481,de] StandardHost[servtest.intern.delamere.de]: MAPPING configuration error for request URI
          [00:56:18,483,Default] [Ajp13] send()


          With the combination of jboss and tomcat does the directory structure change or do I still use the following structure which worked when I didn´t have jboss installed (just for calling servlets):

          - virtual-host (/www/servtest/java)
                - /WEB-INF
                      - /classes
                      - /lib
                      - web.xml

          I wish someone could help. Is there really no way to get it working??? I´ve been reading all-sorts in the last couple of days... reading....reading...reading... but I´m not getting anywhere!

          thanks in advance

          bye

          Michael Delamere

          p.s. Incase the extra information helps:

          ======================================
          APACHE VIRTUAL HOSTS
          ======================================
          <VirtualHost 192.168.10.1>
            ServerAdmin home@michael-delamere.de
            DocumentRoot /www/servtest/java
            ServerName servtest.intern.delamere.de
            JkMount /*.jsp ajp13
            JkMount /servlet/* ajp13
            ErrorLog /usr/local/apache/logs/servtest.intern.delamere.de-error_log
            CustomLog /usr/local/apache/logs/servtest.intern.delamere-access_log common


          ======================================
          mod_jk.conf-auto
          ======================================

          LoadModule jk_module libexec/mod_jk.so

          <IfModule mod_jk.c>
            JkWorkersFile /usr/local/java/catalina/conf/workers.properties
            JkLogFile /usr/local/java/jboss/log/jk.log
            JkLogLevel info
            JkMount /*.jsp ajp13
            JkMount /servlet/* ajp13


          Alias /servtest "/www/servtest/java"
          <Directory "/www/servtest/java">
            Options Indexes FollowSymLinks