posted 14 years ago
Hi
I have a problem while access my web application through the context path.
I have added the datasource resource with that context. The datasource JNDI works fine and
problem is if try http://localhost:8080/test i cant get into that page.
Kindly give the solution for the context path.
I have written Context xml like this
path : CATALINA_HOME/conf/Catalina/localhost/
file name : myapp.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/test" docBase="myapp">
<Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="user password="password" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/myapp?autoReconnect=true"/>
</Context>
Thanks
Vasanth