2 Replies Latest reply on Apr 14, 2002 7:47 PM by Wellie Chao

    Building 3.0 w/ Tomcat

    Mike Finn Apprentice

      Am having problems figuring out how I can build JBoss 3 beta (any tag) from cvs with tomcat integrated. Default builds with jetty. It's gotta be more that just ripping out the jetty sar and drop in a tomcat sar, and dropping Tomcat 4.0.2/3 into $JBOSS/ . Where does the tomcat sar come from? I can't seem to find the target for it. I have jboss-all ckd out (3.0.0.4). Hints, tips, or breadcrumbs would be appreciated...

      Help.

      TIA,
      Mike

        • 1. Re: Building 3.0 w/ Tomcat
          Mike Finn Apprentice

          OK - I figured it out myself. This is how to do it (so far as I can tell)

          0. Check out jboss-all
          1. Build jboss (jboss-all/build/build.sh)
          2. Put the tomcat distro into jboss-all/catalina
          3. Modify the jboss-all/catalina/src/resources/jboss-service.xml file to correct the path to tomcat:
          e.g. <!ENTITY catalina.home "../jakarta-tomcat-4.0.3">
          will work for situations where tomcat is right in $JBOSS.
          4. Build the catalina target (jboss-all/catalina/build.sh)
          5. Drop the tomcat4-service.sar in jboss-all/build/output/jboss-3.0.0beta2/deploy.
          6. Remove the jetty-plugin.sar from jboss-all/build/output/jboss-3.0.0beta2/deploy.
          6. Copy tomcat distro dir into jboss-all/build/output/jboss-3.0.0beta2/.

          Start the server from jboss-all/build/output/jboss-3.0.0beta2/bin.

          • 2. Re: Building 3.0 w/ Tomcat
            Wellie Chao Newbie

            Are you able to get EAR files deployed? Almost everything goes right for me, but JBoss throws up an exception when it tries to deploy to Tomcat. I get the following error:

            2002-04-14 19:27:26,416 DEBUG [org.jboss.deployment.MainDeployer] start step for
            deployment njar:file:/mnt/hulk/space/wchao/packages/jboss-3.0.0beta2/server/def
            ault/tmp/deploy/mnt/hulk/space/wchao/packages/jboss-3.0.0beta2/server/default/de
            ploy/rmjobs.ear/92.rmjobs.ear^/rmjobs.war
            2002-04-14 19:27:26,424 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX]
            webContext: /rmjobs
            2002-04-14 19:27:26,425 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX]
            warURL: njar:file:/mnt/hulk/space/wchao/packages/jboss-3.0.0beta2/server/defaul
            t/tmp/deploy/mnt/hulk/space/wchao/packages/jboss-3.0.0beta2/server/default/deplo
            y/rmjobs.ear/92.rmjobs.ear^/rmjobs.war
            2002-04-14 19:27:26,425 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX]
            webAppParser: org.jboss.web.AbstractWebContainer$DescriptorParser@5b1773
            2002-04-14 19:27:27,123 INFO [org.jboss.web.catalina.EmbeddedCatalinaServiceSX]
            deploy, ctxPath=/rmjobs, warUrl=njar:file:/mnt/hulk/space/wchao/packages/jboss-
            3.0.0beta2/server/default/tmp/deploy/mnt/hulk/space/wchao/packages/jboss-3.0.0be
            ta2/server/default/deploy/rmjobs.ear/92.rmjobs.ear^/rmjobs.war
            2002-04-14 19:27:28,810 INFO [org.jboss.web.localhost.Engine] StandardContext[/
            rmjobs]: Error initializing resources: Doc base must point to a WAR file
            2002-04-14 19:27:30,652 INFO [org.jboss.web.localhost.Engine] StandardContext[/
            rmjobs]: Context startup failed due to previous errors

            Any clues? My random guess would be that Tomcat doesn't like the packed structure, or maybe the caret in the warUrl, but I'm really not sure.