But in the try block,after executing first and secon System.out.println("IN TRY"); and System.out.println("AFTER TRY DATASOURCE");, the server,Tomcat server,is going in the sleep state and on my console,i 'll get "Sleep until next",continuosly. I 've to stop the tomcat in between.
The program is not running after the second print statement. It is not even throwing any exception also. Plz help me in recovering this error.
Thanx in advance. regards
Joined: Sep 02, 2004
That code looks harmless enough, I'd be looking for something wrong in your context.xml (and maybe web.xml although less likely) with the way you're declaring the datasource driver and such
Joined: Sep 24, 2004
thanx i got it.it was in struts-config,where i had to mention the max count and min count in the data sources. regards