dcsimg
Why can't I read an Oracle driver with my RMI Server?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, January 16, 2002 02:50 AM

Hi! I don't know why, when I execute my program whitout the RMI server, I can connect to my DataBase, but when I start RmiServer and then I try to connect to my DataBase, the server throw the next exception: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:191) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Co de) at java.lang.ClassLoader.   More>>

Hi!

I don't know why, when I execute my program whitout the RMI server, I can connect to my DataBase, but when I start RmiServer and then I try to connect to my DataBase, the server throw the next exception:

			

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


at java.net.URLClassLoader$1.run(URLClassLoader.java:202)



at java.security.AccessController.doPrivileged(Native Method)



at java.net.URLClassLoader.findClass(URLClassLoader.java:191)



at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)



at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Co
de)



at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)

at java.lang.Class.forName0(Native Method)



at java.lang.Class.forName(Class.java, Compiled Code)




my code is:

			

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




or

			

DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());




Thanks a lot!    <<Less
About | Sitemap | Contact