OC4J to Glassfish Migration
Today I've done the next steps for migration.
I've downloaded the following bits:
Hibernate Core, 3.2.1 GA
Hibernate Annotations, 3.2.0 GA
Hibernate EntityManager, 3.2.0 GADownload
Hibernate Tools, 3.2 beta 8
and of course Glassfish:
GlassfishV1, UR1 Build 14
andGlassfishV2, Build 19
I've downloaded both just in case that I will need different versions for various experiments.
I started with GlassfishV2 and my application with entities generated by Hibernate Tools was not running out of the box. Deployment went through without any errors (great).
I've written a small standalone java application which uses an InitialContext to look for an ejb3 stateless session bean. The result is positive. Unluckily the first call of a finder method within the session bean produces a large exception stack trace.
Maybe I have to edit the server.policy file although no security exception has been thrown? Just a feeling. Despite the explanation in another blog I did not copy the hibernate libs into the global glassfish lib, but packaged the libraries within my ejb jar. Maybe I should try copying those files into the global glassfish lib? If this does not help I will use GlassfishV1, UR1 Build 14. If this still does not help I would downgrade the hibernate libs.
More to come another day.

0 Comments:
Post a Comment
<< Home