weblogic 12.2.1部署问题:CDI部署失败

时间:2019-01-08 11:37:14

标签: java nullpointerexception weblogic12c

尝试在WL 12.2.1服务器中部署耳文件时遇到以下异常。在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

1 个答案:

答案 0 :(得分:0)

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

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

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