Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Error in establishing connection to MySql through Weblogic 8.1

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using Weblogic 8.1. I have created connection pool and datasource both successfully. But at the time of getting connection through jsp its giving following error

java.lang.NoClassDefFoundError: weblogic/jdbc/wrapper/PoolConnection

java.sql.SQLException: Cannot obtain connection: driverURL = jdbc:weblogic ool:
My Pool, props = {enableTwoPhaseCommit=false, jdbcTxDataSource=true, connectionP
oolID=My Pool, dataSourceName=ejbPool}.
Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class

JSP code:

Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("ejbPool");
Connection con = ds.getConnection();
if(con != null)
out.println("Connection established successfully...");
else
out.println("Something wrong");


Pls help me asap. its urgent
Thanx in adv.

Bye,
Raj
 
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajkumar, make sure that weblogic.jar file is in class path.
 
Looky! I'm being abducted by space aliens! Me and this tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic