|
[
Permlink
| « Hide
]
Shay Banon added a comment - 28/Aug/08 02:53 PM
I have just committed what I hope solves this. I have not tested it within glassfish yet, but I thought that instead of waiting for me to set things up, you can try it out. I have just kicked in a nightly build for 2.1 (trunk), can you download it and test it?
I put the following code inside of my session bean:
@Stateless public void searchAllItems(String aSearchString) CompassHits hits = session.find(aSearchString); And received the following Exception: Caused by: java.lang.ClassCastException: com.sun.enterprise.util.EntityManagerWrapper cannot be cast to oracle.toplink.essentials.ejb.cmp3.EntityManager I have kicked in another nightly build, hopefully with more information if the Glassfish native JPA extractor worked or not. Can you please run it with the new nightly build (should be available in an hour). Also, can you set the logging level to TRACE on this package: org.compass.gps.device.jpa.support?
Are you using the latest nightly build? If you set the logging level, you should see a message saying:
Using native JPA extractors [a list of extractors]. What you should see there (hopefully) is the Glassfish native extractor (should be detected automatically). Also, if something went wrong (it uses reflection to get the actual EM/EMF), you should see an exception. I might not be setting up the logging properly. How should I set that package to TRACE level? Is it in the persistence.xml via a toplink property or using a log4j property file? If it's log4j, could you supply a property file you'd like me to use?
Thanks log4j property. The level should be TRACE.
I have kicked in another nightly and trying to use another method in reflection. Can you give it a go in 30 minutes? Also, which version of Glassfish are you using?
ok, we moved forward!. I think I found the problem we have now (stupid bug). Can you give the latest build another try? In 30 minutes there will be another nightly.
Great, finally
|
||||||||||||||||||||||||||||||||||||||||||||