Re: Forward filter mapping including path info
Hi Mark, Mark Thomas schrieb: Florian Hopf wrote: Is a mapping containing a path info not supported for forwards? Looks like https://issues.apache.org/bugzilla/show_bug.cgi?id=45441 This is fixed in 6.0.x trunk if you want to try that or wait for 6.0.19. Thank's a lot, that's it. We will see if we can update when 6.0.19 is out. Also thanks to Christopher for trying to help. Regards Florian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Forward filter mapping including path info
Hi, I am in a situation where I want to map a forward filter based on a servlet and an additional path. The path that is forwarded to looks something like this: /servlet/long/path.to/my.jsp The path info is mapped by the servlet to a JSP in the file system. My filter declaration looks like this: filter-mapping filter-nameResourceTypesListFilter/filter-name url-pattern/servlet/long/path.to/my.jsp/url-pattern dispatcherFORWARD/dispatcher /filter-mapping This filter works ok if I omit the dispatcher-node and send a redirect but does not work for forwards. This is what is logged when I enable debug-logging for ApplicationDispatcher: DEBUG [ationDispatcher: 185] servletPath=/servlet, pathInfo=/long/path.to/my.jsp, queryString=null, name=null DEBUG [ationDispatcher: 371] Path Based Forward The following mapping does work but is too general: filter-mapping filter-nameResourceTypesListFilter/filter-name url-pattern/servlet/*/url-pattern dispatcherFORWARD/dispatcher /filter-mapping Is a mapping containing a path info not supported for forwards? I tested this on Tomcat apache-tomcat-5.5.26 as well as apache-tomcat-6.0.13, my webapp is 2.4. Regards Flo - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Restart web app
Hi, asaf.lahav schrieb: Where can I find code to perform a restart (or stop and then start) of a web application? There is an Ant task which performs a reload using the manager application. It's located in package org.apache.catalina.ant.ReloadTask. If you want to perform the reload completely programmatic have a look at the manager webapp itself. Kind regards Florian -- /** * Florian Hopf * Synyx GmbH Co. KG * phone +49(0)721 9118303 * eMail [EMAIL PROTECTED] * wwwhttp://www.synyx.de * ircirc://irc.synyx.de */ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]