Tomcat 4.1.24 and Commons FileUpload

2003-07-18 Thread Shaun Kenny
Hi

I've been trying to get a web application to work using the Commons
FileUpload 1.0 with Tomcat 4.1.24;  the servlet using FileUpload will
compile (using NetBeans 3.5) but when Tomcat processes it, a
ClassNotFoundException is thrown saying javax.servlet.ServletInputStream
can't be found.  This exception is traced to the following line:
DiskFileUpload fileupload = new DiskFileUpload();
However, in the servlet, I *can* create an instance of ServletInputStream
like this:
ServletInputStream srvin = ServletRequest.getInputStream();
This line of code compiles without problems and is executed, no problem, in
the servlet by Tomcat.  So it seems that only the FileUpload stuff can't
find the ServletInputStreamclass.  I've tried putting the FileUpload .jar in
the WEB-INF/lib directory of the webapp, as well as my Tomcat/common/lib and
jdk/jre/lib/ext (which Tomcat uses) directories.

Then, I uninstalled Tomcat 4.1.24 and installed Tomcat 4.1.18 and everything
worked perfectly without changes.

Any ideas?

~
Shaun Kenny

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Authenticating to a Windows NT domain

2002-07-22 Thread Shaun Kenny

Hey everybody
 
I've spent some time going back through old archived tomcat-user mailing
lists and I haven't been able to find anything that answers my question
yet.. maybe I just wasn't looking for the right thing, I'm not sure.
Anyway, here goes.
 
I have a web application consisting of JSPs and servlets, and I need to put
some security/login stuff in with it.  I need to authenticate to a windows
nt domain that has a big list of users that are allowed to use my
application.  However, I can't seem to figure out if I can configure Tomcat
to do the authentication for me, or if I have to write some java code (using
JAAS I guess) that will do the authentication.  If it's the writing java
code case, can someone point me to some useful documentation?  I've skimmed
through the JAAS docs and they don't seem all that helpful for what I'm
trying to do.
 
Thanks, any help would be greatly appreciated!
 
~
Shaun Kenny
Acadia Institute for Teaching and Technology
Acadia University