I am new to the servlets technology, what is meant with "container config
problem"?


-----Ursprungligt meddelande-----
Fr�n: Martin Cooper [mailto:[EMAIL PROTECTED] 
Skickat: den 29 december 2004 13:09
Till: Jakarta Commons Users List
�mne: Re: FileUpload

The right place for the FileUpload jar file is the WEB-INF/lib
directory of your web application.

It's worth noting that the stack traces for the exception you are
seeing do not include Commons FileUpload, so I'm not clear on why you
think the problem is related to that component. Rather, the missing
class seems to be one that is part of the Servlet API, suggesting a
container config problem.

--
Martin Cooper


On Wed, 29 Dec 2004 11:53:05 +0700, Peter Lauri <[EMAIL PROTECTED]> wrote:
> 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]
> 
>

---------------------------------------------------------------------
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]

Reply via email to