Never mind. I found that the JSF servlet could not handle getPart() properly so 
I had to map the servlet to the default Tomcat servlet.
 
Thanks for looking at it.
 
> Date: Sat, 15 Jan 2011 09:56:10 +0000
> From: ma...@apache.org
> To: users@tomcat.apache.org
> Subject: Re: Tomcat 7.06 HttpRequestServlet.getPart() returns null in servlet
> 
> On 14/01/2011 23:11, JASON HOLT wrote:
> > 
> > As JSF 2.0 doesn't include a file upload component, I need to write my own 
> > multipart/form-data process. According to the information in bug # 49711, I 
> > cannot do this with a filter in Tomcat 7, but I can in a servlet. However, 
> > using the following servlet, HttpRequestServlet.getPart() returns null. 
> > This code works fine in Glassfish. It was mostly generated by Netbeans 
> > 6.9.1. The error message follows.
> > 
> > Can you give me some guidance? Thanks for your kind help.
> 
> The basic functionality works since this is how the Tomcat Manager
> application does file uploads (although it is configured in web.xml
> rather than with annotations).
> 
> I'd check web.xml. Does it have the correct schema definition for a
> servlet 3.0 webapp? If not, Tomcat won't scan for annotations.
> 
> 
> > java.lang.NullPointerException
> > at FileUpload.doPost(FileUpload.java:75)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
> 
> Which line is this? There are less than 75 lines in the source you posted.
> 
> Mark
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
                                          

Reply via email to