首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > 其他服务器 >

IBM的包好难找,该怎么处理

2012-04-03 
IBM的包好难找,急!!!代码:String wasInstallLocation /opt/IBM/WebSphere/AppServerString trustStor

IBM的包好难找,急!!!
代码:
  String wasInstallLocation = "/opt/IBM/WebSphere/AppServer";  
  String trustStore = "/profiles/dwe/etc/DummyClientTrustFile.jks";  
  String keyStore = "/profiles/dwe/etc/DummyClientKeyFile.jks";  
  String trustStorePW = "WebAS";  
  String keyStorePW = "WebAS";  
  
  Properties connectProps = new Properties();  
  
  connectProps.setProperty( AdminClient.USERNAME, this.user );  
  connectProps.setProperty( AdminClient.PASSWORD, this.password );  
  connectProps.setProperty( AdminClient.CONNECTOR_TYPE, AdminClient.CONNECTOR_TYPE_SOAP );  
  connectProps.setProperty( AdminClient.CONNECTOR_HOST, "localhost" );  
  connectProps.setProperty( AdminClient.CONNECTOR_PORT, "" + "8880" );  
  connectProps.setProperty(AdminClient.CONNECTOR_SECURITY_ENABLED, "true");  
  connectProps.setProperty( "javax.net.ssl.trustStore", wasInstallLocation  
  + trustStore );  
  connectProps.setProperty( "javax.net.ssl.keyStore", wasInstallLocation  
  + keyStore );  
  connectProps.setProperty( "javax.net.ssl.trustStorePassword", trustStorePW );  
  connectProps.setProperty( "javax.net.ssl.keyStorePassword", keyStorePW );  
   
  // create a new connection  
   
   
try {
adminClient = AdminClientFactory.createAdminClient( connectProps );
} catch (ConnectorException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}



错误:
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/ws/bootstrap/RASWsLoggerFactory
at com.ibm.websphere.management.AdminClientFactory.<clinit>(AdminClientFactory.java:119)
at WebSphereJmxTest.createConncetion(WebSphereJmxTest.java:53)
at WebSphereJmxTest.main(WebSphereJmxTest.java:102)
Caused by: java.lang.ClassNotFoundException: com.ibm.ws.bootstrap.RASWsLoggerFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 3 more

请教一下兄弟们,IBM的这个类com.ibm.ws.bootstrap.RASWsLoggerFactory要去哪找(在哪个包)?
我用的WebSphere Application Server 7.0.0.0 
把整个包文件都翻遍了都没找到,急!!!

[解决办法]
那看来我能白拿分了。

热点排行