tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob S." <rsli...@sfu.ca>
Subject Re: tomcat.policy and WEB-INF/lib?
Date Thu, 01 Jan 1970 00:00:00 GMT
No, it's the location of the jar file(s) and their contents that's tripping you up.

tomcat.policy is meant for use under a SecurityManager, not the problem here.

- r

On Mon, 20 Aug 2001 12:33:11 -0400 tomcat-user@jakarta.apache.org wrote:
> Actually, I'm having problems getting stuff in WEB-INF/lib jar files to be
> imported by my JSP's (I'm getting ClassNotFoundException's). I was
> wondering if tomcat.policy had anything to do with the problems.
> 
> Thanks,
> Noel
> 
> well you can use the classloader, let's say that you have a jar file
> (test.jar) containing a property file (test.properties) and the jar file is
> in lib, then from your servlet you can say
> 
> this.getClass().getClassLoader().getResourceAsStream("test.properties");
> 
> is that what you are trying to achieve?
> 
> Filip
> 
> ~
> Namaste - I bow to the divine in you
> ~
> Filip Hanik
> Software Architect
> filip@filip.net
> www.filip.net
> 
> >-----Original Message-----
> >From: Noel L Yap [mailto:yap_noel@jpmorgan.com]
> >Sent: Monday, August 20, 2001 8:46 AM
> >To: tomcat-user@jakarta.apache.org
> >Subject: tomcat.policy and WEB-INF/lib?
> >
> >
> >Do I need to do anything in tomcat.policy in order to be able to use
> >CONTEXT/WEB-INF/lib?
> >
> >Thanks,
> >Noel
> >
> >
> >
> >This communication is for informational purposes only.  It is not
> >intended as
> >an offer or solicitation for the purchase or sale of any financial
> >instrument
> >or as an official confirmation of any transaction. All market prices, data
> >and other information are not warranted as to completeness or accuracy and
> >are subject to change without notice. Any comments or statements
> >made herein
> >do not necessarily reflect those of J.P. Morgan Chase & Co., its
> >subsidiaries and affiliates.
> >
> >
> 
> 
> 
> 
> 
> This communication is for informational purposes only. It is not intended
> as an offer or solicitation for the purchase or sale of any financial
> instrument or as an official confirmation of any transaction. All market
> prices, data and other information are not warranted as to completeness or
> accuracy and are subject to change without notice. Any comments or
> statements made herein do not necessarily reflect those of J.P. Morgan
> Chase & Co., its subsidiaries and affiliates.




Mime
View raw message