× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hmmm.  That's very strange.

Are you sure that you're calling the MultipartRequest constructor with a
valid HttpServletRequest?

You might try just doing a System.err.println of it in
FileUploadDownloadServlet3.performUpload just before the call to the
MultipartRequest constructor as a sanity check.

Gary

> -----Original Message-----
> From: java400-l-bounces@midrange.com 
> [mailto:java400-l-bounces@midrange.com] On Behalf Of Patrick 
> L Archibald
> Sent: Thursday, February 06, 2003 10:10 AM
> To: java400-l@midrange.com
> Subject: File upload servlet won't run on AS/400 but runs OK 
> on PCconfigured identically
> 
> 
>    Hi
> 
>    I've got a file upload servlet that works fine running on 
> a PC with Tomcat
>    4.1.12 but I get the error below on the AS/400 running 
> Tomcat 4.1.12. I've
>    written hundreds of servlets on the AS/400 and the PC and 
> I've never had
>    one beat me like this one. The error says "NoClassDefFoundError:
>    javax/servlet/http/HttpServletRequest" but that is not 
> logical since I
>    have dozens of servlets running OK. Any one have any suggestions?
> 
>    Thanx, PLA
> 
> 
> 
> 
>  HTTP Status 500 -
> 
>  type Exception report
> 
>  message
> 
>  description The server encountered an internal error () that 
> prevented it from fulfilling this request.
> 
>  exception
> 
>  javax.servlet.ServletException: Servlet execution threw an exception
>        java/lang/Throwable.(Ljava/lang/String;)V+4 (Throwable.java:90)
>        java/lang/Exception.(Ljava/lang/String;)V+1 (Exception.java:38)
>        
> javax/servlet/ServletException.(Ljava/lang/String;Ljava/lang/T
> hrowable;)V+0 (ServletException.java:132)
>        
> org/apache/catalina/core/ApplicationFilterChain.internalDoFilt
> er(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletRespons
> e;)V+0 (ApplicationFilterChain.java:201)
>        
> org/apache/catalina/core/ApplicationFilterChain.doFilter(Ljava
x/servlet/ServletRequest;Ljavax/servlet/ServletR> esponse;)V+0
(ApplicationFilterChain.java:168)
>        
> org/apache/catalina/core/StandardWrapperValve.invoke(Lorg/apac
he/catalina/Request;Lorg/apache/catalina/Respons>
e;Lorg/apache/catalina/ValveContext;)V+0 
> (StandardWrapperValve.java:174)
>        
> org/apache/catalina/core/StandardPipeline$StandardPipelineValv
> eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
> atalina/Response;)V+0 (StandardPipeline.java:636)
>        
> org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/c
atalina/Request;Lorg/apache/catalina/Response;)> V+0
(StandardPipeline.java:480)
>        
> org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/cata
> lina/Request;Lorg/apache/catalina/Response;)V+0 
> (ContainerBase.java:995)
>        
> org/apache/catalina/core/StandardContextValve.invoke(Lorg/apac
he/catalina/Request;Lorg/apache/catalina/Respons>
e;Lorg/apache/catalina/ValveContext;)V+0 
> (StandardContextValve.java:153)
>        
> org/apache/catalina/core/StandardPipeline$StandardPipelineValv
> eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
> atalina/Response;)V+0 (StandardPipeline.java:636)
>        
> org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/c
atalina/Request;Lorg/apache/catalina/Response;)> V+0
(StandardPipeline.java:480)
>        
> org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/cata
> lina/Request;Lorg/apache/catalina/Response;)V+0 
> (ContainerBase.java:995)
>        
> org/apache/catalina/core/StandardContext.invoke(Lorg/apache/ca
> talina/Request;Lorg/apache/catalina/Response;)V+0 
> (StandardContext.java:2376)
>        
> org/apache/catalina/core/StandardHostValve.invoke(Lorg/apache/
catalina/Request;Lorg/apache/catalina/Response;L>
org/apache/catalina/ValveContext;)V+0 (StandardHostValve.java:148)
>        
> org/apache/catalina/core/StandardPipeline$StandardPipelineValv
> eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
> atalina/Response;)V+0 (StandardPipeline.java:636)
>        
> org/apache/catalina/valves/ErrorDispatcherValve.invoke(Lorg/ap
ache/catalina/Request;Lorg/apache/catalina/Respo>
nse;Lorg/apache/catalina/ValveContext;)V+0 
> (ErrorDispatcherValve.java:170)
>        
> org/apache/catalina/core/StandardPipeline$StandardPipelineValv
> eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
> atalina/Response;)V+0 (StandardPipeline.java:636)
>        
> org/apache/catalina/valves/ErrorReportValve.invoke(Lorg/apache
/catalina/Request;Lorg/apache/catalina/Response;>
Lorg/apache/catalina/ValveContext;)V+0 (ErrorReportValve.java:172)
>        
> org/apache/catalina/core/StandardPipeline$StandardPipelineValv
> eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
> atalina/Response;)V+0 (StandardPipeline.java:636)
>        
> org/apache/catalina/valves/AccessLogValve.invoke(Lorg/apache/c
atalina/Request;Lorg/apache/catalina/Response;Lo>
rg/apache/catalina/ValveContext;)V+0 (AccessLogValve.java:469)
>        
> org/apache/catalina/core/StandardPipeline$StandardPipelineValv
> eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
> atalina/Response;)V+0 (StandardPipeline.java:636)
>        
> org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/c
atalina/Request;Lorg/apache/catalina/Response;)> V+0
(StandardPipeline.java:480)
>        
> org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/cata
> lina/Request;Lorg/apache/catalina/Response;)V+0 
> (ContainerBase.java:995)
>        
> org/apache/catalina/core/StandardEngineValve.invoke(Lorg/apach
e/catalina/Request;Lorg/apache/catalina/Response>
;Lorg/apache/catalina/ValveContext;)V+0 (StandardEngineValve.java:146)
>        
> org/apache/catalina/core/StandardPipeline$StandardPipelineValv
> eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
> atalina/Response;)V+0 (StandardPipeline.java:636)
>        
> org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/c
atalina/Request;Lorg/apache/catalina/Response;)> V+0
(StandardPipeline.java:480)
>        
> org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/cata
> lina/Request;Lorg/apache/catalina/Response;)V+0 
> (ContainerBase.java:995)
>        
> org/apache/coyote/tomcat4/CoyoteAdapter.service(Lorg/apache/co
> yote/Request;Lorg/apache/coyote/Response;)V+0 (CoyoteAdapter.java:197)
>        
> org/apache/jk/server/JkCoyoteHandler.invoke(Lorg/apache/jk/cor
> e/Msg;Lorg/apache/jk/core/MsgContext;)I+0 (JkCoyoteHandler.java:234)
>        
> org/apache/jk/common/HandlerRequest.invoke(Lorg/apache/jk/core
> /Msg;Lorg/apache/jk/core/MsgContext;)I+0 (HandlerRequest.java:331)
>        
> org/apache/jk/common/ChannelSocket.invoke(Lorg/apache/jk/core/
> Msg;Lorg/apache/jk/core/MsgContext;)I+0 (ChannelSocket.java:552)
>        
> org/apache/jk/common/ChannelSocket.processConnection(Lorg/apac
> he/jk/core/MsgContext;)V+0 (ChannelSocket.java:522)
>        
> org/apache/jk/common/SocketConnection.runIt([Ljava/lang/Object
> ;)V+0 (ChannelSocket.java:638)
>        
> org/apache/tomcat/util/threads/ThreadPool$ControlRunnable.run(
> )V+0 (ThreadPool.java:507)
>        java/lang/Thread.run()V+11 (Thread.java:484)
> 
>  root cause
> 
>  java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
>        java/lang/Throwable.(Ljava/lang/String;)V+4 (Throwable.java:90)
>        java/lang/LinkageError.(Ljava/lang/String;)V+1 
> (LinkageError.java:39)
>        java/lang/NoClassDefFoundError.(Ljava/lang/String;)V+1 
> (NoClassDefFoundError.java:43)
>        
> com/oreilly/servlet/multipart/MultipartParser.(Ljavax/servlet/
> http/HttpServletRequest;IZZ)V+23 (MultipartParser.java:114)
>        
> com/oreilly/servlet/multipart/MultipartParser.(Ljavax/servlet/
> http/HttpServletRequest;I)V+1 (MultipartParser.java:94)
>        
> com/oreilly/servlet/MultipartRequest.(Ljavax/servlet/http/Http
> ServletRequest;Ljava/lang/String;ILjava/lang/String;Lcom/oreil
> ly/servlet/multipart/FileRenamePolicy;)V+148 
> (MultipartRequest.java:219)
>        
> com/oreilly/servlet/MultipartRequest.(Ljavax/servlet/http/Http
> ServletRequest;Ljava/lang/String;ILcom/oreilly/servlet/multipa
> rt/FileRenamePolicy;)V+1 (MultipartRequest.java:148)
>        
> FileUploadDownloadServlet3.performUpload(Ljavax/servlet/http/H
> ttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0
>  (FileUploadDownloadServlet3.java:295)
>        
> FileUploadDownloadServlet3.doGet(Ljavax/servlet/http/HttpServl
> etRequest;Ljavax/servlet/http/HttpServletResponse;)V+0 
> (FileUploadDownloadServlet3.java:57)
>        
> FileUploadDownloadServlet3.doPost(Ljavax/servlet/http/HttpServ
> letRequest;Ljavax/servlet/http/HttpServletResponse;)V+0 
> (FileUploadDownloadServlet3.java:51)
>        
> javax/servlet/http/HttpServlet.service(Ljavax/servlet/http/Htt
> pServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0 
> (HttpServlet.java:733)
>        
> javax/servlet/http/HttpServlet.service(Ljavax/servlet/ServletR
> equest;Ljavax/servlet/ServletResponse;)V+0 (HttpServlet.java:848)
>        
> org/apache/catalina/core/ApplicationFilterChain.internalDoFilt
> er(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletRespons
> e;)V+0 (ApplicationFilterChain.java:201)
>        
> org/apache/catalina/core/ApplicationFilterChain.doFilter(Ljava
x/servlet/ServletRequest;Ljavax/servlet/ServletR> esponse;)V+0
(ApplicationFilterChain.java:168)
>        
> org/apache/catalina/core/StandardWrapperValve.invoke(Lorg/apac
he/catalina/Request;Lorg/apache/catalina/Respons>
e;Lorg/apache/catalina/ValveContext;)V+0 
> (StandardWrapperValve.java:174)
>        
> org/apache/catalina/core/StandardPipeline$StandardPipelineValv
> eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
> atalina/Response;)V+0 (StandardPipeline.java:636)
>        
> org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/c
atalina/Request;Lorg/apache/catalina/Response;)> V+0
(StandardPipeline.java:480)
>        
> org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/cata
> lina/Request;Lorg/apache/catalina/Response;)V+0 
> (ContainerBase.java:995)
>        
> org/apache/catalina/core/StandardContextValve.invoke(Lorg/apac
he/catalina/Request;Lorg/apache/catalina/Respons>
e;Lorg/apache/catalina/ValveContext;)V+0 
> (StandardContextValve.java:153)
>        
> org/apache/catalina/core/StandardPipeline$StandardPipelineValv
> eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
> atalina/Response;)V+0 (StandardPipeline.java:636)
>        
> org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/c
atalina/Request;Lorg/apache/catalina/Response;)> V+0
(StandardPipeline.java:480)
>        
> org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/cata
> lina/Request;Lorg/apache/catalina/Response;)V+0 
> (ContainerBase.java:995)
>        
> org/apache/catalina/core/StandardContext.invoke(Lorg/apache/ca
> talina/Request;Lorg/apache/catalina/Response;)V+0 
> (StandardContext.java:2376)
>        
> org/apache/catalina/core/StandardHostValve.invoke(Lorg/apache/
catalina/Request;Lorg/apache/catalina/Response;L>
org/apache/catalina/ValveContext;)V+0 (StandardHostValve.java:148)
>        
> org/apache/catalina/core/StandardPipeline$StandardPipelineValv
> eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
> atalina/Response;)V+0 (StandardPipeline.java:636)
>        
> org/apache/catalina/valves/ErrorDispatcherValve.invoke(Lorg/ap
ache/catalina/Request;Lorg/apache/catalina/Respo>
nse;Lorg/apache/catalina/ValveContext;)V+0 
> (ErrorDispatcherValve.java:170)
>        
> org/apache/catalina/core/StandardPipeline$StandardPipelineValv
> eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
> atalina/Response;)V+0 (StandardPipeline.java:636)
>        
> org/apache/catalina/valves/ErrorReportValve.invoke(Lorg/apache
/catalina/Request;Lorg/apache/catalina/Response;>
Lorg/apache/catalina/ValveContext;)V+0 (ErrorReportValve.java:172)
>        
> org/apache/catalina/core/StandardPipeline$StandardPipelineValv
> eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
> atalina/Response;)V+0 (StandardPipeline.java:636)
>        
> org/apache/catalina/valves/AccessLogValve.invoke(Lorg/apache/c
atalina/Request;Lorg/apache/catalina/Response;Lo>
rg/apache/catalina/ValveContext;)V+0 (AccessLogValve.java:469)
>        
> org/apache/catalina/core/StandardPipeline$StandardPipelineValv
> eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
> atalina/Response;)V+0 (StandardPipeline.java:636)
>        
> org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/c
atalina/Request;Lorg/apache/catalina/Response;)> V+0
(StandardPipeline.java:480)
>        
> org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/cata
> lina/Request;Lorg/apache/catalina/Response;)V+0 
> (ContainerBase.java:995)
>        
> org/apache/catalina/core/StandardEngineValve.invoke(Lorg/apach
e/catalina/Request;Lorg/apache/catalina/Response>
;Lorg/apache/catalina/ValveContext;)V+0 (StandardEngineValve.java:146)
>        
> org/apache/catalina/core/StandardPipeline$StandardPipelineValv
> eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
> atalina/Response;)V+0 (StandardPipeline.java:636)
>        
> org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/c
atalina/Request;Lorg/apache/catalina/Response;)> V+0
(StandardPipeline.java:480)
>        
> org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/cata
> lina/Request;Lorg/apache/catalina/Response;)V+0 
> (ContainerBase.java:995)
>        
> org/apache/coyote/tomcat4/CoyoteAdapter.service(Lorg/apache/co
> yote/Request;Lorg/apache/coyote/Response;)V+0 (CoyoteAdapter.java:197)
>        
> org/apache/jk/server/JkCoyoteHandler.invoke(Lorg/apache/jk/cor
> e/Msg;Lorg/apache/jk/core/MsgContext;)I+0 (JkCoyoteHandler.java:234)
>        
> org/apache/jk/common/HandlerRequest.invoke(Lorg/apache/jk/core
> /Msg;Lorg/apache/jk/core/MsgContext;)I+0 (HandlerRequest.java:331)
>        
> org/apache/jk/common/ChannelSocket.invoke(Lorg/apache/jk/core/
> Msg;Lorg/apache/jk/core/MsgContext;)I+0 (ChannelSocket.java:552)
>        
> org/apache/jk/common/ChannelSocket.processConnection(Lorg/apac
> he/jk/core/MsgContext;)V+0 (ChannelSocket.java:522)
>        
> org/apache/jk/common/SocketConnection.runIt([Ljava/lang/Object
> ;)V+0 (ChannelSocket.java:638)
>        
> org/apache/tomcat/util/threads/ThreadPool$ControlRunnable.run(
> )V+0 (ThreadPool.java:507)
>        java/lang/Thread.run()V+11 (Thread.java:484)


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.