-
15. Re: JPA Entities scanning issue (jar-file in persistence.xml)
garcimouche Nov 3, 2011 1:33 PM (in response to smarlow)I can try to build from source if you give your GIT repo....
-
16. Re: JPA Entities scanning issue (jar-file in persistence.xml)
smarlow Nov 3, 2011 2:07 PM (in response to garcimouche)My GIT repo is at https://github.com/scottmarlow/jboss-as/
git clone git://github.com/scottmarlow/jboss-as.git as7
cd as7
git checkout as7-2497
./build.sh clean install
cd build/target/jboss-as-7.1.0.Alpha2-SNAPSHOT/
Some tips for hacking on AS7 are here http://community.jboss.org/wiki/HackingOnAS7
The above steps will bring in an additional TRACE logging message that looks like "adding '%s' to annotation index map". This will show up the entity jar names that are put into an internal map (map key is shown as is). I also changed the "No classes to scan for annotations" message to show the map key used, as is.
This should show us enough information, to understand what is wrong. Either, I didn't add the jars to the internal map or the wrong form of the jar search key is used.
Thanks for helping,
Scott
-
17. Re: JPA Entities scanning issue (jar-file in persistence.xml)
garcimouche Nov 3, 2011 2:19 PM (in response to smarlow)In the meantime I tried to build an int test with arq. In the integration test suite I've added this test (and it's failing...). Just let me know if it's helpful for you...
-
18. Re: JPA Entities scanning issue (jar-file in persistence.xml)
smarlow Nov 3, 2011 2:32 PM (in response to garcimouche)Thanks, that is helpful!
-
19. Re: JPA Entities scanning issue (jar-file in persistence.xml)
garcimouche Nov 3, 2011 3:25 PM (in response to smarlow)Scott, This is the server.log from your branch. Have fun!
-
server.log.tar.gz 590.9 KB
-
-
20. Re: JPA Entities scanning issue (jar-file in persistence.xml)
smarlow Nov 3, 2011 3:59 PM (in response to garcimouche)Franck,
Thanks, with your test case changes, I was able to see the bug and am working on a fix. I'll post here when an update is available for you to try.
Scott
-
21. Re: JPA Entities scanning issue (jar-file in persistence.xml)
smarlow Nov 4, 2011 10:31 AM (in response to smarlow)Franck,
Could you pull/fetch/build the latest code changes from https://github.com/scottmarlow/jboss-as/.
I think the following should be enough:
cd as7
git fetch
git pull
./build.sh clean install
I want to make one more refinement I think but the root issue should be addressed now. Let me know if this works.
-
22. Re: JPA Entities scanning issue (jar-file in persistence.xml)
garcimouche Nov 4, 2011 12:16 PM (in response to smarlow)Thank you Scott, it works now ;-)