It's all about the answers!

Ask a question

problem with custom plugin


Sudeshna Mitra (2332831) | asked Aug 01 '12, 2:51 a.m.
I had added my custom classes into the  plugin project to create custom precondition plugin ,the plugin load in operation advisor but when I run ,
the message shows Unable to instantiate Advisor.

Any Help ????

3 answers



permanent link
Ralph Schoon (54.7k23641) | answered Aug 01 '12, 5:31 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Does it run in the jetty environment as described in https://jazz.net/library/article/1000 ?

I would make that work before trying to deploy. Other typical issues are the build settings in the plug in editor (e.g. missing classes) missing dependencies etc.

Try to make it work with Jetty first and have a look at the logs. If it runs there see what the build includes and try to create an update site.

Comments
Sudeshna Mitra commented Aug 01 '12, 7:46 a.m.

Hi,

I was running my plugin in Tomcat. I want to call my custom java class to load on save button in RTC so, I add my custom class into plugin project. How can I do this ???


Ralph Schoon commented Aug 01 '12, 9:25 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

There are descriptions on the Wiki for adding buttons etc. for example here: https://jazz.net/wiki/bin/view/Main/ContributingAttributePresentationsV2 and https://jazz.net/library/LearnItem.jsp?href=content/docs/web-ui-programming/index.html I have never done what you try, so I can't help here.


permanent link
sam detweiler (12.4k6169200) | answered Aug 01 '12, 10:42 a.m.
edited Aug 01 '12, 10:42 a.m.
the pre/post condition plugins run on the server, totally separated from any UI.

where are u seeing the message "the message shows Unable to instantiate Advisor.",
in the server log?



Comments
Sudeshna Mitra commented Aug 02 '12, 7:24 a.m.

The message Unable to instantiate advisor show in workitem page in RTC.


permanent link
Ralph Schoon (54.7k23641) | answered Aug 02 '12, 7:30 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I can only imagine that this comes up when the extension point tries to instantiate the provider class. If it fails due to: issues with the plugin.xml or MANIFEST.MF, missing code or files due to the build setup. I would assume there is more information in the server logs or in the Eclipse log in the .metadata folder. 

Your answer


Register or to post your answer.