-
1. Re: JBoss 5 migration and jboss 5 migration Specification violation Error
lvdberg Aug 28, 2009 12:37 PM (in response to balazska)JBOSS 5 has improved ejb-3 support, and there are some subtle differences between the servers 4.X and 5.X. Edit your persistence.xml file and see if you have something like:
<jta-data-source>java:/DomainModel</jta-data-source>
defined.
Furthermore you MUST define all you're classes (if you're using annotations).
-
2. Re: JBoss 5 migration and jboss 5 migration Specification violation Error
balazska Aug 28, 2009 12:59 PM (in response to balazska)Hi!
Thank you for your answer.
I use JBoss 5.1.0.GA-jdk6-
The jta-data-source is defined, but Is really must define all annotated entity? :( -
3. Re: JBoss 5 migration and jboss 5 migration Specification violation Error
coenos Aug 28, 2009 1:03 PM (in response to balazska)Hmm, no, you don't need to define your Entities in persistence.xml.
De app container will scan for annotated entities (JPA 1.5 and beyond).
Regards,
Coenos -
4. Re: JBoss 5 migration and jboss 5 migration Specification violation Error
coenos Aug 28, 2009 1:05 PM (in response to balazska)'JPA 1.5 and beyond' meaning JPA for JDK 1.5 and beyond :)
-
5. Re: JBoss 5 migration and jboss 5 migration Specification violation Error
balazska Aug 28, 2009 1:33 PM (in response to balazska)anything else, I use jbpm integration with the same project, but I don't think this causes the problem.
-
6. Re: JBoss 5 migration and jboss 5 migration Specification violation Error
balazska Aug 29, 2009 12:59 AM (in response to balazska)The probleam was solved. There was an empty persistence.xml and orm.xml under the web project that generated an earlier seam-gen version.