wood burning stoves 2.0
The moose likes Object Relational Mapping and the fly likes HiberClipse Plugin is not working! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "HiberClipse Plugin is not working!" Watch "HiberClipse Plugin is not working!" New topic

HiberClipse Plugin is not working!

Helen Ge
Ranch Hand

Joined: May 24, 2005
Posts: 68

I installed the hiberClipse plugin in my WSAD 5.1.1 (based on Eclipse x2.1) to see how it suports the auto code generation from .hbm file to POJO file.

When I right click the contact.hbm.xml file I created and choose HiberClipse--> CodeGenerator, the following exception is thrown:

java.lang.NoClassDefFoundError: com/ibm/crypto/provider/IBMJCA (wrong name: net/sf/hibernate/tool/hbm2java/CodeGenerator)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:703)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:133)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:320)
at java.net.URLClassLoader.access$400(URLClassLoader.java:93)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:678)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:239)
at java.lang.ClassLoader.loadClass(ClassLoader.java:516)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:460)
at java.lang.ClassLoader.loadClass(ClassLoader.java:448)
Exception in thread "main"

Has anyone can tell from above message what could be wrong? I did have the hibernate-tool.jar which contains the net/sf/hibernate/tool/hbm2java/CodeGenerator in my build path.



Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Maybe a you have a different version of Hibernate than the one that HiberClipse is using.

First, for the best Hibernate plugin use JBoss's. Built by the source, rather than some third party plugin.

I have never heard of HiberClipse, so maybe it is old and has the old Hibernate 2.x package naming, whereas in Hibernate 3 the package structure changed. So that would make Hibernate 3.x incompatible with HiberClipse.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link: http://aspose.com/file-tools
subject: HiberClipse Plugin is not working!
jQuery in Action, 3rd edition