Replacement Class for 'jetbrains.buildServer.serverSide.impl.ServerSettings'.

Hello there,

Am new to this plugin development.

I have been trying to upgrade our very old plugin to support new version of TC10.x.

After installed our plugin into TC, getting the ClassNotFoundException [below],

java.lang.NoClassDefFoundError: jetbrains/buildServer/serverSide/impl/ServerSettings
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getDeclaredConstructors(Class.java:2020)

:

Caused by: java.lang.ClassNotFoundException: Class 'jetbrains.buildServer.serverSide.impl.ServerSettings' was not found
at jetbrains.buildServer.plugins.classLoaders.TeamCityClassLoader.doLoadClass(TeamCityClassLoader.java:85)
at jetbrains.buildServer.plugins.classLoaders.TeamCityClassLoader.loadClass(TeamCityClassLoader.java:40)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 38 more

 

It looks like, lot of API's has been changed and including this "jetbrains.buildServer.serverSide.impl.ServerSettings" class. I couldn't able to find the ServerSettings class under the new server-api/common-api's.

Can anyone point me to the replacement class for this ServerSettings class.

I need to use,  

settings.persistConfiguration();

to Save the settings to the main TeamCity configuration XML file.

Thanks in Advance,

-Hari

2 comments
Comment actions Permalink

Seems you need this class: jetbrains.buildServer.serverSide.impl.ServerSettingsImpl

But this class is a part of closed API and can change at any point of time. If you need this in our open API, I'd suggest creating a request in our tracker with description why you need it.

0
Comment actions Permalink

Hello Pavel,

It seems ServerSettings interface has been moved to jetbrains.buildServer.serverSide and noticed abstract method persistConfiguration() removed from the ServerSettings.

For now we using the persistConfiguration() from MainConfigManager class;

It would be nice if we have the abstract persistConfiguration() in ServerSettings;

Because MainConfigManager is a implementation class whereas ServerSettings is a interface.

Please point me to the tracket url if you want me to open an artifact for this request.

Thanks,

Hari 

0

Please sign in to leave a comment.