This usually happens to me when you get some details about the DS wrong -
and Orion cannot create the connection to it. It also might be something
else with the same JNDI name? (although this is unlikely)

Can you create a JDBC datasource using normal Java code with those exact
parameters?

BTW I'd suggest not posting your DB URL, port and password to the list -
never know who is out there ;)

Cheers,
Mike

 __
|  | Director - The BookmarkBox P/L
|  |  http://www.bookmarkbox.com <http://www.bookmarkbox.com/>
|/\| Manage and share your bookmarks online!

Do you enjoy our service? Why not tell your friends about us?
http://www.bookmarkbox.com/email.cfm


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Les Hartzman
> Sent: Wednesday, 8 December 1999 12:53
> To: Orion-Interest
> Subject: Data-sources problem
>
>
> I've modified the data-sources.xml file and have created an ejb-jar.xml
> file per the tutorial.  Below is the error I get.
>
> What am I missing???
>
> Les
>
>
> E:\orion>java -jar orion.jar
> Error initializing server: Unable to bind DataSource jdbc/DefaultDS to
> jdbc/Defa
> ultDS
>
> My data-sources.xml is as follows:
>
> <?xml version="1.0"?>
> <!DOCTYPE data-sources SYSTEM "data-sources.dtd">
>
> <data-sources>
>  <!--
>    An example DataSource that uses an ordinary JDBC-driver to create the
> connections,
>    to install; set the proper URL to the db, specify the db-driver name
> and
>    unrem the below section.
>  -->
>  <data-source class="com.evermind.sql.ConnectionDataSource"
> location="jdbc/DefaultDS">
>   <name>Default data-source</name>
>   <description>
>    This is a generic data-source that takes it's generates Connections
> with
>    ordinary JDBC 2.0 drivers.
>   </description>
>    <url>jdbc:oracle:thin:@attu.beach.citysearch.com:30003:ATTU</url>
>   <connection-driver>oracle.jdbc.driver.OracleDriver</connection-driver>
>
>   <username>ldh</username>
>   <password>ldhpw</password>
>  </data-source>
>
>  <!-- Some example DataSources of various kinds -->
>
>  <data-source class="com.evermind.sql.DefaultConnectionPoolDataSource"
> location="jdbc/DefaultPooledDS">
>   <name>Default ConnectionPool data-source</name>
>   <description>
>    This is a ConnectionPooldata-source that can be used to pool
> connections from an ordinary
>    data-source in order to increase performance.
>   </description>
>   <source-location>jdbc/DefaultDS</source-location>
>   <username>ldh</username>
>   <password>ldhpw</password>
>  </data-source>
>  <data-source class="com.evermind.sql.DefaultXADataSource"
> location="jdbc/xa/DefaultXADS">
>   <name>Default Transactional data-source</name>
>   <description>
>    This is a data-source that can be used as an ordinary XAdata-source
>    (transaction aware).
>   </description>
>   <source-location>jdbc/DefaultDS</source-location>
>   <username>ldh</username>
>   <password>ldhpw</password>
>  </data-source>
>  <data-source class="com.evermind.server.ejb.EJBDataSource"
> location="jdbc/DefaultEJBDS">
>   <name>Default EJB-aware data-source</name>
>   <description>
>    This is a data-source that EJBs can use where updates are
>    automatically synchronized to the current transactional context.
>   </description>
>   <source-location>jdbc/xa/DefaultXADS</source-location>
>   <username>ldh</username>
>   <password>ldhpw</password>
>  </data-source>
> </data-sources>
>
> --
> ------------------------------------------------------------------
> -------------
>
> Les Hartzman                      "Those that don't read have no
> [EMAIL PROTECTED]          advantage over those that can't",
> Mark Twain
>
>
>
>

Reply via email to