-
1. Re: JBPM Configuration
ralfoeldi Jan 30, 2006 4:35 PM (in response to dharraj)Hi Raj,
org.hibernate.util.ConfigHelper.getResourceAsStream
would indicate that Hibernate is looking on the class path and I don't assume you have a file '/home/myhome/hibernate.cfg.xml' on your class path.
Greetings -
2. Re: JBPM Configuration
dharraj Jan 30, 2006 8:12 PM (in response to dharraj)Thanks for the reply. So, do you know if it is possible to configure hibernate with a configuration file that is not bundled into a jar file? I glanced over the hibernate documentation but didn't see any thing that tells otherwise. Would you recommend using the hibernate Configuration object instead of a configuration file?
Thanks
Raj -
3. Re: JBPM Configuration
aguizar Jan 31, 2006 1:37 AM (in response to dharraj)The classpath can have directories as well as jars. You could add a directory, say /home/myhome, to your classpath (before your libraries, so that the directory takes precedence over any bundled file). Afterwards, specify the path to the configuration file in relation to that directory: /hibernate.cfg.xml. Note that the initial slash in this path means "classpath root" rather than "filesystem root".
-
4. Re: JBPM Configuration
dharraj Feb 22, 2006 3:01 PM (in response to dharraj)Hello Alex,
Sorry I got side traced on to another problem. I can get it to work as you mentioned when I run it from command line. I have ./ in my class path and have hibernate.cfg.xml in the working directory. This works. However, I cannot get it to work if say I put the hibernate.cfg.xml in my.jar and place my.jar in /home/raj and have /home/raj/my.jar as first thing in my classpath. Actually I am trying to get it to work in Eclipse.
Thanks
Raj