问题描述
我正在启动Oracle WebLogic Server 12.1.3.0,我已经托管了一些WEb应用程序,但我无法启动它,因为我有一个错误
I am starting Oracle WebLogic Server 12.1.3.0 where I have hosted some WEb applications, but I can not start it because I have an error
echo启动weblogic with Java版本:
echo starting weblogic with Java version:
%JAVA_HOME%\bin\java %JAVA_VM% -version
if "%WLS_REDIRECT_LOG%"=="" (
echo Starting WLS with line:
echo %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WLS_POLICY_FILE% %JAVA_OPTIONS% %PROXY_SETTINGS% %SERVER_CLASS%
%JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WLS_POLICY_FILE% %JAVA_OPTIONS% %PROXY_SETTINGS% %SERVER_CLASS%
) else (
echo Redirecting output from WLS window to %WLS_REDIRECT_LOG%
%JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WLS_POLICY_FILE% %JAVA_OPTIONS% %PROXY_SETTINGS% %SERVER_CLASS% >"%WLS_REDIRECT_LOG%" 2>&1
)
但我收到此错误:
C:\myprograms\Tools\tracesnt>startWebLogic.cmd
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=256m
.
CLASSPATH=C:\PROGRA~2\Java\JDK18~1.0_6\lib\tools.jar;C:\myprograms\Tools\wls12130\wlserver\server\lib\weblogic_sp.jar;C:\myprograms\Tools\wls12130\wlserver\server\lib\weblogic.jar;C:\myprograms\Tools\wls12130\wlserver\server\lib\webservices.jar;C:\myprograms\Tools\wls12120\oracle_common\modules\org.apache.ant_1.7.1/lib/ant-all.jar;C:\myprograms\Tools\wls12120\oracle_common\modules\net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar
;C:\myprograms\Tools\wls12130\wlserver\modules\features\oracle.wls.common.nodemanager_1.0.0.0.jar;C:\myprograms\Tools\wls12120\oracle_common\modules\com.oracle.cie.config-wls-online_8.1.0.0.jar;C:\myprograms\Tools\wls12130\wlserver\common\derby\lib\derbyclient.jar;C:\myprograms\Tools\wls12130\wlserver\common\derby\lib\derby.jar;C:\myprograms\Tools\wls12130\wlserver\server\lib\xqrl.jar
.
PATH=;C:\myprograms\Tools\wls12130\wlserver\server\native\win\32;C:\myprograms\Tools\wls12130\wlserver\server\bin;C:\myprograms\Tools\wls12120\oracle_common\modules\org.apache.ant_1.7.1\bin;C:\PROGRA~2\Java\JDK18~1.0_6\jre\bin;C:\PROGRA~2\Java\JDK18~1.0_6\bin;C:\PROGRA~3\Oracle\Java\javapath;C:\myprograms\Oracle\product\112~1.0\CLIENT~1\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WINDOW~1\
v1.0\;C:\Windows\idmu\common;C:\myprograms\ZANTAZ\EASOUT~1.2\bin;C:\PROGRA~2\MIE3C7~1;C:\Windows\System32\WINDOW~1\v1.0\;C:\PROGRA~1\TORTOI~1\bin;C:\myprograms\APACHE~2.3\bin;C:\TD\TD_RF_~1.0\gnu\bin;C:\myprograms\WLSTAP~1.2\bin;C:\myprograms\PHANTO~1.0-W;C:\myprograms\RUBY-2~1.2-X\bin;C:\myprograms\RUBY-2~1.3-X;C:\PROGRA~2\Java\JDK17~1.0_7\bin;C:\PROGRA~2\QUICKT~1\QTSystem\;C:\myprograms\Tools\wls12130\wlserver\server\native\win\32\oci920_8
.
***************************************************
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http:\\hostname:port\console *
***************************************************
starting weblogic with Java version:
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
Starting WLS with line:
C:\PROGRA~2\Java\JDK18~1.0_6\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=256m -Dweblogic.Name=myserver -Djava.security.policy=C:\myprograms\Tools\wls12130\wlserver\server\lib\weblogic.policy -Dweblogic.domain.home=C:\myprograms\Tools\tracesnt -Xdebug -Xrunjdwp:transport=dt_socket,address=2500,server=y,suspend=n -DUseSunHttpHandler=true -Xverify:none -Djava.
endorsed.dirs=C:\PROGRA~2\Java\JDK18~1.0_6\jre\lib\endorsed;C:\myprograms\Tools\wls12120\oracle_common\modules\endorsed -da -Dwls.home=C:\myprograms\Tools\wls12130\wlserver\server -Dweblogic.home=C:\myprograms\Tools\wls12130\wlserver\server -Xdebug -Xrunjdwp:transport=dt_socket,address=2500,server=y,suspend=n weblogic.Server
Java HotSpot(TM) Client VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.
Error occurred during initialization of VM
agent library failed to init: jdwp
C:\myprograms\Tools\tracesnt>
推荐答案
您是否阅读过错误消息?特别是对于这部分检查你的java命令行是否有重复的jdwp。然后你可能发现 -Xrunjdwp
在启动命令中是两次(下面一行:用行开始WLS)。
Have you read the error message? Especially for this part "check your java command line for duplicate jdwp". Then you might have found that -Xrunjdwp
is twice in the startup command (the line below: "Starting WLS with line").
所以你需要检查%JAVA_OPTIONS%
和%PROXY_SETTINGS%
的值在哪里设置你的启动配置。我猜 -Xrunjdwp
附加两次到%JAVA_OPTIONS%
(除非有人滥用%PROXY_SETTINGS %
)。
So you need to check where the values for %JAVA_OPTIONS%
and %PROXY_SETTINGS%
are set in your startup configuration. I guess -Xrunjdwp
is appended twice to %JAVA_OPTIONS%
(except someone has misused %PROXY_SETTINGS%
).
这篇关于错误:无法从Oracle WebLogic Server 12.1.3.0开始两次加载此JVM TI代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!