Jdev11g-006:解决JDeveloper在windows8中创建IntegratedWeblogicServer失败问题
来源:互联网 发布:java socket服务端程序 编辑:程序博客网 时间:2024/05/22 12:43
问题描述
在为Jdeveloper 11.1.2.4创建IntegratedWebLogicServer时失败,安装的Jdeveloper为通用Jar版本,出现如下错误。
Initializing WebLogic Scripting Tool (WLST) ...Welcome to WebLogic Server Administration Scripting ShellType help() for help on available commandsError: ADRS_DOMAIN_PASSWORD environment variable not set.Exiting WebLogic Scripting Tool.
CreateDefaultDomain.log中的内容
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.
本机也安装了11.1.1.7.0的windows安装版本,创建IntegratedWebLogicServer时并未出现以上错误。而在网上也看到过此版本在windows8下出错,猜测可能只有jar版本的jdeveloper才会出现以上错误,待验证。
操作系统没有被Oracle产品认证
解决方法
修改jython-modules.jar,在目录${MIDDLEWARE_HOME}\wlserver_10.3\common\wlst\modules 用winrar打开jython-modules.jar,找到javashell.py文件,解压该文件。
修改javashell.py中以下代码,将Windows 8添加到里面。
_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' )), ( "dos", ( 'dos', 'Windows 95', 'Windows 98', 'Windows ME' )), ( "mac", ( 'mac', 'MacOS', 'Darwin' )), ( "None", ( 'None', )), )
然后将修改好的文件,直接拖入到之前打开的winrar相同的目录下即可。
也可以先解压整个文件夹,修改完后,用java -cvf 命令打包。
0 0
- Jdev11g-006:解决JDeveloper在windows8中创建IntegratedWeblogicServer失败问题
- Jdev11g-002:解决Jdeveloper中CVS Check In后乱码问题
- JDeveloper初步:在JDeveloper中创建和使用Web Services
- 解决在postgressql中创建uuid函数失败问题
- Jdev11g-005:Jdeveloper 导出Java Doc
- JDeveloper使用过程中碰到怪问题的解决
- 解决Jdeveloper中CVS Check In后乱码问题
- 在Jdeveloper使用SVN时,如果先设置浏览器代理,后在Jdeveloper创建SVN连接会导致的问题
- 在VS2013中使用WTL90创建向导失败问题
- 在ATL中创建对话框失败的问题
- 如何解决JDeveloper启动时不能创建jvm实例的问题
- 解决在ubuntu系统中安装Chrome失败的问题
- 如何在windows8 metro app中创建list界面
- JDeveloper中將日誌打印在控制臺中
- C# 中虚拟目录创建失败问题
- SSH整合中sessionFactory创建失败问题
- 解决Everything在windows8下使用失效无反应的问题
- Jdev11g-001:更改Jdeveloper系统文件夹位置(system11.1.1.5.37.60.13)
- 网络封包分析工具Charles
- 关于DB2的内存分配
- IOS----plist和date类型的冲突
- 搭建myeclipse tomcat jsp
- sharedPreferences
- Jdev11g-006:解决JDeveloper在windows8中创建IntegratedWeblogicServer失败问题
- CUDA: 简单入门
- dfa
- 深入研究PHP及Zend Engine的线程安全模型
- IOS系统照相机的调用
- owb基本概念之Workspaces、Repository和Control Center Service
- linux 内核源代码目录结构
- 解决linux系统不识别设备、手机问题方法
- Java解析XML的四种方法