You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Barbara Slupik (JIRA)" <ji...@apache.org> on 2008/07/10 14:24:31 UTC

[jira] Created: (COCOON-2219) springRequestContextFilter

springRequestContextFilter
--------------------------

                 Key: COCOON-2219
                 URL: https://issues.apache.org/jira/browse/COCOON-2219
             Project: Cocoon
          Issue Type: Improvement
          Components: * Cocoon Core
    Affects Versions: 2.2
            Reporter: Barbara Slupik
            Priority: Minor


There is a problem with running cocoon application in tomcat. The symptoms are that for some requests it just stops and does not do anything. I had it with tomcat authentication when tomcat was trying to call login page in my application. Other users reported similar problems. I think that the problem happens when tomcat is trying to access cocoon application. The problem seems to affect tomcat only, everything works fine with jetty.

The problem can be fixed by adding this:

	<filter>
		<filter-name>springRequestContextFilter</filter-name>   
		<filter-class>org.springframework.web.filter.RequestContextFilter</filter-class>
	</filter>

	<filter-mapping>
		<filter-name>springRequestContextFilter</filter-name>
		<url-pattern>/*</url-pattern>
		<dispatcher>FORWARD</dispatcher>
		<dispatcher>REQUEST</dispatcher>
	</filter-mapping>

to the application web.xml file.

Perhaps it can be added to default application web.xml which is generated with mvn archetype:create? The change does not seem to affect jetty in any way.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.