Plugin does not load my jar


I am trying to develop a plugin for teamcity. I have followed the documentation and looked at open source Trac plugin example. I managed to get TeamCity to load the plugin, extract it and add relevant options in the configuration.

I am getting an error though in the getIssue method where I am trying to use jacom library to use com component ( I get:

java.lang.NoClassDefFoundError: Could not initialize class com.jacob.activeX.ActiveXComponent

My plugin when in .unpacked folder, contains jacob.jar on the same level as my plugin's jar but my classpath when read in getIssue method evaluates to:

This is current classpath: D:\TeamCity\bin\bootstrap.jar

My teamcity version is: 5.1.4 (build 13550)

Any ideas why my jacob.jar is not visible to TC?
1 comment
Comment actions Permalink

All plugin jars should be loaded in the same classloader, so I'd reserch the error to investigate the case.

Are there any details in the error message besides "java.lang.NoClassDefFoundError: Could not initialize class com.jacob.activeX.ActiveXComponent"?
May be the class depends on some other libraries that are missing?

Please sign in to leave a comment.