It sounds like this might be the problem; see my reply to Schalk's message about the location of the various .jar files in my setup. I'm running Tomcat on Windows XP.
Thanks! ~ Shaun kenny > -----Original Message----- > From: Rhino [mailto:[EMAIL PROTECTED] > Sent: July 31, 2003 11:14 AM > To: Jakarta Commons Users List > Subject: Re: FileUpload 1.0 with Tomcat 4.1.24 > > > You may be encountering a slightly different version of the > problem I had very recently: a version clash with FileUpload jars. > > Tomcat 4.1.24 comes with a beta version of the FileUpload > jar, not the 1.0 version that you may be using. I added the > 1.0 (June 24) version to my setup without properly handling > the older version of the jar and got ClassNotFoundExceptions > that caused me plenty of grief and confusion. > > What OS are you running? I have Tomcat 4.1.24 running > correctly on both Windows XP and Linux (Mandrake 9.1). I can > tell you what my setup is for either and you can adjust your > files accordingly; that should resolve the problem. > > Rhino > > ----- Original Message ----- > From: "Shaun Kenny" <[EMAIL PROTECTED]> > To: "'Jakarta Commons Users List'" <[EMAIL PROTECTED]> > Sent: Thursday, July 31, 2003 9:52 AM > Subject: FileUpload 1.0 with Tomcat 4.1.24 > > > > Hi > > > > I've been trying to setup a web application 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 ServletInputStream class. 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. > > > > However, when I uninstalled Tomcat 4.1.24 and installed > Tomcat 4.1.18 > > everything worked fine without changes. > > > > Any ideas? > > > > ~ > > Shaun Kenny > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
