1.5.1 Startup Script Modification

This topic explains the Startup Script Modification.

By default, the TopLink used in MBean uses Oracle xml parser internally. However, Weblogic Server has to use JAXPlatform.

To change the system property, follow the steps below:

  1. Go to the Weblogic domain home folder.
    1. Based on the operating system used, open startWeblogic.cmd (Windows) or startWeblogic.sh (Linux) from the bin folder.
    2. Search for WLS_REDIRECT_LOG. After %JAVA_OPTIONS% add the following code under if and else conditions.
      -Dtoplink.xml.platform=oracle.toplink.platform.xml.jaxp.JAXPPlatform

      Now, the details will look like this:

      if "%WLS_REDIRECT_LOG%"=="" (
      echo Starting WLS with line:
      echo %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% -
      Dweblogic.Name=%SERVER_NAME% -
      Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy
      %JAVA_OPTIONS% %PROXY_SETTINGS% %SERVER_CLASS%
      %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% -
      Dweblogic.Name=%SERVER_NAME% -
      Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy
      %JAVA_OPTIONS% -
      Dtoplink.xml.platform=oracle.toplink.platform.xml.jaxp.JAXPPlatform
      %PROXY_SETTINGS% %SERVER_CLASS%
      ) else (
      echo Redirecting output from WLS window to %WLS_REDIRECT_LOG%
      %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% -
      Dweblogic.Name=%SERVER_NAME% -
      Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy
      %JAVA_OPTIONS% -
      Dtoplink.xml.platform=oracle.toplink.platform.xml.jaxp.JAXPPlatform
      %PROXY_SETTINGS% %SERVER_CLASS% >"%WLS_REDIRECT_LOG%" 2>&1
      )
  2. Restart the Weblogic server.