8 Replies Latest reply on Oct 29, 2002 11:43 AM by dsilcox69

    How to configure Tomcat Standalone with JBoss

    locutuz

      Hi,
      I am using Jboss2.4.8 with embedded catalina.
      Now I want to separate the servlet-container. So I downloaded Tomcat-4.0.4 and installed it on d:\

      But how can I tell Jboss and Tomcat(Standalone) that they should work together and jboss has to use the standalone-tomcat-installation instead of it´s embedded catalina?

      Can anybody tell me how I should proceed step-by-step?

      Thanks a lot!

      Regards,

      Sebastian

        • 1. Re: How to configure Tomcat Standalone with JBoss
          jhubbard83

          I'll second that post. I've been searching for a way to do this since I wanted to use the latest Tomcat. I've thought about using the bundled version Tomcat 4.0.3/JBoss 3.0 but there is a security problem with all 4.0.x versions before 4.0.5. The other reason was that it didn't have the latest version of JBoss.

          If I've overlooked it somewhere on the free documentation or in the forums, please provide a link. I don't mind RTFM, but I can't find it anywhere. I've got to get it setup for a class and this part of my project.

          Thanks for any help
          James Hubbard

          • 2. Re: How to configure Tomcat Standalone with JBoss
            jhubbard83

            I discovered that the latest and greatest has been placed on the download section. Still, the only place that even discusses integrating jboss and tomcat is this link:
            http://www.purposesolutions.com/Resources/EclipseJ2EE.html

            As an added bonus, it's got info on using eclipse to develop apps.

            James Hubbard

            • 3. Re: How to configure Tomcat Standalone with JBoss
              jhubbard83

              I discovered that the latest and greatest has been placed on the download section. Still, the only place that even discusses integrating jboss and tomcat is this link:
              http://www.purposesolutions.com/Resources/EclipseJ2EE.html

              As an added bonus, it's got info on using eclipse to develop apps.

              James Hubbard

              • 4. Re: How to configure Tomcat Standalone with JBoss
                jhubbard83

                I discovered that the latest and greatest has been placed on the download section. Still, the only place that even discusses integrating jboss and tomcat is this link:
                http://www.purposesolutions.com/Resources/EclipseJ2EE.html

                As an added bonus, it's got info on using eclipse to develop apps.

                James Hubbard

                • 5. Re: How to configure Tomcat Standalone with JBoss

                  what is confusing with the separate tomcat/jboss setup?

                  • 6. Re: How to configure Tomcat Standalone with JBoss
                    jhubbard83

                    I'm new at this. I've done nothing with jsps, servlets, and ejb. In my comm class were going to be working with ejbs. My task is to try to get a few tools setup.

                    I've heard of tomcat (hey it's the apache foundation). I've heard of jboss. They're both open source and free. I come to jboss website. There is an old version of both Tomcat and jboss that works together. There's a new version of jboss integrated with jetty (which I don't know much about). I want to try to get the latest version of Tomcat working with jboss.

                    I look around and try to find some documentation about getting them to work together from stand alone situations. There is hardly any docs on doing a setup.

                    Maybe it's not hard. It doesn't seem hard from the little bits that I've picked up from here and there. But, I couldn't find anything on how to do it on the jboss website. I know that the people developing do make a living off of docs so I will end up buying the docs. It was just frustrating not to be able to find out how to do a basic setup with separate packages.

                    (I did notice, after posting, that the latest and greatest of both were bundled together.)

                    Cheers
                    James Hubbard

                    P.S. Is there a problem with the forums? I didn't see my second message posted and ended up posting about 4 or 5 more times. I feel stupid now, especially when I saw previously that others were having the same problems.

                    • 7. Re: How to configure Tomcat Standalone with JBoss
                      ob2002

                      Hi,
                      you have to change the following entry
                      call "%EXECUTABLE%" start %CMD_LINE_ARGS%
                      to
                      call "%EXECUTABLE%" run -nonaming %CMD_LINE_ARGS%
                      in the catalina startup.bat file.
                      And you must but the jndi.properties file in the tomcat classpath.
                      The jndi.properties has following parameters
                      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
                      java.naming.provider.url=jnp://localhost:1099
                      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

                      thats all
                      oliver


                      • 8. Re: How to configure Tomcat Standalone with JBoss
                        dsilcox69

                        You should be designing your app so that all access to the Data Layer (all jboss services) should happen via the web layer (Tomcat). There is no integration.

                        You will no longer be deploying an ear file containing .war's into Jboss. Jboss will receive ejb's and your second instance of Tomcat will receive the war's.

                        Beware. Accessing JBoss resources from a seperate VM is very different than accessing within the container. Many jndi services normally open will be closed. Datasources and other container only services are not usually accessible.

                        Your web app will need access to these resources independently.