|
| Problem | The wscp fails with RepositoryOpException after security is enabled | | | | Solution | After enabling security, a WebSphere administrator tries to run the wscp command-line utility, which now fails with an exception as follows:
com.ibm.ejs.sm.client.RepositoryOpException: Failed to create InitialContext : Error during resolve at com.ibm.ejs.sm.client.RepositoryOpException.<init>(RepositoryOpException.java:47) at com.ibm.ejs.sm.ejscp.ClientRepository.<init>(ClientRepository.java:148) at com.ibm.ejs.sm.ejscp.EjscpExtension.init(EjscpExtension.java:113) at tcl.lang.JavaLoadCmd.cmdProc(JavaLoadCmd.java:129) at tcl.lang.Parser.evalObjv(Parser.java:810) at tcl.lang.Parser.eval2(Parser.java(Compiled Code)) at tcl.lang.Interp.eval(Interp.java:2042) at tcl.lang.Interp.eval(Interp.java:2071) at com.ibm.ejs.sm.ejscp.WscpShell.main(WscpShell.java(Compiled Code))
If the WebSphere admin console is running, the following message appears:
IBM WebSphere Security 0, 0, com.ibm.WebSphereSecurity.AuthenticationFailedException
Like all WebSphere client applications, once security is enabled, wscp needs to log into the server. This is easily done:
Copy the WebSphere\AppServer\Properties\sas.client.props file to another file, such as wscp.props.
Edit wscp.bat or wscp.sh to add the following arguments to the java command, after -Dserver.root=$WAS_HOME:
-Dorg.omg.CORBA.ORBClass=com.ibm.CORBA.iiop.ORB -Dcom.ibm.CORBA.ConfigURL=file:$WAS_HOME/properties/wscp.props (all on the same line).
If the com.ibm.CORBA.loginSource property is set to "prompt", wscp will prompt the user for id and password. Alternatively, setting the property to "properties", and filling in the com.ibm.CORBA.loginUserid and com.ibm.CORBA.loginPassword properties correctly, will cause wscp to start without prompting.
For a more detailed explanation of how to configure wscp with security, see the infocenter,
http://www.ibm.com/software/webservers/appserv/doc/v35/ae/infocenter/wasstd/atswcpus.html#HDRWSCPUS-ENABLINGSECURITY | | | | | Historical Number | 51101
379 | |
| |
|
Product categories: Software, Application Servers, Distribut, ed Application & Web Servers, WebSphere Application Server, Security Operating system(s): Multi-Platform Software version: 3.5, 3.5.1, 3.5.2 Software edition: Standard, Advanced Reference #: 1005962 IBM Group: Software Group Modified date: 2002-10-28
(C) Copyright IBM Corporation 2000, 2004. All Rights Reserved.
|