Re: File upload servlet won't run on IBM AS/400 but runs OK on PC configured identically
I've tried JVM 1.2 and 1.3. The public (meaning valid users) have all authority to the /tmp directory. This direcoty is Coded character set ID . . . . . . . . : 37. I tried another directory /public/platemp which is Coded character set ID . . . . . . . . : 437. I don't know why the L prefix is in the stack trace. It has always been that way as far as I can remember. I added a sendMessage method using the jt400 message queue function. I'm getting messages now. The System.out.println and System.err.println were never being written. By using the sendMessage method I've found the statement it is blowing up on: MultipartRequest multi = new MultipartRequest(request, /tmp, 5000 * 1024, defaultFileRenamePolicy); Any more suggestions? Is there something wrong with my statement above? BTW, the upload.war application that comes with the com.oreilly.servlet packages blows up too. Thanx, PLA Sean Dockery wrote: I doubt the JVM is the problem. What version are you using, by the way? (java -version) There is probably still something we're missing in your root cause... What is with the L prefix on some of the class names in the root cause message? Ljava/lang/String? Those aren't actually in your code? Are they? The L and IL a probably an artifact of the java compiler, but maybe do a search for Ljava in your source code--just to be sure... There is also mention of a FileRenamePolicy. Do you have write permissions to the area at which the uploaded file is to be copied? AS/400s use EBCDIC (crazy IBM sticking to their own inventions) instead of ASCII. Could that be a problem? At 21:50 2003-02-06 -0500, you wrote: No difference in common. I've installed 4.1.18 and still getting the same error. Could the AS/400 JVM be suspect? Thanx, PLA 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:293) FileUploadDownloadServlet3.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0 (FileUploadDownloadServlet3.java:57) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sean Dockery [EMAIL PROTECTED] Certified Java Web Component Developer Certified Delphi Programmer SBD Consultants http://www.sbdconsultants.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File upload servlet won't run on IBM AS/400 but runs OK on PC configured identically
I don't know will it help or not, but you could try this parser: http://www.jyaga.com/ I use it, it never fails yet))) Jenya --- Patrick L Archibald [EMAIL PROTECTED] wrote: Hi I'm stumped on this problem. 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 IBM 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:2395) 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/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)
Re: File upload servlet won't run on IBM AS/400 but runs OK on PC configured identically
Hmmm... I'm not sure that catalina can write to /tmp just because your users can. Try running this code before calling MultipartRequest multi = ... FileWriter fw = new FileWriter(/tmp/hello.txt); // (line 1) fw.write(Hello World\n); fw.close(); When you start Tomcat, what value does it say it is using for $CATALINA_TEMP? Try using that directory (instead of /tmp) for your file upload. Also, defaultFileRenamePolicy was initialized to be new DefaultFileRenamePolicy(), right? -- Sean Dockery [EMAIL PROTECTED] Certified Java Web Component Developer Certified Delphi Programmer SBD Consultants http://www.sbdconsultants.com Patrick L Archibald [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've tried JVM 1.2 and 1.3. The public (meaning valid users) have all authority to the /tmp directory. This direcoty is Coded character set ID . . . . . . . . : 37. I tried another directory /public/platemp which is Coded character set ID . . . . . . . . : 437. I don't know why the L prefix is in the stack trace. It has always been that way as far as I can remember. I added a sendMessage method using the jt400 message queue function. I'm getting messages now. The System.out.println and System.err.println were never being written. By using the sendMessage method I've found the statement it is blowing up on: MultipartRequest multi = new MultipartRequest(request, /tmp, 5000 * 1024, defaultFileRenamePolicy); Any more suggestions? Is there something wrong with my statement above? BTW, the upload.war application that comes with the com.oreilly.servlet packages blows up too. Thanx, PLA Sean Dockery wrote: I doubt the JVM is the problem. What version are you using, by the way? (java -version) There is probably still something we're missing in your root cause... What is with the L prefix on some of the class names in the root cause message? Ljava/lang/String? Those aren't actually in your code? Are they? The L and IL a probably an artifact of the java compiler, but maybe do a search for Ljava in your source code--just to be sure... There is also mention of a FileRenamePolicy. Do you have write permissions to the area at which the uploaded file is to be copied? AS/400s use EBCDIC (crazy IBM sticking to their own inventions) instead of ASCII. Could that be a problem? At 21:50 2003-02-06 -0500, you wrote: No difference in common. I've installed 4.1.18 and still getting the same error. Could the AS/400 JVM be suspect? Thanx, PLA 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/HttpServl etRequest;IZZ)V+23 (MultipartParser.java:114) com/oreilly/servlet/multipart/MultipartParser.(Ljavax/servlet/http/HttpServl etRequest;I)V+1 (MultipartParser.java:94) com/oreilly/servlet/MultipartRequest.(Ljavax/servlet/http/HttpServletRequest ;Ljava/lang/String;ILjava/lang/String;Lcom/oreilly/servlet/multipart/FileRen amePolicy;)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/HttpServletRequ est;Ljavax/servlet/http/HttpServletResponse;)V+0 (FileUploadDownloadServlet3.java:293) FileUploadDownloadServlet3.doPost(Ljavax/servlet/http/HttpServletReque st;Ljavax/servlet/http/HttpServletResponse;)V+0 (FileUploadDownloadServlet3.java:57) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sean Dockery [EMAIL PROTECTED] Certified Java Web Component Developer Certified Delphi Programmer SBD Consultants http://www.sbdconsultants.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File upload servlet won't run on IBM AS/400 but runs OK on PC configured identically
I would suspect that it can find com/oreilly/servlet/multipart/MultipartParser. Make sure that the O'Reilly JAR in your common/lib folder or /myapp/WEB-INF/lib folder. At 20:40 2003-02-06 -0500, you wrote: Hi I'm stumped on this problem. 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 IBM 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:2395) 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/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)
RE: File upload servlet won't run on IBM AS/400 but runs OK on PC configured identically
not really, if you look at the stack trace, it shows that it is inside the MultipartParser class by line number but out of curiousity, where do you place your Oreilly jar? 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) Filip -Original Message- From: Sean Dockery [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 5:51 PM To: Tomcat Users List Subject: Re: File upload servlet won't run on IBM AS/400 but runs OK on PC configured identically I would suspect that it can find com/oreilly/servlet/multipart/MultipartParser. Make sure that the O'Reilly JAR in your common/lib folder or /myapp/WEB-INF/lib folder. At 20:40 2003-02-06 -0500, you wrote: Hi I'm stumped on this problem. 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 IBM 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:2395) 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)
RE: File upload servlet won't run on IBM AS/400 but runs OK on PC configured identically
and what happens if you put it in TOMCAT_HOME/common/lib also, did you intentionally lowercase the path you sent us, WEB-INF is uppercase. Filip -Original Message- From: Patrick L Archibald [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 5:55 PM To: Tomcat Users List Subject: Re: File upload servlet won't run on IBM AS/400 but runs OK on PC configured identically If I were missing the classes for the cos.jar I would get java.lang.NoClassDefFoundError: com/oreilly/servlet/multipart/FileRenamePolicy not java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest, right? I've got cos.jar in /jakarta-tomcat-4.1.12/webapps/root/web-inf/lib Thanx for any and all suggestions, PLA Sean Dockery wrote: I would suspect that it can find com/oreilly/servlet/multipart/MultipartParser. Make sure that the O'Reilly JAR in your common/lib folder or /myapp/WEB-INF/lib folder. At 20:40 2003-02-06 -0500, you wrote: Hi I'm stumped on this problem. 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 IBM 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:2395) 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/core/StandardPipeline.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;)V+0 (StandardPipeline.java:480)
Re: File upload servlet won't run on IBM AS/400 but runs OK on PC configured identically
This may be a silly question, but where is your servlets.jar located? At 21:50 2003-02-06 -0500, you wrote: No difference in common. I've installed 4.1.18 and still getting the same error. Could the AS/400 JVM be suspect? Thanx, PLA Patrick L Archibald wrote: I haven't tried putting it in common but I did try putting it in /jakarta-tomcat-4.1.12/shared/lib and it gave me the same error. I will try common and let ya know shortly. Here is the case-sensitive path that it is in now: /jakarta-tomcat-4.1.12/webapps/ROOT/WEB-INF/lib Thanx, PLA Filip Hanik wrote: and what happens if you put it in TOMCAT_HOME/common/lib also, did you intentionally lowercase the path you sent us, WEB-INF is uppercase. Filip -Original Message- From: Patrick L Archibald [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 5:55 PM To: Tomcat Users List Subject: Re: File upload servlet won't run on IBM AS/400 but runs OK on PC configured identically If I were missing the classes for the cos.jar I would get java.lang.NoClassDefFoundError: com/oreilly/servlet/multipart/FileRenamePolicy not java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest, right? I've got cos.jar in /jakarta-tomcat-4.1.12/webapps/root/web-inf/lib Thanx for any and all suggestions, PLA Sean Dockery wrote: I would suspect that it can find com/oreilly/servlet/multipart/MultipartParser. Make sure that the O'Reilly JAR in your common/lib folder or /myapp/WEB-INF/lib folder. At 20:40 2003-02-06 -0500, you wrote: Hi I'm stumped on this problem. 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 IBM 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:2395) 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)
Re: File upload servlet won't run on IBM AS/400 but runs OK on PC configured identically
/jakarta-tomcat-4.1.12/common/lib/servlet.jar Thanx, PLA Sean Dockery wrote: This may be a silly question, but where is your servlets.jar located? At 21:50 2003-02-06 -0500, you wrote: No difference in common. I've installed 4.1.18 and still getting the same error. Could the AS/400 JVM be suspect? Thanx, PLA Patrick L Archibald wrote: I haven't tried putting it in common but I did try putting it in /jakarta-tomcat-4.1.12/shared/lib and it gave me the same error. I will try common and let ya know shortly. Here is the case-sensitive path that it is in now: /jakarta-tomcat-4.1.12/webapps/ROOT/WEB-INF/lib Thanx, PLA Filip Hanik wrote: and what happens if you put it in TOMCAT_HOME/common/lib also, did you intentionally lowercase the path you sent us, WEB-INF is uppercase. Filip -Original Message- From: Patrick L Archibald [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 5:55 PM To: Tomcat Users List Subject: Re: File upload servlet won't run on IBM AS/400 but runs OK on PC configured identically If I were missing the classes for the cos.jar I would get java.lang.NoClassDefFoundError: com/oreilly/servlet/multipart/FileRenamePolicy not java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest, right? I've got cos.jar in /jakarta-tomcat-4.1.12/webapps/root/web-inf/lib Thanx for any and all suggestions, PLA Sean Dockery wrote: I would suspect that it can find com/oreilly/servlet/multipart/MultipartParser. Make sure that the O'Reilly JAR in your common/lib folder or /myapp/WEB-INF/lib folder. At 20:40 2003-02-06 -0500, you wrote: Hi I'm stumped on this problem. 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 IBM 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:2395) 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)
Re: File upload servlet won't run on IBM AS/400 but runs OK on PC configured identically
I doubt the JVM is the problem. What version are you using, by the way? (java -version) There is probably still something we're missing in your root cause... What is with the L prefix on some of the class names in the root cause message? Ljava/lang/String? Those aren't actually in your code? Are they? The L and IL a probably an artifact of the java compiler, but maybe do a search for Ljava in your source code--just to be sure... There is also mention of a FileRenamePolicy. Do you have write permissions to the area at which the uploaded file is to be copied? AS/400s use EBCDIC (crazy IBM sticking to their own inventions) instead of ASCII. Could that be a problem? At 21:50 2003-02-06 -0500, you wrote: No difference in common. I've installed 4.1.18 and still getting the same error. Could the AS/400 JVM be suspect? Thanx, PLA 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:293) FileUploadDownloadServlet3.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+0 (FileUploadDownloadServlet3.java:57) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sean Dockery [EMAIL PROTECTED] Certified Java Web Component Developer Certified Delphi Programmer SBD Consultants http://www.sbdconsultants.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File upload servlet won't run on IBM AS/400 but runs OK on PC configured identically
What is the path separator character on the AS400? Is it the same character EBCDIC as ASCII? At 22:43 2003-02-06 -0500, you wrote: I'll try this tomorrow. Thanx, PLA Tim Funk wrote: Just for giggles ... Alter catalina.sh to export CLASSPATH and don't pass CLASSPATH to the java executable. The AS400 JVM is really freakin weird when we once tried passing classpath via command line then got a different behavior setting classpath via an environment variable. If that doesn't work - I'm all out of ideas. You may want to also examine some properties file that the AS400 has that sets system properties (like java.class.path) - I forget the filename but it is an IBM or AS400 specific thing I never heard of before. There is probably(?) a copy in your home directory. -Tim Patrick L Archibald wrote: No difference in common. I've installed 4.1.18 and still getting the same error. Could the AS/400 JVM be suspect? Thanx, PLA Patrick L Archibald wrote: I haven't tried putting it in common but I did try putting it in /jakarta-tomcat-4.1.12/shared/lib and it gave me the same error. I will try common and let ya know shortly. Here is the case-sensitive path that it is in now: /jakarta-tomcat-4.1.12/webapps/ROOT/WEB-INF/lib Thanx, PLA Filip Hanik wrote: and what happens if you put it in TOMCAT_HOME/common/lib also, did you intentionally lowercase the path you sent us, WEB-INF is uppercase. Filip -Original Message- From: Patrick L Archibald [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 5:55 PM To: Tomcat Users List Subject: Re: File upload servlet won't run on IBM AS/400 but runs OK on PC configured identically If I were missing the classes for the cos.jar I would get java.lang.NoClassDefFoundError: com/oreilly/servlet/multipart/FileRenamePolicy not java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest, right? I've got cos.jar in /jakarta-tomcat-4.1.12/webapps/root/web-inf/lib Thanx for any and all suggestions, PLA Sean Dockery wrote: I would suspect that it can find com/oreilly/servlet/multipart/MultipartParser. Make sure that the O'Reilly JAR in your common/lib folder or /myapp/WEB-INF/lib folder. At 20:40 2003-02-06 -0500, you wrote: Hi I'm stumped on this problem. 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 IBM 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:2395)