Best groupmember, I have downloaded the CommonFileupload and have problems the thrown errors. I have put the jar in $catalina_home/shared/lib and in the $catalina_hom/webapps/myproject/WEB-INF/lib. I have never had problem with creating servlets, no problems before.
I started out just by the tutorial about using FileUpload at http://jakarta.apache.org/commons/fileupload/using.html . The first part is to check if we have a fileupload request (I am certain I have). The code is: public void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); if(FileUpload.isMultipartContent(request)) { out.println("Ok, there is a multipart content..."); } else { out.println("No multipart content..."); } } This is the basic part, and it throws an error. I have tried other functions to and they throw similar errors. People suggest to but the servlet-api.jar in the CLASS_PATH, but I have it already there since long time. Here is the error I get, anyone with experience of the same thing?: exception javax.servlet.ServletException: Invoker service() exception org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java :477) org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:169) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream ImageUpload.doPost(ImageUpload.java:56) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java :419) org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:169) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) -- Best of Times Peter Lauri --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
