ClassCastException while use jpa annotation in resin-pro-3.0.19
"zhu" <[email protected]> Thu, 25 May 2006 00:30:08 +0800
| Newsgroups | gmane.text.xml.resin.user |
|---|---|
| Message-ID | <[email protected]> |
the app was works in 3.0.18, but failed in 3.0.19,
because of the javax.persistence package in {resin-home}/lib/ejb30.jar
i get a ClassCastException while obtain EntityManagerFactory from
javax.persistence.Persistence.createEntityManagerFactory(...), it was
because difference ClassLoader cause that exception
what's the sequence of Class Resolve in a webapp, i think it should be
jdk-rt -> WEB-INF/classes -> WEB-INF/lib -> ResinServerLibs
uppon the ClassCastException, i think resin-pro's sequence was
jdk-rt -> WEB-INF/classes -> ResinServerLibs -> WEB-INF/lib
how can i resolve this problem, or report a bug?