This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JDBC and the fly likes JDBC with OAS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC with OAS " Watch "JDBC with OAS " New topic
Author

JDBC with OAS

Essam AbdelAziz
Ranch Hand

Joined: Mar 10, 2007
Posts: 34
Hello guys i have a problem

with deploying J2ee application

the apllication is working fine in case using tomcat as a webserver

but in case using the oracle application server i can't connect to the database

althogh using the same Way to connect to database

do i need any extra configauration for OAS to connect to DB

i use

OAS 10.1.2

jdbc connection
and this is my connection class

String url ="jdbcracle:thin:@SSLWFSRV:1521EVDB";


Class.forName("oracle.jdbc.driver.OracleDriver");
conn=DriverManager.getConnection(url,"user","Password");


thanks and regards
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2501
    
    8

Please post the errors.

You are not using the application server's database pool. You're using straightforward jdbc. So it should not be a server configuration issue.
Two possible causes for the error are: the oracle jdbc driver is not in your application's classpath, or
the database service defined in your connection string is not reachable from your OAS server.
The errors will tell you more.

Regards, Jan


OCUP UML fundamental and ITIL foundation
youtube channel
Essam AbdelAziz
Ranch Hand

Joined: Mar 10, 2007
Posts: 34
url ="jdbcracle:thin:@SSLWFSRV:1521EVDB";

Class.forName("oracle.jdbc.driver.OracleDriver");
conn=DriverManager.getConnection(url,"user","pass");



thanks
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2501
    
    8

That is the code. Can you post the errors you get when running the code? They will maybe show us what's going wrong.

Regards, Jan
 
GeeCON Prague 2014
 
subject: JDBC with OAS