Simple question:  I'm trying to test an oracle database connection via the
<data-sources> configuation settings.  Below is a sample from my
struts-config.xml file:

------------
<struts-config>
        <data-sources>
                <data-source 
                        autoCommit="true" 
                        description="Oracle Sample" 
                        driverClass="oracle.jdbc.driver.OracleDriver" 
                        maxCount="4" 
                        minCount="2" 
                        password="user" 
                        url="jdbc:oracle:thin:SERVERNAME:1521:SID"
                        user="password"/>
        </data-sources>
</struts-config>
------------

where SERVERNAME is the hostname of the database server
and SID is the oracle sid 

This produces the following exception:

------------
action: Exception initializing application data source
org.apache.struts.action.DATA_SOURCE java.sql.SQLException: 
The Network Adapter could not establish the connection
------------

Any insight would be greatly appreciated.

-Tom
---
Tom Maccariella
sengen
[EMAIL PROTECTED]
www.sengen.com

Reply via email to