Jsf Application Domain mapping issue With Tomcat

July 20, 2014 1.7k views

I have mapped my domain

www.abc.org

with my web application and when i am browsing above url it showing home page of my JSF+Spring web application and i made following changes in server.xml file

1-Changed the port from 8080 to 80

 <Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

2- Then Host changed

 <Host name="www.abc.org" appBase="webapps/3c"
           unpackWARs="true" autoDeploy="true"
           xmlValidation="false" xmlNamespaceAware="false">
                    <Context path="" docBase="."/>
                    <Alias>abc.com</Alias>

Now started the server and when i browse xyz.com it show home page but after that when i click any link or Button it not worked its showing Link this

http://abc.org/login/Login.xhtml

while previously it is link

http://abc.org:8080/3c/login/Login.xhtml

and it was working but after this change its not adding project name or contextname in URL So no any link now working

Can any one tell what changes i have to do?

1 comment
  • Did you make any change to the appBase variable when you updated the host name? It would appear that it was directed to "webapps/" rather than "webapps/3c" prior to the change as the 3c directory is included in your earlier URL.

Be the first one to answer this question.