问题描述
在jdeveloper 11.1.1.6中启动weblogic服务器实例时遇到问题,但是startWebLogic脚本启动了,但是随后出现以下错误:
I am having an issue starting a weblogic server instance in jdeveloper 11.1.1.6 The startWebLogic script starts, but then I receive the following error:
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unrecognized option: -jrockit
我尝试了人们为解决此错误而发布的其他一些解决方案,但没有成功.其他一些建议涉及JAVA_VM和MEM_ARGS变量,但是它对我不起作用.我还挖出了tokenValues.properties文件,并删除了@JAVA_VM = -jrockit语句,但这也不起作用.
I tried some of the other solutions that people have posted for this error, but have had no success. Some of the other suggestions involved JAVA_VM and the MEM_ARGS variables, but it didn't work for me. I also dug up the tokenValues.properties file, and deleted the @JAVA_VM = -jrockit statement, and that didn't work either.
我正在使用weblogic服务器11gR1.在这种环境下,还有其他人有这个问题吗?
I am using weblogic server 11gR1. Has anyone else had this problem in this environment?
推荐答案
-jrockit
选项仅用于jrockit JVM,我假设您正在使用标准JDK运行?
The -jrockit
option is only for use with the jrockit JVM, I assume you are running with a standard JDK?
您可能需要在startWebLogic
脚本的顶部设置JAVA_VENDOR=Sun
来避免它.否则,听起来好像您认为您的JAVA_VENDOR=Oracle
,这意味着当您的setDomainEnv脚本获取<weblogic home>/common/bin/commEnv
脚本时,它将自动添加到该-jrockit
.
You might need to set JAVA_VENDOR=Sun
at the top of your startWebLogic
script to avoid it. Otherwise it sounds like it thinks your JAVA_VENDOR=Oracle
, which means it will automatically tack on that -jrockit
when your setDomainEnv script sources the <weblogic home>/common/bin/commEnv
script.
另一种选择是直接修改<weblogic home>/common/bin/commEnv
,这样它就可以做您需要的任何事情.
The other option is to straight up modify <weblogic home>/common/bin/commEnv
so it does whatever you need.
这篇关于在jDeveloper中启动Weblogic服务器实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!