8 Replies Latest reply on Mar 17, 2002 11:00 PM by Phoebus Woo

    JBOSS TOMCAT embedded installation that works on linux. and/

    Ron Jawanda Novice

      Here is what I did. (ps this works on Win 2000 as well)_
      Downloaded JBoss-2.4.4_Tomcat-4.0.1.zip
      Then downloaded the latest TOMCAT from jakarta
      jakarta-tomcat-4.0.3-LE-jdk14.zip

      My target install is /usr/local

      Download jdk 1.4.0 (you must use this one I think)
      Then download the jdkee (or whatever the EBJ stuff is, see it in my PATH below)


      Copied the JBoss-2.4.4_Tomcat-4.0.1.zip to /usr/local
      unzip JBoss-2.4.4_Tomcat-4.0.1.zip
      Copied the akarta-tomcat-4.0.3-LE-jdk14 to /usr/local
      unzip jakarta-tomcat-4.0.3-LE-jdk14

      Now you should have
      /usr/local/JBoss-2.4.4_Tomcat-4.0.1
      and
      /usr/local/jakarta-tomcat-4.0.3-LE-jdk14
      and
      /usr/local/jakarta-ant-1.4.1/
      and
      /usr/local/j2sdkee1.3.1
      and
      /usr/local/j2sdk1.4.0/

      NOTE*** copy the jakarta tomcat into the JBOSS directory
      cd /usr/local
      cp -r jakarta-tomcat-4.0.3-LE-jdk14 /usr/local/JBoss-2.4.4_Tomcat-4.0.1

      cd /usr/local/JBoss-2.4.4_Tomcat-4.0.1
      rm -f catalina (yes remove it)
      rename the jakarta tomcat to catalina
      mv jakarta-tomcat-4.0.3-LE-jdk14 catalina

      This copies the 4.0.3 tomcat into the one that use to have the 4.01 tomcat (it doesn't work)




      For Linux you have to make the shell script excecutable. Do that first (for a unsecure install chmod -R 755 on both these directories).

      Install ANT (the install instruction are ok for ANT. Do the examples and get them working).

      Here is my CLASSPATH and PATH
      CLASSPATH=/usr/local/jakarta-ant-1.4.1/lib/ant.jar:/usr/local/jakarta-ant-1.4.1/lib/crimson.jar:/usr/local/jakarta-ant-1.4.1/lib/jaxp.jar:/usr/local/jakarta-ant-1.4.1/lib/jakarta-ant-1.4.1-optional.jar:/usr/local/j2sdk1.4.0/lib/tools.jar:/usr/local/JBoss-2.4.4_Tomcat-4.0.1/catalina/common/lib/servlet.jar
      PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/root/bin:/usr/local/j2sdk1.4.0/bin:/usr/local/j2sdk1.4.0/bin:/usr/local/jakarta-ant-1.4.1/bin:/usr/local/jakarta-ant-1.4.1:/usr/local/zip

      You can now run jboss
      cd /usr/local/JBoss-2.4.4_Tomcat-4.0.1/jboss/bin
      ./run_with_catalina.sh

      You should now have JBoss startup without exceptions.

      To test the examples: download them onto the
      /usr/local/JBoss-2.4.4_Tomcat-4.0.1/ directory
      unzip
      cd into the examples/build
      ant should now work
      ant -v (to see more output)

      All examples should work except the interest.ear

      Build the ear file and then don't copy it to the deploy directory. You must extract it and do the following

      In the interest.war (after you unzip) go into the WEB-INF directory and modify the web.xml
      You must put this after the <?xml first line
      <!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
      "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

      Now you can go to your website

      http://localhost:8080/interest/
      It should show you the form Interest EBJ
      Press calculate. You should see Interst 1000.0 units ...

      You should also see your JBOSS screen scroll by with some words.

      That is it.

      This worked on Mandrake linux 8.1 and Windows 2000 professional.

      I spent hours trying to get this to work properly.

      Hope this helps someone.