Hello tomasm, thanx for the information. request.getRealPath
("uploads") will not work in the linux machine. I moved into another
method, thats works fine.

On Dec 29 2009, 12:46 pm, tomasm <[email protected]> wrote:
> If the folder "uploads" exists inside a war file I won't be supprised
> if request.getRealPath("uploads") returns null, and you get a NPE. The
> javadoc [1] for getRealPath says
>    "[...] This method returns null  if the servlet container cannot
> translate the virtual path to a real path for any reason (such as when
> the content is being made available from a .war archive)."
>
> 1.http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContext.ht...
>
> On Dec 28, 9:16 am, Anoop <[email protected]> wrote:
>
>
>
> > ---
> > A nullpointer exception occurred at the line "File
> > fileup = new File(request.getRealPath("uploads"));" in server side.
> > The folder "uploads" in existing in the uploaded war file. Please let
> > me know how to resolve this issue.

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to