Weblogic无法部署EJB项目

时间:2016-08-31 07:13:57

标签: java jpa java-ee ejb weblogic

这是错误

Error is: "weblogic.management.DeploymentException:<strong>java.lang.ClassNotFoundException: javax.persistence.AttributeConverter"
weblogic.management.DeploymentException: java.lang.ClassNotFoundException: javax.persistence.AttributeConverter</strong>
at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:123)
at    weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:260)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:61)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
Truncated. see log file for complete stacktrace
Caused By: 
 <strong>java.lang.ClassNotFoundException: javax.persistence.AttributeConverter
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:335)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:302)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:180)
Truncated. see log file for complete stacktrace </strong>
weblogic.management.DeploymentException: java.lang.ClassNotFoundException: javax.persistence.AttributeConverter
at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:123)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:260)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:61)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
Truncated. see log file for complete stacktrace
Caused By: <strong>java.lang.ClassNotFoundException: javax.persistence.AttributeConverter
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:335)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:302)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:180)
Truncated. see log file for complete stacktrace</strong>

1 个答案:

答案 0 :(得分:0)

您需要JPA API v2.1 jar,而您在JavaEE服务器的CLASSPATH中没有它(或者您拥有v2.0或v1.0)。 ClassNotFoundException不能变得更简单。