Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3105

not able to deploy log4j-core-2.14.1 in weblogic12c

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Resolved
    • 2.11.1, 2.12.1, 2.14.0, 2.13.3, 2.14.1
    • 2.14.1
    • Core
    • None
    • WebLogic Server Version: 12.1.3.0.0

    Description

      I m trying to upgrade my log4j to log4j2 , itried with log4j 2.8.1 with changes in web.xml, weblogic.xml and log4j2.xml files, it was getting deployed successfully. As this version is having vulnerability i tried with other versions 2.13.1, 2.13.2, 2.13.3, 2.14.0, 2.14.1 with log4j-api and log4j-core jar and log4j-slf4j-impl all with same version, slf4j-api-1.7.30 all giving following error :
      An error occurred during activation of changes, please see the log for details.
      null null
      java.lang.IllegalArgumentException:
       
      in weblogic server logs :
       
      <Error> <Console> <BEA-240003> <Administration Console encountered the following error: weblogic.application.ModuleException: null
      null
      at weblogic.servlet.internal.WebAppModule.createModuleException(WebAppModule.java:1824)
      at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:270)
      at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:682)
      at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162)
      at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:98)
      at weblogic.application.internal.flow.ModuleListenerInvoker.init(ModuleListenerInvoker.java:84)
      at weblogic.application.internal.flow.InitModulesFlow.initModule(InitModulesFlow.java:288)
      at weblogic.application.internal.flow.InitModulesFlow.initModules(InitModulesFlow.java:301)
      at weblogic.application.internal.flow.InitModulesFlow.prepare(InitModulesFlow.java:329)
      at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:706)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
      at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:237)
      at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:48)
      at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:208)
      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:233)
      at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:749)
      at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1238)
      at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:252)
      at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:172)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:548)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
      Caused by: java.lang.IllegalArgumentException:
      at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
      at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
      at weblogic.application.utils.annotation.ClassInfoImpl.<init>(ClassInfoImpl.java:41)
      at weblogic.application.utils.annotation.ClassfinderClassInfos.polulateOneClassInfo(ClassfinderClassInfos.java:240)
      at weblogic.application.utils.annotation.ClassfinderClassInfos.populateClassInfos(ClassfinderClassInfos.java:193)
      at weblogic.application.utils.annotation.ClassfinderClassInfos.<init>(ClassfinderClassInfos.java:44)
      at weblogic.servlet.internal.War.initializeClassInfosIfNecessary(War.java:446)
      at weblogic.servlet.internal.War.getAnnotatedClasses(War.java:376)
      at weblogic.servlet.utils.WarUtils.isJsfApplication(WarUtils.java:258)
      at weblogic.servlet.internal.WebAppModule.detectJsfApplication(WebAppModule.java:277)
      at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:262)
       

      Attachments

        1. weblogic.xml
          0.9 kB
          Siddharth jain
        2. web.xml
          1 kB
          Siddharth jain
        3. log4j2config.xml
          0.8 kB
          Siddharth jain

        Issue Links

          Activity

            People

              Unassigned Unassigned
              imSiddharth Siddharth jain
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: