• 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

 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!