-
1. Re: [AS7] Problem with entity mapping during deployment using jar-file in persistence.xml
smarlow Jan 10, 2012 9:32 AM (in response to pawcyk)What happens if you put icsDatabaseStructore.jar into your ear/lib folder (I think the jar-file reference would also change to "lib/
icsDataBaseStructure-0.0.1-SNAPSHOT.jar
")? Can your ivsHW_EJB.jar then see the entity classes? -
2. Re: [AS7] Problem with entity mapping during deployment using jar-file in persistence.xml
pawcyk Jan 10, 2012 11:03 AM (in response to smarlow)Unfortunately not... this same problem after moving
icsDataBaseStructure-0.0.1-SNAPSHOT.jar to ear/lib directory.
(Only packages are visible)
-
3. Re: [AS7] Problem with entity mapping during deployment using jar-file in persistence.xml
smarlow Jan 10, 2012 11:22 AM (in response to pawcyk)Can you create a unit test for this? Probably starting with the current one here https://github.com/jbossas/jboss-as/blob/master/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jpa/jarfile/JpaJarFileTestCase.java. Also check to see what is different between your ear and JPAJarFileTestCase.
General instructions for building AS7 are here. Write back if you have trouble. Also write back, once you have recreated the issue in a unit test.
Scott
-
4. Re: [AS7] Problem with entity mapping during deployment using jar-file in persistence.xml
smarlow Jan 10, 2012 10:32 PM (in response to smarlow)Also, you might also try enabling TRACE logging for org.jboss.as.jpa. Some instructions for enabling TRACE for JPA (or any specific target) are here.
Here are some of the entity scanning TRACE log messages that are of interest.
0. "adding '%s' to annotation index map"
1. "getClassesInJar url=%s annotations=%s"
2. "No classes to scan for annotations in jar '%s' (jars with classes '%s')"
3. "getClassesInJar found class %s with annotation %s"
From the above trace messages, you will get some information as to why the entity classes aren't being found.
Post back here what you find.
Scott
-
5. Re: [AS7] Problem with entity mapping during deployment using jar-file in persistence.xml
pawcyk Jan 12, 2012 4:49 AM (in response to smarlow)I have problem with building AS7.
[INFO] JBoss Application Server: Arquillian Common ....... SUCCESS [7.425s] [INFO] JBoss Application Server: Arquillian Protocol JMX . SUCCESS [6.269s] [INFO] JBoss Application Server: Arquillian Managed Container FAILURE [1:15.138s] [INFO] JBoss Application Server: Arquillian Remote Container SKIPPED [INFO] JBoss Application Server: Arquillian TestNG Integration SKIPPED
It stop build on Arquillian Managed Container tests:
------------------------------------------------------- T E S T S ------------------------------------------------------- Forking command line: /bin/sh -c cd /opt/jboss-as/arquillian/container-managed && /opt/sun-jdk-1.6.0.29/jre/bin/java -jar /opt/jboss-as/arquillian/container-managed/target/surefire/surefirebooter1451506914025761381.jar /opt/jboss-as/arquillian/container-managed/target/surefire/surefire4562649437214461632tmp /opt/jboss-as/arquillian/container-managed/target/surefire/surefire763432821862937573tmp Running org.jboss.as.arquillian.container.managed.ManagedAsClientEnterpriseArchiveServletTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 68.244 sec <<< FAILURE! Running org.jboss.as.arquillian.container.managed.IntegrationTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.044 sec <<< FAILURE! Running org.jboss.as.arquillian.container.managed.ManagedInContainerTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.014 sec <<< FAILURE! Running org.jboss.as.arquillian.container.managed.ManagedAsClientWebArchiveServletTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.01 sec <<< FAILURE! Running org.jboss.as.arquillian.container.managed.ManagedAsClientTestCase Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.005 sec
Here are reports from test that don't pass:
Is it normal or I'm doing something wrong?
Is it possible to run JpaJarFileTestCase.java without build of all JBossAS?