首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >融合服务器Weblogic 12.1.1 ClassNotFoundException

融合服务器Weblogic 12.1.1 ClassNotFoundException
EN

Stack Overflow用户
提问于 2014-03-24 20:21:14
回答 1查看 794关注 0票数 0

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

我的类路径配置是:

代码语言:javascript
复制
/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:`

我的参数配置是:

代码语言:javascript
复制
-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>

看起来-Xmanagement:autodiscovery是错的,我只是不知道为什么,因为我只是遵循步骤

EN

回答 1

Stack Overflow用户

发布于 2014-03-25 04:25:10

我认为问题是您没有针对JVM,它是唯一能够识别Xmanagement:autodiscovery选项的JRockit。

现在你的目标是:/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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22609245

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档