• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is this?

 
M Nemonical
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When compile sucessfully ... but when I run :
java.lang.NoClassDefFoundError: oracle/jdbc/pool/OracleConnectionCacheImpl
is this a classpath problem? Classpath is set correctly.
I'm under Red Hat 7.2 with Oracle9i
F.
 
Mohamed Yousuff
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The classpath you have set during compilation is for the compiler only not for the server which is hosting your classes. See the appropriate configuration file (depending on your server) to include the driver in the classpath (of the server).
Originally posted by Mnemonical:
When compile sucessfully ... but when I run :
java.lang.NoClassDefFoundError: oracle/jdbc/pool/OracleConnectionCacheImpl
is this a classpath problem? Classpath is set correctly.
I'm under Red Hat 7.2 with Oracle9i
F.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Mnemonical",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp.
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
Thanks.
Dave
 
M Nemonical
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where do I find this appropriate file? I`m using J2sdk 1.4 and oracle 9i jdbc (for 1.4) with oracle 9i in linux red hat 7.2. my classpath is:
CLASSPATH=/home/dba/OraHome/jdbc/ojdbc14.jar:.: export CLASSPATH
isn`t it for all computer? I`m running database and app on the same box.
F.
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it isn't complaining about your driver, it can't find your connection pool class at "oracle/jdbc/pool/OracleConnectionCacheImpl". Where is this class located? can the package be found from one of your classpath entries?
 
M Nemonical
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The class is located in classpath. The class is within that .jar file. The package is visible because it`s in .jar file that is again, set in classpath. It compiles, if it compiles the class and the package is visible in classpath, right? I just dont undertand why I get this problem when I run it, where is that appropriate file? I have never heard about it.

F.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic