path « Jar « JPA Q&A

1. what is the right path to refer a jar file in jpa persistence.xml in a web app?

persistence.xml looks like this:

<persistence-unit name="testPU" transaction-type="RESOURCE_LOCAL">
It is a web project, so ...

2. Class path in Executable jar

Hibernate version: 3.1 General Question: This I think is not a Hibernate specific question but hopefully someone can answer it anyway. The manifest specifies the Main-Class and the Class-Path. The hibernate3.jar is first in my list of jar files in the manifest. If I build my jar and execute it within the Eclipse Workspace project structure it works fine. However, when ...

3. Jar Attribute in mapping file can work with relative path

Hibernate version: 3.1.3 Full stack trace of any exception that occurs: org.hibernate.MappingException: Could not read mapping documents from jar: enotary-common.jar at org.hibernate.cfg.Configuration.addJar( at org.hibernate.cfg.Configuration.parseMappingElement( at org.hibernate.cfg.Configuration.parseSessionFactory( at org.hibernate.cfg.Configuration.doConfigure( at org.hibernate.cfg.Configuration.doConfigure( at org.hibernate.cfg.Configuration.configure( at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet( at at at at at at at at at at at at at at ...