hello ravi,
in server.xml , in your context give
<Context path="/..." docBase="..." ......>
<Resource name="jdbc/myOracle" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="scott" password="tiger"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@localhost:1521:ora10" />
<Context>
drop ojdbc14.jar in CATALINA_HOME's common\lib directory
you can access through JAVA ENC easily
wishes,
Prasad DTR
----- Original Message ----
From: "Chittajalu, Ravi S." <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, 6 February, 2007 10:20:51 PM
Subject: Questions about Tomcat installation on Solaris Platform
Hello Users Group,
Request your help on following questions
1. This one is more a clarification question.
I used a Unix account 'devuser', which is not
associated to any Unix group. I installed Tomcat
using this user account. I was able to
successfully install and Tomcat runs fine. With
the same user I am not able to execute any Java
program. I get an
"Exception in thread "main"
java.lang.NoClassDefFoundError: TestDB" . The program
compiles well, but cannot execute. My question is how is
Tomcat able to Run under the same User account 'devuser'??
2. I configured a Database resource name with JNDI name
"jdbc/oracle10g", but I do not have a way to test and it
does not look like the connection is happening.
I gave the
URL :jdbc:oracle:oci:@host:port:SID
Driver as: oracle.jdbc.driver.OracleDriver
Then userid / password.
I tested the SID from unix command line using
SQLPLUS and it works.
Can some suggest a way to test this and If there
is any problem with the configuration.
Regards
Ravi Chittajalu
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
___________________________________________________________
What kind of emailer are you? Find out today - get a free analysis of your
email personality. Take the quiz at the Yahoo! Mail Championship.
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]