• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts 2 Redirection HTTPS with Apache Proxy pass + Jboss not working

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have a struts2 application running on JBoss Application Server 5.0 which is behind the apache server. Means all my request goes via apache server to the jboss server. For this i have configured ssl and proxy pass on the apache server. Everything works good except struts2 redirection.

Proxy Pass /testapp http://test.domain.net:8080/testapp/
One of my result type in struts.xml is redirection with the following example

<result name="test1" type="redirectAction">action1</result>

<action name="action1" class="com.test.actionclass1">
<result name="success">/page1.jsp </result>
</action>
The redirect url is not maintaining the https protocol rather it creates http protocol because of this i am getting page cannot be displayed error page.

Expected url : https://test.domain.net/testapp/action1.action Actual url what am i getting http://test.domain.net:8080/testapp/action1.action

I also tried to use struts2-ssl plugin on my application and configured the interceptor on struts.xml but when i try to execute i am getting looping page and now even the landing page was not loaded.

Can any one help what i am doing wrong or solution to fix this issue.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic