Are your Drivers available? is your Datasource defined correctly? Here is my
file and it works fine for me....
<?xml version="1.0"?>
<!DOCTYPE data-sources PUBLIC "Orion data-sources"
"http://www.orionserver.com/dtds/data-sources.dtd">
<data-sources>
<!--
An example/default DataSource that uses an ordinary
JDBC-driver (in this case hsql) to create the connections.
This tag creates all the needed kinds
of data-sources, transactional, pooled and EJB-aware sources.
The source generally used in application code is the "EJB"
one - it provides transactional safety and connection pooling.
-->
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="Oracle"
location="jdbc/RedbookDS"
xa-location="jdbc/xa/RedbookXADS"
ejb-location="jdbc/RedbookDS"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="user"
password="password"
url="jdbc:oracle:thin:@enterprise:1521:database"
inactivity-timeout="30"
/>
</data-sources>
With of course the exception of changing the user and password and databse
schema. :)
----- Original Message -----
From: "Mark" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Monday, October 23, 2000 5:16 PM
Subject: Re: Data Sources Help
> Thanks Gary.
>
> Well I gave it a shot. First thing to note is that the instructions you
> were given by support seem to be self contradictory. While suggesting
> you should use com.evermind.OrionConnectionDataSource with Oracle, the
> example <data-source> uses com.evermind.sql.ConnectionDataSource. So I
> tried them both, and at least in my environment they blow up with
> identical errors when the server is started:
>
> Result with com.evermind.sql.ConnectionDataSource:
>
> java -jar orion.jar
> java.lang.NullPointerException
> at com.evermind.server.deployment.EnterpriseArchive.ajv(JAX)
> at com.evermind.server.deployment.EnterpriseArchive.bx(JAX)
> at com.evermind.xml.XMLConfig.bs(JAX)
> at com.evermind.xml.XMLConfig.ay(JAX)
> at com.evermind.xml.XMLConfig.ay(JAX)
> at com.evermind.server.ServerComponent.ay(JAX)
> at com.evermind.server.XMLApplicationServerConfig.ak9(JAX)
> at com.evermind.server.XMLApplicationServerConfig.by(JAX)
> at com.evermind.xml.XMLConfig.ay(JAX)
> at com.evermind.xml.XMLConfig.ay(JAX)
> at com.evermind.server.hc.run(JAX)
> at java.lang.Thread.run(Thread.java:498)
> at com.evermind.util.f.run(JAX)
>
> Result with com.evermind.OrionConnectionDataSource:
>
> java -jar orion.jar
> java.lang.NullPointerException
> at com.evermind.server.deployment.EnterpriseArchive.ajv(JAX)
> at com.evermind.server.deployment.EnterpriseArchive.bx(JAX)
> at com.evermind.xml.XMLConfig.bs(JAX)
> at com.evermind.xml.XMLConfig.ay(JAX)
> at com.evermind.xml.XMLConfig.ay(JAX)
> at com.evermind.server.ServerComponent.ay(JAX)
> at com.evermind.server.XMLApplicationServerConfig.ak9(JAX)
> at com.evermind.server.XMLApplicationServerConfig.by(JAX)
> at com.evermind.xml.XMLConfig.ay(JAX)
> at com.evermind.xml.XMLConfig.ay(JAX)
> at com.evermind.server.hc.run(JAX)
> at java.lang.Thread.run(Thread.java:498)
> at com.evermind.util.f.run(JAX)
>
> So... hmmm...
>
> Will keep trying as time permits.
>
> --Mark
>
>