Re: [Squirrel-sql-users] Problems with hibernate/hibernate spatial
A Java SQL client for any JDBC compliant database
Brought to you by:
colbell,
gerdwagner
From: Jo_ <new...@pu...> - 2008-10-15 09:29:43
|
Gerd Wagner-3 wrote: > > new...@pu... wrote: >> Hi, >> >> I installed squirrel to access on my postgres/postgis database. >> The access via SQL statements is no problem. But if I try to connect >> via hibernate I get "java.lang.RuntimeException: >> java.lang.reflect.InvocationTargetException" . > After you see the exception in SQuirreL's meesage panel please look at the > status bar at the bottom of the Window. In the logs section there are two > little > buttons. The left one will provide a full message and stack trace of the > exception. > > Note, have a detailed look at the "caused by"s of your stack trace. Mostly > the > real interesting parts are at the bottom of the trace. > > Gerd > > > That's my stack trace: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at net.sourceforge.squirrel_sql.plugins.hibernate.ReflectionCaller.callMethod(ReflectionCaller.java:88) at net.sourceforge.squirrel_sql.plugins.hibernate.HibnerateConnector.doConnect(HibnerateConnector.java:61) at net.sourceforge.squirrel_sql.plugins.hibernate.HibnerateConnector.access$000(HibnerateConnector.java:12) at net.sourceforge.squirrel_sql.plugins.hibernate.HibnerateConnector$1.run(HibnerateConnector.java:27) at java.lang.Thread.run(Unknown Source) at net.sourceforge.squirrel_sql.plugins.hibernate.HibnerateConnector$2.run(HibnerateConnector.java:40) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at net.sourceforge.squirrel_sql.client.Application$1.dispatchEvent(Application.java:180) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.sourceforge.squirrel_sql.plugins.hibernate.ReflectionCaller.callMethod(ReflectionCaller.java:84) ... 14 more Caused by: java.lang.NoClassDefFoundError: javax/persistence/JoinTable at org.hibernate.cfg.AnnotationConfiguration.addPackage(AnnotationConfiguration.java:177) at database.model.HibernateSessionFactory.addClassStructure(HibernateSessionFactory.java:167) at database.model.HibernateSessionFactory.getSessionFactoryImpl(HibernateSessionFactory.java:53) ... 19 more Caused by: java.lang.ClassNotFoundException: javax.persistence.JoinTable at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) ... 22 more In the squirrel-sql.log file: 1588031 [AWT-EventQueue-1] ERROR net.sourceforge.squirrel_sql.plugins.hibernate.HibernateTabController - java.lang.RuntimeException: java.lang.reflect.InvocationTargetException But I've no idea how to solve the error. Jo -- View this message in context: http://www.nabble.com/Problems-with-hibernate-hibernate-spatial-tp19976421p19989174.html Sent from the squirrel-sql-users mailing list archive at Nabble.com. |