gpt4 book ai didi

java - 错误 : Cannot load this JVM TI agent twice starting Oracle WebLogic Server 12. 1.3.0

转载 作者:搜寻专家 更新时间:2023-10-30 19:58:13 24 4
gpt4 key购买 nike

我正在启动 Oracle WebLogic Server 12.1.3.0,我在其中托管了一些 WEb 应用程序,但我无法启动它,因为出现错误

用Java版本回显启动weblogic:

%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在启动命令中出现了两次(下面一行:“Starting WLS with line”)。

因此,您需要检查在启动配置中设置了 %JAVA_OPTIONS%%PROXY_SETTINGS% 的值。我猜 -Xrunjdwp 被附加到 %JAVA_OPTIONS% 两次(除非有人误用了 %PROXY_SETTINGS%)。

关于java - 错误 : Cannot load this JVM TI agent twice starting Oracle WebLogic Server 12. 1.3.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34352006/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com