• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassNotFoundException

 
manju latha
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any body give me the solution here.
iam new and wrote ejb on weblogic5.1 on solaris
for oracle connection i used this lines of code
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
con=DriverManager.getConnection("jdbc racle:thin:@wk01:1523:VIS","scott","tiger");
and i set in weblogic.properties file:
under Weblogic jdbc connection pool management,
url=jdbc racle:thin:wk01:1523:VIS,\
driver=oracle:jdbc river racleDriver,\/
props=user=scott;password=tiger;
so when i run the client program the exception from
weblogic server i saw was:
Exception from bean is
java.lang.ClassNotFoundException racle.jdbc.driver.OracleDriver
i also read from server information when it starts,
that this could occur if the jdbc driver is not in the
weblogic.class.path.
if this is the reason , then can u tellme how to set
that path on solaris.
or any other problems here...?
thanx.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"venga",
You have been asked several times to change your name to comply with the JavaRanch naming policy. 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.
This is likely the last chance you'll get before your account is locked.
Thanks.
Dave
 
Denis Novak
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by venga:
can any body give me the solution here.
iam new and wrote ejb on weblogic5.1 on solaris
for oracle connection i used this lines of code
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
con=DriverManager.getConnection("jdbc racle:thin:@wk01:1523:VIS","scott","tiger");
and i set in weblogic.properties file:
under Weblogic jdbc connection pool management,
url=jdbc racle:thin:wk01:1523:VIS,\
driver=oracle:jdbc river racleDriver,\/
props=user=scott;password=tiger;
so when i run the client program the exception from
weblogic server i saw was:
Exception from bean is
java.lang.ClassNotFoundException racle.jdbc.driver.OracleDriver
i also read from server information when it starts,
that this could occur if the jdbc driver is not in the
weblogic.class.path.
if this is the reason , then can u tellme how to set
that path on solaris.
or any other problems here...?
thanx.

Add file classes12.zip (you can download it from Oracle - it contains driver) to weblogic classpath.
 
manju latha
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yaa i set the classpath for weblogic
in startweblogic.sh file under
Post_classpath=/classes12.zip;
but the thing is now is giving
ClassNotFoundException: java.util.Map

whats the problem sir..?
thanx.
 
s basetti
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i guess java classpath problem.
set java_classpath to JDK/lib/...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic