-
1. Re: New Oracle Application
alexandre_correa Jul 27, 2005 6:35 PM (in response to wpainter)I think you need the ojdbc14.jar instead of the classes12.jar
Alexandre -
2. Re: New Oracle Application
wpainter Aug 19, 2005 12:01 PM (in response to wpainter)I have copied the ojdbc14.jar in the JBoss lib directory and included it in the project build path. I now get just the java.lang.NoClassNotFoundException:No ClassLoaders found for: oracle.jdbc.driver.OracleDriver. I am the following code to try and connect:
String driverName = "oracle.jdbc.driver.OracleDriver";
String connectionURL "jdbc:oracle:thin:@****:1521:****";
String uName = "****";
String pWord = "****";
String sqlStmt = "SELECT * FROM conn_info";
try{
Class.forName(driverName).newInstance();
con = DriverManager.getConnection(connectionURL, uName, pWord);
}catch(Exception e){ e.printStackTrace();}
Any idea as to why I'm getting this exception?
Thanks for any help.
Wayne -
3. Re: New Oracle Application
genman Aug 19, 2005 5:02 PM (in response to wpainter)
If you're using a -ds.xml file, use JNDI to look up a javax.sql.DataSource object in the JNDI tree and connect using that.
You should be able to check the conf. values from the JMX console.