Hello again, I'm still really struggling to find why the extra context is being added to the path. Could anyone help? Does anyone have a Wicket 1.3.1 setup on Tomcat behind Apache2? Is there a recommended setup e.g. Jetty?
Working my way through the debug for Wicket, it looks like the page requests for PageLinks and setRedirects are the same. DEBUG - Page - ending request for page [Page class = abcd.app.page.LoginPage, id = 7, version = 0], request [method = POST, protocol = HTTP/1.0, requestURL = http://www.abcd.com/abcd/app/, contentType = application/x-www-form-urlencoded, contentLength = 54, contextPath = /abcd, pathInfo = null, requestURI = /abcd/app/, servletPath = /app/, pathTranslated = null] DEBUG - Page - ending request for page [Page class = abcd.app.page.NewThingPage, id = 6, version = 0], request [method = POST, protocol = HTTP/1.0, requestURL = http://www.abcd.com/abcd/app/, contentType = application/x-www-form-urlencoded, contentLength = 54, contextPath = /abcd, pathInfo = null, requestURI = /abcd/app/, servletPath = /app/, pathTranslated = null] Please, any help would be appreciated. After hours of working on this, I'm pulling my hair out. Please tell me I've missed a comma or something!! Thanks, Tim > Hi All, > > I have a Wicket 1.3 app running on Tomcat 6 behind an Apache httpd server. > Most of the app works great but any redirects using > Component#setResponsePage adds the original web context to the path.... > > e.g. > > www.abcd.com/app turns to > > www.abcd.com/abcd/app > > and Tomcat complains > > /abcd/abcd/app is not available. > > I thought that in web.xml the filterPath parameter would fix this problem > but no... > > <filter> > <filter-name>WicketApplication</filter-name> > > <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> > <init-param> > <param-name>applicationClassName</param-name> > <param-value>abcd.app.WicketApplication</param-value> > </init-param> > <init-param> > <param-name>filterPath</param-name> > <param-value>/</param-value> > </init-param> > </filter> > > The apache2 config looks like this... > > <VirtualHost abcd.com> > ServerName www.abcd.com > ServerAdmin [EMAIL PROTECTED] > ErrorLog /var/log/apache2/abcd_error.log > ProxyRequests Off > > <Proxy *> > AddDefaultCharset off > Order deny,allow > Allow from all > </Proxy> > > <Location /> > SetOutputFilter proxy-html > ProxyPass ajp://localhost:8009/abcd/ > ProxyPassReverse ajp://localhost:8009/abcd/ > ProxyPassReverseCookiePath /abcd / > Order allow,deny > Allow from all > </Location> > </VirtualHost> > > > Could anyone point me in the right direction? > > Thanks for your help, > Tim > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]