1 Reply Latest reply on Jul 6, 2011 3:25 AM by Martin Noname

    Losing Port while redirecting to login view

    Martin Noname Newbie

      Hello,


      I'm using a pages.xml with a login-view-id and pages with login-required="true":




      <pages xmlns="http://jboss.com/products/seam/pages"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.2.xsd"
             login-view-id="/app/pages/login.xhtml"
             no-conversation-view-id="/app/pages/login.xhtml">
      
        <page view-id="/app/pages/home.xhtm" login-required="true" />





      My Seam application (2.2.2.Final) is running in a Tomcat with port 33480 (http://mymachine:33480/myapp).
      When I call the page home.xhtml (http://mymachine:33480/myapp/app/pages/home.seam), there is a redirect to my login page - that's ok. But the redirect is not using my port 33480. And it's not using my hostname but its ip address. Instead of http://mymachine:33480/myapp/app/pages/login.xhtml as expected the redirect goes to http://172.20.12.16/myapp/app/pages/login.seam.


      I don't want to set my port hardcoded. The application should work without knowing the port. What am I doing wrong? Thanks for help!


      Martin