What is the difference between (1)when i add an external JAR to wsad Test server and (2) when i add it into web-inf/lib folder.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   yogendra_jat
Posted On:   Wednesday, March 16, 2005 10:11 AM

What is the difference between (1)when i add an external JAR to wsad TEst server and (2) when i add it into web-inf/lib folder. For example, i want to make a database connection with oracle. To achive this i took two steps. 1.copy classes12.zip in to web-inf/lib folder 2.add this jar to JAVA build path one of my java methos which are going to be executed contains these lines .... Class.forName("oracle.jdbc.driver.OracleDriver"); ... when i run the application...i got exception - java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDriver    More>>

What is the difference between

(1)when i add an external JAR to wsad TEst server and


(2) when i add it into web-inf/lib folder.



For example, i want to make a database connection with oracle.
To achive this i took two steps.


1.copy classes12.zip in to web-inf/lib folder


2.add this jar to JAVA build path


one of my java methos which are going to be executed
contains these lines


....
Class.forName("oracle.jdbc.driver.OracleDriver");
...


when i run the application...i got exception -


java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDriver


I didnt understand why this exception .Please Explain ??



when i add Oracle JDBC Divers file to ws.ext.dirs ClassPath.
of WebSphere Test Environment. and run the application it works.


Can anybody please explaine me the mechanism behind this.


Thanks in advance


Yogendra

   <<Less
About | Sitemap | Contact