Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem with tomcat 4.1.29, java 1.4.2, windows XP

3 views
Skip to first unread message

Mladen Adamovic

unread,
Mar 1, 2004, 10:44:55 AM3/1/04
to
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?

Ryan Stewart

unread,
Mar 1, 2004, 12:23:49 PM3/1/04
to
"Mladen Adamovic" <ad...@n-o-s.pam.blic.net> wrote in message
news:c1vllr$jfp$2...@ariane.blic.net...
Restart your server?


Mladen Adamovic

unread,
Mar 1, 2004, 1:26:57 PM3/1/04
to
"Ryan Stewart" <zzanN...@gSPAMo.com> wrote:
> > So, it seems that Tomcat cannot find class
> javax.servlet.ServletInputStream
> > What to do?
> 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).


Wendy S

unread,
Mar 1, 2004, 2:30:25 PM3/1/04
to
"Mladen Adamovic" <ad...@n-o-s.pam.blic.net> wrote:
> 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.

--
Wendy in Chandler, AZ


Steve Burrus

unread,
Mar 2, 2004, 5:22:20 PM3/2/04
to
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!

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

0 new messages