2 Replies Latest reply on May 21, 2010 10:53 AM by joffer

    Minimal JBoss 5.1.0.GA with Tomcat?

    joffer

      Hi,

       

      I'm hoping to get some good pointers or help on how to get JBoss 5.1.0 run as minimal as possible with only the Tomcat, jdni and logging. I have cloned the "minimal" profile and tried adding jbossweb.sar (from the standard profile) to the deploy and, well, I'm not that good at reading java errors that displays. I want a clean mean minimal appserver with only the few components we need (tomcat, jdni, logging). I guess I need a few modules, and add some config etc?

       

      Anyone?

        • 1. Re: Minimal JBoss 5.1.0.GA with Tomcat?
          peterj

          Instead, start with the 'web' configuration - that is JSP/servlet support plus JCA. Then if you do not need database access, try removing JCA (all files with 'jca' or 'jdbc' in their names.)

          1 of 1 people found this helpful
          • 2. Re: Minimal JBoss 5.1.0.GA with Tomcat?
            joffer

            I teamed up with one of the developers at work and we started to strip the 'web' profile and got a decent minimal profile.

             

            This is what we've done:

             

            diff -r web-minimal\conf\jboss-service.xml web\conf\jboss-service.xml

            37a38,59

            >    <!-- JSR-77 Single JBoss Server Management Domain                         -->

            >    <!-- ==================================================================== -->

            >    <mbean code="org.jboss.management.j2ee.LocalJBossServerDomain"

            >       name="jboss.management.local:j2eeType=J2EEDomain,name=Manager">

            >       <attribute name="MainDeployer">jboss.system:service=MainDeployer</attribute>

            >       <attribute name="SARDeployer">jboss.system:service=ServiceDeployer</attribute>

            >       <attribute name="EARDeployer">jboss.j2ee:service=EARDeployer</attribute>

            >       <attribute name="EJBDeployer">jboss.ejb:service=EJBDeployer</attribute>

            >       <attribute name="RARDeployer">jboss.jca:service=RARDeployer</attribute>

            >       <attribute name="CMDeployer">jboss.jca:service=ConnectionFactoryDeployer</attribute>

            >       <attribute name="WARDeployer">jboss.web:service=WebServer</attribute>

            >       <attribute name="CARDeployer">jboss.j2ee:service=ClientDeployer</attribute>

            >       <attribute name="MailService">jboss:service=Mail</attribute>

            >       <attribute name="JMSService">jboss.mq:service=DestinationManager</attribute>

            >       <attribute name="JNDIService">jboss:service=Naming</attribute>

            >       <attribute name="JTAService">jboss:service=TransactionManager</attribute>

            >       <attribute name="UserTransactionService">jboss:service=DistributedTransactionManager</attribute>

            >       <attribute name="RMI_IIOPService">jboss:service=CorbaORB</attribute>

            >       <depends>jboss.system:service=MainDeployer</depends>

            >    </mbean>

            >

            >    <!-- ==================================================================== -->

             

            Only in web\deploy: ejb3-container-jboss-beans.xml

            Only in web\deploy: hsqldb-ds.xml

            Only in web\deploy: http-invoker.sar

            Only in web\deploy: jboss-xa-jdbc.rar

            Only in web\deploy: jmx-console.war

            Only in web\deploy: jmx-invoker-service.xml

            Only in web\deploy: ROOT.war

             

            The above "Only in web\deploy:..." was deleted from my web-minimal profile, and the config snip was removed.