aspose 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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in running my first EJB program