Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot create PoolableConnectionFactory  RSS feed

 
Yati Tan
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am facing this problem in my Sevlet code.

Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/hr");
Connection conn = ds.getConnection();


Cannot create PoolableConnectionFactory (No more data to read from socket)
I am using tOmcat 6.

When I write normal,
conn = DriverManager.getConnection("jdbcracle:thin:@127.0.0.1:1521", "hr", "hr");

Its working, but not the one with JNDI. Pls help..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!