M
Mladen Adamovic
On my previous Windows installation everything worked fine, but now, after
complete reinstallation of XP and all programs I have error in my WebApp.
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?
complete reinstallation of XP and all programs I have error in my WebApp.
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?