5 Replies Latest reply on Sep 6, 2004 10:05 PM by mkoerdt

    Configuring Tomcat in JBOSS

    cari34

      Hi guys,
      I plan to migrate a lot of Web applications hosted
      by a standalone Tomcat Server in JBOSS 3.2.2.
      The problem is that my applications need a
      configuration of the Server.xml file in Tomcat distribution.
      This file apparently does not exist in the Tomcat embedded
      Server in JBOSS.
      In the Server.xml file I have to configure some Realms and
      JDBC connections.

      Do you have any idea how this could be done in
      the Tomcat embedded server in JBOSS 3.2.2.

      Links to documention are welcome.

      Thank you.

      Cari

        • 1. Re: Configuring Tomcat in JBOSS
          starksm64

          Use of Realms and JDBC connections from the server.xml are not supported in the embedded tomcat. You need to use the application server security and database connection setup.

          • 2. Re: Configuring Tomcat in JBOSS
            thainguyen

            hi cari34,

            Have you figure out the way ? I would appreciate if you can give me some hints. Thanks!

            hi Scott,
            Any further information on how to set it up?
            I used Postgres DB and found the file postgres-ds.xml and copy it to $JBOSS/server/default/deploy/ and that is all.
            Perhaps, a sample on how to create and use the Realm will help. Thanks!

            • 3. Re: Configuring Tomcat in JBOSS
              genman


              You can add an explicit content description to server.xml in the tomcat.sar directory.

              http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html

              I'm not sure on the details, especially under JBoss, but that's what I used to use a long time out.

              • 4. Re: Configuring Tomcat in JBOSS
                genman

                Sorry, wrong thread...

                • 5. Re: Configuring Tomcat in JBOSS
                  mkoerdt

                  I came across with this thread as I seem to have the same problem. I have created a custom authenticator that depends on a custom realm to be defined in the server.xml. Of course the first thing I tried was to add the realm configuration in the server.xml provided in the embedded tomcat, but that does not seem to work (as Scott stated). I am assuming that if I used the standalone tomcat configuration my authenticator would work. Is that a correct assumption?

                  Thanks in advance,
                  Monika