Hi,
We are getting an unexpected error while performing open deployment through a JSP(CSSDK). below is our JSP,XML and the error which we are getting. If anybody faced issue of this kind please give us a solution which will be highly helpfull to us.
JSP:
int cltVersion = 150;
IWODAPIClientVersion cltVersionObj = new IWODAPIClientVersion(150);
CSClient client = null;
String last_task = null;
String current_user = null;
try
{
client = user_ctx.getCSClient();
CSUser user = client.getCurrentUser();
// String userName = user.getName();
String userName = "root";
String userRole = IWSecure.OD_USER;
IWUser odUSer = new IWUser(userName, userRole, cltVersionObj, false);
odUSer.setClntApp("TEST");
odUSer.setCSContextString(client.getContext().getSessionString());
out.println("Role: "+userRole);
String deployServiceName = "IWDeployService";
String odHostRMIPort="";
odHostRMIPort="localhost:9173";
out.println("Locating deploy service \"" + deployServiceName + "\".");
String locateStr;
if((odHostRMIPort == null)||(odHostRMIPort.trim().isEmpty()))
{
locateStr = deployServiceName;
} else
{
locateStr = "//" + odHostRMIPort + "/" + deployServiceName;
}
out.println("Locate string: " + locateStr);
IWDeployService deployService = (IWDeployService)(IWDeployService)IWODService.locate(locateStr);
out.println("Got deploy service: \n");
// out.println("OD: "+odUSer);
IWODServer odSvr = new IWODServer(deployService, odUSer);
out.println("ODHome: "+odSvr.getODhome());
IWDeploy deploy = new IWDeploy(deployService,odUSer);
Vector param=new Vector();
IWDeployStartParm startParm = new IWDeployStartParm("input","VERBOSE",true,true,param,true,"ODTest","");
IWStatusGeneral status=deploy.startDeploy(startParm);
out.println(status.getStatusMsgDetail());
} catch (Exception e) {
out.println("Caught Exception"+e.getMessage());
}
XML:
[html]
[/html]
Error:
LIB: 2011-07-04 06:30:26 Options: deploy dont_do ignore_acls do_manifest_for_dnr ps_name= verbose_level=5
LIB: (3) 2011-07-04 06:30:26 COMPARE Phase
LIB: (4) 2011-07-04 06:30:26 Sending directory [.] -- 2 entries
LIB: (4) 2011-07-04 06:30:26 Directory info [.] -- 159 bytes
LIB: (2) 2011-07-04 06:30:26 COMPARING done
LIB: 2011-07-04 06:30:26 DEPLOYING - [/iwmnt/international/main/common/kiid/WORKAREA/ALL/admin/doc-generation/1309761826567] to [/opt/cmsapps/cmsint/KIID/ODTest]
LIB: (3) 2011-07-04 06:30:26 Received 'get' request for (./doc_gen_Control_1309761826567.txt)
LIB: 2011-07-04 06:30:26 Sending [./doc_gen_Control_1309761826567.txt] [reason missing-in-dest] -- OK
LIB: (3) 2011-07-04 06:30:26 Received 'get' request for (./doc_gen_input_1309761826567.xml)
LIB: 2011-07-04 06:30:26 Sending [./doc_gen_input_1309761826567.xml] [reason missing-in-dest] -- OK
LIB: 2011-07-04 06:30:26
'dont_do' specifed -- ** DATA WAS NOT DEPLOYED **
Thanks
Priya
TS 7.2.1,OD 7.2