2 Replies Latest reply on Oct 27, 2002 7:50 AM by Wessel de Roode

    JBoss 3.0.3_Tomcat 4.1.12

    Rupinder Newbie

      i have downloaded the binary version of JBoss3.0.3 bundled with Tomcat4.1.12.
      i started JBoss by running run.bat, and http://localhost:8080/jmx-console works fine.
      However i am not able to run the sample JSPs/Servlets given with Tomcat since http://localhost:8080 gives the following error:
      No context configured to process this request.
      Do i need to change any configuration files?

      Do i need to start Tomcat separately after starting JBoss or is it started automatically with JBoss startup?

      Also i am looking for good documentation with examples for using JSP, Servlets, EJBs with JBoss 3.0.3_Tomcat4.1.12.
      Any pointers to such free/paid documentation?

        • 1. Re: JBoss 3.0.3_Tomcat 4.1.12
          Wessel de Roode Newbie

          Hi,
          I presume you start JBOSS default server.
          Placing jsp files in the deployment directory won't work.
          Instead create a directory with the extension .war
          Or create a war file with the jar tool.
          Here's a quick&dirty example:
          Start Jboss, en check if it's running.
          (this is on linux, but it's similat on windows)

          cd $JBOSS_HOME/server/default/deploy/
          mkdir test.war
          cd test.war
          vi index.jsp
          //or use any editor and put the following line in there:
          <% out.print("Hello World!");%>

          Now point your browser to http://<your jboss host name&gt;:8080/test/
          And voila Hello World! is on your screen.

          Now the .war package file trick:
          Use the same jsp file from the previous example and change it in:
          &lt;% out.print("Hello World two!");%&gt;
          Create the package by the following command:
          jar cvf test2.war index.jsp
          Copy this package:
          cp test2.war $JBOSS_HOME/server/default/deploy/
          Now point your browser to http://<your jboss host name&gt;:8080/test2/
          And Hello World two! is on your screen.
          See how the directory or the package name determents the addition to the url. For pages in the root you need to check the manuals. (hint) This is set in the web-inf.xml and jboss.xml files.

          Happy coding!
          Wessel de Roode