Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Tomcat and JSP

 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
It would give a normal human mental abilities to rival mine. To think it is just a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic