Hi folks
I am in the hell of class loading, and need some serious help. I have the following application layout:
tomcat/shared/lib/
class A (need access to POJO)
webapp1/
POJO java class
hibernate3.1 and the rest of third party jars
webapp2/
class C (need access to A)
My questions are:
(1) do I must put POJO (generated java file by hibernate) in webapp1/ ? because I don't (and put POJO jars into shared loading space, I saw many Error on BasicLazyInitializer, CGLIB Enhancement failed .... combined with NoClassDefFoundEorr: org/hiberante/proxy/HibernateProxy, I couldn't really pinpoint the reason.)
(2) if I put POJO into webapp1, then above errors are gone, but since Class A needs access to POJO and putting Class A into webapp1 is NOT an option for me, that means I have to put POJO into shared loading space as well, which seems very WRONG. And it tomcat logs does report it violates loading constraints.
What are my options then? any help? (btw- this is with tomcat 4.1.x)
Thanks
Oliver
|