Hello all, When I use the javax.servlet.RequestDispatcher.forward( ServletRequest, ServletResponse) method inside a Servlet to forward to a page handled by Magnolia I get the 404 error. When I try to redirect to the same page there are no errors. This error only occurs when accessing a page on the public instance. The author instance works fine.
I realized that this error occurs only when I turn off caching in AdminCentral (set Config.server.cache.level1.active = false) and try to access a page that is not in the secure URI list. Therefore, I think that the reason I don't have this error on author instance is because all the pages are secured. The website I work on displays dynamic information on each page so caching is not an option. Also most of the information is public so we can't add these pages to the secure URI list. The website is developed using Magnolia 2.1.5 and Struts 1.2.9 (runs on WebSphere Express 6.0, RedHat EL 3 WS). When a validation error occurs on a form I use a local forward to forward to a Magnolia page which displays the error. I can't use a redirect because the ActionErrors are set in the request scope and are lost if I use a redirect. I also created a test Struts Action and used a request dispatcher to verify that I can't forward to a Magnolia page. The test failed and I got the 404 error. I searched the Magnolia User List Archive and Wikis, but I was unable to find a solution. Does anybody have a solution to this problem? Or maybe a workaround? Talking about workarounds, I tried to override the info.magnolia.cms.servlets.EntryServlet.allowCaching(HttpServletRequest) method to always return false and turn off caching at that level (while still using the Config.server.cache.level1.active = true configuration), but pages are still cached. I'm going over Magnolia source trying to find out more about this problem, but I might be on a wrong track due to my inexperience with Magnolia code. I would like to include public instance logs, but they are pretty long and it looks like I can't use attachments. If you need the logs I'll paste them in another email. Please let me know if there is any other information you need. Any help is appreciated. Thanks! Nikola ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
