|
Patrick:
The exact same version you have - 4.1.12.
I also initially tried shared/lib, but it didn't work. I also needed to
end and restart Tomcat to get it to work.
One other thought - do you have cos.jar anywhere else, like in
/QIBM/UserData/Java400/ext or any of the other system class path
directories? That may interfere as well. I think it has something to do
with the cos.jar classes being available to the system class loader versus
the Tomcat custom class loader... If they're available to the system class
loader (that loads Tomcat when starting), you have problems when Tomcat
tries to load them with it's own custom class loader... I'm a bit fuzzy on
exactly how that all works, but maybe someone on the list has a better
understanding of it?
Good luck!
Johnny
|---------+--------------------------------->
| | Patrick L Archibald |
| | <Patrick.Archibald@HOM|
| | ETELCO.COM> |
| | Sent by: |
| | java400-l-bounces@midr|
| | ange.com |
| | |
| | |
| | 02/07/2003 09:09 AM |
| | Please respond to Java|
| | Programming on and |
| | around the iSeries / |
| | AS400 |
| | |
|---------+--------------------------------->
>-------------------------------------------------------------------------------------------------------------------------------|
| |
| To: Java Programming on and around the iSeries / AS400 <java400-l@midrange.com> |
| cc: |
| Subject: Re: File upload servlet won't run on AS/400 but runs OKonPCconfigured identically |
>-------------------------------------------------------------------------------------------------------------------------------|
I've tried putting cos.jar in common/lib with no luck and I've tried
/shared/lib and no luck.
You've got yours working now? If so what version of Tomcat?
Thanx, PLA
johnny@dancik.com wrote:
Patrick:why
I had the exact same experience... I never discovered (or understood?)
it was happening, but I was able to fix it by putting the cos.jar-------------------------------------------------------------------------------------------------------------------------------|
(com.oreilly.servlets classes) in the /jakarta-tomcat-4.1.12/common/lib
directory. My gut feel is it has something to do with the tomcat class
loader, but I don't know enough about that to really know what was
happenning.
Good luck!
Johnny
|---------+--------------------------------->
| | Patrick L Archibald |
| | <Patrick.Archibald@HOM|
| | ETELCO.COM> |
| | Sent by: |
| | java400-l-bounces@midr|
| | ange.com |
| | |
| | |
| | 02/06/2003 01:09 PM |
| | Please respond to Java|
| | Programming on and |
| | around the iSeries / |
| | AS400 |
| | |
|---------+--------------------------------->
>
||
| To: java400-l@midrange.com|
| cc:|
| Subject: File upload servlet won't run on AS/400 but runs OK onPCconfigured identically |
>-------------------------------------------------------------------------------------------------------------------------------|
had
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
one beat me like this one. The error says "NoClassDefFoundError:javax/servlet/ServletException.(Ljava/lang/String;Ljava/lang/Throwable;)V+0
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)
(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)com/oreilly/servlet/multipart/MultipartParser.(Ljavax/servlet/http/HttpServletRequest;IZZ)V+23
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)
(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)mailing list
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
_______________________________________________
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.
_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
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.
_______________________________________________
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.
_______________________________________________
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.