ClassLoader has not been set exception in boot.log

Version 8
    Problem

    You see the following exception stacktrace in the boot.log of AS 5.x:

     

    18:12:25,781 DEBUG [ProfileServiceBootstrap] Failed to build ManagedDeployment for: AbstractKernelDeployment@169a1c5{name=file:/D:/jboss-5.1.0/server/all/conf/bootstrap/logging.xml installed=true beanFactories=[AbstractBeanMetaData@1fb9fb3{name=LogBridgeHandler bean=org.jboss.logbridge.LogBridgeHandler properties= constructor=null autowireCandidate=true}]}
    org.jboss.deployers.spi.DeploymentException: Error deploying: file:/D:/jboss-5.1.0/server/all/conf/bootstrap/logging.xml
    at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:136)
    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.initBootstrapMDs(ProfileServiceBootstrap.java:433)
    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:250)
    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
    at org.jboss.Main.boot(Main.java:221)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.IllegalStateException: ClassLoader has not been set
    at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit.getClassLoader(AbstractDeploymentUnit.java:154)
    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:60)
    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126)
    ... 6 more
    

     

    Solution

    It's a DEBUG level log and you can ignore it.

     

    Cause

    See this forum discussion http://www.jboss.org/index.html?module=bb&op=viewtopic&t=157579