Please post your stack trace from where the context reference in your code is blowing out.
On 6/7/06, Scott Purcell <[EMAIL PROTECTED]> wrote:
I am having trouble connecting. That string does fine using JDBC, but when in the <context element below does not connect. Thanks, ----- Original Message ----- From: "Marc Farrow" <[EMAIL PROTECTED]> To: "Tomcat Users List" <users@tomcat.apache.org> Sent: Wednesday, June 07, 2006 12:44 PM Subject: Re: TNS entry JNDI > Are you having a database connection problem or problem getting the > reference from JNDI in your code? > > On 6/7/06, Scott Purcell <[EMAIL PROTECTED]> wrote: > > > > > > > > I am running Tomcat 5.x and have been using Oracle 9i. We are now > > running Oracle 10g and it only uses TNS names. Here is my context > > element: The one commented out used to work for 9i, and the other one is > > for the tns names. I am having trouble finding information about Tomcat > > and TNS names for connection. Does this look correct? > > > > > > > > > > > > > > > > > > > > <Context reloadable="true" path="/new10"> > > > > > > > > <Logger className="org.apache.catalina.logger.FileLogger" > > prefix="cpe10g." suffix=".log" timestamp="true"/> > > > > > > > > > > > > <!-- > > > > <Resource name="jdbc/old" auth="Container" > > > > type="javax.sql.DataSource" username="old" password="xxx" > > > > driverClassName="oracle.jdbc.driver.OracleDriver" > > url="jdbc:oracle:thin:@xxxcom:1521:DEV" > > > > maxActive="8" maxIdle="4"/> > > > > > > > > --> > > > > <Resource name="jdbc/new" auth="Container" > > > > type="javax.sql.DataSource" username="new" password="xxx" > > > > driverClassName="oracle.jdbc.driver.OracleDriver" > > url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP > > )(HOST=xxxx.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=xxx.com )(SERVER > > =DEDICATED)))" > > > > maxActive="8" maxIdle="4"/> > > > > > > > > > > > > </Context> > > > > > > > > > > > > > -- > Marc Farrow > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Marc Farrow