Developers like me might have struggled to figure out a way to set some jars in the CLASSPATH of the weblogic server to access and load the correct
Java classes when the server starts. So, I thought of putting my solution in this blog, which might be useful for some developers.
Basically you need to modify the WEBLOGIC_CLASSPATH environment variable in commEnv.cmd file located at <WL_HOME>\common\bin.
In my case it is C:\11.1.1.6\wlserver_10.3\common\bin\commEnv.cmd
Append the WEBLOGIC_CLASSPATH variable at the end with the location of jars to be loaded as below:
Basically you need to modify the WEBLOGIC_CLASSPATH environment variable in commEnv.cmd file located at <WL_HOME>\common\bin.
In my case it is C:\11.1.1.6\wlserver_10.3\common\bin\commEnv.cmd
Append the WEBLOGIC_CLASSPATH variable at the end with the location of jars to be loaded as below:
set WEBLOGIC_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\server\lib\weblogic_sp.jar;%WL_HOME%\server\lib\weblogic.jar;%FEATURES_DIR%\weblogic.server.modules_10.3.5.0.jar;%WL_HOME%\server\lib\webservices.jar;%ANT_HOME%/lib/ant-all.jar;%ANT_CONTRIB%/lib/ant-contrib.jar;C:\Users\uagarwal\Downloads\lib\tdgssconfig.jar;C:\Users\uagarwal\Downloads\lib\terajdbc4.jar;
Here, I have set
C:\Users\uagarwal\Downloads\lib\tdgssconfig.jar;
C:\Users\uagarwal\Downloads\lib\terajdbc4.jar;
at the end of the WEBLOGIC_CLASSPATH.
Alternatively, you can put the jars in <WL_HOME>\server\lib where other jars are present. But don't forget to restart the server, in order to pick the latest classes by the server.