configure « cfg « JPA Q&A





2. Could not configure datastore from file: hibernate.cfg.xml    forum.hibernate.org

Hi, I'm having trouble getting Hibernate to work on a new machine. I have made a copy of everything from a working system, but I get an XML parsing error when I try to run on a new system. In both cases, my classpath is setup from Ant, so that should not be different. It appears I must be picking up ...

3. cfg.addFile() + cfg.configure() not working    forum.hibernate.org

Ok, I did some more research on this. By using Class' classLoader, it looks like there may be some limitation on the file's location (not sure I understand why, but there's a lot of text in the docs for Class.getResourceAsStream()). So I tried configure() off a URL (that points to the same file). Code: final ...