【问题标题】:weblogic 12.2.1 deployment issue : CDI deployment failureweblogic 12.2.1 部署问题:CDI 部署失败
【发布时间】:2019-01-08 11:37:13
【问题描述】:

尝试在 WL 12.2.1 服务器中部署 ear 文件时出现以下异常。在 Weblogic 12.1.2 中部署耳朵没有问题。这是错误日志。试图解决这个问题几天没有任何成功。知道为什么此异常来自 WebLogic 包吗?

<Error> <Deployer> <BEA-149265> <Failure 
occurred in the execution of deployment request with ID "74520344836697" for  task "0" on [partition-name: DOMAIN]. Error is: > "weblogic.management.DeploymentException: CDI deployment failure:groovy/lang/GroovyObject"
weblogic.management.DeploymentException: CDI deployment failure:groovy/lang/GroovyObject
    at com.oracle.injection.integration.CDIAppDeploymentExtension.initCdi(CDIAppDeploymentExtension.java:95)
    at com.oracle.injection.integration.CDIAppDeploymentExtension.activate(CDIAppDeploymentExtension.java:43)
    at weblogic.application.internal.flow.AppDeploymentExtensionFlow.activate(AppDeploymentExtensionFlow.java:39)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:752)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
    Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: groovy.lang.GroovyObject
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1029)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990)
    at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543)
    at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:496)
    Truncated. see log file for complete stacktrace

【问题讨论】:

    标签: java nullpointerexception weblogic12c


    【解决方案1】:

    可能较旧的 WLS 在其类路径中有 groovy-all-2.x.y.jar

    该库可以在任何 maven 存储库中找到: https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-all/2.4.16

    您必须将该库放在 WLS 类路径中或放入您的耳朵中。

    【讨论】:

      猜你喜欢
      • 2018-12-04
      • 2012-07-12
      • 1970-01-01
      • 1970-01-01
      • 2023-03-21
      • 1970-01-01
      • 1970-01-01
      • 2014-06-12
      • 1970-01-01
      相关资源
      最近更新 更多