Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC connection pooling

 
lakshmiNarayana Vunnam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

can not find symbol: BasicDataSource
 
Chris Barrett
Bartender
Posts: 317
24
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi lakshmiNarayana,

When the Compiler processes the code, it creates a list of all Identifiers that are in use. Basically, it checks to make sure all those things exist and are defined correctly. If the Compiler cannot figure out what an Identifier is referring to, it will generate a cannot find symbol error message.

Line 18 makes reference to the Apache Commons library BasicDataSource class. How are you importing the org.apache.commons.dbcp.BasicDataSource class into your class?

Cheers!
Chris

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic