Re: getResourceAsStream returning blank (NOT NULL)

2007-04-16 Thread Thomas Polliard
Christopher Schultz wrote: > Tim, > > Tim Lucia wrote: > > If you have an instance, then of course you have a this and of > course you > > can call getClass(). If you haven't got an instance, you can't call > > getClass(). I.e., > > > public Foo { > > } > > > Foo.getClass() -- illegal. > > This i

Re: getResourceAsStream returning blank (NOT NULL)

2007-04-16 Thread Thomas Polliard
Tim Lucia wrote: > >> -Original Message- >> From: Christopher Schultz [mailto:[EMAIL PROTECTED] >> Sent: Saturday, April 14, 2007 2:51 PM >> To: Tomcat Users List >> Subject: Re: getResourceAsStream returning blank (NOT NULL) >> > Tim, > > Tim Lucia wrote: > From: Johnny Kewl [mailto:[

Re: getResourceAsStream returning blank (NOT NULL)

2007-04-13 Thread Thomas Polliard
Tim Thanks for the help, That FIXED it :)... Thanks for the reference it was indeed helpful. Thomas - To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

getResourceAsStream returning blank (NOT NULL)

2007-04-12 Thread Thomas Polliard
I have the following code: package net.digitalassembly.auth; import java.util.ArrayList; import java.util.List; import java.util.Properties; import java.io.InputStream; import java.io.IOException; import net.digitalassembly.auth.PamModule; import net.digitalassembly.auth.PamHibernateModule; // Ma

Re: Singleton in Tomcat

2007-04-12 Thread Thomas Polliard
The problem is where someone stated earlier in the load of pam.conf. So different question: How does one either modify web.xml or read a config file from within the WEB-INF directory? Thanks Thomas On Apr 12, 2007, at 7:45 PM, Thomas Polliard wrote: Ok, so if the constructor is empty

Re: Singleton in Tomcat

2007-04-12 Thread Thomas Polliard
Ok, so if the constructor is empty it works fine, but as soon as you put something in the constructor it fails. Code: package net.digitalassembly.auth; import java.util.ArrayList; import java.util.List; import java.util.Properties; import java.io.FileInputStream; import java.io.IOException; im

Re: Singleton in Tomcat

2007-04-11 Thread Thomas Polliard
Calendar example worked (with page import java.util.Calendar) :) This is the Pam.java class the class compiles to WEB-INF/classes/net/digitalassembly/auth/Pam.class package net.digitalassembly.auth; import java.util.ArrayList; import java.util.List; import java.util.Properties; import java.io.F

Singleton in Tomcat

2007-04-11 Thread Thomas Polliard
I have a singleton class that I want to load The code is like such: <% Pam pam = Pam.getInstance(); %> I get a ClassNotFoundException which is odd seeing as how the following code works fine <% Pam pam = null; %> The fact that it finds Pam in the second example makes me wonder if there