Export to GitHub

open-archetypes - issue #11

Integrations tests failed when adding multiple ejbs modules


Posted on Aug 9, 2010 by Swift Rhino

What steps will reproduce the problem? 1. Create a new ejb-module under the project structure 2. Add the ejb-module to persistence.xml for scanning the entities 3. Create any simple tests on the entities created in the additional modules 4. Include the dependencies in the pom.xml of the integration-tests module

What is the expected output? What do you see instead? The integration tests module should pick up the entities from the second jar, yet it doesn't. What might be a possible fix for this?

Please provide any additional information below.

Comment #1

Posted on Aug 9, 2010 by Happy Rhino

Possible fix would be to create a persistence.xml file in the test project, taking advantage of the option to point Hibernate to classes in another project/directory.

You can take a look at http://www.touilleur-express.fr/2010/06/17/jpa-et-maven-gerer-2-persistence-xml-distincts/ (in french) (google translation : http://translate.google.com/translate?js=y&prev=_t&hl=en&ie=UTF-8&layout=1&eotf=1&u=http%3A%2F%2Fwww.touilleur-express.fr%2F2010%2F06%2F17%2Fjpa-et-maven-gerer-2-persistence-xml-distincts%2F&sl=fr&tl=en)

Comment #2

Posted on Aug 9, 2010 by Happy Rhino

(No comment was entered for this change.)

Status: Accepted

Labels:
Type-Defect Priority-Medium Archetype-seam-ear-archetype