Re: PrettyFaces 3.3.2 + Primefaces 3.x + Tomcat 6 file upload not working

Splash Forums PrettyFaces Users PrettyFaces 3.3.2 + Primefaces 3.x + Tomcat 6 file upload not working Re: PrettyFaces 3.3.2 + Primefaces 3.x + Tomcat 6 file upload not working

#22210

jasje
Participant

Christian, thanks for your reply.

This is what I’m running:

JSF: Mojarra 2.1.4 (SNAPSHOT 20111107)

Primefaces 3.1

Prettyfaces 3.3.2

web.xml (the interesting parts)

<filter>

<filter-name>Pretty Filter</filter-name>

<filter-class>com.ocpsoft.pretty.PrettyFilter</filter-class>

</filter>

<filter-mapping>

<filter-name>Pretty Filter</filter-name>

<url-pattern>/*</url-pattern>

<dispatcher>FORWARD</dispatcher>

<dispatcher>REQUEST</dispatcher>

<dispatcher>ERROR</dispatcher>

</filter-mapping>

<filter>

<filter-name>PrimeFaces FileUpload Filter</filter-name>

<filter-class>

org.primefaces.webapp.filter.FileUploadFilter

</filter-class>

<url-pattern>/*</url-pattern>

</filter>

<filter-mapping>

<filter-name>PrimeFaces FileUpload Filter</filter-name>

<servlet-name>Faces Servlet</servlet-name>

</filter-mapping>

pretty-config.xml

<pretty-config xmlns="http://ocpsoft.com/prettyfaces/3.2.0"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

>

<!-- Begin Example RewriteRules

// These are custom rewrite-rules, and are probably not necessary for your application.

-->

<!-- Begin UrlMappings

// These are examples of URL mappings, and should be customized for your application.

<url-mapping id="home">

<pattern value="/" />

<view-id>/faces/index.jsf</view-id>

</url-mapping>

....

What I’ve also tried is adding

<dispatcher>FORWARD</dispatcher>

<dispatcher>REQUEST</dispatcher>

<dispatcher>ERROR</dispatcher>

on the filter part in my web.xml.

For a Tomcat 7 server, I had to use this and it is working. On Tomcat 6 (6.0.35) it isn’t.