• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC with OAS

 
Essam AbdelAziz
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2586
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Essam AbdelAziz
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
url ="jdbcracle:thin:@SSLWFSRV:1521EVDB";

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



thanks
 
Jan Cumps
Bartender
Posts: 2586
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic