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:[EMAIL PROTECTED]
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 is never legal,
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:
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;
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
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; //
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 is
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