WebLogic 12c - 错误 : ADRS_DOMAIN_PASSWORD environment variable not set

标签 weblogic jdeveloper weblogic12c oracle-maf

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

当我尝试运行时 集成 WebLogic 服务器 (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 ),但它并没有帮助我。

如果您想了解更多详情,请告诉我。任何帮助,将不胜感激。!

最佳答案

正如 Hitham 先生所说,如果您最近升级,这是 Windows 10 版本的错误。

Cause

Weblogic jython libraries do not recognize the operating system.

Solution

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



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

操作步骤:
  • 复制 jython-modules.jar 来自“\WL_Home\wlserver\common\wlst\modules* ”的文件作为备份。
  • 解压(使用 Winrar、7-zip 等)
  • 开通 javashell.py 编辑器中解压缩文件夹中的文件“ 例如:\WL_Home\wlserver\common\wlst\modules\jython-modules\Lib
  • 搜索以下文字 "_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', )),
    )
    
  • 添加 “Windows 10”旁边 “Windows Server 2012”如下所述,
    _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', )),
    )
    
  • 多以管理员模式打开命令提示符,然后执行命令 jar –cvf jython-modules.jar * 如下图所示(确保您的 jdk 路径不应该有任何空间,我遇到了问题,因此只需将完整的 jdk fodler 复制到 C-Drive 中),
    enter image description here
  • 复制最新生成的jar文件 "WL_HOME\wlserver\common\wlst\modules\jython-modules"进入 "WL_HOME\wlserver\common\wlst\modules" .
  • 现在开始集成WebLogicServer 来自 JDeveloper。它将基于新的域凭据创建,并且您可以在成功创建域后访问服务器控制台。

  • 如需更多引用,请查看以下链接。
  • Reference 1
  • Reference 2

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

    关于WebLogic 12c - 错误 : ADRS_DOMAIN_PASSWORD environment variable not set,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40780972/

    相关文章:

    Java Web 服务客户端 cdata 标签

    java - 如何在使用 inputfile adf 上传文件时显示弹出窗口

    java - JDeveloper 和 Vaadin 的小问题

    java - weblogic 12.1.3,部署异常,无法继承final类

    java - 通过 WebLogic 连接数据库

    java - 如何在不重新部署的情况下更改weblogic中的属性值?

    eclipse - 开发过程中的Weblogic热部署(如WSSD/RAD)

    jersey - 在 weblogic 上升级 jax-rs 共享库

    java - Weblogic 12.2.1.0.0 禁用默认基本 URI 模式值(资源)

    java - 没有为 EntityManager 命名的持久性提供程序 - 当尝试从 weblogic 控制台部署时