Can't get any plugins to start

Sorry if this is a dumb question, but I can't get any of the plugins to start. I first tried the groovy plugin. Placed the libraries in the correct spot and placed the actual plugin zip into .BuildServer\plugins. Then I restarted the server. Seemed to work ok, and the plugin was found according to my teamcity-server.log. However I didn't seem to notice any changes once I logged back in. So I decided to just try the april fools plugin since I knew that their would be obvious changes to see with that. Placed the plugin in .BuildServer\plugins and restarted the server. Again it was found according to the teamcity-server.log. Yet nothing changed when I logged back into the server. What am I doing wrong? Again I am very new to TeamCity so I am sure I simply configured something wrong, but I am pulling my hair out trying to find out what. I have attached my teamcity-server.log. If I need to attach something else just let me know. Appreciate any help.

Grant-



Attachment(s):
teamcity-server.log
0
11 comments
Avatar
Permanently deleted user

Still trying to figure this issue out. I am now wondering what this means: "No plugins were loaded with standalone classloaders". Does that mean my plugins are not starting at all?

I don't think so because the next couple of lines in the server log say "Loaded 20 plugins: [buildDurationStatisticsPlugin, changeViewers, clearcase, cvs, feed, FxCop, groovyPlug, jokes, ldap, perforce, rake-runner, remoteAccess, samplePlugin, stacktraces, starteam, svn, TeamCityArtifactsSizeStatisticsPlugin, tfs, vss, xml-report-plugin]".

Sorry again I am still very new at this. Hopeing to hear back from someone. Thanks.

Grant-

0
Avatar
Permanently deleted user

Ok I ended up being able to get the Joke Plugin to work. I am still having some troubles with the Sample Plugin though. I am loading it the same way as the joke plugin, and it says it loads fine according to the logs (I posted these earlier), so I don't get what is wrong. This is the plugin I really need to work, since I will be building off of one of it's examples for my own plugin. Really hopeing to hear back from someone soon.

Grant-

0
Avatar
Permanently deleted user

Ok more questions. Disregard any prior to this, this is the only thing I care about at this point.

1. Can I just drop the samplePlugin.zip into .BuildServer/plugins and expect it to work? Or do I have to change certain files or something?

2. Where would the logs be located that show me that my plugins are indeed working? I can view the server logs and it tells me they are loaded, but that is different from them working. I ask specifically because the build.xml for the samplePlugin states things like:

message="Please define 'path.variable.teamcitydistribution' property in build.properties file. The property should point to unpacked TeamCity .tar.gz or .exe distribution."/>

These are obviosly messages that are getting logged somewhere, I just can't find where.

I really hope to hear back from someone soon.

Thanks
Grant-

0
Avatar
Permanently deleted user

Ok got it to work finally. Ended up having to pull out each java file manually, place it into the specific packages within eclipse that correspond the file system already set up by the sample plugin. Then I exported that as a jar from eclipse, and placed it in a folder named server. I then zipped this into a zip file named samplePlugin.zip (same as the original) and re-copied that into the .buildServer/plugin. It worked! I would suggest more documentation on how to build the sample plugin for future reference. It is such a great resource, it is just a pity it wasn't documented better. Still want to hear the answer to this question:

2. Where would the logs be located that show me that my plugins are indeed working? I can view the server logs and it tells me they are loaded, but that is different from them working. I ask specifically because the build.xml for the samplePlugin states things like:


message="Please define 'path.variable.teamcitydistribution' property in build.properties file. The property should point to unpacked TeamCity .tar.gz or .exe distribution."/>


These are obviosly messages that are getting logged somewhere, I just can't find where.

Thanks
Grant-

0

Grant,

Sorry for the delay in replying.

You can build the sample plugin distribution via ant - using the build.xml that is supplied.

As to

2. Where would the logs be located that show me that my plugins are indeed working? I can view the server logs and it tells me they are loaded, but that is different from them working.

It depends on the plugin. If the plugin writes something into std out, then look for the poutput in Tomcat console. If it uses Log4J, then the logging should go into the server log (if the message confirms to the rules defined in conf\teamcity-server-log4j.xml file).


The message "Please define 'path.variable.teamcitydistribution' property..." from the build.xml is used during plugin compile/packaging time if you run the Ant script.

0
Avatar
Permanently deleted user

I am having this same issue. I built the sample plugin with ant like the directions said, and then installed it like the directions said, but I am not able to get the sample to work. I also tried modifying the sample code to get my own plugin to work, but to no avail. I have been working on this all day, and I am not sure why it's not working. It shows up on the plugins page just fine. Any help would be appreciated. :)

0
Avatar
Permanently deleted user

I'm having similar issues with the Custom Build Trigger example plugin. I am able to load the SamplePlugin (Click me!), though.

0
Avatar
Permanently deleted user

I figured out my problem, I was compiling using Java 7. TeamCity is not yet compatible with Java 7. Once I compiled it with Java 6, it worked just fine.

0
Avatar
Permanently deleted user

Good to know, thanks.

Edit: Are you using the 32-bit or 64-bit distribution?

0

Thank you for sharing. We'll update the docs.

0

I believe that doesn't matter.

0

Please sign in to leave a comment.