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

    Losing Port while redirecting to login view

    Martin Noname Newbie


      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"
             xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.2.xsd"
        <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

      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!