Oracle SOA Suite (MOSC)

MOSC Banner

Weblogic - Cannot load driver: org.postgresql.Driver

edited Nov 8, 2021 6:45AM in Oracle SOA Suite (MOSC) 2 commentsAnswered ✓

I am new in configuring classpath in weblogic and trying to set up postgre driver.

Environment(local): IntegratedWeblogicServer - Locally installed SOA suite 12.2.1.4 in windows 10

PostgreSQL Driver version location: C:\Oracle\Middleware\Oracle_Home\wlserver\server\lib\postgresql-42.2.24.jar

I followed the ff documentations of oracle: https://docs.oracle.com/cd/E24329_01/web.1211/e24487/weblogicserver.htm#ADMRF204

Add the one line in commEnv.cmd to set WEBLOGIC_CLASSPATH. Here is the copy.

@rem *************************************************************************
@rem This script is used to initialize common environment to start WebLogic
@rem Server, as well as WebLogic development.
@rem *************************************************************************

IF NOT DEFINED MW_HOME (
 IF NOT DEFINED WL_HOME (
  echo Please set MW_HOME or WL_HOME 
  IF DEFINED USE_CMD_EXIT (
   EXIT 1
  ) ELSE (
   EXIT /B 1
  )
 )
)

IF DEFINED WL_HOME (
 set MW_HOME=%WL_HOME%\..
) ELSE (
 set WL_HOME=%MW_HOME%\wlserver 
)

set WEBLOGIC_CLASSPATH=%WL_HOME%\server\lib\postgresql.jar;%WEBLOGIC_CLASSPATH%

FOR %%i IN ("%MW_HOME%") DO SET MW_HOME=%%~fsi
FOR %%i IN ("%WL_HOME%") DO SET WL_HOME=%%~fsi
    
call %MW_HOME%/oracle_common/common/bin/commBaseEnv.cmd
call %MW_HOME%/oracle_common/common/bin/commExtEnv.cmd
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center