Version 4

    Installing Embedded JBoss into Standalone Tomcat 6.0

     

    1. Copy all files and directories under embedded-jboss/bootstrap into tomcat's lib/ directory, except the jndi.properties file

    2. Copy all .jar files under embedded-jboss/lib into tomcat's lib/ directory

    3. Remove the lib/annotations-api.jar file.  Tomcat 6.0 erroneously puts PersistenceContextType as an inner class of the @PersistenceContext annotation.

     

    After installation, your tomcat distribution should look something like this:

    apache-tomcat-6.0.13/
                   lib/
                            conf/
                            deploy/
                            deployers/
                            log4j.xml
                            thirdparty-all.jar
                            hibernate-all.jar
                            jboss-embedded-all.jar
                            ... all the other jars
    

     

    NOTE: If you cannot get log out of libraries that depend on commons-logging (i.e, hibernate), it may be that  your system is using NoOpLog. Try creating a lib/commons-logging.properties and define the property: org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger.