• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat and JSP

 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HiFriends,
I am trying to run this simple jsp example:

Can someone please tell meif I have to set any classpath for the BasicDataSource class???


[/CODE]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you put the connection pool library (jar)?
 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i installed tomcat5.0,they were automatically installed in the <catalina_home>/common/lib/*.I also tried putting this in my classpath:

C:\Tomcat 5.0\common\lib\commons-dbcp-1.2.1.jar;C:\Tomcat 5.0\common\lib\commons-pool-1.2.jar;C:\Tomcat 5.0\common\lib\commons-collections-3.1.jar;C:\Tomcat 5.0\common\lib;

But it still throws the same error,help me please.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tomcat doesn't use your classpath.

I'm not sure what's causing this. Maybe the structure of the jar in Tomcat has changed over different versions.

You might want to ask in the Apache/Tomcat forum.

Also, before you spend too much time hunting this down, you might want to look into the container managed connection pool that you already have available to you with Tomcat:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resources-howto.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic