[ http://issues.apache.org/jira/browse/MYFACES-1126?page=comments#action_12366492 ]
Jurgen Lust commented on MYFACES-1126: -------------------------------------- The jetty plugin gets the myfaces libraries from the dependencies of the project, as specified in the POM. The problem you are having is related to the startupServletContextListener: apparently Jetty does not yet support listeners via TLD files, so you should add the following lines to the web.xml of the tomahawk simple example web.xml: <listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> </listener> Now it should start correctly. I've been trying to locate the problem, but haven't found the exact source yet. I have noticed that in the ExtensionsResponseWrapper there is a comment that Jetty uses the getOutputStream() method, whereas Tomcat uses the getWriter() method, which is not the case for Jetty6: it also uses the getWriter() method. Anyway, it has been a while since I wrote ServletFilters and such - JSF does such a good job hiding all that request/response complexity I haven't needed it anymore :-) - so it might take me a while to figure out how this thing works... > ExtensionsFilter results in empty response on Jetty 6 > ----------------------------------------------------- > > Key: MYFACES-1126 > URL: http://issues.apache.org/jira/browse/MYFACES-1126 > Project: MyFaces > Type: Bug > Components: Tomahawk > Versions: 1.1.1, Nightly > Environment: Windows XP SP2, Jetty 6 as part of the Jetty6 plugin for maven2 > Reporter: Jurgen Lust > > When deploying a MyFaces webapp that uses the ExtensionsFilter in Jetty6, the > response is always empty. > You can verify this by adding this to the tomahawk/examples/simple/pom.xml: > <plugins> > <plugin> > <groupId>org.mortbay.jetty</groupId> > <artifactId>maven-jetty6-plugin</artifactId> > <version>6.0.0beta9</version> > <configuration> > <scanIntervalSeconds>10</scanIntervalSeconds> > </configuration> > </plugin> > </plugins> > And then typing mvn jetty6:run in the same folder. > Now you can access the simple example at > http://localhost:8080/myfaces-example-simple/ > Normally you will now see a completely empty page... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
