I have seen people having similar issues but cannot find a suggested solution. I have a simple EAR that contains an ejb module. When I either attempt to deploy the EAR or the ejb module directly I get an error along the lines of :
Unable to deploy EJB: C:\build\Prototype\Prototype-ejb.jar from Prototype-ejb.jar: weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: Class bytes found but defineClass()failed for: 'com.oct.ejb.prototype.PrototypeEJB'
The Protoype-ejb.jar file contains a single stateless session bean with corresponding home/remotes etc along with all the necessary stubs that have been generated from an ANT build file using <ejbjar> (using the weblogic nested element).
Everything appears to be present and correct in the jar i.e the PrototypeEJB class is there and under the correct package structure.
Hi i just registered myself with this forum 2mins back.I have the same problem and that is why i joined this forum to search an answer for the same question.I dont say that i have the solution but i would say that i have some comment on this problem which i saw from other websites
Solution:The DTD used by ejb-jar.xml should be changed.Want to know what i am talking abt see below
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">