jpa - My persistence.xml is misunderstood -
let's begin directly file :
<?xml version="1.0" encoding="utf-8"?> <persistence version="2.0" 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_2_0.xsd"> <persistence-unit name="bd_antic" transaction-type="jta"> <jta-data-source>jdbc/defacement_datasource</jta-data-source> <exclude-unlisted-classes>false</exclude-unlisted-classes> </persistence-unit> </persistence>
here project structure :
project
src
--bean --ejbentity ... entity ejb persistence.xml --ejbsession ... ejb session
and persitence.xml 1 gave above.
it should work because
- i create bonecp connection asadmin et ping in http://localhost:8080/
- i put
<exclude-unlisted-classes>false</exclude-unlisted-classes>
. don't need inform specific classes<class></class>
but have exception :
java.lang.illegalargumentexception: object: bean.ejbentity.page@1d4f941 not known entity type.
i need help. please.
Comments
Post a Comment