• Post Reply Bookmark Topic Watch Topic
  • New Topic

lang.ClassNotFoundException

 
AmitCdac Grover
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..

when i have created a session bean which returning me connection.
when i tried to run client it will give the following error. i alredy included the classes12.jar file in d:\j2ee1.3.1\lib folder .but again it will give me the same error . plz help me out



java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at com.sun.enterprise.util.EJBClassLoader.findClass(EJBClassLoader.java:
258)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at ConManager.ConBean.getConnection(ConBean.java:36)
at ConManager.ConBean_EJBObjectImpl.getConnection(ConBean_EJBObjectImpl.
java:22)
at ConManager._ConBean_EJBObjectImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Ge
nericPOAServerSC.java:520)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Gen
ericPOAServerSC.java:210)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAS
erverSC.java:112)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProces
sor.java:84)
at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadP
ool.java:99)



regards

amit grover
 
Poobhathy Kannan
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add classes12.jar to CLASSPATH and try...

Check your driver( version ) compatible with j2ee1.3.
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep, during runtime, the Oracle jar file must be in your classpath!
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!