Vijay, i am still having the same error even thoughti am using the examples which comes with wls6.1 (ex: simpleselect.java.. i did not make any changes). Also, here my classpath setting in startScript:
set JAVA_HOME=C:\bea\jdk131
set WL_HOME=C:\bea\wlserver6.1
set ORACLE_HOME=C:\oracle\ora81
@rem Check that script is being run from the appropriate directory
if not exist lib\weblogic.jar goto wrongplace
goto checkJDK
:wrongplace
echo startExamplesServer.cmd must be run from the config\examples directory. 1>&2
goto finish
:checkJDK
if exist %JAVA_HOME%/bin/javac.exe goto runWebLogic
echo.
echo Javac wasn't found in directory %JAVA_HOME%/bin.
echo Please edit the startExamplesServer.cmd script so that the JAVA_HOME
echo variable points to the root directory of your JDK installation.
goto finish
:runWebLogic
echo on
set PATH=.\bin;.\bin\oci817_8;c:\oracle\ora81\bin;%PATH%
@rem set WEBLOGIC_CLASSPATH=c:\classes\nz\gov\winz\app\ucv
set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\lib\weblogic_sp.jar;%WL_HOME%\lib\weblogic.jar;%ORACLE_HOME%\jdbc\lib\classes111.zip;%ORACLE_HOME%\jdbc\lib\classes12.zip;%CLASSPATH%
Originally posted by Vijay Shrivastava:
This error is not path related it is classpath related.
Assuming followings.
1. You are using WebLogic provided river not Oracle Provided driver.
2. you are running client locally and server is listening on Port 7001.
3. You have set the path correctly (set PATH=%WL_HOME%\bin\oci817_8;c:\ORANT817\bin;%PATH%).
Your classpath should include
%WL_HOME%/lib/weblogic.jar
In your code you will use
Driver class: weblogic.jdbc.oci.Driver
URL: jdbc:weblogic
racle
This should work fine.
Hope it helps,