WebLogic 12c-错误:未设置ADRS_DOMAIN_PASSWORD环境变量 [英] WebLogic 12c - Error: ADRS_DOMAIN_PASSWORD environment variable not set

查看:112
本文介绍了WebLogic 12c-错误:未设置ADRS_DOMAIN_PASSWORD环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to implement push notification in Oracle MAF (2.3.1) application. I need to deploy Push Server application on WebLogic server.

当我尝试从 JDeveloper 12c IDE 运行集成的WebLogic Server(WL-12c)时,我一直在控制台日志中得到Error: ADRS_DOMAIN_PASSWORD environment variable not set..似乎根本没有创建域.

When i try to run Integrated WebLogic Server (WL-12c) from JDeveloper 12c IDE, I'm keep getting Error: ADRS_DOMAIN_PASSWORD environment variable not set. in console log. Seeems it is not creating domain at all.

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

I have also attached complete Build log on below for your reference,

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

我已按照一些步骤解决了此问题(

I followed some steps to resolve this issue (This article is for WebLogic 11g), it didn't helped me though.

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

Please let me know, if you want any more details. Any help would be appreciated.!

推荐答案

正如希瑟姆先生所言,如果您最近进行了升级,这是Windows 10版本的错误.

As Mr.Hitham told, it is an bug for windows 10 version if you have upgraded recently.

原因

Weblogic jython库无法识别操作系统.

Weblogic jython libraries do not recognize the operating system.

解决方案

Oracle生成了补丁22138883.此补丁解决了问题...

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

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

You could follow the steps as below (Added all the steps since I have seen may of the post reference links are missing or removed from corresponding sites),

  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 \ Lib "
  4. 搜索以下文本"_ osTypeMap" .

  1. Copy jython-modules.jar file from "\WL_Home\wlserver\common\wlst\modules*" as a backup.
  2. Unzip it (Use Winrar, 7-zip., etc)
  3. Open javashell.py file in editor from unzipped folder "Eg:\WL_Home\wlserver\common\wlst\modules\jython-modules\Lib"
  4. Search for the following text "_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 Server 2012' 旁边的

  • 添加'Windows 10'

  • Add 'Windows 10' next to the 'Windows Server 2012' as mentioned below,

    _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 ),

  • Open the command prompt mostly in admin mode, then execute the command jar –cvf jython-modules.jar * as show in image below (Make sure your jdk path shouldn't have any space, I have faced issue so just copied complete jdk fodler into C-Drive),

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

    Copy the latest jar file which is generated in "WL_HOME\wlserver\common\wlst\modules\jython-modules" into "WL_HOME\wlserver\common\wlst\modules".

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

    Now start the IntegratedWebLogicServer from yout JDeveloper. It will create based on new domain credentials and you could able to access the server console after successful creation of domain.

    有关更多参考,请检查以下链接.

    For any more reference, please check below links.

    • Reference 1
    • Reference 2

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

    Hope this helps some one.! Thanks.!

    这篇关于WebLogic 12c-错误:未设置ADRS_DOMAIN_PASSWORD环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆