Snapshot Issues and errors

Client jars

Ensure the path to the following jar files is set in the task in the orchestration tab on the environment page.

com.ibm.ws.admin.client_7.0.0.jar
com.ibm.ws.emf.jar
com.ibm.ws.security.crypto.jar

Issue: NoClassDefFoundError

The following error is reported on deployment

Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/security/krb5/KrbException
        at com.ibm.ws.management.event.ListenerInfo.getSecurityMonitor(ListenerInfo.java:95)
        at com.ibm.ws.management.event.ListenerInfo.(ListenerInfo.java:46)
        at com.ibm.ws.management.event.LocalNotificationService.createListenerInfo(LocalNotificationService.java:198)
        at com.ibm.ws.management.event.LocalNotificationService.addListenerInternal(LocalNotificationService.java:193)
        at com.ibm.ws.management.event.ClientNotificationService.addClientListenerInternal(ClientNotificationService.java:124)
        at com.ibm.ws.management.event.ClientNotificationService.addNotificationListener(ClientNotificationService.java:87)
        at com.ibm.ws.management.AdminClientImpl.addNotificationListener(AdminClientImpl.java:263)
        at com.midvision.rapiddeploy.jmx.outbound.was.WebSphereJmxNotificationListener.(WebSphereJmxNotificationListener.java:33)
        at com.midvision.rapiddeploy.jmx.outbound.was.WebSphereJmxDeployer.doDeployment(WebSphereJmxDeployer.java:63)
        at com.midvision.rapiddeploy.orchestration.tasks.was.JmxDeployFileTask.deploy(JmxDeployFileTask.java:143)
        at com.midvision.rapiddeploy.orchestration.tasks.was.JmxDeployFileTask.runTask(JmxDeployFileTask.java:96)
        at com.midvision.rapiddeploy.domain.task.core.AbstractJobRunner.runBatch(Unknown Source)
        at com.midvision.rapiddeploy.domain.task.core.AbstractJobRunner._runBatch(Unknown Source)
        at com.midvision.rapiddeploy.domain.task.core.AbstractJobRunner._main(Unknown Source)
        at com.midvision.rapiddeploy.domain.task.core.JobRunner.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.ibm.security.krb5.KrbException
        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:303)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
        ... 15 more
Shutting down JVM, running cleanup actions.
Shutting down JVM, running cleanup actions. Done.
SSH Command Execution Error (details follow):

Or NullPointerException The following error is reported on deployment

Caused by: com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: The system cannot create a SOAP connector to connect to host localhost at port 8885.
        at com.ibm.websphere.management.AdminClientFactory.createAdminClientPrivileged(AdminClientFactory.java:628)
        at com.ibm.websphere.management.AdminClientFactory.access$000(AdminClientFactory.java:122)
        at com.ibm.websphere.management.AdminClientFactory$1.run(AdminClientFactory.java:203)
        at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
        at com.ibm.websphere.management.AdminClientFactory.createAdminClient(AdminClientFactory.java:199)
        at com.midvision.rapiddeploy.orchestration.tasks.was.AbstractJmxDeployTask.getAdminClient(AbstractJmxDeployTask.java:108)
        ... 7 more
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:513)
        at com.ibm.websphere.management.AdminClientFactory.createAdminClientPrivileged(AdminClientFactory.java:451)
        ... 12 more
Caused by: com.ibm.websphere.management.exception.ConnectorNotAvailableException: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.lang.NullPointerException; targetException=java.lang.IllegalArgumentException: Error opening socket: java.lang.NullPointerException]
        at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:409)
        at com.ibm.ws.management.connector.soap.SOAPConnectorClient.(SOAPConnectorClient.java:222)
        ... 17 more
Caused by: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: java.lang.NullPointerException; targetException=java.lang.IllegalArgumentException: Error opening socket: java.lang.NullPointerException]
        at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:475)
        at org.apache.soap.rpc.Call.WASinvoke(Call.java:451)
        at com.ibm.ws.management.connector.soap.SOAPConnectorClient$4.run(SOAPConnectorClient.java:381)
        at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
        at com.ibm.ws.management.connector.soap.SOAPConnectorClient.reconnect(SOAPConnectorClient.java:366)
        ... 18 more

Resolution::

This error may be encountered because the target server is using a non-IBM JDK/JRE when trying to make a JMX connection to the target WebSphere instance. To correct this issue, ensure an IBM JDK is being used on the target server by setting JAVA_HOME to the location of an IBM JDK/JRE

Issue:Insufficient or Empty Credentials

You get an error similar to the following on deployment:

com.ibm.websphere.management.exception.ConfigServiceException: javax.management.JMRuntimeException: ADMN0022E: Access is denied for the getAttributesMetaInfo operation on ConfigService MBean because of insufficient or empty credentials.
 at com.ibm.websphere.management.configservice.ConfigServiceProxy.getAttributesMetaInfo(ConfigServiceProxy.java:334)
 at com.midvision.rapiddeploy.jmx.outbound.was.AbstractWebSphereJmx.getAttributes(AbstractWebSphereJmx.java:228)
 at com.midvision.rapiddeploy.jmx.outbound.was.AbstractWebSphereJmx.populateMetaMaps(AbstractWebSphereJmx.java:89)
 at com.midvision.rapiddeploy.jmx.outbound.was.WebSphereJmxImport.processProperty(WebSphereJmxImport.java:128)
 at com.midvision.rapiddeploy.jmx.outbound.was.WebSphereJmxImport.putConfiguration(WebSphereJmxImport.java:90)
 at com.midvision.rapiddeploy.orchestration.tasks.was.DeployConfigurationTask.runTask(DeployConfigurationTask.java:71)
 at com.midvision.rapiddeploy.domain.task.core.AbstractJobRunner.runBatch(Unknown Source)
 at com.midvision.rapiddeploy.domain.task.core.AbstractJobRunner._runBatch(Unknown Source)
 at com.midvision.rapiddeploy.domain.task.core.AbstractJobRunner._main(Unknown Source)
 at com.midvision.rapiddeploy.domain.task.core.JobRunner.main(Unknown Source)
Caused by:
javax.management.JMRuntimeException: ADMN0022E: Access is denied for the getAttributesMetaInfo operation on ConfigService MBean because of insufficient or empty credentials.
 at com.ibm.ws.management.connector.soap.SOAPConnectorClient.handleAdminFault(SOAPConnectorClient.java:935)
 at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invokeTemplateOnce(SOAPConnectorClient.java:903)
 at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invokeTemplate(SOAPConnectorClient.java:669)
 at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invokeTemplate(SOAPConnectorClient.java:659)
 at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invoke(SOAPConnectorClient.java:645)
 at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invoke(SOAPConnectorClient.java:467)
 at $Proxy37.invoke(Unknown Source)
 at com.ibm.ws.management.AdminClientImpl.invoke(AdminClientImpl.java:224)
 at com.ibm.websphere.management.configservice.ConfigServiceProxy.getAttributesMetaInfo(ConfigServiceProxy.java:311)
 ... 9 more

Resolution::

Ensure snapshot task panel is configured with a USERNAME/PASSWORD combination, or these values are set in the soap.client.props file on the target Deployment Manager Ensure you have the correct IBM jars on the classpath during deployment (see above)

Issue: SOAPException

You get an error similar to :

Caused by: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error opening socket: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty; targetException=java.lang.IllegalArgumentException: Error opening socket: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty]
        at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:475)
        at org.apache.soap.rpc.Call.WASinvoke(Call.java:451)

Resolution::

Make sure you have configured the snapshot task panel with the correct paths and credentials for the WebSphere keystore and truststore.