Hi,
I'm trying to access mysql using
Tomcat 6 and connection pool.I have placed the required jars (mysql-connector-java-5.1.10-bin.jar,commons-collections-3.2.jar,tomcat-dbcp.jar)in catalina-home/lib .I've placed TomConn.xml file in catalina-home\conf\Catalina\localhost.
TomConn.xml
web.xml
I'm trying to access the dbase from index.jsp
When i run the code i get the following exception
INFO: Undeploying context [/TomConn]
May 25, 2010 9:46:50 PM org.apache.catalina.core.NamingContextListener lifecycleEvent
SEVERE: Creation of the naming context failed: javax.naming.NamingException: Context is read only
May 25, 2010 9:47:55 PM org.apache.catalina.core.NamingContextListener lifecycleEvent
SEVERE: Creation of the naming context failed: javax.naming.NamingException: Context is read only
Exception Ocurred
javax.naming.NameNotFoundException: Name comp is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:79)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
.....
There are lot of discussions on the internet...but still none could solve my problem

.
Kindly advice.
Regards,
Poonam.