Coherence Servers Weblogic 12.1.1 ClassNotFoundException

时间:2014-03-24 12:21:14

标签: weblogic weblogic12c oracle-coherence

我正在学习教程,在某些方面我需要在Coherence服务器上的Server Start中设置一些参数。

我的类路径配置是:

/opt/Oracle/Weblogic/12.1.1/coherence_3.7/lib/coherence.jar:
/opt/Oracle/Weblogic/12.1.1/modules/javax.management_1.2.2.jar:
/opt/Oracle/Weblogic/12.1.1/modules/javax.management.remote_1.0.1.4.jar:
/opt/Oracle/Weblogic/12.1.1/coherence_3.7/lib/coherence-web-spi.war:`

我的Argument配置是:

-Dtangosol.coherence.management.remote=true
-Dtangosol.coherence.management=all
-Dtangosol.coherence.session.localstorage=true
-Dtangosol.coherence.cacheconfig=/opt/Oracle/Weblogic/12.1.1/user_projects/domains/labs_domain/config/coherence/my_coh_cluster/session-cache-config.xml
‐Xmanagement:autodiscovery=false,authenticate=false,ssl=false,port=8291

当我尝试启动服务器时,收到以下错误:

<Mar 21, 2014 4:53:21 PM> <INFO> <NodeManager> <Starting Coherence server with command line: /usr/lib/jvm/jdk1.6.0_45/bin/java -Dtangosol.coherence.member=coh_server1 -Dtangosol.coherence.wka=127.0.0.1 -Dtangosol.coherence.wka.port=8888 -Dtangosol.coherence.clusterport=7777 -Dtangosol.coherence.clusteraddress=231.1.1.1 -Dtangosol.coherence.ttl=0 -Dtangosol.coherence.localport=8888 -Dtangosol.coherence.localhost=127.0.0.1 -Dtangosol.coherence.cluster=my_coh_cluster -Djava.class.path=/opt/Oracle/Weblogic/12.1.1/coherence_3.7/lib/coherence.jar: /opt/Oracle/Weblogic/12.1.1/modules/javax.management_1.2.2.jar: /opt/Oracle/Weblogic/12.1.1/modules/javax.management.remote_1.0.1.4.jar: /opt/Oracle/Weblogic/12.1.1/coherence_3.7/lib/coherence-web-spi.war: /opt/Oracle/Weblogic/12.1.1/modules/features/weblogic.server.modules.coherence.server_12.1.1.0.jar -Dtangosol.coherence.management.remote=true -Dtangosol.coherence.management=all -Dtangosol.coherence.session.localstorage=true -Dtangosol.coherence.cacheconfig=/opt/Oracle/Weblogic/12.1.1/user_projects/domains/labs_domain/config/coherence/my_coh_cluster/session-cache-config.xml ‐Xmanagement:autodiscovery=false,authenticate=false,ssl=false,port=8291 -Dweblogic.RootDirectory=/opt/Oracle/Weblogic/12.1.1/user_projects/domains/labs_domain weblogic.nodemanager.server.provider.WeblogicCacheServer > <Mar 21, 2014 4:53:21 PM> <INFO> <NodeManager> <Working directory is '/opt/Oracle/Weblogic/12.1.1/user_projects/domains/labs_domain'> <Mar 21, 2014 4:53:21 PM> <INFO> <NodeManager> <Server output log file is '/opt/Oracle/Weblogic/12.1.1/user_projects/domains/labs_domain/servers_coherence/coh_server1/logs/coh_server1.out'> Exception in thread "main" java.lang.NoClassDefFoundError: ‐Xmanagement:autodiscovery=false,authenticate=false,ssl=false,port=8291 Caused by: java.lang.ClassNotFoundException: ‐Xmanagement:autodiscovery=false,authenticate=false,ssl=false,port=8291 at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: ‐Xmanagement:autodiscovery=false,authenticate=false,ssl=false,port=8291. Program will exit. <Mar 21, 2014 4:53:21 PM> <FINEST> <NodeManager> <Waiting for the process to die: null> <Mar 21, 2014 4:53:21 PM> <INFO> <NodeManager> <Server failed during startup so will not be restarted> <Mar 21, 2014 4:53:21 PM> <FINEST> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>

似乎 - 管理:自动发现是错误的,我只是不知道为什么,因为我只是按照步骤

1 个答案:

答案 0 :(得分:0)

我认为问题是你没有指向JRockit JVM,它是唯一能识别Xmanagement:autodiscovery选项的JVM。

现在你指的是:/usr/lib/jvm/jdk1.6.0_45/bin/java

将您的JAVA_HOME切换到JRockit安装。

另一种选择是根据以下信息尝试-Dcom.oracle.management.autodiscoveryhttp://docs.oracle.com/cd/E15289_01/doc.40/e15062/doptions.htm