Hi,
I am trying to set application context to be root directory using the url rewrite of Seam pages.xml. My application is running on tomcat. I have setup the context to be /
(on intelliJ). I have added this code on pages.xml:
<page view-id="/main.xhtml"> <rewrite pattern="/" /> <navigation> <rule if="#{identity.loggedIn}"> <redirect view-id="/home.xhtml" /> </rule> </navigation> </page>
But the application doesn't load the main page and show tomcat management application instead.
If I set a context other than /
(for example: /myapp
), then is works fine.
Any clues?