在 WebSphere 6.1 中配置 Jconsole 时出现 Java 错误
我已经查看了之前的 Jconsole/WAS 问题,但我需要一些额外的帮助。当我尝试运行脚本以使用 Websphere 6.1(启用安全性)启动 jconsole 时,出现以下错误: 找不到 java 类:sun.tools.jconsole.JConsole
这是我正在运行的脚本:
echo off 设置主机=本地主机 设置 PORT=13620
导出 WAS_HOME=/platform/fi60056/WebSphere
导出 THIS_DIR=/tmp/steve
导出 CLIENTSAS=-Dcom.ibm.CORBA.ConfigURL=文件:/$THIS_DIR/sas.client.props 导出 PROVIDER=-Djava.naming.provider.url=corbaname:iiop:$HOST:$PORT
导出 PROPS= 导出 PROPS=$PROPS$CLIENTSAS 导出 PROPS=$PROPS$PROVIDER
导出 CLASSPATH= 导出 CLASSPATH=$CLASSPATH$WAS_HOME/java/lib/tools.jar 导出 CLASSPATH=$CLASSPATH$WAS_HOME/runtimes/com.ibm.ws.admin.client_6.1.0.jar 导出 CLASSPATH=$CLASSPATH$WAS_HOME/runtimes/com.ibm.ws.webservices.thinclient_6.1.0.jar
导出 URL=service:jmx:iiop://$HOST:$PORT/jndi/JMXConnector
上回显
在$WAS_HOME/java/ bin/java -classpath $CLASSPATH $PROPS sun.tools.jconsole.JConsole $URL
你对我缺少的东西有什么想法吗?谢谢
I have reviewed the previous Jconsole/WAS questions but I need some additional help. When I try and run my script to launch jconsole with Websphere 6.1 (Security enabled) I get this error:
The java class is not found: sun.tools.jconsole.JConsole
This is the script I am running:
echo off
set HOST=localhost
set PORT=13620
export WAS_HOME=/platform/fi60056/WebSphere
export THIS_DIR=/tmp/steve
export CLIENTSAS=-Dcom.ibm.CORBA.ConfigURL=file:/$THIS_DIR/sas.client.props
export PROVIDER=-Djava.naming.provider.url=corbaname:iiop:$HOST:$PORT
export PROPS=
export PROPS=$PROPS$CLIENTSAS
export PROPS=$PROPS$PROVIDER
export CLASSPATH=
export CLASSPATH=$CLASSPATH$WAS_HOME/java/lib/tools.jar
export CLASSPATH=$CLASSPATH$WAS_HOME/runtimes/com.ibm.ws.admin.client_6.1.0.jar
export CLASSPATH=$CLASSPATH$WAS_HOME/runtimes/com.ibm.ws.webservices.thinclient_6.1.0.jar
export URL=service:jmx:iiop://$HOST:$PORT/jndi/JMXConnector
echo on
$WAS_HOME/java/bin/java -classpath $CLASSPATH $PROPS sun.tools.jconsole.JConsole $URL
Do you have any ideas of what I am missing? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅此线程
如何在Websphere中启用JMX?有关如何让 JConsole 与 WAS 6.x 一起使用的信息。
IBM 正式不支持 JConsole 与 WAS 6.x。
华泰
曼鲁
Refer to this thread
How do you enable JMX in Websphere? for information on how to get JConsole working with WAS 6.x.
Officially IBM does not support JConsole with WAS 6.x.
HTH
Manglu