The moose likes Web Services and the fly likes JSR88 : Unable to Connect Soap Connector WebSphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JSR88 : Unable to Connect Soap Connector WebSphere" Watch "JSR88 : Unable to Connect Soap Connector WebSphere" New topic

JSR88 : Unable to Connect Soap Connector WebSphere

SunilRee Gupta

Joined: Mar 03, 2005
Posts: 12
import javax.enterprise.deploy.shared.factories.DeploymentFactoryManager;
import javax.enterprise.deploy.spi.DeploymentManager;
import javax.enterprise.deploy.spi.factories.DeploymentFactory;
import java.util.jar.JarFile;
import java.util.jar.*;

public class JSR88
public static void main(String args[]) throws Exception
// Get the DeploymentFactory implementation class from the MANIFEST.MF file.
JarFile wjmxappJar = new JarFile(new File("wjmxapp.jar"));
java.util.jar.Manifest manifestFile = wjmxappJar.getManifest();
Attributes attributes = manifestFile.getMainAttributes();
String key = "J2EE-DeploymentFactory-Implementation-Class";
String className = attributes.getValue(key);

// Get an instance of the DeploymentFactoryManager
DeploymentFactoryManager dfm = DeploymentFactoryManager.getInstance();

// Create an instance of the WebSphere Application Server DeploymentFactory.
Class deploymentFactory = Class.forName(className);
DeploymentFactory deploymentFactoryInstance = (DeploymentFactory) deploymentFactory.newInstance();

// Register the DeploymentFactory instance with the DeploymentFactoryManager.

// Provide WebSphere Application Server URL, user ID, and password.
// For more information, see the step that follows.

System.setProperty("", "C:\\Program Files\\IBM\\WebSphere\\AppServer\\profiles\\default\\properties\\soap.client.props");
//System.out.println("property value..."+System.getProperty(""));

DeploymentFactory[] dfs=dfm.getDeploymentFactories();

DeploymentManager deploymentManager= dfs[0].getDeploymentManager("deployer:WebSphere:localhost:8880","admin","admin");

// DeploymentManager deploymentManager= dfs[0].getDeploymentManager("deployer:Websphere:localhost:2809?connectorType=RMI","","");


The Error Message is as Follows:

Jan 6, 2006 5:12:57 PM
Jan 6, 2006 5:12:57 PM
Exception in thread "main" javax.enterprise.deploy.spi.exceptions.DeploymentMana
gerCreationException: ADMJ1002E: An error occurred creating the application depl
oyment manager. Could not create SOAP Connector to connect to host localhost at port 8880 with SOAP C
onnector security enabled

tFactoryImpl.getDeploymentManager( at JSR88.main(

If some one knows How to Instantiate he DeploymentManager please help me

Thanks Regards
Sunil Gupta
I agree. Here's the link:
subject: JSR88 : Unable to Connect Soap Connector WebSphere
It's not a secret anymore!