我正在尝试在 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 ...
您可以按照以下步骤操作(添加了所有步骤,因为我看到可能有帖子引用链接丢失或从相应站点中删除),
操作步骤:
_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', )),
)
_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', )),
)
如需更多引用,请查看以下链接。
希望这对某人有所帮助。!谢谢。!
关于WebLogic 12c - 错误 : ADRS_DOMAIN_PASSWORD environment variable not set,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40780972/