• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Problem in running my first EJB program

 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No jdk is not pointing towards jrockit
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic