Installing Embedded JBoss into Standalone Tomcat 6.0
- Copy all files and directories under embedded-jboss/bootstrap into tomcat’s lib/ directory, except the jndi.properties file
- Copy all .jar files under embedded-jboss/lib into tomcat’s lib/ directory
- 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.Log4JLogg