RE: No suitable driver exception

2001-03-16 Thread Gregory Kaestle

Thanks for the advice, still not working. 
Getting a different Error when trying the EJB data source. ANy ideas?

Exception in thread "main" java.lang.NullPointerException
at com.evermind.sql.OrionPooledDataSource.ej(JAX)
at com.evermind.sql.OrionPooledDataSource.d8(JAX)
at com.evermind.sql.ak.eo(JAX)
at com.evermind.sql.ak.ep(JAX)
at com.evermind.sql.ap.createStatement(JAX)
at Test.main(Test.java:33)


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 15, 2001 11:14 PM
To: Orion-Interest
Subject: Re: No suitable driver exception


Try:

 DataSource ds = (DataSource)ctx.lookup("jdbc/OracleDS"); instead of
 DataSource ds = (DataSource)ctx.lookup("jdbc/OracleCoreDS");

regards
/Theis.





No suitable driver exception

2001-03-15 Thread Gregory Kaestle

Having a problem accessing JDBC Connection through a datasource, and can't
figure it out with orion. 
Any help would be greatly appreciated. 

Here are the details, and am using Oracle 8i.

* classes12.zip located in the orion/lib dir.
* Here is my datasources xml snippet.

* Orion starts up fine.
* Here is the code... (no app-client xml file)
env.put("java.naming.factory.initial",
"com.evermind.server.rmi.RMIInitialContextFactory");
env.put("java.naming.provider.url", "ormi://localhost/default");
env.put("java.naming.security.principal","admin");
env.put("java.naming.security.credentials","kb143aj");
InitialContext ctx = new InitialContext(env);
DataSource ds = (DataSource)ctx.lookup("jdbc/OracleCoreDS");
Connection conn = ds.getConnection();
Statement stmt = conn.createStatement();
* Running with orion.jar, jndi.jar, jdbc.jar, classes.zip
* Getting No suitable driver exception (SQLException) at Connection conn =
ds.getConnection();

Any help would be greatly appreciated. =)

Thanks,
Greg