Hello,
I've been using SQuirrelL for some time, but I'm now attempting to use
Hibernate support for the first time.
I did fresh install of 3.4 on a Linux system with clean
~/.squirrel-sql directory to avoid complication and I installed all
the plugins.
Then I created new Hibernate configuration, added classpath to the
classes directory of my web application, and then also chose to "Run
Hibernate in SQUirreL's Java VM".
But when I press the "Connect/Disconnect selected configuration", I
get the following exception and connection fails:
java.lang.ClassNotFoundException: org.hibernate.cfg.Configuration
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at net.sourceforge.squirrel_sql.plugins.hibernate.server.IntraVmConnectionFactory.createHibernateConnection(IntraVmConnectionFacto\
ry.java:42)
at net.sourceforge.squirrel_sql.plugins.hibernate.server.ServerMainImpl.createHibernateServerConnection(ServerMainImpl.java:48)
............
On my installation, I do see lib/hibernate.jar which does contain
org.hibernate.cfg.Configuration class.
Looking at the startup part of the log, I do see this jar getting
included in the java.class.path, so I don't understand why it is not
being found.
I would appreciate your help.
Hiroto
p.s. I also have SQuirreL on MacOS and it behaves the same.
|