New Policy plugin is not displaying in the Installed Plugins List in Catalog
book
Article ID: 281759
calendar_today
Updated On:
Products
CA Service Catalog
Issue/Introduction
Issue:
In Catalog new Policy plugin is not displaying under the installed Plugins list.
Steps:
Create a new assignment policy plugin based on the sample policy plugin. Modify the Java code include specific changes and successfully compile the JAR file and place it in C:\ca\Service Catalog\filestore\plugins\ca.catalog.faultman.policy-plugin.
Stop the Catalog service, copy my folder to \filestore\plugins, and then restart services.
Under Administration/Tools/Plugins unable to see new plugin in the Installed Plugins list. Even after selecting the Reload Plugins button, it is not showing up.
Environment
USVCT 17.3
Resolution
Copy the "policy.sample-src.zip " file from the %USM_HOME\filestore\plugins\ca.catalog.samples.policy-plugin
Extract the "policy.sample-src.zip " in the new location (ex: c:\test-plugins)
Once extract, It has lib, src, build.xml and plugin.properties files
Update the "FaultmanPolicyPlugin.java" in the C:\test-plugins\policy.sample-src\src\java\com\ca\usm\plugins\samples\policy
Open the usm.cmd from %USM_HOME%
Install JDK 11 64 bit version on the local machine (Note: This is needed to compile the java class file)
On the command prompt; Navigate to policy zip (ex: C:\test-plugins\policy.sample-src)
Now command prompt path changed to C:\test-plugins\policy.sample-src
Set JAVA_HOME=JDK 11path
ex: C:\test-plugins\policy.sample-src > set JAVA_HOME=C:\Users\Administrator\Downloads\openlogic-openjdk\openlogic-openjdk-11.0.22+7
Now it is set to JDK 11path
11. Run below commands on the command bar
ant init
ant clean
ant build
ant jar
12. After successful execution of the above commands it will create plugin.jar in the same folder.
13. Copy the plugin.jar and plugin-properties files and place it in %USM_HOME%\filestore\plugins
14. Login to service catalog; Navigate to Home >> Administration >> Tools >> Click on Reload Plugins
15. Now, verify if you can see the newly created plug-ins