I've used a different technique for the apache->jboss connection, but faced the same problem.
Unless someone else has a better solution, you can replace the ROOT.war in the JBoss tomcat service with your application. Jonathan > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Grigoris > Ioannou > Sent: Friday, August 01, 2008 04:26 > To: Tapestry users > Subject: T5 application behaviour behind an apache web server > > Hi all, > > I'm facing this peculiar behavior in my T5 application: > > I have a search box in the border of the application: > > BorderHeadComponent.tml > <t:form> > <t:textfield t:id="search" value="query" size="20" /> <t:submit > t:id="submitQueryButton" value="Search"/> > </t:form> > > BorderHeadComponent.java > @InjectPage > private ResultsPage resultsPage; > > Object onSuccess() { > resultsPage.setQuery(getQuery()); > return resultsPage; > } > > ResultsPage.java: > @Property > @Persist("flash") > private String query; > > void onActivate() { > LOGGER.info("came here with query " + getQuery()); > } > > > When I run the application in jboss and I search for something, it will > correctly redirect me to http://localhost:8080/myapp/resultspage > Ok till here, all works fine with jboss. > > The problem starts in the live deployment. For the live environment, I > have > configured apache to redirect all requests to jboss. In httpd.conf, I > write: > ProxyPass / ajp://localhost:8009/myapp/ > ProxyPassReverse / ajp://localhost:8009/myapp/ > > So, theoretically, a search in the live site should redirect me to > > http://www.mydomain.com/resultspage > > But instead of this, it redirects to > > http://www.mydomain.com/myapp/resultspage > ( ^ myapp should not appear > here! > ) > > which results in a 404 not found error. > > Meanwhile, all the pagelinks (eg. <t:pagelink > t:page="Start">Home</t:pagelink> ) function correctly. > > Is this a Tapestry bug or a configuration error? Or am I missing > something? > I would appreciate any suggestions. > > Grigoris --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]