[jboss-user] [JCA/JBoss] - Re: org.jboss.resource.JBossResourceException: Could not cre

vicky.kak@jboss.com do-not-reply at jboss.com
Wed Dec 19 05:38:35 EST 2007


anonymous wrote : when i use pure jdbc, everything is fine.
This is strange , the Jboss code which is failing here is 

  | private LocalManagedConnection getLocalManagedConnection(Properties props,Properties copy) 
  |    		throws JBossResourceException
  |    {
  | 	   try
  | 	   {
  | 		   String url = getConnectionURL();
  | 		   Driver d = getDriver(url); 
  | 		   Connection con = d.connect(url, copy);
  | 		   if (con == null)
  | 			   throw new JBossResourceException("Wrong driver class for this connection URL");
  | 
  | 		   return new LocalManagedConnection(this, con, props, transactionIsolation, preparedStatementCacheSize);
  | 	   }
  | 	   catch (Exception e)
  | 	   {
  | 		   throw new JBossResourceException("Could not create connection", e);
  | 	   }
  |    }
  | 
This is from 
http://anonsvn.jboss.org/repos/jbossas/trunk/connector/src/main/org/jboss/resource/adapter/jdbc/local/LocalManagedConnectionFactory.java

d.connect(url, copy);  seems to be failing .

Can you use the Driver.connect(...) to get the connection in your stand alone application and see if it works ?
Also make sure that you are using the same Oracle driver for running the stand alone application which is present in the Jboss server .




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114146#4114146

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114146



More information about the jboss-user mailing list