JBoss admin-console fails to load - missing Log4J jar? -
i downloaded jboss 5.1 , unzipped
~/jboss/ such jboss installed into:
~/jboss/jboss-5.1.0.ga/ i run default deployment using following command found in jboss/jboss-5.1.0.ga/bin
./run.sh -c default while jboss starts (http://127.0.0.1:8080/), admin-console not deployed. log file:
jboss/jboss-5.1.0.ga/server/default/log shows following information:
deployments in error: deployment "vfsfile:/users/jackwootton/jboss/jboss-5.1.0.ga/server/default/deploy/admin-console.war/" in error due following reason(s): org.jboss.deployers.spi.deploymentexception: url file:/users/jackwootton/jboss/jboss-5.1.0.ga/server/default/tmp/az6n6v-tjilfb-h32fokxn-1-h32fosuo-v/admin-console.war/ deployment failed deployment "vfszip:/users/jackwootton/jboss/jboss-5.1.0.ga/server/default/deploy/quartz-ra.rar/" in error due following reason(s): org.apache.commons.logging.logconfigurationexception: user-specified log class 'org.apache.commons.logging.impl.log4jlogger' cannot found or not useable. the log4j jar file exists in:
jboss/jboss-5.1.0.ga/lib/jboss-logging-log4j.jar i have 3 questions:
have understood problem correctly (i.e. admin-console cannot find required log4j jar file , therefore not deployed)?
what can fix problem?
why out-of-the-box deployment have problem in first place?
the problem missing jars in classpath. added following jar files (found in lib directory of jboss installation) classpath:
concurrent.jar getopt.jar jaxb-impl.jar log4j-boot.jar trove.jar dom4j.jar javassist.jar jaxb-xjc.jar osgi.core.jar wstx.jar since i'm using mac os x followed this stackoverflow post on adding jars classpath.
one tip: added jboss jars classpath (jboss-xxx.jar), results in jboss looking in /library/java/extensions configuration files.
Comments
Post a Comment