× 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.



   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/Throwable;)V+0 
(ServletException.java:132)
       
org/apache/catalina/core/ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+0
 (ApplicationFilterChain.java:201)
       
org/apache/catalina/core/ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+0
 (ApplicationFilterChain.java:168)
       
org/apache/catalina/core/StandardWrapperValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;Lorg/apache/catalina/ValveContext;)V+0
 (StandardWrapperValve.java:174)
       
org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:636)
       
org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:480)
       
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (ContainerBase.java:995)
       
org/apache/catalina/core/StandardContextValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;Lorg/apache/catalina/ValveContext;)V+0
 (StandardContextValve.java:153)
       
org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:636)
       
org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:480)
       
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (ContainerBase.java:995)
       
org/apache/catalina/core/StandardContext.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardContext.java:2376)
       
org/apache/catalina/core/StandardHostValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;Lorg/apache/catalina/ValveContext;)V+0
 (StandardHostValve.java:148)
       
org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:636)
       
org/apache/catalina/valves/ErrorDispatcherValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;Lorg/apache/catalina/ValveContext;)V+0
 (ErrorDispatcherValve.java:170)
       
org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/catalina/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$StandardPipelineValveContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:636)
       
org/apache/catalina/valves/AccessLogValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;Lorg/apache/catalina/ValveContext;)V+0
 (AccessLogValve.java:469)
       
org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:636)
       
org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:480)
       
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (ContainerBase.java:995)
       
org/apache/catalina/core/StandardEngineValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;Lorg/apache/catalina/ValveContext;)V+0
 (StandardEngineValve.java:146)
       
org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:636)
       
org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:480)
       
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (ContainerBase.java:995)
       
org/apache/coyote/tomcat4/CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+0
 (CoyoteAdapter.java:197)
       
org/apache/jk/server/JkCoyoteHandler.invoke(Lorg/apache/jk/core/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/apache/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/HttpServletRequest;Ljava/lang/String;ILjava/lang/String;Lcom/oreilly/servlet/multipart/FileRenamePolicy;)V+148
 (MultipartRequest.java:219)
       
com/oreilly/servlet/MultipartRequest.(Ljavax/servlet/http/HttpServletRequest;Ljava/lang/String;ILcom/oreilly/servlet/multipart/FileRenamePolicy;)V+1
 (MultipartRequest.java:148)
       
FileUploadDownloadServlet3.performUpload(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0
 (FileUploadDownloadServlet3.java:295)
       
FileUploadDownloadServlet3.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0
 (FileUploadDownloadServlet3.java:57)
       
FileUploadDownloadServlet3.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0
 (FileUploadDownloadServlet3.java:51)
       
javax/servlet/http/HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0
 (HttpServlet.java:733)
       
javax/servlet/http/HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+0
 (HttpServlet.java:848)
       
org/apache/catalina/core/ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+0
 (ApplicationFilterChain.java:201)
       
org/apache/catalina/core/ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+0
 (ApplicationFilterChain.java:168)
       
org/apache/catalina/core/StandardWrapperValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;Lorg/apache/catalina/ValveContext;)V+0
 (StandardWrapperValve.java:174)
       
org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:636)
       
org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:480)
       
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (ContainerBase.java:995)
       
org/apache/catalina/core/StandardContextValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;Lorg/apache/catalina/ValveContext;)V+0
 (StandardContextValve.java:153)
       
org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:636)
       
org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:480)
       
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (ContainerBase.java:995)
       
org/apache/catalina/core/StandardContext.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardContext.java:2376)
       
org/apache/catalina/core/StandardHostValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;Lorg/apache/catalina/ValveContext;)V+0
 (StandardHostValve.java:148)
       
org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:636)
       
org/apache/catalina/valves/ErrorDispatcherValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;Lorg/apache/catalina/ValveContext;)V+0
 (ErrorDispatcherValve.java:170)
       
org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/catalina/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$StandardPipelineValveContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:636)
       
org/apache/catalina/valves/AccessLogValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;Lorg/apache/catalina/ValveContext;)V+0
 (AccessLogValve.java:469)
       
org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:636)
       
org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:480)
       
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (ContainerBase.java:995)
       
org/apache/catalina/core/StandardEngineValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;Lorg/apache/catalina/ValveContext;)V+0
 (StandardEngineValve.java:146)
       
org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:636)
       
org/apache/catalina/core/StandardPipeline.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (StandardPipeline.java:480)
       
org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0
 (ContainerBase.java:995)
       
org/apache/coyote/tomcat4/CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+0
 (CoyoteAdapter.java:197)
       
org/apache/jk/server/JkCoyoteHandler.invoke(Lorg/apache/jk/core/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/apache/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)

 Apache Tomcat/4.1.12

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.