Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
isha krishnan
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi l,

i am using Eclipse IDE 3.4.1 and JBOss 5.0 with JDK6. I am facing conncetivity problem.

This is the line added to load particular Oracle Driver. I am Working on Oracle 10g.
The driver for Oracle10g is at location C:\XEClient\jdbc\lib\ojdbc14.jar.

try{
Class.forName("oracle.jdbc.oracle.OracleDriver");
}

This line is giving Classnotfoundexception..

java.lang.ClassNotFoundException: oracle.jdbc.oracle.OracleDriver from BaseClassLoader@e5bef1
............

I have added .jar file to program build path as well added this driver the classpath environment variable.

I also tried to add the driver definition in server alo by adding library to it.

But nothing works.
I am not able to trace the problem.Please look into this problem

Thanks for any contribution in advance




 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




Isha,
There is no such driver like that. It should be oracle.jdbc.driver.OracleDriver for JDK 1.4 and less , and for recent releases of ojdbc it should be oracle.jdbc.OracleDriver.


Hope that helps.
 
isha krishnan
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for piointing such a silly mistake. Problem is solved now. All i did is changed to (oracle.jdbc.OracleDriver) and palced those ojdbc14.jar in the myapp/webcontent/lib/ojdbc14.jar. I found it from some other blog.

I have one question...
Is XE a defualt SID provided by Oracle10g?



 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Is XE a defualt SID provided by Oracle10g?


SID is system identifier to a DB , when there are more than one schema available in DB. I understand Oracle XE is product , i m afraid , i dont think of any relations between them.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic