Martin --

The only exception mentioned so far is an NPE. Nothing has indicated a SecurityException.

--David

Martin Gainty wrote:

yes..All of this should work
it sounds as if perhaps someone has been changing the security permissions without your knowledge?

try wrapping each executable statement with try/catch
try {
this.getClass().getClassLoader().getResource("resources/myfile.xml").getPath().toString());
}
catch(SecurityException se)
{
System.out.println("A SecurityException has been thrown..please check /conf/catalina.policy file the specific message="+se.getMessage());
}

Anyone?
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, June 18, 2007 11:46 AM
Subject: RE: Tomcat / WAR File; Classpath not recognised for properties file


From: nformosa [mailto:[EMAIL PROTECTED]
Subject: Re: Tomcat / WAR File; Classpath not recognised for
properties file

I didn't compile the resources with the jar file! should i?


You don't compiler resources, but the properties file can be placed in
the jar.

if so how would i then access it?


As previously described.

Also i don;t have a classes directory since my code is
compiled and jarred and forms part of the WEB-INF/lib


Just put the properties file in base directory of the jar.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to