Warbler 0.9.9 default servlet filter config doesn't work with Websphere 6.1
---------------------------------------------------------------------------
Key: JRUBY-2578
URL:
http://jira.codehaus.org/browse/JRUBY-2578 Project: JRuby
Issue Type: Bug
Components: Miscellaneous
Affects Versions: JRuby 1.1.1
Environment: warbler 0.9.9, JRuby 1.1.1, websphere 6.1, Windows XP
Reporter: Josh Price
Priority: Minor
Used warble 0.9.9 to package a war of a simple "HelloWorld" app with a single controller.
The war was deployed to Tomcat 6.0.14 with no problems.
When deployed to Websphere 6.1, the index.html worked fine, but no other routes worked returning 404s instead. Nothing useful appeared in the logs to indicate the problem.
Default *web.xml* which did *not* work in WebSphere:
<filter>
<filter-name>RackFilter</filter-name>
<filter-class>org.jruby.rack.RackFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>RackFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Changed to:
<servlet>
<servlet-name>Rails</servlet-name>
<servlet-class>org.jruby.rack.RackServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Rails</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
I wonder if the filter default is really the right way to go?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email