This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot create PoolableConnectionFactory

 
Yati Tan
Ranch Hand
Posts: 56
  • 0
  • 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..
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic