Apparently invalid build configuration in IntelliJ IDEA

Heyho,

im planing to create a plugin for teamcity. Since I have the Ultimate version of InteliJ I want to use the way which is described here: http://confluence.jetbrains.com/display/TCD7/Bundled+Development+Package#BundledDevelopmentPackage-SamplePlugin

So I followed the instructions and opened the sample project. If I run now the "server" configuration I get the following log:

Using CATALINA_BASE:   /home/max/.IntelliJIdea12/system/tomcat/tomcat_Unnamed_TeamCitySamplePlugind30123a4 Using CATALINA_HOME:   /media/data/projects/java/TeamCity-dev Using CATALINA_TMPDIR: /media/data/projects/java/TeamCity-dev/temp Using JRE_HOME:        /usr/lib/jvm/jdk1.6.0 Using CLASSPATH:       /media/data/projects/java/TeamCity-dev/bin/bootstrap.jar:/media/data/projects/java/TeamCity-dev/bin/tomcat-juli.jar 19.05.2013 21:35:17 org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/jdk1.6.0/jre/lib/amd64/server:/usr/lib/jvm/jdk1.6.0/jre/lib/amd64:/usr/lib/jvm/jdk1.6.0/jre/../lib/amd64:/opt/intellij/12/bin::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 19.05.2013 21:35:17 org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8111"] 19.05.2013 21:35:17 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 752 ms 19.05.2013 21:35:17 org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina 19.05.2013 21:35:17 org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.23 19.05.2013 21:35:17 org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8111"] 19.05.2013 21:35:17 org.apache.catalina.startup.Catalina start INFO: Server startup in 32 ms Connected to server



Now my web browser opens but it does not get a connection.

If I edit the build configuration in intellij, a notifcation pops up that there are no artifacts configured. Also there is no entry in the deployment tab.
Seems like only Tomcat starts but not TeamCity. I'm also not very familiar with tomcat so I'm not very sure what is wrong.
4 comments
Comment actions Permalink

Max,

The settings assume that the Tomcat you have configured for the run configuration is actually a TeamCity distribution

BTW, once you are done with sample plugin and want to start writing your own, you can consider other templates for the plugin

0
Comment actions Permalink

Thanks Yegor,

I think I'll use a maven setup. Just one last question, is it possible to push new code to TeamCity while it's running or do I have to restart the server every time to test the plugin? Maybe intellij has some tools to do this?
Because If I use maven I can run "mvn deploy" but then I would have to restart the server and this takes some time.

0
Comment actions Permalink

Max,

Generally you need to restart the server. Unless you can use JVM hotswap in debug session.

0
Comment actions Permalink

Hi Yarko,

 

I am using hotwswap and it used to work fine previously. But I am recently observing issues. 

 

It tracks the line in hte IDE as per my built plugin package (which tells me the connection is established); but any changes to the code are not reflected in the output. I made sure all the DEBUG parameters are added, the code in IDE is approproately compiler. The only option for me is to compile the plugin and add it to the directory for each change which takes time. 

0

Please sign in to leave a comment.