weblogic 12.1.3,deployement exception,不能从final类继承

时间:2017-12-23 07:39:59

标签: java deployment weblogic atg

我在10.2版上有一个ATG应用程序,我试图在weblogic 12.1.3上部署appplication并在服务器启动时面对这个异常 这是日志片段:

<Dec 22, 2017 3:51:04 PM IST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application "vsi_store".
 weblogic.management.DeploymentException: java.lang.VerifyError: Cannot inherit from final class at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:123) at weblog

    ic.application.internal.BaseDeployment.activate(BaseDeployment.java:260)
    at 
    weblogic.application.internal.EarDeployment.activate(EarDeployment.java:61)
    at 
    weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:16)
    at 
    weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
    Truncated. see log file for complete stacktrace
        Caused By: java.lang.VerifyError: Cannot inherit from final class
                at java.lang.ClassLoader.defineClass1(Native Method)
                at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
                at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
        2)
                at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericCla
        ssLoader.java:412)
                at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
        ClassLoader.java:366)

1 个答案:

答案 0 :(得分:1)

这个问题正在发生,因为12.1.3版weblogic中的inbuild guava类。他们正在与我的应用程序guava类进行交互 我使用版本12.1.2解决了它。 或者您可以通过更改weblogic-application.xml的条目在12.1.3中解决它,如下所示:

<wls:prefer-application-packages>
    <wls:package-name>com.fasterxml.jackson.*</wls:package-name>
    <wls:package-name>com.github.fge.*</wls:package-name>
    <wls:package-name>org.joda.*</wls:package-name>
    <wls:package-name>com.google.common.*</wls:package-name>

    <wls:package-name>com.sun.jersey.*</wls:package-name>
    <wls:package-name>org.glassfish.jersey.*</wls:package-name>
    <wls:package-name>org.glassfish.hk2.*</wls:package-name>
    <wls:package-name>org.jvnet.hk2.*</wls:package-name>
    <wls:package-name>jersey.repackaged.org.objectweb.asm.*</wls:package-name>

    <wls:package-name>com.sun.research.ws.wadl.*</wls:package-name>
    <wls:package-name>com.sun.ws.rs.ext.*</wls:package-name>

    <wls:package-name>org.codehaus.jackson.*</wls:package-name>
    <wls:package-name>com.fasterxml.jackson.*</wls:package-name>

    <wls:package-name>org.codehaus.jettison.*</wls:package-name>

    <wls:package-name>javax.ws.rs.*</wls:package-name>

    <wls:package-name>org.objectweb.asm.*</wls:package-name>

    <wls:package-name>antlr.*</wls:package-name>

    </wls:prefer-application-packages>


</wls:weblogic-application>