5 Replies Latest reply on Feb 27, 2003 4:37 PM by casanova

    Problem when using tomcat bundled with jboss

    akon

      After i installed jboss with tomcat, i try to visit http://localhost:8080, i got an error. later i get to know that there is no default application deployed at the root context. but now i have problem to find where to set the context. someone said that i should edit the tomcat_service.xml, but i just dont know how, it takes no effect... i just wanna see the tomcat default page... who can give me some tips, THANKS A LOT:)

        • 1. Re: Problem when using tomcat bundled with jboss
          irakli

          If you just want to test the installation go to
          http://localhost:8080/jmx-console/

          Also, if you deploy some.war in server/default/deploy (i.e. just copy some.war there) you will see that at the address:
          http://localhost:8080/some/

          You can unzip/unjar your some.war and name the resulting folder some.war - has the same affect (that way you will leverage Hot-deployment - you can change files in that some.war folder and changes will take affect immidiately)

          For more advanced stuff, see docs.

          • 2. Re: Problem when using tomcat bundled with jboss
            bstil

            > Also, if you deploy some.war in server/default/deploy
            > (i.e. just copy some.war there) you will see that at
            > the address:
            > http://localhost:8080/some/

            could you be more specific? the jboss/tomcat zip bundle includes:

            D:\jboss-3.0.4_tomcat-4.1.12
            D:\jboss-3.0.4_tomcat-4.1.12\tomcat-4.1.x

            so you are talking about:
            D:\jboss-3.0.4_tomcat-4.1.12\server\default\deploy
            ??

            ---
            also, i don't seem to be able to access the /examples servlets that come with tomcat. what url is used to access these?

            thanks.

            • 3. Re: Problem when using tomcat bundled with jboss
              akon

              Thanks, i think i understand... i'll try. maybe later i will have some other problems, hope you can help me then:)

              • 4. Re: Problem when using tomcat bundled with jboss
                raja05

                Basically you will hve to bring in the webapps from Tomcat to jboss.

                Copy your examples webapp from the tomcat webapps directory, create a war and drop it into
                D:\jboss-3.0.4_tomcat-4.1.12\server\default\deploy

                or copy the examples webapp directory into
                D:\jboss-3.0.4_tomcat-4.1.12\server\default\deploy
                and change the directory name to examples.war
                (This is bcoz JBoss uses folder structures ending with war or .war files as web apps)..

                Now you can access ur urls as http://localhost:8080/examples

                -Raj

                • 5. Re: Problem when using tomcat bundled with jboss
                  casanova

                  Hi. I created .war files from the directories as instructed above, and I can now access the ROOT webapp, but it needs the URL "http://localhost:8080/ROOT/ROOT/index.jsp" in order to display.
                  The URL "http://localhost:8080" still shows a context not configured error, "http://localhost:8080/ROOT" shows a sort of directory listing page (screenshot attached), which if I select "ROOT", then goes to the first URL and opens the page.

                  If ANYONE can tell me how to get all the default Tomcat webapps running I would REALLY appreciate it. It would be nice if someone could tell me once and for all why they are not functional by default too.

                  Thank you in advance.