weblogic jdk

Class bytes found but defineClass()failed for error when deploying EAR

折月煮酒 提交于 2020-04-06 20:16:16
weblogic 上面部署应用的时候报错 <Caused by: java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'org.apache.activemq.ActiveMQConnectionFactory'> 根据博客的说明 http://stackoverflow.com/questions/23771470/class-bytes-found-but-defineclassfailed-for-error-when-deploying-ear 原因是: activemq5.13.4 要求运行的Java版本是 jdk 1.7以上,但是weblogic server 运行的jdk版本小于1.7 Compiling code with JDK 1.7 Running code with Weblogic server with JDK 1.6 Solution 1 : Compile code with JDK 1.6 Solution 2 : Run weblogic server with JDK 1.7 Update (Middleware)\user_projects\domains(DomainName)\bin\setDomainEnv.cmd