I've modified the way I connect to my Oracle database as David Jencks told me. My method to get a connection to my database is now :
public static Connection getConnection(String dataBaseName) { Connection con = null; LocalConnection lcon = null; try { Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(dataBaseName); con = ds.getConnection(dbUserName_, dbPassword_); if(con instanceof org.jboss.resource.adapter.jdbc.local.LocalConnection) { con = ((LocalConnection)con).getUnderlyingConnection(); } } catch (Exception e) { System.out.println("Error : " + e); } return (Connection)con; } // getConnection But now I've got a new exception : exception java.lang.reflect.UndeclaredThrowableException occured during SearchVoucher Any other idea ? Thanks for your answers, Hélène ------------------------------------------------------- This sf.net email is sponsored by: Jabber Inc. Don't miss the IM event of the season | Special offer for OSDN members! JabConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user