Starting plugin developpement

Hi there,

I'm starting devlopping Teamcity plugin. I'm a C# developper and I never work with any Java IDE. I started few days ago with Intellij
I have TC server running on my desktop (64 bits Windows 8) with JRE 64 bits too.
All my build configuration are running fine.

I started to play with SamplePlugin from the devpackage. I manage to build it and install it in plugin directory.
But I'm not seeing the click me button
Instead I have this in server logs

[2015-07-16 01:23:01,358]   INFO - ins.files.ServerPluginUnpacker - Found updated plugin at path: D:\ProgramData\JetBrains\TeamCity\plugins\samplePlugin.zip. Server-side part will take effect after TeamCity server restart. Agent-side part is being distributed on agents.
.
.
.[2015-07-16 01:57:14,257]  ERROR -   jetbrains.buildServer.SERVER - Error javax.servlet.jsp.JspException: javax.servlet.ServletException: javax.servlet.ServletException: File "/plugins/samplePlugin/input.jsp" not found while processing request: GET '/overview.html', from client 0:0:0:0:0:0:0:1:29104, authenticated as 'amandengue' (Abel Mandengue) {id=1}
javax.servlet.jsp.JspException: javax.servlet.ServletException: javax.servlet.ServletException: File "/plugins/samplePlugin/input.jsp" not found
 at org.apache.jsp.tag.webext.includeExtension_tag.doTag(includeExtension_tag.java:159)
 at org.apache.jsp.tag.webext.includeExtensions_tag._jspx_meth_ext_005fincludeExtension_005f2(includeExtensions_tag.java:467)
 at org.apache.jsp.tag.webext.includeExtensions_tag._jspx_meth_c_005fforEach_005f2(includeExtensions_tag.java:366)
 at org.apache.jsp.tag.webext.includeExtensions_tag.doTag(includeExtensions_tag.java:170)
 at org.apache.jsp.footer_jsp._jspService(footer_jsp.java:118)
..
..

Apparently the server expects to found input.jsp page in the plugin jar root dir, but they are in buildServerResources directory.
I did'nt change the source code and build it as it is.
Jar file is attached.

Any thoughts to help me understand what is going on are welcome
Regards



Attachment(s):
samplePlugin.jar
2 comments
Comment actions Permalink
Official comment

Hi,

Seems something packaged wrong. Ensure you're installing samplePlugin.zip which content should be as follow:

samplePlugin.zip
├── server
│   └── samplePlugin.jar
└── teamcity-plugin.xml

 

And samplePlugin.jar have next content:

samplePlugin.jar
├── buildServerResources
│   ├── buildQueuePause
│   │   ├── buildQueuePauseButton.jsp
│   │   └── buildQueuePause.jsp
│   ├── configurationTab.jsp
│   ├── hello.jsp
│   ├── input.jsp
│   ├── sampleFilter.jsp
│   ├── sample.gif
│   ├── sampleStatistics.jsp
│   ├── simplePage.jsp
│   ├── viewPermissionsButton.jsp
│   └── viewPermissions.jsp
├── jetbrains
│   └── sample
│   ├── controller
│   │   └── HelloUserController.class
│   ├── extension
│   │   └── ConfigurationTabExtension.class
│   ├── extensions
│   │   ├── buildQueuePause
│   │   │   ├── BuildQueuePauseButton.class
│   │   │   ├── BuildQueueStateController$1.class
│   │   │   ├── BuildQueueStateController.class
│   │   │   └── StartBuildPrecondition.class
│   │   └── pageExtension
│   │   └── PageExtension.class
│   ├── patternProcessor
│   │   └── SampleTemplateProcessor.class
│   ├── permissions
│   │   └── ShowPermissionsController.class
│   ├── serverListener
│   │   └── TeamCityLoggingListener.class
│   └── statistics
│   ├── SampleStatisticsValue$1.class
│   └── SampleStatisticsValue.class
└── META-INF
├── build-server-plugin-samplePlugin.xml
└── MANIFEST.MF

 

TeamCity server would automatically copy files from `buildServerResources` directory into `TC/webapps/ROOT/pluins/samplePlugin/` on server start.

If problem still reproduces, attach your samplePlugin.zip and teamcity-server.log

 

Comment actions Permalink

I'm getting the same error. I've moved the files all over the place and haven't been able to have any success at all. Did you ever solve this problem? in my case I am trying to work with the "configurationTab.jsp" file.

0

Please sign in to leave a comment.