Hi, directly from the distribution
The tutorial chapter 1 gives me constant error, im sure i' not the only one how gets this. Please upgrade your tutorial. I simply follow all the steps
compiling with java 1.5 and java 1.4.2 is the same
STEP: delete the line
<property name="hbm2ddl.auto">create</property>
THEN
ant run -Daction=list
[java] 12:58:03,718 INFO SessionFactoryObjectFactory:82 - Not binding factory to JNDI, no JNDI name configured
[java] java.lang.reflect.UndeclaredThrowableException
[java] at $Proxy0.createQuery(Unknown Source)
[java] at events.EventManager.listEvents(Unknown Source)
[java] at events.EventManager.main(Unknown Source)
[java] Caused by: java.lang.reflect.InvocationTargetException
http://www.hibernate.org/ForumMailingli ... AskForHelp
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
[b]Hibernate version: 3[/b]
[b]Mapping documents:[/b]
[b]Code between sessionFactory.openSession() and session.close():[/b]
[b]Full stack trace of any exception that occurs:[/b]
[java] java.lang.reflect.UndeclaredThrowableException
[java] at $Proxy0.createQuery(Unknown Source)
[java] at events.EventManager.listEvents(Unknown Source)
[java] at events.EventManager.main(Unknown Source)
[java] Caused by: java.lang.reflect.InvocationTargetException
[b]Name and version of the database you are using:[/b]
HSQLDB
[b]The generated SQL (show_sql=true):[/b]
[b]Debug level Hibernate log excerpt:[/b]
INFO
Problems with Session and transaction handling?
dontknow
Read this:
http://hibernate.org/42.html
HF