紧急求助:有关weblogic/informix链接池的问题,在线候教 ( 积分: 50 )

  • 主题发起人 夏日的落叶
  • 开始时间

夏日的落叶

Unregistered / Unconfirmed
GUEST, unregistred user!
请教各位大虾:
我配置了weblogic链接池, name=informixpool,测试联接成功 data source name = informixds, JNDI Name = informixds
我用如下代码连接数据库
DataSource ds=null;
InitialContext ctx=new InitialContext();
ds=(DataSource)ctx.lookup("informixds");
可是连接报错,错误如下:
java.sql.SQLException: Cannot obtain connection: driverURL = jdbc:weblogic:pool:informixPool, props = {enableTwoPhaseCommit=true, jdbcTxDataSource=true, connectionPoolID=informixPool, dataSourceName=informixds}.
Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
请各位大虾帮帮忙,不吝指教.在线等待.

 
请教各位大虾:
我配置了weblogic链接池, name=informixpool,测试联接成功 data source name = informixds, JNDI Name = informixds
我用如下代码连接数据库
DataSource ds=null;
InitialContext ctx=new InitialContext();
ds=(DataSource)ctx.lookup("informixds");
可是连接报错,错误如下:
java.sql.SQLException: Cannot obtain connection: driverURL = jdbc:weblogic:pool:informixPool, props = {enableTwoPhaseCommit=true, jdbcTxDataSource=true, connectionPoolID=informixPool, dataSourceName=informixds}.
Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
请各位大虾帮帮忙,不吝指教.在线等待.

 
5555555555555555555555[:(][:(][:(]
难道没人知道么?
 
我觉得是你的驱动不对。
 
to 易名烦
可我的直接链接数据库没问题呀.
Class.forName("com.informix.jdbc.IfxDriver").newInstance();
String url ="jdbc:informix-sqli://10.11.11.11:4500/rccnxs:INFORMIXSERVER=online;user=rccnxs;password=amtfamtf";
Connection conn= DriverManager.getConnection(url);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
 
顶部