New Policy plugin is not displaying in the Installed Plugins List in Catalog
search cancel

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

  1. Copy the "policy.sample-src.zip " file from the %USM_HOME\filestore\plugins\ca.catalog.samples.policy-plugin
  2. Extract the "policy.sample-src.zip " in the new location (ex: c:\test-plugins)
  3. Once extract, It has lib, src, build.xml and plugin.properties files
  4. Update the "FaultmanPolicyPlugin.java" in the C:\test-plugins\policy.sample-src\src\java\com\ca\usm\plugins\samples\policy
  5. Open the usm.cmd from %USM_HOME%
  6. Install JDK 11 64 bit version on the local machine (Note: This is needed to compile the java class file)
  7. On the command prompt; Navigate to policy zip (ex: C:\test-plugins\policy.sample-src)
  8. Now command prompt path changed to C:\test-plugins\policy.sample-src
  9. Set JAVA_HOME=JDK 11path
    1. ex: C:\test-plugins\policy.sample-src > set JAVA_HOME=C:\Users\Administrator\Downloads\openlogic-openjdk\openlogic-openjdk-11.0.22+7
  10. Now it is set to JDK 11path

    11. Run below commands on the command bar

    1. ant init
    2. ant clean
    3. ant build
    4. 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