1 Reply Latest reply: Sep 23, 2013 6:30 PM by HDeiby RSS

    java.lang.ClassNotFoundException - classloader issue ?

    901647

      Hi All

       

      We tried to deploy our ADF ear file to 10.3.6 weblogic.

      Our app uses 3rd party jars put in WEB-INF/lib in war which in turn is in our app ear file.

      Our web.xml is configured

       

         <listener>

          <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>

        </listener>

       

      When we deploy our ear app, we get this error:

      Is this a classloader issue ? If it is, at what level of classloader this is failing ?

      What file should we configure ?

      Where should we put our third-party jars as we do not have control over the install weblogic servers owned by another team.

       

      Any help is appreciated.

      Sincerely

       

      ####<Sep 18, 2013 10:54:50 AM PDT> <Error> <Console> <host> <AdminServer> <[ACTIVE] ExecuteThread: '16' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <085fcd85a0c1669b:64c5b0f5:141284171fa:-8000-00000000000001eb> <1379526890738> <BEA-240003> <Console encountered the following error weblogic.management.DeploymentException: [Deployer:149233]An unexpected error was encountered during the deployment process.

        at weblogic.deploy.internal.targetserver.DeployHelper.handleException(DeployHelper.java:385)

        at weblogic.deploy.internal.targetserver.DeployHelper.convertThrowableForTransfer(DeployHelper.java:511)

        at weblogic.deploy.internal.targetserver.DeploymentManager.notifyCommitFailure(DeploymentManager.java:1442)

        at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:457)

        at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)

        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)

        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)

        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)

        at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)

        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

        at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

      Caused by: java.lang.ClassNotFoundException: ch.qos.cal10n.MessageConveyorException

        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)

        at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)

        at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

        at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)

        at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:52)

        at ch.qos.cal10n.MessageConveyor.lookup(MessageConveyor.java:115)

        at ch.qos.cal10n.MessageConveyor.getMessage(MessageConveyor.java:77)

        at org.jboss.weld.logging.WeldMessageConveyor.getMessage(WeldMessageConveyor.java:66)

        at org.jboss.weld.exceptions.WeldExceptionKeyMessage.getAsString(WeldExceptionKeyMessage.java:67)

        at org.jboss.weld.exceptions.WeldException.getMessage(WeldException.java:87)

        at org.jboss.weld.exceptions.WeldException.getLocalizedMessage(WeldException.java:82)

        at java.lang.Throwable.toString(Throwable.java:343)

        at com.bea.logging.ThrowableWrapper.<init>(ThrowableWrapper.java:26)

        at com.bea.logging.ThrowableWrapper.<init>(ThrowableWrapper.java:29)

        at com.bea.logging.BaseLogRecord.setThrown(BaseLogRecord.java:172)

        at com.bea.logging.BaseLogRecord.<init>(BaseLogRecord.java:100)

        at weblogic.logging.WLLogRecord.<init>(WLLogRecord.java:63)

        at weblogic.logging.JDKLoggerFactory.createBaseLogRecord(JDKLoggerFactory.java:85)

        at com.bea.logging.LoggingService.log(LoggingService.java:234)

        at weblogic.i18n.logging.Loggable.log(Loggable.java:158)

        at weblogic.deploy.internal.targetserver.operations.AbstractOperation.complete(AbstractOperation.java:429)

        at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:326)

        at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)

        at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)

        at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)