Share all details related to your problem, including any error messages you may have received.
I am following the example from SailPoint Compass Community and started with the exact same project files that were uploaded in the discussion. I have only modified the information that fits my environment such as build.properties and after building and uploading to my IdentityIQ environment, I am only receiving the 404 error below.
<!-- (c) Copyright 2008 SailPoint Technologies, Inc., All Rights Reserved. -->
<html>
<head>
<title>Page Not Found</title>
</head>
<body>
<!--
Need to add some padding. If this is less the 512 bytes, IE will not display it but
instead display the friendly HTTP error page. This is because the errorthreshold as
configured in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\ErrorThresholds
defaults to 512 bytes. This is a particularly a problem on WebSphere because it generates
very small 404 error responses. This only happens when "Show friendly HTTP errors" is
enabled in IE.
-->
<h1>File Not Found - 404 Error</h1>
The requested file was not found.
</body>
So much to unpack here. I struggled to get through my first REST Plugin communication with SailPoint.
Some questions:
Can you share the actual compass link?
How are you handing authentication?
I trust the plugin is deployed.
Are you opening up the logs to see what is happening?
These things are tricky. The annotations have a lot to do with the REST calls. I will try to dredge up the last REST plugin I wrote (it allows an external provider to clone and configure IIQ objects vis REST) and see if I can figure out what is happening.
Currently using Basic Authentication, haven’t spent any time diving into modifying it to use different authentication as I want to make sure I can get the basics working first.
The plugin is deployed and have restarted the servers although I have heard this is an unnecessary step most of the time.
Yes, and while reviewing the logs I am not seeing any relevant information when attempting to contact it via the REST call.
I had noticed that we are using the push plugin from Sailpoint which works fine although “identityiq” in the URL is omitted. I tried the postman call with identityiq omitted for this as well and run into the same error so there has to be something missing in the plugin project.
I appreciate any help or guidance you might be able to provide.
your plugin zip do not have lib folder , make sure java files are compiled and packaged and placed under the lib in plugin zip
the plugin name in manifest.xml and in Java ExamplePluginRestManager must match i.e. method getPluginName must return the same name as defined in manifest.xml
public String getPluginName() {
return “ExamplePlugin”;
}
Hi Hemant, thank you for responding and providing some input.
The plugin zip doesn’t include the lib folder because this forum has a file upload limit so I removed the files to meet the upload requirements. The plugin compiles fine.
This doesn’t seem to make any difference as the error is present whether or not the getPluginName returns “ExamplePlugin” or “Example Plugin”. This plugin is also copied straight from the example from Developer Days in the link I provided earlier and in the video it shows that before he uploads the file that the manifest.xml file name field is “ExamplePlugin” while his getPluginName method returns “Example Plugin” and yet it works.
may be something else going on in your environment. I have imported it in my LAB just after compiling the same java which you have given and it’s working as expected without any change. do you see any error(s) in log file? are able to call any other REST service?
I appreciate you downloading the files and importing it.
Yeah I’m not seeing any errors in the log file. We do currently use the Push Plugin REST calls for certain applications so I’m not certain what we could be missing.