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

    JBOSS TOMCAT embedded installation that works on linux. and/

    rgjawanda

      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.











        • 1. Re: JBOSS TOMCAT embedded installation that works on linux.
          martha_elva

          Hi, I was following your instructions, because I had the same problem, I tried to install jboss with tomcat (4.0.1) and didn't work, I had configured tomcat 4.0.3 as standalone at first, but when I execute jboss with catalina (run_with_catalina.sh) something wrong happended and I couldn't execute it.
          I have some doubts about your instructions:
          Is it necessary to set some environment variable that makes reference to j2sdkee and jboss, Do they do it by themselves ?.

          I don't know where I can download the examples you mentioned to unzip., I can't run the examples, could you help me?

          I have already run (./run_with_catalina.sh) and everything goes good, I only have 3 warnings about username, password and driver of MinvervaDS.
          Do I need to modify some files of jboss or catalina directories.?
          Thanks and I'm waiting for your response.

          • 2. Re: JBOSS TOMCAT embedded installation that works on linux.
            martha_elva

            Hi, I am again, I'm sorry, I found the examples, I did what you say about interest.ear, interest.war, I don't understand very good the part
            "In the interest.war (after you unzip)<--(I DONT UNDERSTAND WHAT I HAVE TO DO, UNZIP SOMETHING?) 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:Apache Tomcat/4.0.3 - HTTP Status 500 - No Context configured to process this request
            //java.sun.com/j2ee/dtds/web-app_2_2.dtd">"

            When I point http://localhost:8080/interest, gives me this message in a page.

            "Apache Tomcat/4.0.3 - HTTP Status 500 - No Context configured to process this request

            type Status report

            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."
            Am I forgetting some variable, I'm really tired of this problem, it always appears.

            • 3. Re: JBOSS TOMCAT embedded installation that works on linux.
              rgjawanda

              You must unzip the ear file.
              Then unzip the war file.
              Modify the web.xml (put the line I said to put in after the first line).
              Then you must create the interest.war (using zip) and then you must zip the interest.ear.

              I did it this way.

              interest.ear
              unzip interest.ear (or use pkzip)
              unzip it into /tmp
              cd /tmp
              you will see a the interest.war file and the interest.jar file and a directory.
              Take the interest.war and unzip in /tmp1
              cd /tmp1
              locate the web.xml
              modify it.
              Then create a zip of the contents under /tmp1 and call it interest.war
              Replace the interest.war file in /tmp with this one.
              Then zip the contents of /tmp into interest.ear

              If you want I can send you my interest.ear file but not until tomorrow.
              I am at home now.

              You should have the context missing problem solved.
              Ron






              • 4. Re: JBOSS TOMCAT embedded installation that works on linux.
                phoebuswoo

                Hello, I am sorry, I encounter the same problem. Can you tell me where to download the example?

                • 5. Re: JBOSS TOMCAT embedded installation that works on linux.
                  rgjawanda

                  Here are the examples

                  • 6. Re: JBOSS TOMCAT embedded installation that works on linux.
                    rgjawanda

                    Attached is the EAR file that is FIXED that will run under embedded TOMCAT and JBOSS.

                    • 7. Re: JBOSS TOMCAT embedded installation that works on linux.
                      martha_elva

                      I'm really, really, gratefull with you, you solved my problem, thanks a lot.

                      I'll be proving and learning more about JBoss.
                      Thanks and see you soon.

                      :)

                      • 8. Re: JBOSS TOMCAT embedded installation that works on linux.
                        phoebuswoo

                        Yeah! I do it successfully. Thanks,You are warmhearted!
                        I am a fresher about EJB and Jboss and see you later.