Hi all,
I'm new to hibernate and have been working through the tutorial and have encountered a problem which i fear is something really basic.
I am currently at the loading & storing objects section. When i use ant (ant run -Daction=store) on my app it seems to build ok but there are warnings. Also i do not get any indication that the Event was INSERTed t(i.e. no.... [java] Hibernate: insert into EVENTS (EVENT_DATE, title, EVENT_ID) values (?, ?, ?))
The output from the run is.....
Buildfile: build.xml
clean:
[delete] Deleting directory /opt/hibernate-3.0/bin
[mkdir] Created dir: /opt/hibernate-3.0/bin
copy-resources:
[copy] Copying 5 files to /opt/hibernate-3.0/bin
compile:
[javac] Compiling 3 source files to /opt/hibernate-3.0/bin
run:
[java] Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: EventManager
[java] at java.lang.VMClassLoader.transformException(java.lang.Class, java.lang.Throwable) (/usr/lib/libgcj.so.6.0.0)
[java] at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.6.0.0)
[java] at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)
[java] at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
[java] at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
[java] Caused by: java.lang.ClassNotFoundException: org.hibernate.SessionFactory not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/opt/hibernate-3.0/bin/,file:./,file:/opt/hibernate-3.0/lib/ant-1.6.3.jar,file:/opt/hibernate-3.0/lib/ant-antlr-1.6.3.jar,file:./,file:/opt/hibernate-3.0/lib/ant-junit-1.6.3.jar,file:/opt/hibernate-3.0/lib/ant-launcher-1.6.3.jar,file:./,file:/opt/hibernate-3.0/lib/ant-swing-1.6.3.jar,file:/opt/hibernate-3.0/lib/antlr-2.7.5H3.jar,file:./,file:/opt/hibernate-3.0/lib/asm-attrs.jar,file:/opt/hibernate-3.0/lib/asm.jar,file:./,file:/opt/hibernate-3.0/lib/c3p0-0.8.5.2.jar,file:/opt/hibernate-3.0/lib/cglib-2.1.jar,file:./,file:/opt/hibernate-3.0/lib/cleanimports.jar,file:/opt/hibernate-3.0/lib/commons-collections-2.1.1.jar,file:./,file:/opt/hibernate-3.0/lib/commons-logging-1.0.4.jar,file:/opt/hibernate-3.0/lib/concurrent-1.3.2.jar,file:./,file:/opt/hibernate-3.0/lib/connector.jar,file:/opt/hibernate-3.0/lib/dom4j-1.6.jar,file:./,file:/opt/hibernate-3.0/lib/ehcache-1.1.jar,file:/opt/hibernate-3.0/lib/hsqldb.jar,file:./,file:/opt/hibernate-3.0/lib/jaas.jar,file:/opt/hibernate-3.0/lib/jacc-1_0-fr.jar,file:./,file:/opt/hibernate-3.0/lib/jaxen-1.1-beta-4.jar,file:/opt/hibernate-3.0/lib/jboss-cache.jar,file:./,file:/opt/hibernate-3.0/lib/jboss-common.jar,file:/opt/hibernate-3.0/lib/jboss-jmx.jar,file:./,file:/opt/hibernate-3.0/lib/jboss-system.jar,file:/opt/hibernate-3.0/lib/jdbc2_0-stdext.jar,file:./,file:/opt/hibernate-3.0/lib/jgroups-2.2.7.jar,file:/opt/hibernate-3.0/lib/jta.jar,file:./,file:/opt/hibernate-3.0/lib/junit-3.8.1.jar,file:/opt/hibernate-3.0/lib/log4j-1.2.9.jar,file:./,file:/opt/hibernate-3.0/lib/oscache-2.1.jar,file:/opt/hibernate-3.0/lib/proxool-0.8.3.jar,file:./,file:/opt/hibernate-3.0/lib/swarmcache-1.0rc2.jar,file:/opt/hibernate-3.0/lib/versioncheck.jar,file:./,file:/opt/hibernate-3.0/lib/xerces-2.6.2.jar,file:/opt/hibernate-3.0/lib/xml-apis.jar,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
[java] at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
[java] at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.6.0.0)
[java] at java.lang.ClassLoader.loadClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
[java] at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)
[java] ...4 more
BUILD SUCCESSFUL
Total time: 11 seconds
Any help would be appreciated.
Thank you.
|