AnsweredAssumed Answered

How can I get simple Java A2A ScriptName correct?

Question asked by Carl_Young Employee on Apr 25, 2018
Latest reply on Apr 25, 2018 by prira01

I'm using legacy Cloakware (PAM) and trying to set up simple Java A2A. I'm trying to test that I can get correct script names.

 

If I run with the jar in classpath, I see:

WARNING: GetScriptCredentials failed to retrieve credentials for request
{ targetAliasName=sql_sa_pamtgt,
scriptName=com.cloakware.cspm.client.bj,
scriptFilePath=C:\cspm\cloakware\cspmclient\lib\cspmclient.jar,
scriptExePath=C:\cspm\cloakware\cspmclient\examples\Java,

 

If I create a fat jar in Maven, I see:

WARNING: GetScriptCredentials failed to retrieve credentials for request
{targetAliasName=sql_sa_pamtgt,
scriptName=com.cloakware.cspm.client.bj,
scriptFilePath=F:\utilities\sqltest\sqltest\target\sqltest-1.0-SNAPSHOT.jar,
scriptExePath=F:\utilities\sqltest\sqltest,

 

What kind of magic do I need to do get the scriptName correct as per the old doc's:

Script name: The name of the class file containing the CSPMClient instantiation and getScriptCredentials call, without the class extension.

 

Thanks, Carl

Outcomes