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) org/apache/catalina/core/ContainerBase.invoke(Lorg/apache/catalina/Request;Lorg/apache
Re: File upload servlet won't run on IBM AS/400 but runs OK on PCconfigured identically
I'm going to try to get to the bottom of this for a little while longer. I checked out the link you provided. It looks simple enough. I may end up trying it. Thanx, PLA Evgeniy Strokin wrote: 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
Re: File upload servlet won't run on IBM AS/400 but runs OK onPC configured identically
I have gotten weird errors when more than one classloader loads a class. With that in mind, is the servlet.jar in more than one place? Check in $CLASSPATH, $CATALINA_HOME/common/lib, $CATALINA_HOME/server/lib, $CATALINA_HOME/shared/lib, your applications WEB-INF/lib, and the $JRE/lib/ext directory. You might also check the location of the jar containing the com/oreilly/servlet/MultipartRequest class. I would try to put it in common/lib (the only place that servlet.jar should be) to make sure they are loaded by the same classloader. Larry [EMAIL PROTECTED] 02/06/03 18:41 PM 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
Re: File upload servlet won't run on IBM AS/400 but runs OK on PCconfigured identically
I have servlet.jar in other directories but there is only one within the /jakarta-tomcat-4.1.12 directory. I've tried putting cos.jar in common/lib and shared/lib. No difference. Thanx, PLA Larry Meadors wrote: I have gotten weird errors when more than one classloader loads a class. With that in mind, is the servlet.jar in more than one place? Check in $CLASSPATH, $CATALINA_HOME/common/lib, $CATALINA_HOME/server/lib, $CATALINA_HOME/shared/lib, your applications WEB-INF/lib, and the $JRE/lib/ext directory. You might also check the location of the jar containing the com/oreilly/servlet/MultipartRequest class. I would try to put it in common/lib (the only place that servlet.jar should be) to make sure they are loaded by the same classloader. Larry [EMAIL PROTECTED] 02/06/03 18:41 PM 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
Re: File upload servlet won't run on IBM AS/400 but runs OK on PCconfigured identically - resolved
I had a duplicate copy of cos.jar in the /QIBM/UserData/Java400/ext directory. I deleted it and it works now. A big thank-you to everyone who responded! PLA Patrick L Archibald wrote: I have servlet.jar in other directories but there is only one within the /jakarta-tomcat-4.1.12 directory. I've tried putting cos.jar in common/lib and shared/lib. No difference. Thanx, PLA Larry Meadors wrote: I have gotten weird errors when more than one classloader loads a class. With that in mind, is the servlet.jar in more than one place? Check in $CLASSPATH, $CATALINA_HOME/common/lib, $CATALINA_HOME/server/lib, $CATALINA_HOME/shared/lib, your applications WEB-INF/lib, and the $JRE/lib/ext directory. You might also check the location of the jar containing the com/oreilly/servlet/MultipartRequest class. I would try to put it in common/lib (the only place that servlet.jar should be) to make sure they are loaded by the same classloader. Larry [EMAIL PROTECTED] 02/06/03 18:41 PM 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
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]
File upload servlet won't run on IBM AS/400 but runs OK on PC configuredidentically
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) org/apache/coyote/tomcat4/CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+0 (CoyoteAdapter.java:197) org/apache/coyote/http11/Http11Processor.process(Ljava/io/InputStream;Ljava/io/OutputStream;)V+0 (Http11Processor.java:386) org/apache/coyote/http11
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) org/apache/coyote/tomcat4/CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response
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) org/apache/catalina
Re: File upload servlet won't run on IBM AS/400 but runs OK on PCconfigured 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) 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
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) org/apache/catalina/core
Re: File upload servlet won't run on IBM AS/400 but runs OK on PCconfigured identically
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) 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
Re: File upload servlet won't run on IBM AS/400 but runs OK on PCconfigured identically
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) org/apache/catalina/valves/ErrorReportValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;Lorg/apache/catalina/ValveContext;)V+0
Re: File upload servlet won't run on IBM AS/400 but runs OK on PCconfigured identically
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) 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
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) org/apache/catalina/valves
Re: File upload servlet won't run on IBM AS/400 but runs OK on PCconfigured identically
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) org/apache/catalina/core/StandardHostValve.invoke(Lorg/apache/catalina/Request;Lorg/apache/catalina/Response;Lorg/apache/catalina/ValveContext;)V+0 (StandardHostValve.java:148
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) org/apache/catalina/core/StandardPipeline$StandardPipelineValveContext.invokeNext(Lorg/apache/catalina/Request;Lorg/apache/catalina
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) org/apache/catalina/core/StandardHostValve.invoke
An opensource (apache style license) file upload servlet
I've been searching the net, high and low, for implementations of RFC 1867, Form-based File Upload in HTML in a Java Servlet. Specifically a servlet that will run in tomcat 3.2.x. The common answer seems to be the O'Reilly classes talked about in Jason Hunter's Java Servlet Programming book. However, the license for all of the com.oreilly.servlet.* code available from www.servlets.com, (http://www.servlets.com/cos/license.html) that every person on the development team for that project owns a copy of the book for commercial use. My company can not meet that guarantee. So, as far as that goes, I guess the O'Reilly classes are not an option. Is there another option that is more Open Source, apache license style, for doing http file uploads, in Servlets? I can implement my own from the spec, but I sure hate to reinvent the wheel. Especially so much of that Mime stuff. I look forward to any answers this tomcat-user list can provide. Cris J H ps. In case I haven't been clear. It must be *FREE*, with *SOURCE*, for *COMMERCIAL* use. If we have to pay for it, I already have those answers.
RE: An opensource (apache style license) file upload servlet
oreilly sucks the kumara anyway because you end up with a file?? the deal is that you (really) have (really) a mulitpart mime encoded request possibly containing binary content. so if you are.. and i am.. requiring anything useful like a binaryinputstream to the content.. your out of luck because oriely actually writes a file to your webserver ( how completley rude!!! ) i've seen people use perl regex to get the content but in the end i wrote a state machine to pass the mime request.. the trick is anticipating the end of line characters and the contents terminating boundary.. also a browser sometimes makes up its own little cavets like oh i'm ie running on an apple system.. so i'll only send 1 \n instead of the standard two after the boundary, wierd and annoying.. regex seems nice because it (can) kinda tokenize it [request] all for you too.. sorry about bashing orielly but if your storing the content into zip files as blobs in the database then orielly is not for you.. but i'm sure its pretty good at something =) regards, warren. -Original Message- From: Cris J. Holdorph [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 13 June 2001 1:11 PM To: [EMAIL PROTECTED] Subject: An opensource (apache style license) file upload servlet I've been searching the net, high and low, for implementations of RFC 1867, Form-based File Upload in HTML in a Java Servlet. Specifically a servlet that will run in tomcat 3.2.x. The common answer seems to be the O'Reilly classes talked about in Jason Hunter's Java Servlet Programming book. However, the license for all of the com.oreilly.servlet.* code available from www.servlets.com, (http://www.servlets.com/cos/license.html) that every person on the development team for that project owns a copy of the book for commercial use. My company can not meet that guarantee. So, as far as that goes, I guess the O'Reilly classes are not an option. Is there another option that is more Open Source, apache license style, for doing http file uploads, in Servlets? I can implement my own from the spec, but I sure hate to reinvent the wheel. Especially so much of that Mime stuff. I look forward to any answers this tomcat-user list can provide. Cris J H ps. In case I haven't been clear. It must be *FREE*, with *SOURCE*, for *COMMERCIAL* use. If we have to pay for it, I already have those answers.
Re: An opensource (apache style license) file upload servlet
Take a look at Turbine's MultipartStream class. (I think you'll find it orbiting FileUploadService or something... I have used it a bit in my own servlets (outside of Turbine) and for simple things like single file uploads, it works just great. geir Cris J. Holdorph wrote: I've been searching the net, high and low, for implementations of RFC 1867, Form-based File Upload in HTML in a Java Servlet. Specifically a servlet that will run in tomcat 3.2.x. The common answer seems to be the O'Reilly classes talked about in Jason Hunter's Java Servlet Programming book. However, the license for all of the com.oreilly.servlet.* code available from www.servlets.com, (http://www.servlets.com/cos/license.html) that every person on the development team for that project owns a copy of the book for commercial use. My company can not meet that guarantee. So, as far as that goes, I guess the O'Reilly classes are not an option. Is there another option that is more Open Source, apache license style, for doing http file uploads, in Servlets? I can implement my own from the spec, but I sure hate to reinvent the wheel. Especially so much of that Mime stuff. I look forward to any answers this tomcat-user list can provide. Cris J H ps. In case I haven't been clear. It must be *FREE*, with *SOURCE*, for *COMMERCIAL* use. If we have to pay for it, I already have those answers. -- Geir Magnusson Jr. [EMAIL PROTECTED] System and Software Consulting Developing for the web? See http://jakarta.apache.org/velocity/ You have a genius for suggesting things I've come a cropper with!
Re: An opensource (apache style license) file upload servlet
Do what the best do. Buy one book and have that developer's project be to create some nice wrapper classes around the Hunter classes. I'd recommend that approach anyway since it's unlikely that Hunter's generic classes will otherwise be that easy for other to use in whatever application framework you work in. David - Original Message - From: Cris J. Holdorph [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 8:11 PM Subject: An opensource (apache style license) file upload servlet I've been searching the net, high and low, for implementations of RFC 1867, Form-based File Upload in HTML in a Java Servlet. Specifically a servlet that will run in tomcat 3.2.x. The common answer seems to be the O'Reilly classes talked about in Jason Hunter's Java Servlet Programming book. However, the license for all of the com.oreilly.servlet.* code available from www.servlets.com, (http://www.servlets.com/cos/license.html) that every person on the development team for that project owns a copy of the book for commercial use. My company can not meet that guarantee. So, as far as that goes, I guess the O'Reilly classes are not an option. Is there another option that is more Open Source, apache license style, for doing http file uploads, in Servlets? I can implement my own from the spec, but I sure hate to reinvent the wheel. Especially so much of that Mime stuff. I look forward to any answers this tomcat-user list can provide. Cris J H ps. In case I haven't been clear. It must be *FREE*, with *SOURCE*, for *COMMERCIAL* use. If we have to pay for it, I already have those answers.
Re: An opensource (apache style license) file upload servlet
oreilly sucks the kumara anyway because you end up with a file?? That's not true anymore. Hunter has a nice memory-oriented set of classes that the original class that wrote to a file now uses. David
Re: file upload servlet
On Sun, Apr 22, 2001 at 12:40:54PM -0700, Anne Dirkse wrote: Christoph -- You do need the trailing = after % Here's why: What you are trying to send from your HTML form is something like this: form enctype=multipart/form-data action=/servlets/servlet/Upload method=post input type=file name=FileData value= size=52 maxlength=255 input type=submit value=Abschicken /form The %= % is a jsp Expression, which means that the value of whatever is in it will be converted to a String and then printed out. Since this is done before the HTML is processed, what you get is something like in the above example. Thinking about it the question came up in me: Shouldn't tomcat process the HTML and the jsp expression? With my configuration (apache+ tomcat), could it be that the apache server handles the HTML and cannot cope with the jsp? And, if the latter is the case, how can I overcome the situation? As you have it below, with % %, you are not ever actually including the value of your encoded URL into your form. It's just a scriptlet, which will actually encode your URL, but to no avail, since it has no explicit String conversion or printout capabilities and thus won't be a part of your form. all the %= response.encodeURL(/path/to/Servlet) % is doing is rewriting your URL to include session data if cookies are not enabled. For a first shot at it, you might want to consider just building a set of tags like I included above and making sure that works (make sure you have cookies enabled, though!) After you have that working, it might be a lot easier to get your session encoding working, conceptually. What the leftover method=post signals to me is that somewhere you are closing the form tag before this part of it, i.e., that the browser encounters a before it encounters method=post and thus assumes that the form tag has been completed and that method=post is regular text to be printed to the browser window. Hope that helps, Anne -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
AW: file upload servlet
Look at the source code in the browser. If you still see something like %= response ... % in it you guess is right, otherwise not. -Ursprüngliche Nachricht- Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 23. April 2001 09:05 An: [EMAIL PROTECTED] Betreff: Re: file upload servlet Thinking about it the question came up in me: Shouldn't tomcat process the HTML and the jsp expression? With my configuration (apache+ tomcat), could it be that the apache server handles the HTML and cannot cope with the jsp? And, if the latter is the case, how can I overcome the situation?
Re: file upload servlet
On Mon, Apr 23, 2001 at 10:11:08AM +0200, Ralph Einfeldt wrote: Look at the source code in the browser. If you still see something like %= response ... % in it you guess is right, otherwise not. Yes, viewing the page source reveals: html form enctype=multipart/form-data action=%= response.encodeUrl(/servlets/servlet/Upload) % method=post input type=file name=FileData value= size=52 maxlength=255 input type=submit value=Abschicken /form /html Now I need to know how to start tomcat as a sole webserver for everything, html, jsp etc. -Ursprüngliche Nachricht- Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 23. April 2001 09:05 An: [EMAIL PROTECTED] Betreff: Re: file upload servlet Thinking about it the question came up in me: Shouldn't tomcat process the HTML and the jsp expression? With my configuration (apache+ tomcat), could it be that the apache server handles the HTML and cannot cope with the jsp? And, if the latter is the case, how can I overcome the situation? -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
Re: file upload servlet
On Sun, Apr 22, 2001 at 12:40:54PM -0700, Anne Dirkse wrote: Christoph -- You do need the trailing = after % Here's why: What you are trying to send from your HTML form is something like this: form enctype=multipart/form-data action=/servlets/servlet/Upload method=post input type=file name=FileData value= size=52 maxlength=255 input type=submit value=Abschicken /form I got your example (with the change to the direct servlet path rather than the jsp expression) working now. Running tomcat as a stanalone http/jsp server. I had to change doGet to doPost btw. in my servlet. all the %= response.encodeURL(/path/to/Servlet) % is doing is rewriting your URL to include session data if cookies are not enabled. -- --Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
AW: file upload servlet
I had a little typo in my mail, the enclosing quotation marks where missing for the attribute action. That's the corrected version: html form enctype=multipart/form-data action=%= response.encodeUrl(/servlets/servlet/Upload) % method=post input type=file name=FileData value= size=52 maxlength=255 input type=submit value=Abschicken /form /html -Ursprüngliche Nachricht- Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Gesendet: Sonntag, 22. April 2001 20:36 An: [EMAIL PROTECTED] Betreff: Re: file upload servlet html form enctype=multipart/form-data action=% response.encodeUrl(/servlets/servlet/Upload) % method=post input type=file name=FileData value= size=52 maxlength=255 input type=submit value=Abschicken /form /html
Re: file upload servlet
On Mon, Apr 23, 2001 at 07:56:40AM +0200, Ralph Einfeldt wrote: I had a little typo in my mail, the enclosing quotation marks where missing for the attribute action. That's the corrected version: html form enctype=multipart/form-data action=%= response.encodeUrl(/servlets/servlet/Upload) % method=post input type=file name=FileData value= size=52 maxlength=255 input type=submit value=Abschicken /form /html Hhmm. I took your corrected version and I can swear by the life of my Grandma (God bless her) that I'm running tomcat as a standalone http server and this is the 'view page source' : html form enctype=multipart/form-data action=%= response.encodeUrl(/servlets/servlet/Upload) % method=post input type=file name=FileData value= size=52 maxlength=255 input type=submit value=Abschicken /form /html and I still get method=post (one more quote, though). As said in another message of today (to Anne..), inserting the Servletpath directly, works. But that would have worked with tomcat+apache configuration anyway. -Ursprüngliche Nachricht- Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Gesendet: Sonntag, 22. April 2001 20:36 An: [EMAIL PROTECTED] Betreff: Re: file upload servlet html form enctype=multipart/form-data action=% response.encodeUrl(/servlets/servlet/Upload) % method=post input type=file name=FileData value= size=52 maxlength=255 input type=submit value=Abschicken /form /html -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
AW: file upload servlet
Obviously your file is not processed by the JSP engine of tomcat. Sorry to ask that, what's the name of the file that contains your code ? As I'm not using tomcat I can't tell you which screws have to be driven to enable or disable jsp parsing on files with a given extension. -Ursprüngliche Nachricht- Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 23. April 2001 15:19 An: [EMAIL PROTECTED] Betreff: Re: file upload servlet On Mon, Apr 23, 2001 at 07:56:40AM +0200, Ralph Einfeldt wrote: I had a little typo in my mail, the enclosing quotation marks where missing for the attribute action. That's the corrected version: html form enctype=multipart/form-data action=%= response.encodeUrl(/servlets/servlet/Upload) % method=post input type=file name=FileData value= size=52 maxlength=255 input type=submit value=Abschicken /form /html Hhmm. I took your corrected version and I can swear by the life of my Grandma (God bless her) that I'm running tomcat as a standalone http server and this is the 'view page source' : html form enctype=multipart/form-data action=%= response.encodeUrl(/servlets/servlet/Upload) % method=post input type=file name=FileData value= size=52 maxlength=255 input type=submit value=Abschicken /form /html and I still get method=post (one more quote, though). As said in another message of today (to Anne..), inserting the Servletpath directly, works. But that would have worked with tomcat+apache configuration anyway. -Ursprüngliche Nachricht- Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Gesendet: Sonntag, 22. April 2001 20:36 An: [EMAIL PROTECTED] Betreff: Re: file upload servlet html form enctype=multipart/form-data action=% response.encodeUrl(/servlets/servlet/Upload) % method=post input type=file name=FileData value= size=52 maxlength=255 input type=submit value=Abschicken /form /html -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
Re: file upload servlet
On Mon, Apr 23, 2001 at 03:31:39PM +0200, Ralph Einfeldt wrote: Obviously your file is not processed by the JSP engine of tomcat. Sorry to ask that, what's the name of the file that contains your code ? upload.html Yikes! It should be upload.jsp, right? Oh oh. As I'm not using tomcat I can't tell you which screws have to be driven to enable or disable jsp parsing on files with a given extension. -Ursprüngliche Nachricht- Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 23. April 2001 15:19 An: [EMAIL PROTECTED] Betreff: Re: file upload servlet On Mon, Apr 23, 2001 at 07:56:40AM +0200, Ralph Einfeldt wrote: I had a little typo in my mail, the enclosing quotation marks where missing for the attribute action. That's the corrected version: html form enctype=multipart/form-data action=%= response.encodeUrl(/servlets/servlet/Upload) % method=post input type=file name=FileData value= size=52 maxlength=255 input type=submit value=Abschicken /form /html Hhmm. I took your corrected version and I can swear by the life of my Grandma (God bless her) that I'm running tomcat as a standalone http server and this is the 'view page source' : html form enctype=multipart/form-data action=%= response.encodeUrl(/servlets/servlet/Upload) % method=post input type=file name=FileData value= size=52 maxlength=255 input type=submit value=Abschicken /form /html and I still get method=post (one more quote, though). As said in another message of today (to Anne..), inserting the Servletpath directly, works. But that would have worked with tomcat+apache configuration anyway. -Ursprüngliche Nachricht- Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Gesendet: Sonntag, 22. April 2001 20:36 An: [EMAIL PROTECTED] Betreff: Re: file upload servlet html form enctype=multipart/form-data action=% response.encodeUrl(/servlets/servlet/Upload) % method=post input type=file name=FileData value= size=52 maxlength=255 input type=submit value=Abschicken /form /html -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED] -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
Re: file upload servlet
On Fri, Apr 20, 2001 at 06:58:26PM +0200, Ralph Einfeldt wrote: For a pure HTML solution you need two things: a form with at least one file input tag: form enctype="multipart/form-data" action=%= response.encodeUrl("'path-to-your-servlet'") % method="post" input type="file" name="FileData" value="" size="52" maxlength="255" /form This is looking very elegant to me. I tried it but I'm getting method="post" at the beginning of the page when it appears in the browser. Is there a typo (or some mail agent added something, like a '=' sign?) or am I missing something more severe? -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
Re: file upload servlet
My guess is that you have an extra somewhere (or that you missed the at action=%=) Anne Christoph Kukulies wrote: On Fri, Apr 20, 2001 at 06:58:26PM +0200, Ralph Einfeldt wrote: For a pure HTML solution you need two things: a form with at least one file input tag: form enctype="multipart/form-data" action=%= response.encodeUrl("'path-to-your-servlet'") % method="post" input type="file" name="FileData" value="" size="52" maxlength="255" /form This is looking very elegant to me. I tried it but I'm getting method="post" at the beginning of the page when it appears in the browser. Is there a typo (or some mail agent added something, like a '=' sign?) or am I missing something more severe? -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
Re: file upload servlet
On Sun, Apr 22, 2001 at 11:05:44AM -0700, Anne Dirkse wrote: My guess is that you have an extra somewhere (or that you missed the at action=%=) The trailing = looks like being added by the mailer. It seems to me that I'm missing something more essential. I'm running tomcat 3.2 beta. The (jsp) examples all seem to work. Even written like this: html form enctype="multipart/form-data" action=% response.encodeUrl("/servlets/servlet/Upload") % method="post" input type="file" name="FileData" value="" size="52" maxlength="255" input type="submit" value="Abschicken" /form /html doesn't change the picture. Anne Christoph Kukulies wrote: On Fri, Apr 20, 2001 at 06:58:26PM +0200, Ralph Einfeldt wrote: For a pure HTML solution you need two things: a form with at least one file input tag: form enctype="multipart/form-data" action=%= response.encodeUrl("'path-to-your-servlet'") % method="post" input type="file" name="FileData" value="" size="52" maxlength="255" /form This is looking very elegant to me. I tried it but I'm getting method="post" at the beginning of the page when it appears in the browser. Is there a typo (or some mail agent added something, like a '=' sign?) or am I missing something more severe? -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED] -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
Re: file upload servlet
i'm a little surprised to see the action of this form wrapped by response.encodeUrl() - is that in fact the ordinary way to do business? i'm aware of the reasons for doing this in ordinary hrefs, but i'd wondered if it would be necessary in a form action...? rhett On Sun, 22 Apr 2001, Christoph Kukulies wrote: On Sun, Apr 22, 2001 at 11:05:44AM -0700, Anne Dirkse wrote: My guess is that you have an extra somewhere (or that you missed the at action=%=) The trailing = looks like being added by the mailer. It seems to me that I'm missing something more essential. I'm running tomcat 3.2 beta. The (jsp) examples all seem to work. Even written like this: html form enctype="multipart/form-data" action=% response.encodeUrl("/servlets/servlet/Upload") % method="post" input type="file" name="FileData" value="" size="52" maxlength="255" input type="submit" value="Abschicken" /form /html doesn't change the picture. Anne Christoph Kukulies wrote: On Fri, Apr 20, 2001 at 06:58:26PM +0200, Ralph Einfeldt wrote: For a pure HTML solution you need two things: a form with at least one file input tag: form enctype="multipart/form-data" action=%= response.encodeUrl("'path-to-your-servlet'") % method="post" input type="file" name="FileData" value="" size="52" maxlength="255" /form This is looking very elegant to me. I tried it but I'm getting method="post" at the beginning of the page when it appears in the browser. Is there a typo (or some mail agent added something, like a '=' sign?) or am I missing something more severe? -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED] -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
Re: file upload servlet
Christoph -- You do need the trailing = after % Here's why: What you are trying to send from your HTML form is something like this: form enctype="multipart/form-data" action="/servlets/servlet/Upload" method="post" input type="file" name="FileData" value="" size="52" maxlength="255" input type="submit" value="Abschicken" /form The %= % is a jsp Expression, which means that the value of whatever is in it will be converted to a String and then printed out. Since this is done before the HTML is processed, what you get is something like in the above example. As you have it below, with % %, you are not ever actually including the value of your encoded URL into your form. It's just a scriptlet, which will actually encode your URL, but to no avail, since it has no explicit String conversion or printout capabilities and thus won't be a part of your form. all the %= response.encodeURL("/path/to/Servlet") % is doing is rewriting your URL to include session data if cookies are not enabled. For a first shot at it, you might want to consider just building a set of tags like I included above and making sure that works (make sure you have cookies enabled, though!) After you have that working, it might be a lot easier to get your session encoding working, conceptually. What the leftover method="post" signals to me is that somewhere you are closing the form tag before this part of it, i.e., that the browser encounters a before it encounters method="post" and thus assumes that the form tag has been completed and that method="post" is regular text to be printed to the browser window. Hope that helps, Anne Christoph Kukulies wrote: On Sun, Apr 22, 2001 at 11:05:44AM -0700, Anne Dirkse wrote: My guess is that you have an extra somewhere (or that you missed the at action=%=) The trailing = looks like being added by the mailer. It seems to me that I'm missing something more essential. I'm running tomcat 3.2 beta. The (jsp) examples all seem to work. Even written like this: html form enctype="multipart/form-data" action=% response.encodeUrl("/servlets/servlet/Upload") % method="post" input type="file" name="FileData" value="" size="52" maxlength="255" input type="submit" value="Abschicken" /form /html doesn't change the picture. Anne Christoph Kukulies wrote: On Fri, Apr 20, 2001 at 06:58:26PM +0200, Ralph Einfeldt wrote: For a pure HTML solution you need two things: a form with at least one file input tag: form enctype="multipart/form-data" action=%= response.encodeUrl("'path-to-your-servlet'") % method="post" input type="file" name="FileData" value="" size="52" maxlength="255" /form This is looking very elegant to me. I tried it but I'm getting method="post" at the beginning of the page when it appears in the browser. Is there a typo (or some mail agent added something, like a '=' sign?) or am I missing something more severe? -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED] -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
AW: file upload servlet
If you don't want to loose the session if the client disabled cookies you have to encode the url, otherwise the servlet that receives the post will see a new session. -Ursprüngliche Nachricht- Von: Rhett Savage [mailto:[EMAIL PROTECTED]] Gesendet: Sonntag, 22. April 2001 21:26 An: [EMAIL PROTECTED] Betreff: Re: file upload servlet i'm a little surprised to see the action of this form wrapped by response.encodeUrl() - is that in fact the ordinary way to do business? i'm aware of the reasons for doing this in ordinary hrefs, but i'd wondered if it would be necessary in a form action...? rhett On Sun, 22 Apr 2001, Christoph Kukulies wrote: On Sun, Apr 22, 2001 at 11:05:44AM -0700, Anne Dirkse wrote: My guess is that you have an extra somewhere (or that you missed the at action=%=) The trailing = looks like being added by the mailer. It seems to me that I'm missing something more essential. I'm running tomcat 3.2 beta. The (jsp) examples all seem to work. Even written like this: html form enctype=multipart/form-data action=% response.encodeUrl(/servlets/servlet/Upload) % method=post input type=file name=FileData value= size=52 maxlength=255 input type=submit value=Abschicken /form /html doesn't change the picture. Anne Christoph Kukulies wrote: On Fri, Apr 20, 2001 at 06:58:26PM +0200, Ralph Einfeldt wrote: For a pure HTML solution you need two things: a form with at least one file input tag: form enctype=multipart/form-data action=%= response.encodeUrl('path-to-your-servlet') % method=post input type=file name=FileData value= size=52 maxlength=255 /form This is looking very elegant to me. I tried it but I'm getting method=post at the beginning of the page when it appears in the browser. Is there a typo (or some mail agent added something, like a '=' sign?) or am I missing something more severe? -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED] -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
file upload servlet
Is there an example somewhere for a servlet that allows for uploading and processing a file. Scenario: client (browser side) has edited a file with some information or some kind of excel or Word document and need to get that processed. The idea is to simply drag and drop the document into the broswer window and upload it to the server fopr processing. If that's too complicated (e.g. requiring swing or something) it would be sufficient if the client could be advised to open some kind of file selector or browser to select the file to be uploaded and send it upstream. What requisites would be required for this? -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
RE: RE: file upload servlet
Hi Travis, I'm interest to know how to do it. Would you please post a sample? Thanks, Connie -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 11:47 AM To: [EMAIL PROTECTED] Subject: RE: RE: file upload servlet Use input type="file" for file uploads. Then to process them, you can use the oreilly servlets package at www.servlets.com. If you need a sample let me know. Travis Original Message From: Jim Alemany [EMAIL PROTECTED] Sent: 2001-04-20 09:31:55.0 To: [EMAIL PROTECTED] Subject: RE: file upload servlet jspsmart upload. Its a bean. works nicely. Found at www.jspsmart.com (its a free bean too). -Original Message- From: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 11:18 AM To: [EMAIL PROTECTED] Subject: file upload servlet Is there an example somewhere for a servlet that allows for uploading and processing a file. Scenario: client (browser side) has edited a file with some information or some kind of excel or Word document and need to get that processed. The idea is to simply drag and drop the document into the broswer window and upload it to the server fopr processing. If that's too complicated (e.g. requiring swing or something) it would be sufficient if the client could be advised to open some kind of file selector or browser to select the file to be uploaded and send it upstream. What requisites would be required for this? -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
RE: RE: RE: file upload servlet
Using the oreilly package, you would do the following on the form submit page: String filepath = "foodir"; com.oreilly.servlet.MultipartRequest multi = new com.oreilly.servlet.MultipartRequest(request, filepath, 500); Enumeration files = multi.getFileNames(); while (files.hasMoreElements()) { String name = (String)files.nextElement(); String filename = multi.getFilesystemName(name); if(filename != null){ String content_type = multi.getContentType(name); File f = multi.getFile(name); // now you have the actual file, so you can get some some more info out of that // and put in a database or something to keep track of it. } Simple as that. the files will be saved to filepath. Travis Original Message From: "Wong, Connie" [EMAIL PROTECTED] Sent: 2001-04-20 11:05:04.0 To: [EMAIL PROTECTED] Subject: RE: RE: file upload servlet Hi Travis, I'm interest to know how to do it. Would you please post a sample? Thanks, Connie -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 11:47 AM To: [EMAIL PROTECTED] Subject: RE: RE: file upload servlet Use input type="file" for file uploads. Then to process them, you can use the oreilly servlets package at www.servlets.com. If you need a sample let me know. Travis Original Message From: Jim Alemany [EMAIL PROTECTED] Sent: 2001-04-20 09:31:55.0 To: [EMAIL PROTECTED] Subject: RE: file upload servlet jspsmart upload. Its a bean. works nicely. Found at www.jspsmart.com (its a free bean too). -Original Message- From: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 11:18 AM To: [EMAIL PROTECTED] Subject: file upload servlet Is there an example somewhere for a servlet that allows for uploading and processing a file. Scenario: client (browser side) has edited a file with some information or some kind of excel or Word document and need to get that processed. The idea is to simply drag and drop the document into the broswer window and upload it to the server fopr processing. If that's too complicated (e.g. requiring swing or something) it would be sufficient if the client could be advised to open some kind of file selector or browser to select the file to be uploaded and send it upstream. What requisites would be required for this? -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
RE: RE: RE: file upload servlet
Thanks Travis, Connie -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 1:36 PM To: [EMAIL PROTECTED] Subject: RE: RE: RE: file upload servlet Using the oreilly package, you would do the following on the form submit page: String filepath = "foodir"; com.oreilly.servlet.MultipartRequest multi = new com.oreilly.servlet.MultipartRequest(request, filepath, 500); Enumeration files = multi.getFileNames(); while (files.hasMoreElements()) { String name = (String)files.nextElement(); String filename = multi.getFilesystemName(name); if(filename != null){ String content_type = multi.getContentType(name); File f = multi.getFile(name); // now you have the actual file, so you can get some some more info out of that // and put in a database or something to keep track of it. } Simple as that. the files will be saved to filepath. Travis Original Message From: "Wong, Connie" [EMAIL PROTECTED] Sent: 2001-04-20 11:05:04.0 To: [EMAIL PROTECTED] Subject: RE: RE: file upload servlet Hi Travis, I'm interest to know how to do it. Would you please post a sample? Thanks, Connie -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 11:47 AM To: [EMAIL PROTECTED] Subject: RE: RE: file upload servlet Use input type="file" for file uploads. Then to process them, you can use the oreilly servlets package at www.servlets.com. If you need a sample let me know. Travis Original Message From: Jim Alemany [EMAIL PROTECTED] Sent: 2001-04-20 09:31:55.0 To: [EMAIL PROTECTED] Subject: RE: file upload servlet jspsmart upload. Its a bean. works nicely. Found at www.jspsmart.com (its a free bean too). -Original Message- From: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 11:18 AM To: [EMAIL PROTECTED] Subject: file upload servlet Is there an example somewhere for a servlet that allows for uploading and processing a file. Scenario: client (browser side) has edited a file with some information or some kind of excel or Word document and need to get that processed. The idea is to simply drag and drop the document into the broswer window and upload it to the server fopr processing. If that's too complicated (e.g. requiring swing or something) it would be sufficient if the client could be advised to open some kind of file selector or browser to select the file to be uploaded and send it upstream. What requisites would be required for this? -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
RE: file upload servlet
Is there an example somewhere for a servlet that allows for uploading and processing a file. Check out http://www.servlets.com/cos/. There is a package that helps you with multipart posts and has some nice documentation and samples. Scenario: client (browser side) has edited a file with some information or some kind of excel or Word document and need to get that processed. The idea is to simply drag and drop the document into the broswer window and upload it to the server fopr processing. If that's too complicated (e.g. requiring swing or something) it would be sufficient if the client could be advised to open some kind of file selector or browser to select the file to be uploaded and send it upstream. What requisites would be required for this? -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
RE: file upload servlet
jspsmart upload. Its a bean. works nicely. Found at www.jspsmart.com (its a free bean too). -Original Message- From: Christoph Kukulies [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 11:18 AM To: [EMAIL PROTECTED] Subject: file upload servlet Is there an example somewhere for a servlet that allows for uploading and processing a file. Scenario: client (browser side) has edited a file with some information or some kind of excel or Word document and need to get that processed. The idea is to simply drag and drop the document into the broswer window and upload it to the server fopr processing. If that's too complicated (e.g. requiring swing or something) it would be sufficient if the client could be advised to open some kind of file selector or browser to select the file to be uploaded and send it upstream. What requisites would be required for this? -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
RE: file upload servlet
Yes I think your right I had a parameter additional to the file and got an exception. when I put it as part of the query string the problem disappeared. -Original Message- From: Jose Euclides da Silva Junior - DIGR.O [mailto:[EMAIL PROTECTED]] Sent: Friday, December 29, 2000 7:26 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RES: file upload servlet -BEGIN PGP SIGNED MESSAGE- I think that you can not mix parameters and file when you use MultipartRequest ( from Jason') to handle multipart/form-data. Regards, José Euclides Júnior __ E-mail: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] http://euclides.8m.com - -Mensagem original- De: Tim Cronin [SMTP:[EMAIL PROTECTED]] Enviada em: Quarta-feira, 27 de Dezembro de 2000 22:50 Para: '[EMAIL PROTECTED]' Assunto:RE: file upload servlet I'm using it on nt4 sun JDK 1.3, tomcat 3.1, apache 1.3.12 and on RH linux 6.2 sun JDK 1.3, tomcat 3.1, apache 1.3.12 I'm waiting till all the bleeding edgers debug 3.2 Initially I had some funky behavior when I ccped from the upload examples, but I rewrote it from scratch and it seems to work ok. - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 27, 2000 6:40 PM To: [EMAIL PROTECTED] Subject: RE: file upload servlet I am very surprised. I tried the same version. Here is the code I am using. As you can see, (or somebody can see), this is from upload.war (the sample came with the multirequest class) with some modifications. If everything works ok, I should be able to see all the parameters and files listed. However, it only worked for text files. For binary files, results vary from server error to exception in the MultiPartRequest constrcutor. The only difference I could find between your code and mine is mine is in a servlet's doPost() function? Now I am really confused. Help! Is it related to tomcat somehow. I am using tomcat 3.2.1 with apache 1.3.14 on WinNT4.0. Yanbin try { MultipartRequest multi = new MultipartRequest(req, "D:/upload"); writer.println("PParams:/P"); Enumeration params = multi.getParameterNames(); while (params.hasMoreElements()) { String name = (String)params.nextElement(); String value = multi.getParameter(name); writer.println("p" + name + " = " + value + "/P"); } writer.println(); writer.println("pFiles:/p"); Enumeration files = multi.getFileNames(); while (files.hasMoreElements()) { String name = (String)files.nextElement(); String filename = multi.getFilesystemName(name); String type = multi.getContentType(name); File f = multi.getFile(name); writer.println("p" + "name: " + name + "/p"); writer.println("p" + "filename: " + filename + "/p"); writer.println("p" + "type: " + type + "/p"); if (f != null) { writer.println("p" + "f.toString(): " + f.toString() + "/p"); writer.println("p" + "f.getName(): " + f.getName() + "/p"); writer.println("p" + "f.exists(): " + f.exists() + "/p"); writer.println("p" + "f.length(): " + f.length() + "/p"); writer.println("p/p"); } } } catch (IOException lEx) { this.getServletContext().log("error reading or saving file" + lEx, lEx); } catch (Exception e) { this.getServletContext().log("caught un-known exception" + e, e); } |+ || Tim Cronin| || [EMAIL PROTECTED]| || eClub.com| ||| || 12/27/00 06:47 PM | || Please respond to | || tomcat-user | || | |+ --- | | | | To: "'[EMAIL PROTECTED]'" | | [EMAIL PROTECTED] | | cc: (bcc: Yanbin Ma/SYS/NYTIMES) | | Subject: RE: file upload servlet | --- | I was able to upload text, image, exe files, and other binaries with
RE: file upload servlet
I think that you can not mix parameters and file when you use MultipartRequest ( from Jason') to handle multipart/form-data. Regards, I have no problem mixing them. Be sure you have encoding="multipart/form-data" in your FORM tag. Joe Laffey St. Louis, MO - With no walls or fences on the Internet, who needs Windows or Gates? - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: file upload servlet
they have a good multipart form handler. http://www.servlets.com/resources/com.oreilly.servlet/ the only draw back is you need to know the path to store the files at before you parse the multipart request. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 27, 2000 5:15 PM To: [EMAIL PROTECTED] Subject: file upload servlet Hi all, Does anybody know a servlet utility that can handle binary file upload? I appreciate any information you can share. Ma, Yanbin
RE: file upload servlet
I am very surprised. I tried the same version. Here is the code I am using. As you can see, (or somebody can see), this is from upload.war (the sample came with the multirequest class) with some modifications. If everything works ok, I should be able to see all the parameters and files listed. However, it only worked for text files. For binary files, results vary from server error to exception in the MultiPartRequest constrcutor. The only difference I could find between your code and mine is mine is in a servlet's doPost() function? Now I am really confused. Help! Is it related to tomcat somehow. I am using tomcat 3.2.1 with apache 1.3.14 on WinNT4.0. Yanbin try { MultipartRequest multi = new MultipartRequest(req, "D:/upload"); writer.println("PParams:/P"); Enumeration params = multi.getParameterNames(); while (params.hasMoreElements()) { String name = (String)params.nextElement(); String value = multi.getParameter(name); writer.println("p" + name + " = " + value + "/P"); } writer.println(); writer.println("pFiles:/p"); Enumeration files = multi.getFileNames(); while (files.hasMoreElements()) { String name = (String)files.nextElement(); String filename = multi.getFilesystemName(name); String type = multi.getContentType(name); File f = multi.getFile(name); writer.println("p" + "name: " + name + "/p"); writer.println("p" + "filename: " + filename + "/p"); writer.println("p" + "type: " + type + "/p"); if (f != null) { writer.println("p" + "f.toString(): " + f.toString() + "/p"); writer.println("p" + "f.getName(): " + f.getName() + "/p"); writer.println("p" + "f.exists(): " + f.exists() + "/p"); writer.println("p" + "f.length(): " + f.length() + "/p"); writer.println("p/p"); } } } catch (IOException lEx) { this.getServletContext().log("error reading or saving file" + lEx, lEx); } catch (Exception e) { this.getServletContext().log("caught un-known exception" + e, e); } |+ || Tim Cronin| || [EMAIL PROTECTED]| || eClub.com| ||| || 12/27/00 06:47 PM | || Please respond to | || tomcat-user | ||| |+ ---| | | | To: "'[EMAIL PROTECTED]'" | | [EMAIL PROTECTED]| | cc: (bcc: Yanbin Ma/SYS/NYTIMES)| | Subject: RE: file upload servlet| ---| I was able to upload text, image, exe files, and other binaries with oreily package. I am using the nov 20 2000 version here's the code from my jsp file private String processRequest ( HttpServletRequest request ) { String cType = request.getContentType(); if (cType != null cType.toLowerCase().startsWith("multipart/form-data")) { try { String appPath = getPath(request); MultipartRequest multi = new MultipartRequest(request, appPath); String submit = multi.getParameter(SUBMIT_UPLOAD_NAME); if(submit != null (submit.equals(SUBMIT_UPLOAD_VAL))) { Enumeration files = multi.getFileNames(); if(!files.hasMoreElements()) { return("No file was uploaded!"); } else { return("uploaded " + multi.getFilesystemName((String)files.nextElement()) + " to " + appPath); } } } catch(IOException e) { return(e.getMessage()); } } return(""); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 27, 2000 5:37 PM To: [EMAIL PROTECTED] Subject: RE: file upload servlet Thank you, Tim. I tried this one first
RE: file upload servlet
I'm using it on nt4 sun JDK 1.3, tomcat 3.1, apache 1.3.12 and on RH linux 6.2 sun JDK 1.3, tomcat 3.1, apache 1.3.12 I'm waiting till all the bleeding edgers debug 3.2 Initially I had some funky behavior when I ccped from the upload examples, but I rewrote it from scratch and it seems to work ok. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 27, 2000 6:40 PM To: [EMAIL PROTECTED] Subject: RE: file upload servlet I am very surprised. I tried the same version. Here is the code I am using. As you can see, (or somebody can see), this is from upload.war (the sample came with the multirequest class) with some modifications. If everything works ok, I should be able to see all the parameters and files listed. However, it only worked for text files. For binary files, results vary from server error to exception in the MultiPartRequest constrcutor. The only difference I could find between your code and mine is mine is in a servlet's doPost() function? Now I am really confused. Help! Is it related to tomcat somehow. I am using tomcat 3.2.1 with apache 1.3.14 on WinNT4.0. Yanbin try { MultipartRequest multi = new MultipartRequest(req, "D:/upload"); writer.println("PParams:/P"); Enumeration params = multi.getParameterNames(); while (params.hasMoreElements()) { String name = (String)params.nextElement(); String value = multi.getParameter(name); writer.println("p" + name + " = " + value + "/P"); } writer.println(); writer.println("pFiles:/p"); Enumeration files = multi.getFileNames(); while (files.hasMoreElements()) { String name = (String)files.nextElement(); String filename = multi.getFilesystemName(name); String type = multi.getContentType(name); File f = multi.getFile(name); writer.println("p" + "name: " + name + "/p"); writer.println("p" + "filename: " + filename + "/p"); writer.println("p" + "type: " + type + "/p"); if (f != null) { writer.println("p" + "f.toString(): " + f.toString() + "/p"); writer.println("p" + "f.getName(): " + f.getName() + "/p"); writer.println("p" + "f.exists(): " + f.exists() + "/p"); writer.println("p" + "f.length(): " + f.length() + "/p"); writer.println("p/p"); } } } catch (IOException lEx) { this.getServletContext().log("error reading or saving file" + lEx, lEx); } catch (Exception e) { this.getServletContext().log("caught un-known exception" + e, e); } |+ || Tim Cronin| || [EMAIL PROTECTED]| || eClub.com| ||| || 12/27/00 06:47 PM | || Please respond to | || tomcat-user | || | |+ --- | | | | To: "'[EMAIL PROTECTED]'" | | [EMAIL PROTECTED] | | cc: (bcc: Yanbin Ma/SYS/NYTIMES) | | Subject: RE: file upload servlet | --- | I was able to upload text, image, exe files, and other binaries with oreily package. I am using the nov 20 2000 version here's the code from my jsp file private String processRequest ( HttpServletRequest request ) { String cType = request.getContentType(); if (cType != null cType.toLowerCase().startsWith("multipart/form-data")) { try { String appPath = getPath(request); MultipartRequest multi = new MultipartRequest(request, appPath); String submit = multi.getParameter(SUBMIT_UPLOAD_NAME); if(submit != null (submit.equals(SUBMIT_UPLOAD_VAL))) { Enumeration files = multi.getFileNames(); if(!files.hasMoreElements()) { return("No file was uploaded!"); } else { return("uploaded " + multi.getFilesystemName((String)files.nextElement()) + " to " + appPath); } } } catch(IOException e) { return(e.getMessage()); } } return(""