I have a web application deployed on path
/var/lib/tomcat6/webapps/abc/</code>
in server.xml
on path /etc/tomcat/server.xml
I have added following lines.
<Context docBase="/var/lib/tomcat6/webapps/abc/" path="/" reloadable="true"> <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="20" maxIdle="10" maxWait="10000" name="jdbc/abcDB" password="abc" type="javax.sql.DataSource" url="jdbc:mysql://localhost:3306/abc" username="abc"/> </Context>
inside the host tag.
When I restart tomcat and hit http://localhost:8080/
nothing appears but when I enter http://localhost:8080/abc
home page is displayed which means above entry in server.xml
is not taking affect.
What am I doing wrong ??