This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDBC with OAS  RSS feed

 
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: 2630
17
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: 2630
17
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!