Alex Karpoff wrote:
Quote:
Hello, Mark
Thank you for paying attention to my problem. |
You're welcome.
I think the solution is to place the je.jar file in the same servlet
classpath location as your application/servlet classes. For example,
when using Tomcat, place je.jar in your servlet's WEB-INF/lib
directory. (I assume your servlet classes are in WEB-INF/classes or
WEB-INF/lib.) Do not put je.jar in any other classpath location, for
example, shared/lib.
If je.jar is in a shared location, it will not have access to your
servlet classes. This is because shared classes are loaded under a
different classloader than servlet classes. Of course, the DPL classes
in JE need access to the persistent classes in your servlet in order to
introspect them.
I wrote a small test, and when I put je.jar in shared/lib I get the
error you reported. When I put je.jar in WEB-INF/lib, the error goes
away and I am able to get/put objects.
Please let me know if this doesn't solve the problem.
Mark