JBoss admin-console fails to load - missing Log4J jar?
- by Jack
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:
Have I understood the problem correctly (i.e. that admin-console cannot find the required Log4j JAR file and therefore is not deployed)?
What can I do to fix this problem?
Why would an out-of-the-box deployment have this problem in the first place?