B
Bojan
Hi,
I am programing using RAD (Rational Application Developer) a version
of Eclipse which has built in WebSphere Server. When execute my
program it works properly. But when I export it as a war file and run
it with Apache Tomcat server I get the following error:
com.ibm.websphere.management.exception.ConnectorException: ADMC0053E:
The system cannot create a SOAP connector to connect to host localhost
at port 8880 with SOAP connector security enabled.
my Code:
Properties connectProps = new Properties();
connectProps.setProperty("javax.net.ssl.trustStore", "C:\
\cacerts.jks");
connectProps.setProperty("javax.net.ssl.keyStore", "C:\
\cacerts.jks");
connectProps.setProperty("javax.net.ssl.trustStorePassword",
"changeit");
connectProps.setProperty("javax.net.ssl.keyStorePassword",
"changeit");
connectProps.setProperty(AdminClient.CONNECTOR_TYPE,
AdminClient.CONNECTOR_TYPE_SOAP);
connectProps.setProperty(AdminClient.CONNECTOR_SECURITY_ENABLED,
"true");
connectProps.setProperty(AdminClient.CONNECTOR_HOST, host);
connectProps.setProperty(AdminClient.CONNECTOR_PORT, port);
if (user!=null && !user.equalsIgnoreCase("null")){
connectProps.setProperty(AdminClient.USERNAME, user);
connectProps.setProperty(AdminClient.PASSWORD, password);
}
admin = AdminClientFactory.createAdminClient
(connectProps);
The Error occurs at the last line.
Any idea how to resolve the issue?
Thanks in advance for your help.
I am programing using RAD (Rational Application Developer) a version
of Eclipse which has built in WebSphere Server. When execute my
program it works properly. But when I export it as a war file and run
it with Apache Tomcat server I get the following error:
com.ibm.websphere.management.exception.ConnectorException: ADMC0053E:
The system cannot create a SOAP connector to connect to host localhost
at port 8880 with SOAP connector security enabled.
my Code:
Properties connectProps = new Properties();
connectProps.setProperty("javax.net.ssl.trustStore", "C:\
\cacerts.jks");
connectProps.setProperty("javax.net.ssl.keyStore", "C:\
\cacerts.jks");
connectProps.setProperty("javax.net.ssl.trustStorePassword",
"changeit");
connectProps.setProperty("javax.net.ssl.keyStorePassword",
"changeit");
connectProps.setProperty(AdminClient.CONNECTOR_TYPE,
AdminClient.CONNECTOR_TYPE_SOAP);
connectProps.setProperty(AdminClient.CONNECTOR_SECURITY_ENABLED,
"true");
connectProps.setProperty(AdminClient.CONNECTOR_HOST, host);
connectProps.setProperty(AdminClient.CONNECTOR_PORT, port);
if (user!=null && !user.equalsIgnoreCase("null")){
connectProps.setProperty(AdminClient.USERNAME, user);
connectProps.setProperty(AdminClient.PASSWORD, password);
}
admin = AdminClientFactory.createAdminClient
(connectProps);
The Error occurs at the last line.
Any idea how to resolve the issue?
Thanks in advance for your help.