急!JMX接口监控websphere启用SOAP全局安全性后系统无法创建连接

最近用JMX接口开发监控websphere性能的程序,websphere未启用全局安全性时,即登录过程中不输入用户名和密码时程序使用SOAP连接器能连上服务器,并能取出数据.但启用安全性后就连不上了。当用户必须输入用户名和密码才能登录的情况下,这个是在安装过程中设置了用户名和密码。可是总是出现启用 SOAP 连接器安全性时,系统无法创建连接到端口 8880 上的主机192.168.1.99 的 SOAP 连接器这样的错误。

在网上看到许多跟这相关的贴子和解决办法,都是指添加下列绿色代码部份,包括IBM官方网站的说明也是如此。但是即使是这样还是无法创建连接。我已经尝试了无数种方法,在网上也找了几天的答案了,众多网友的回复都无法解决问题,包我想总有人开发过这方面的需求,特请教大家。希望能够帮助我解决这个问题,这样也防止更多的网友也碰到此类问题,手足无措。谢谢大家。

WAS版本号是6.1

以下是IBM官网的说明
http://publib.boulder.ibm.com/infocenter/wasinfo/v5r0/index.jsp?topic=/com.ibm.wasee.doc/info/ee/javadoc/ee/com/ibm/websphere/management/AdminClient.html
本人连接部份的开发程序如下:
    props.setProperty(AdminClient.CONNECTOR_TYPE,AdminClient.CONNECTOR_TYPE_SOAP);
    props.setProperty(AdminClient.CONNECTOR_HOST, "192.168.1.99");
    props.setProperty(AdminClient.CONNECTOR_PORT, "8880");   
    props.setProperty(AdminClient.USERNAME, "admin");
    props.setProperty(AdminClient.PASSWORD, "admin");
    props.setProperty(AdminClient.CONNECTOR_SECURITY_ENABLED, "true");
    props.setProperty("javax.net.ssl.trustStore", "C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/etc/DummyClientTrustFile.jks");
    props.setProperty("javax.net.ssl.keyStore", "C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/etc/DummyClientKeyFile.jks");
    props.setProperty("javax.net.ssl.trustStorePassword", "WebAS");
    props.setProperty("javax.net.ssl.keyStorePassword", "WebAS");

错误信息如下:
2009-12-17 15:43:46 com.ibm.websphere.management.AdminClientFactory
警告: ADMC0046W
2009-12-17 15:43:47 com.ibm.ws.management.connector.interop.JMXClassLoader
信息: Could not find tmx4jTransform.jar in null/etc/tmx4jTransform.jar - Interoperability to older versions of WebShere is disabled
com.ibm.websphere.management.exception.ConnectorException: ADMC0053E: 启用 SOAP 连接器安全性时,系统无法创建连接到端口 8880 上的主机192.168.1.99 的 SOAP 连接器。
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:316)
at com.ideal.waspmi.application.DataCollector.(DataCollector.java:23)
at waspmitest.GetData.main(GetData.java:26)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:269)
... 2 more
Caused by: java.lang.NoClassDefFoundError: Invalid Implementation Key, com.ibm.ws.util.PlatformHelper
at com.ibm.ws.util.ImplFactory.loadClassFromKey(ImplFactory.java:230)
at com.ibm.ws.util.ImplFactory.loadImplFromKey(ImplFactory.java:179)
at com.ibm.ws.util.ImplFactory.loadImplFromKey(ImplFactory.java:185)
at com.ibm.ws.util.PlatformHelperFactory.getPlatformHelper(PlatformHelperFactory.java:65)
at com.ibm.ws.management.AdminServiceFactoryInitializer.getPlatformHelper(AdminServiceFactoryInitializer.java:73)
at com.ibm.ws.management.AdminHelper.getPlatformHelper(AdminHelper.java:121)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.setupSslSetting(SOAPConnectorClient.java:1103)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.access$100(SOAPConnectorClient.java:94)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient$1.run(SOAPConnectorClient.java:249)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:247)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.(SOAPConnectorClient.java:188)
... 7 more
参与12

9同行回答

ziyingziying系统工程师信息有限公司
Could not find tmx4jTransform.jar in null/etc/tmx4jTransform.jar - Interoperability to older versions of WebShere is disabled有这个包没?端口正确吗?是8880?默认soap端口是8879显示全部
Could not find tmx4jTransform.jar in null/etc/tmx4jTransform.jar - Interoperability to older versions of WebShere is disabled
有这个包没?端口正确吗?是8880?默认soap端口是8879收起
政府机关 · 2011-01-06
浏览1916
小星星亮晶晶小星星亮晶晶软件开发工程师123
要用IBM自带的jdk编译。显示全部

要用IBM自带的jdk编译。

收起
软件开发 · 2019-05-09
浏览1684
liqiuqinliqiuqin软件开发工程师杭州时代银通软件有限公司
您好,请问AdminServiceFactoryInitializer这个类是在哪个jar包里面?找了很久都没找到,谢谢显示全部

您好,请问AdminServiceFactoryInitializer这个类是在哪个jar包里面?找了很久都没找到,谢谢

收起
软件开发 · 2017-05-15
浏览1755
mofengmofeng系统运维工程师北京蓝海讯通科技有限公司
顶啊顶啊  好头疼的问题显示全部
顶啊顶啊  好头疼的问题收起
互联网服务 · 2013-08-16
浏览1761
websphere1987websphere1987开发工程师zte
使用IBM的JDK好像可以解决这问题显示全部
使用IBM的JDK好像可以解决这问题收起
IT分销/经销 · 2013-05-03
浏览1766
websphere1987websphere1987开发工程师zte
有没有人解决过呢?显示全部
有没有人解决过呢?收起
IT分销/经销 · 2013-04-26
浏览1829
sangmin214sangmin214系统工程师SS
这个很难么?没有人回答?显示全部
这个很难么?没有人回答?收起
系统集成 · 2011-01-05
浏览1798
dimairadimaira开发工程师zzz
我和你遇到了一模一样的问题,3天了... 快让我崩溃了. 不知道你现在解决了吗?显示全部
我和你遇到了一模一样的问题,3天了... 快让我崩溃了. 不知道你现在解决了吗?收起
2010-12-14
浏览1731
yuanbin113yuanbin113java工程师联创科技
太让人失望了,还是靠自己吧显示全部
太让人失望了,还是靠自己吧收起
2009-12-22
浏览1767

提问者

yuanbin113
java工程师联创科技

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2009-12-17
  • 关注会员:2 人
  • 问题浏览:12037
  • 最近回答:2019-05-09
  • X社区推广