Hi,
I m using struts1.2.9,
tomcat 6 and mysql. I m trying to establish connection pooling and have done the following
in META-INF/context.xml
<Context path="" reloadable="false">
<Resource driverClassName="com.mysql.jdbc.Driver" maxActive="40" maxIdle="5" maxWait="5000" minEvictableIdleTimeMillis="30000" name="jdbc/mydB" password="root123" testOnBorrow="true" testWhileIdle="true" type="javax.sql.DataSource" url="jdbc:mysql://localhost:3306/test?autoReconnect=true&zeroDateTimeBehavior=convertToNull" username="root"/>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
</Context>
wrote a
java class
when i try to open db connection i m getting null pointer exception.. What else needs to be configured to get this working. any ideas are welcome.
Thank you