On Wed, 2005-10-12 at 11:31 -0400, Kevin Menard wrote:
> On Wed, 12 Oct 2005 11:20:55 -0400, Petri Wessman <[EMAIL PROTECTED]> wrote:
> 
> > Hello all, I'm writing an app with the new Tapestry (version 4 beta 10
> > at the moment), and so far love the changes -- so much nicer and cleaner
> > that Tapestry 3.
> >
> > However, I just ran into a problem. I tried deploying the app on the
> > to-be production server with an Apache frontend, I've been using direct
> > JBoss access to port 8080 so far. No luck, reverse proxying refused to
> > work, Tapestry kept directing me to port 8080 even though I had
> > specified ProxyPassReverse to Apache.
> 
> I ran into this too.  I decided to just go with mod_jk, which took care of  
> the problem.  I do wonder if this will still work in Apache httpd 2.1,  
> which makes mod_jk an enhancement to mod_proxy.

Actually, I just figured out an interim solution. In my hivemind.xml I
added a section:

<implementation service-id="tapestry.url.BaseTagWriter">
  <create-instance class="com.ourcompany.BaseTagWriter"/>
</implementation>

Where my BaseTagWriter is just a no-op IRender implementation. This
drops out the base tag, and now Apache normal/reverse proxy works fine.
Problem solved.

...except that this doesn't solve it in the general sense, since the
base tag was apparently added there for a reason. Without it, some new
things may break(?). The ideal solution would be an ability to tell
Tapestry what to generate in that base tag -- or maybe only generate it
when it's really needed. Or something, don't know enough about Tapestry
internals to offer a final solution here. But the above workaround does
work, it seems. Hooray. :)

//Petri



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to