Bonjour
Mon JBoss montre cette erreure
javax.persistence.PersistenceException [PersistenceUnit: monPUname] class or package not found....
mon persistence.xml est
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| <?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="monPUname"
transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/TicInfoManagementDS</jta-data-source>
<class>com.tic.info.management.ejb.entity.Employee</class>
<class>com.tic.info.management.ejb.entity.EquipmentProp</class>
<class>com.tic.info.management.ejb.entity.EquipmentPropDef</class>
<class>com.tic.info.management.ejb.entity.EquipmentProvider</class>
<class>com.tic.info.management.ejb.entity.InfoEquipment</class>
<class>com.tic.info.management.ejb.entity.Locality</class>
<class>com.tic.info.management.ejb.entity.NetorkOutlet</class>
<class>com.tic.info.management.ejb.entity.Task</class>
<class>com.tic.info.management.ejb.entity.UserAuth</class>
<class>com.tic.info.management.ejb.entity.Warrant</class>
<class>com.tic.info.management.ejb.entity.WarrantProp</class>
<class>com.tic.info.management.ejb.entity.WarrantPropDef</class>
<class>com.tic.info.management.ejb.entity.EquipmentType</class>
<properties>
<property name="hibernate.connection.driver_class" value="com.postgresql.Driver" />
<property name="hibernate.connection.password" value="myPassword" />
<property name="hibernate.connection.url"
value="jdbc:postgresql://localhost:5432/InfoManagement" />
<property name="hibernate.connection.username" value="postgres" />
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider" />
<property name="hibernate.show_sql" value="true" />
</properties>
</persistence-unit>
</persistence> |
j'arrive pas à localiser le problème
merci pour votre aide
Partager