Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in running my first EJB program

 
Poornima Sharma
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Casttro Francis
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check your .ear File. How you make the .ear file using Ant script ??. Also send the print stack trace.
 
Poornima Sharma
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No jdk is not pointing towards jrockit
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic