John Urdánegui
John Urdánegui

Reputation: 13

Tomcat change URL www.mydomain.com/webapp by www.mydomain.com

i have the domain www.desiem.com available. The problem is when charge my MENU.WAR in tomcat of my hosting, I proceed to call my page, writing www.desiem.com and shows nothing. But when called with: www.desiem.com/MENU/ , if showed the page properly.

My web page is developed in Netbeans 7.1
Version of Tomcat is 1.6.0_35-b10

I hope it is just a change in the web.xml

Attach web.xml
<servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <!--<url-pattern>/faces/*</url-pattern>-->
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>index13.xhtml</welcome-file>
    </welcome-file-list>

Please, your support.
Thanks
John

Upvotes: 0

Views: 78

Answers (1)

David Levesque
David Levesque

Reputation: 22441

Easiest way is to rename your war file to ROOT.war.

Upvotes: 1

Related Questions