3 Replies Latest reply on Oct 23, 2003 10:52 AM by bohra

    Jboss Tomcat - Context for webapp

    Dhanesh Shah Newbie

      (Similar question has been un-answered on two other forums so trying it here)

      If I have a webapp c:/mywebapp how would I configure Tomcat 4.1 (JBoss 3.2.1) to specify that when http://localhost:8080/mywebapp is accessed go find content in c:/mywebapp

      Every search I made refers to tomcat's server.xml and element. Of course, server.xml does not exist for tomcat-jboss installation!!

      Please help.

      Thanks.

        • 1. Re: Jboss Tomcat - Context for webapp
          gregpearman Newbie

          What you are suppose to do is setup the context (just like you would in a stand-alone version of Tomcat) in the jboss-service.xml file located under the jbossweb-tomcat.sar/META-INF/ directory. You will find this directory under the deploy directory.

          I have tried this though without any luck. :-(

          • 2. Re: Jboss Tomcat - Context for webapp
            Dhanesh Shah Newbie

            I too have tried with no success!
            Hopefully someone can help answer this since one of my app. is not accessible right now.

            • 3. Re: Jboss Tomcat - Context for webapp
              bohra Newbie

              Hi
              I ran into this problem, and this is how I solved it :

              I created the war exactly like in Tomcat.
              I then created an ear that looks like :
              $ jar -tf rubis.ear
              META-INF/
              META-INF/MANIFEST.MF
              rubis_ejb_servlets.jar
              rubis.jar
              ejb_rubis_web.war
              META-INF/jboss.xml
              META-INF/ejb-jar.xml
              META-INF/web.xml
              META-INF/application.xml

              The application.xml is the only other file which has the following :

              <?xml version="1.0" encoding="UTF-8"?>
              <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1
              .3//EN" "http://java.sun.com/dtd/application_1_3.dtd">



              <display-name>ejb_rubis_web</display-name>

              RUBiS Session Bean implementation



              rubis.jar







              <web-uri>ejb_rubis_web.war</web-uri>

              <context-root>ejb_rubis_web</context-root>








              And I can see the ejb_rubis_web in the right context ---

              To change it, just change the context-root.


              Aniruddha