I'm using commons-fileupload-1.0.jar
And problem is here
public class FilesUpload extends HttpServlet
{
...
public void doPost(HttpServletRequest req, HttpServletResponse res)
{
DiskFileUpload fu = new DiskFileUpload(); //AT THIS LINE
//TOMCAT MAKE EXCEPTION
<snip>
Now the problem/exception:
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
<snip>
root cause
java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream
at FilesUpload.doPost(FilesUpload.java:23)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain
So, it seems that Tomcat cannot find class javax.servlet.ServletInputStream
?!?!
What to do?
It does NOT help, but thanks for reply and time spent on reading my post
Ryan. Everytime I start tomcat I haven't problem with other things except
this one (and I hadn't this problem before complete reinstallation of my
computer).
Probably a missing or corrupted .jar file... I'd re-install Tomcat. Or move
to 4.1.30, it's the lastest version.
--
Wendy in Chandler, AZ
***********************************************************************************************************************