commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Cooper" <mart...@apache.org>
Subject Re: Strange error with FileUpload
Date Tue, 09 Jan 2007 15:22:48 GMT
Two things:

1) Make sure that you include both Commons FileUpload and Commons IO jars in
your own web app, and that you are not relying on container-supplied
versions.

2) Make sure you are disabling Resin's own built-in multipart handling if
you want to use Commons FileUpload instead.

--
Martin Cooper


On 1/9/07, Shervin Asgari <shervin@linpro.no> wrote:
>
> Hello. I am developing locally using tomcat and everything works great.
> Then when everything was finished I moved my code to Resin to a remote
> server.
>
> I am still using the same libraries as I did before, however, I suddenly
> get this Servlet Exception:
>
>
>   500 Servlet Exception
>
> ||
>
> /detnye.no/moteguiden/admin/action/uploadFil.jsp:21: cannot resolve symbol
> symbol  : method isMultipartContent (javax.servlet.http.HttpServletRequest
> )
> location: class org.apache.commons.fileupload.servlet.ServletFileUpload
>         boolean isMultipart = ServletFileUpload.isMultipartContent
> (request);
>                                                ^
> Note: _moteguiden/_admin/_action/_uploadFil__jsp.java uses or overrides
> a deprecated API.
> Note: Recompile with -deprecation for details.
> 1 error
>
>
> Seems like it says I am using or overriding a deprecated API, and when I
> checked the libraries again, I saw that it was already a
> commons-fileupload.jar there from before. So I thought, aahh, it must be
> using that one or something, so I renamed it and moved it away from the
> libraries, but I am still getting the same problem.
> Remember, this works locally on tomcat, so I don't know why this doesnt
> work.
> Maybe this server is importing some other libraries first, which is
> including another version of commons.fileupload.
>
> --
> Shervin Asgari - System Consultant
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message