• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection pooling problem

 
Deepthi Mudidani
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Iam using tomcat 5.5.7 and oracle 9i and struts 1.2.8.
I have configured a connection pool jdbc/myoracle in server.xml and web.xml.
When i try to access the jsp which calls UserRegAction it throws this exception.



contents of server.xml includes..



in web.xml


and the UserRegAction contains


Iam not sure if this is a struts specific problem or not.
Thanks!!
 
amit bhadre
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Deepti

Be confirm on what u r doing...Be confident on ur side...then ask questions on corresponding forums...OK



OK I try to solve ur problem....

Well if u r doing in JSP den write one another jsp page and make it as isErrorpage. Then u r getting Servlet exception means is JSP or Server error dont get too knock head cool. Den make page which is throwing error redirect to that new created page.

Try it....

How the gc() come to know that the objects are no longer usable ? There may be case of objects later may be used....then big dragging back of JVM...is int it...? :-)





["If C & C++ are sea and Java is Ocean/Galaxies/ whole Universe"]


cheers
amit bhadre
 
Deepthi Mudidani
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for ur suggestion
The problem is with the configuration element in server.xml
With tomcat 5.5 we should use
<Resource name="jdbc/myoracle" auth="Container"
type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
url="jdbc racle:thin:@localhost:1521 racle"
username="scott" password="tiger" maxActive="4" maxIdle="2"
maxWait="10"/>
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic