File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Problem in running my first EJB program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Problem in running my first EJB program" Watch "Problem in running my first EJB program" New topic
Author

Problem in running my first EJB program

Poornima Sharma
Ranch Hand

Joined: Sep 09, 2008
Posts: 114
Hi friends,

Each time I am deploying my first ejb program I get the error as
java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'pack.DemoEJB_3vrhrh_HomeImpl' at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:174) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at weblogic.ejb20.deployer.BeanInfoImpl.loadClass(BeanInfoImpl.java:321) at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.getHomeClass
......

I could not understand what is the error please guide.


Poornima Sharma
SCJP 6.0
Casttro Francis
Greenhorn

Joined: Oct 08, 2008
Posts: 25
Check your .ear File. How you make the .ear file using Ant script ??. Also send the print stack trace.


Any fool can write code that a computer can understand. Good programmers write code that humans can understand....
Poornima Sharma
Ranch Hand

Joined: Sep 09, 2008
Posts: 114
Originally posted by Casttro Francis:
Check your .ear File. How you make the .ear file using Ant script ??. Also send the print stack trace.


I am not using Ant Script.
I am making the jar and then I am making a second jar using the command
java weblogic.ejbc oldjar newJar
Casttro Francis
Greenhorn

Joined: Oct 08, 2008
Posts: 25
Fine, Now check whether in weblogic the JDK is pointing towards the JrockkitJDK. If So change it to SUN JDK version, This will resolve your Issue..
Poornima Sharma
Ranch Hand

Joined: Sep 09, 2008
Posts: 114
Originally posted by Casttro Francis:
Fine, Now check whether in weblogic the JDK is pointing towards the JrockkitJDK. If So change it to SUN JDK version, This will resolve your Issue..


How to check it?
Poornima Sharma
Ranch Hand

Joined: Sep 09, 2008
Posts: 114
No jdk is not pointing towards jrockit
 
 
subject: Problem in running my first EJB program
 
Similar Threads
Jboss is not running.Exception in thread "main"
EJB deployment error
Error in deploying EJB-
UnsupportedClassVersionError
weblogic.jms. common.JMSException: Error deserializing object