Search code examples
javajakarta-eeejbweblogic

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


I am trying to deploy and old code base with EJB 1.1 stuff to Weblogic 10.3.6 and keep getting this strange error Class bytes found but defineClass()failed for.

The classes are there and being found what is causing this?


Solution

  • This is here, because this was a hard thing to find on the internet.

    I figured it out, the project was getting compiled with JDK 1.7 and the Weblogic server has 1.6 installed.

    I recompiled the project with JDK 1.6 and it is working now!