Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSF behind a reverse proxy

843842May 25 2005 — edited Mar 7 2008
I'm having a strand issue.

We have a JSP app (using Tomcat 5.0.33 and the latest myfaces implementation). It works fine when we hit Tomcat directly.

for example http://localhost:8080/Myapp/

but if we set up a reverse proxy through Apache with

ProxyPass /qss/Myapp http://localhost:8080/Myapp/
ProxyPassReverse /qss/Myapp http://localhost:8080/Myapp/

The problem is in my JSF form, after the page is generated, it says:

<form action=/Myapp/mypage.jsp" >

But if I hit the submit button, it tries to post to "/Myapp" and I get a 404.

Of course, it can't find "/Myapp" because the context is supposed to be "/qss/Myapp"

Any ideas how to resolve this. I mean this should be obvious but I just can;t figure it out.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2008
Added on May 25 2005
11 comments
1,522 views