fails « Tomcat « JPA Q&A





1. addJar fails under Tomcat    forum.hibernate.org

I am attempting to use the addJar (string) when running under Tomcat 4.1.29, but I get a null pointer exception indicating that the classloader failed to file the jar file (the call to Thread.currentThread().getContextClassLoader().getResource(resource) appears to return null). I know the jar file is WEB-INF/lib/ptsj.jar (cos the HibernateStrutsPlugIn comes from that jar). Can someone indicate how to get the addJar feature ...