wood burning stoves*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes JDBC realm URL Tomcat4.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "JDBC realm URL Tomcat4.0" Watch "JDBC realm URL Tomcat4.0" New topic
Author

JDBC realm URL Tomcat4.0

srinivas raju
Greenhorn

Joined: Nov 27, 2001
Posts: 5
hello,
can anyone pl.help me to configure JDBC Realm for oracle
i had tried it and i get this exception.
i know my URL is not correct can anyone tell the correctURL
syntax
connectionURL=
"jdbc racle:thin:@195.168.142.45:1521:RsiSuite","scott","tiger"
i get this exception
Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQL
Exception: invalid arguments in call
LifecycleException: Exception opening database connection: java.sql.SQLException: inval
id arguments in call
Jim Bertorelli
Ranch Hand

Joined: Nov 28, 2001
Posts: 136
Try this:
Class.forName("oracle.jdbc.driver.OracleDriver"));
Connection con = DriverManager.getConnection("jdbc racle:thin:@195.168.142.45:1521:RsiSuite", "scott", "tiger" );

Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
The string needs to be one string for your database url
connectionURL=
"jdbcracle:thin:@195.168.142.45:1521:RsiSuite?user=scott;password=tiger"
Give this a try.

------------------
I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
[This message has been edited by Carl Trusiak (edited December 03, 2001).]


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC realm URL Tomcat4.0