-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: addJar fails under Tomcat
PostPosted: Tue Dec 09, 2003 1:05 pm 
Newbie

Joined: Mon Dec 01, 2003 1:59 pm
Posts: 5
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 to work?

From the configuration file:
<mapping jar="ptsj.jar"/>

Start of stack trace:
09-Dec-2003 16:54:30 uk.co.faststep.util.HibernateStrutsPlugIn initHibernate
SEVERE: Rethrowing exception...
java.lang.NullPointerException
at net.sf.hibernate.cfg.Configuration.addJar(Configuration.java:299)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:846)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.