WebLogic 12c - Error: ADRS_DOMAIN_PASSWORD environment variable not set

WebLogic 12c - Error: ADRS_DOMAIN_PASSWORD environment variable not set

我正在尝试在 Oracle MAF (2.3.1) 应用程序中实施推送通知。我需要在 WebLogic 服务器上部署推送服务器应用程序。

当我尝试 运行 Integrated WebLogic Server (WL-12c) 来自 JDeveloper 12c IDE ,我不断在控制台日志中收到 Error: ADRS_DOMAIN_PASSWORD environment variable not set.。似乎它根本没有创建域。

我还在下面附上了完整的构建日志供您参考,

Adding environment variable to WLST script USER_MEM_ARGS = -Xms32m -Xmx1024m -XX:MaxPermSize=384m
Log File:      C:\Users\admin\AppData\Roaming\JDeveloper\system12.2.1.0.42.151011.0031\o.j2ee.adrs\BuildDefaultDomain.log
Label:         JDEVADF_MAIN_GENERIC_151011.0031.S
Product Home:  C:\oracle\Oracle_JDev_Home\jdeveloper\jdev\
Domain:        C:\Users\admin\AppData\Roaming\JDeveloper\system12.2.1.0.42.151011.0031\DefaultDomain

BuildDefaultDomain1.py      2016-11-24 13:01:43

cmd.exe /c ""C:\oracle\Oracle_JDev_Home\oracle_common\common\bin\wlst.cmd" "C:\Users\admin\AppData\Roaming\JDeveloper\system12.2.1.0.42.151011.0031\o.j2ee.adrs\BuildDefaultDomain1.py""
Process started
wlst > 
wlst > Initializing WebLogic Scripting Tool (WLST) ...
wlst > 
wlst > Welcome to WebLogic Server Administration Scripting Shell
wlst > 
wlst > Type help() for help on available commands
wlst > 
wlst > Failed to get environment, environ will be empty: (0, 'Failed to execute command ([\'sh\', \'-c\', \'env\']): java.io.IOException: Cannot run program "sh": CreateProcess error=2, The system cannot find the file specified')
wlst > Error:  ADRS_DOMAIN_PASSWORD environment variable not set.
wlst > 
wlst > 
wlst > Exiting WebLogic Scripting Tool.
wlst > 
wlst > Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0
Elapsed time:  13120 ms

我按照一些步骤解决了这个问题 (This article is for WebLogic 11g),但它对我没有帮助。

如果您需要更多详细信息,请告诉我。任何帮助将不胜感激。!

Cause

Weblogic jython libraries do not recognize the operating system.

Solution

Oracle generated the patch 22138883. This patch fixes the problem ...

来源:http://archlogs.com/en/development/windows10-soa-12-c-quickstart-integrated-environment-does-not-start/

如 Mr.Hitham 所述,如果您最近升级,这是 windows 10 版本的错误。

Cause

Weblogic jython libraries do not recognize the operating system.

Solution

Oracle generated the patch 22138883. This patch fixes the problem ...

您可以按照以下步骤操作(添加了所有步骤,因为我看到可能 post 参考链接已从相应站点丢失或删除),

要遵循的步骤:

  1. 从“\WL_Home\wlserver\common\wlst\modules*”复制jython-modules.jar文件作为备份。
  2. 解压缩(使用 Winrar、7-zip. 等)
  3. 在编辑器中打开解压缩文件夹中的 javashell.py 文件 "例如:\WL_Home\wlserver\common\wlst\modules\jython-modules\库"
  4. 搜索以下文字"_osTypeMap".

    _osTypeMap = (
    ( "nt", ( 'nt', 'Windows NT', 'Windows NT 4.0', 'WindowsNT',
              'Windows 2000', 'Windows 2003', 'Windows XP', 'Windows CE',
              'Windows Vista', 'Windows Server 2008', 'Windows 7', 'Windows 8', 
              'Windows Server 2012')),
    ( "dos", ( 'dos', 'Windows 95', 'Windows 98', 'Windows ME' )),
    ( "mac", ( 'mac', 'MacOS', 'Darwin' )),
    ( "None", ( 'None', )),
    )
    
  5. 'Windows Server 2012'[旁边添加'Windows 10' =63=] 如下所述,

    _osTypeMap = (
    ( "nt", ( 'nt', 'Windows NT', 'Windows NT 4.0', 'WindowsNT',
              'Windows 2000', 'Windows 2003', 'Windows XP', 'Windows CE',
              'Windows Vista', 'Windows Server 2008', 'Windows 7', 'Windows 8', 
              'Windows Server 2012','Windows 10')),
    ( "dos", ( 'dos', 'Windows 95', 'Windows 98', 'Windows ME' )),
    ( "mac", ( 'mac', 'MacOS', 'Darwin' )),
    ( "None", ( 'None', )),
    )
    
  6. 以管理员模式打开命令提示符,然后执行命令jar –cvf jython-modules.jar * 如下图所示(确保你的 jdk 路径不应该有任何 space,我遇到了问题所以只是将完整的 jdk fodler 复制到 C-Drive),

  7. "WL_HOME\wlserver\common\wlst\modules\jython-modules"中生成的最新jar文件复制到"WL_HOME\wlserver\common\wlst\modules"中.

  8. 现在从您的 JDeveloper 启动 IntegratedWebLogicServer。它将根据新的域凭据创建,您可以在成功创建域后访问服务器控制台。

如需更多参考,请查看以下链接。

希望这对某些人有所帮助!谢谢!

我发现了问题,文档中提到的步骤是正确的。但是,他们提到的不是 'Windows 10',而是“10 Windows”。