QuicksearchRecent Entries
Calendar
Blog Administration |
Friday, August 1. 2008Comments
Display comments as
(Linear | Threaded)
Should the classname not read uk.co.pookey.hibernate.HibernateUtil or am I mistaken?
You have an error in your ant script around line 35. You need to change the following from
classname="events.EventManager" to classname="uk.co.pookey.hibernate.HibernateUtil" Thanks anyway, like what you have done so far Cheers
Hello,
Can anyone let me know what should be the commands to compile and run this to get the above mentioned output? am using $>ant compile thats giving BUILD SUCCESSFUL but what to get rest of the output? Please help. Thanks!
Use $> ant run
The "run" target will automatically call the "compile" target
Thanks for this easy-to-follow (considering the alternatives) tutorial. Had a few problems with my java install but nothing a troubleshoot didn't fix.
Thanks
Buildfile: build.xml
clean: [delete] Deleting directory C:\a_projects\samples\java\samples\joe\hibernate\bin [mkdir] Created dir: C:\a_projects\samples\java\samples\joe\hibernate\bin copy-resources: [copy] Copying 2 files to C:\a_projects\samples\java\samples\joe\hibernate\bin compile: [javac] Compiling 3 source files to C:\a_projects\samples\java\samples\joe\hibernate\bin run: [java] Exception in thread "main" java.lang.StackOverflowError [java] at java.lang.String.intern(Native Method) [java] at java.lang.Class.searchMethods(Class.java:2618) [java] at java.lang.Class.getMethod0(Class.java:2642) [java] at java.lang.Class.getMethod(Class.java:1579) [java] at org.apache.commons.logging.LogFactory.getContextClassLoader(LogFactory.java:438) [java] at org.apache.commons.logging.LogFactory$1.run(LogFactory.java:222) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:218) ... close to 1,000 lines of this exact same message ... [java] at org.slf4j.impl.JCLLoggerFactory.getLogger(JCLLoggerFactory.java:69) [java] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:161) [java] at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155) [java] Java Result: 1 |
|||||||||||||||||||||||||||||||||||||||||||||||||
This post is a follow on from my previous post Hibernate with MySQL - a beginners guide - part 1. Having followed part 1, you should have a simple java application that prints 'ok', an ant build script, and downloaded hibernate and the MySQL connecto
Tracked: Aug 01, 18:17
In part 1 and part 2 I showed how to get up and running with hibernate. This part continues from where we left off. I have packaged up all the files form part 2, including all required jars, and the build script. The file is 4.5meg, and is down
Tracked: Aug 01, 22:14