0 Replies Latest reply on Sep 16, 2003 6:30 AM by feldgen

    Jboss 3.0.2 and Jetty - two servlets at different ports

    feldgen Newbie

      i am trying to configure jboss / jetty / servlets to have the possibility to have one servlet accessed through port X and the other servlet through port Y
      I tried having one jetty instance listening to both ports but did not find out howto map the servlets to these ports.
      Then I tried running two instances of jetty successfully but the adding of the specific listener in each servlets WEB-INF/web-jetty.xml just leads to having the first jetty listening to both ports...which is probably correct due to here configuring class="org.mortbay.jetty.Server" which is the class for both servers.

      Here are the imho critical configuration parts:
      ---------------------------------------------
      jboss/server/xxx/conf/jboss-service.xml:


      8080
      <!-- Should resources and non-EJB classes be downloadable -->
      true



      9090
      <!-- Should resources and non-EJB classes be downloadable -->
      true

      ---------------------------------------------
      each jetty-instances webdefault.xml:

      no changes to original in server/all/deploy/jbossweb.sar/webdefault.xml

      ---------------------------------------------
      jbossweb.sar/META-INF/jboss-service.xml



      webdefault.xml

      true

      true







      5
      100
      30000
      5000



      ...





      ---------------------------------------------


      ---------------------------------------------
      jbossweb-internal.sar/META-INF/jboss-service.xml



      webdefault.xml

      true

      true







      5
      100
      30000
      5000



      ...





      ---------------------------------------------

      webapp1/WEB-INF/web-jetty.xml








      ....

      in WEB-INF/web.xml:

      <servlet-name>servlet1</servlet-name>
      <url-pattern>/servlet1</url-pattern>

      in META-INF/jboss-web.xml:

      <jboss-web>
      <context-root>/servlet1</context-root>
      </jboss-web>

      ---------------------------------------------

      webapp2/WEB-INF/web-jetty.xml








      ....

      in WEB-INF/web.xml:

      <servlet-name>servlet2</servlet-name>
      <url-pattern>/servlet2</url-pattern>

      in META-INF/jboss-web.xml:

      <jboss-web>
      <context-root>/servlet2</context-root>
      </jboss-web>

      ---------------------------------------------

      I think there is loads of space for misconfiguration, plz help me!

      Thnx,

      Lutz Feldgen