|
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-----x/servlet/ServletRequest;Ljavax/servlet/ServletR> esponse;)V+0
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
(ApplicationFilterChain.java:168)
org/apache/catalina/core/StandardWrapperValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Respons>
e;Lorg/apache/catalina/ValveContext;)V+0
(StandardWrapperValve.java:174)atalina/Request;Lorg/apache/catalina/Response;)> V+0
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
(StandardPipeline.java:480)
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catahe/catalina/Request;Lorg/apache/catalina/Respons>
lina/Request;Lorg/apache/catalina/Response;)V+0 (ContainerBase.java:995)
org/apache/catalina/core/StandardContextValve.invoke(Lorg/apac
e;Lorg/apache/catalina/ValveContext;)V+0
(StandardContextValve.java:153)atalina/Request;Lorg/apache/catalina/Response;)> V+0
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
(StandardPipeline.java:480)
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catacatalina/Request;Lorg/apache/catalina/Response;L>
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/
org/apache/catalina/ValveContext;)V+0 (StandardHostValve.java:148)
org/apache/catalina/core/StandardPipeline$StandardPipelineValvache/catalina/Request;Lorg/apache/catalina/Respo>
eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
atalina/Response;)V+0 (StandardPipeline.java:636)
org/apache/catalina/valves/ErrorDispatcherValve.invoke(Lorg/ap
nse;Lorg/apache/catalina/ValveContext;)V+0
(ErrorDispatcherValve.java:170)/catalina/Request;Lorg/apache/catalina/Response;>
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
Lorg/apache/catalina/ValveContext;)V+0 (ErrorReportValve.java:172)
org/apache/catalina/core/StandardPipeline$StandardPipelineValvatalina/Request;Lorg/apache/catalina/Response;Lo>
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
rg/apache/catalina/ValveContext;)V+0 (AccessLogValve.java:469)
org/apache/catalina/core/StandardPipeline$StandardPipelineValvatalina/Request;Lorg/apache/catalina/Response;)> V+0
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
(StandardPipeline.java:480)
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catae/catalina/Request;Lorg/apache/catalina/Response>
lina/Request;Lorg/apache/catalina/Response;)V+0 (ContainerBase.java:995)
org/apache/catalina/core/StandardEngineValve.invoke(Lorg/apach
;Lorg/apache/catalina/ValveContext;)V+0 (StandardEngineValve.java:146)
org/apache/catalina/core/StandardPipeline$StandardPipelineValvatalina/Request;Lorg/apache/catalina/Response;)> V+0
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
(StandardPipeline.java:480)
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catax/servlet/ServletRequest;Ljavax/servlet/ServletR> esponse;)V+0
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
(ApplicationFilterChain.java:168)
org/apache/catalina/core/StandardWrapperValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Respons>
e;Lorg/apache/catalina/ValveContext;)V+0
(StandardWrapperValve.java:174)atalina/Request;Lorg/apache/catalina/Response;)> V+0
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
(StandardPipeline.java:480)
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catahe/catalina/Request;Lorg/apache/catalina/Respons>
lina/Request;Lorg/apache/catalina/Response;)V+0 (ContainerBase.java:995)
org/apache/catalina/core/StandardContextValve.invoke(Lorg/apac
e;Lorg/apache/catalina/ValveContext;)V+0
(StandardContextValve.java:153)atalina/Request;Lorg/apache/catalina/Response;)> V+0
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
(StandardPipeline.java:480)
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catacatalina/Request;Lorg/apache/catalina/Response;L>
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/
org/apache/catalina/ValveContext;)V+0 (StandardHostValve.java:148)
org/apache/catalina/core/StandardPipeline$StandardPipelineValvache/catalina/Request;Lorg/apache/catalina/Respo>
eContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/c
atalina/Response;)V+0 (StandardPipeline.java:636)
org/apache/catalina/valves/ErrorDispatcherValve.invoke(Lorg/ap
nse;Lorg/apache/catalina/ValveContext;)V+0
(ErrorDispatcherValve.java:170)/catalina/Request;Lorg/apache/catalina/Response;>
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
Lorg/apache/catalina/ValveContext;)V+0 (ErrorReportValve.java:172)
org/apache/catalina/core/StandardPipeline$StandardPipelineValvatalina/Request;Lorg/apache/catalina/Response;Lo>
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
rg/apache/catalina/ValveContext;)V+0 (AccessLogValve.java:469)
org/apache/catalina/core/StandardPipeline$StandardPipelineValvatalina/Request;Lorg/apache/catalina/Response;)> V+0
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
(StandardPipeline.java:480)
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catae/catalina/Request;Lorg/apache/catalina/Response>
lina/Request;Lorg/apache/catalina/Response;)V+0 (ContainerBase.java:995)
org/apache/catalina/core/StandardEngineValve.invoke(Lorg/apach
;Lorg/apache/catalina/ValveContext;)V+0 (StandardEngineValve.java:146)
org/apache/catalina/core/StandardPipeline$StandardPipelineValvatalina/Request;Lorg/apache/catalina/Response;)> V+0
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
(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)
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
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.