-
1. Re: JBoss 5 migration and jboss 5 migration Specification violation Error
Leo van den berg Aug 28, 2009 12:37 PM (in response to gdfgd eqwe)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
gdfgd eqwe Aug 28, 2009 12:59 PM (in response to gdfgd eqwe)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
Coen Damen Aug 28, 2009 1:03 PM (in response to gdfgd eqwe)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
Coen Damen Aug 28, 2009 1:05 PM (in response to gdfgd eqwe)'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
gdfgd eqwe Aug 28, 2009 1:33 PM (in response to gdfgd eqwe)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
gdfgd eqwe Aug 29, 2009 12:59 AM (in response to gdfgd eqwe)The probleam was solved. There was an empty persistence.xml and orm.xml under the web project that generated an earlier seam-gen version.