problem with tomcat 4.1.29, java 1.4.2, windows XP

  • Thread starter Mladen Adamovic
  • Start date
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?
 
R

Ryan Stewart

Mladen Adamovic said:
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
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
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?
Restart your server?
 
M

Mladen Adamovic

Ryan Stewart said:
Restart your server?

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).
 
W

Wendy S

Mladen Adamovic said:
On my previous Windows installation everything worked fine, but now, after
complete reinstallation of XP and all programs I have error in my WebApp.

Probably a missing or corrupted .jar file... I'd re-install Tomcat. Or move
to 4.1.30, it's the lastest version.
 
S

Steve Burrus

Actually, version 4.1.30 is NOT the most current version of Tomcat at all, as u
said : >>"4.1.30, it's the lastest version."<< !! It's actually version 5.0.19
of tomcat!! I upgraded, just last nite, from version 5.0.16 to 5.0.19 of it!

***********************************************************************************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top