AnsweredAssumed Answered

Where to save shared jar for Catalog plugins

Question asked by YangChen Employee on Jan 27, 2015
Latest reply on Mar 2, 2015 by YangChen

Hello,

 

I need to develop multiple plugins and they depend on one common jar. Where should I save this jar file and how to make it work?

 

I currently copied the jar into the C:\Program Files\CA\Service Catalog\view\webapps\usm\WEB-INF\lib, restarted Catalog service and reloaded plugins. But in the log, it says the common class can’t be found, as attached below. I added “classloader.type=shared” to the plugin.properties but still doesn’t work. If I copy the jar to the plugin folder, the plugin works well. But I shouldn't duplicate it to each plugin folders.

 

Caused by: java.lang.ClassNotFoundException: com.ca.usm.plugins.demo.common.Config

         at java.net.URLClassLoader$1.run(Unknown Source)

         at java.net.URLClassLoader$1.run(Unknown Source)

         at java.security.AccessController.doPrivileged(Native Method)

         at java.net.URLClassLoader.findClass(Unknown Source)

         at com.ca.usm.plugins.manager.classloader.PluginClassLoader.loadClass(PluginClassLoader.java:70)

         at java.lang.ClassLoader.loadClass(Unknown Source)

         ... 72 more

 

Thanks

Yang

Outcomes