Hi.

I am trying to use JBoss 3.2.5 instead of 3.2.1 that I was using before. When I try to 
use Oracle datasource, I get the following error :

12:37:34,760 INFO  [STDOUT] java.lang.SecurityException: Failed to create Statement 
proxy: java.lang.ClassFormatError: oracle/jdbc/driver/$Proxy198 (Repetitive interface 
name)
12:37:34,761 INFO  [STDOUT]     at 
org.jboss.resource.adapter.jdbc.WrappedStatement.(WrappedStatement.java:51)
12:37:34,762 INFO  [STDOUT]     at 
org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.(WrappedPreparedStatement.java:45)
12:37:34,762 INFO  [STDOUT]     at 
org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:208)

I am using JDK 1.4.1_03 on Suse 9.
The datasource descriptor is exactly as the one given in the JBoss examples 
(oracle-ds.xml).

I have made BOLD the line where the error occurs :


  |         Context ctx = null;
  |         DataSource ds = null;
  |         java.sql.Connection dbConnection = null;
  |         PreparedStatement ps = null;
  |         
  |         try {
  |             try {
  |                 ctx = new InitialContext();
  |                 ds = (DataSource)ctx.lookup("java:/OracleDS");
  |                 
  |                 dbConnection = ds.getConnection();
  |                 dbConnection.setAutoCommit(false);
  |                 String query = "INSERT INTO ADAPTER_CONTRACTS (ADAPTER_ID) 
VALUES(?)";
  | 
  |                 ps = dbConnection.prepareStatement(query);
  |                 
  |                 for(int i=1; i<10; i++) {
  |                     ps.setInt(1, i);
  |                     ps.addBatch();
  |                 }
  |                 
  |                 ps.executeBatch();
  |                 
  |                 if ( fail ) {
  |                     Hashtable h = new Hashtable();
  |                     h.put("key", "value");
  |                     Integer failInt = (Integer) h.get("key");
  |                 }
  |                 
  |                 dbConnection.commit();
  |                 
  |             }
  |             catch (Exception ex) {
  |                 ex.printStackTrace();
  |                 dbConnection.rollback();
  |             }
  |             ps.close();
  |             dbConnection.close();
  |         }
  |         catch (Exception ex) {
  |             ex.printStackTrace();
  |         }
  |  

Any ideas ?

Thanks

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

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


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to