• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

~~~ How to configre Java Web Server to access Oracle driver

 
upulig Malahotra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I'm trying to connect to oracle driver using a servlet.
-------------------
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
String url = "jdbc racle:thin:scott/tiger@192.168.10.1:1521:student" ;
Connection conn = DriverManager.getConnection( url );
-------------------
I get an error driver not found in JWS, but works well with JSDK.
I think it pics the default driver.
Please some one help me.
BR
upul
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which app server and driver are you using?
For example if you are using classes12.zip in Tomcat you need to rename the file to classes12.jar and drop it in either the [TOMCAT_HOME]/lib or [TOMCAT_HOME]/webapps/[APPLICATION_CONTEXT]/web-inf/lib directory...
If you do a search for "Oracle server" in either this or the Tomcat forums you will get more answers.
DOM
 
upulig Malahotra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm using Java Web Server and classes111.zip.

thanks
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're looking for a free app server, can I recommend moving to Tomcat? (You won't regret it)
If Java Web server is an early release of iPlanet, you need to add classes111.zip to the (internal) classpath.
Application servers generally manage the loading of classes internall. This allows a single JVM to handle several applications without having to merge (or mix up) the code for each so they can't call each others code...
DOM
 
upulig Malahotra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you somuch DOM.
It worked wellwith TOMCAT.
Do I have follow the same procedure with Weblogic server too ?
thanks again
BR
upulig
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has been a while since I used Weblogic, but I think it may be easier if you use the Weblogic Oracle drivers.
You can still use the type 4 driver as long as you put it in the right place so that Weblogic can find it (and that isn't necessarily on the classpath...)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic