JBoss admin-console fails to load - missing Log4J jar?

Posted by Jack on Stack Overflow See other posts from Stack Overflow or by Jack
Published on 2012-06-05T04:03:11Z Indexed on 2012/06/06 4:40 UTC
Read the original article Hit count: 165

Filed under:
|

I downloaded JBoss 5.1 and unzipped to

~/jboss/

such that JBoss is installed into:

~/jboss/jboss-5.1.0.GA/

I run the default deployment by using the 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 is not deployed. The log file:

jboss/jboss-5.1.0.GA/server/default/log

shows the following information:

DEPLOYMENTS IN ERROR:
  Deployment "vfsfile:/Users/jackwootton/jboss/jboss-5.1.0.GA/server/default/deploy/admin-console.war/" is in error due to the 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/" is in error due to the following reason(s): org.apache.commons.logging.LogConfigurationException: User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable.

The Log4J jar file exists in:

jboss/jboss-5.1.0.GA/lib/jboss-logging-log4j.jar

I have three questions:

  1. Have I understood the problem correctly (i.e. that admin-console cannot find the required Log4j JAR file and therefore is not deployed)?

  2. What can I do to fix this problem?

  3. Why would an out-of-the-box deployment have this problem in the first place?

© Stack Overflow or respective owner

Related posts about jboss

Related posts about log4j