Spring tc Server Support in IDEA
September 16th, 2010 by Shaverdova ElenaIf you are developing an application for Spring tc Server, you may be interested in tc Server Support plugin for IntelliJ IDEA.
tc Server plugin provides a decent support for Developer, Standard and Spring editions of tc Server 2.0:
- Running and debugging applications on local and remote server instances
- Starting and stopping local server
- Managing JVM parameters
- Accessing server logs at run-time
- Easily updating your application on the server
- Opening application web page in a browser
To give it all a try, download and install tc Server from SpringSource: download center. In this post we’re showcasing the use of IntelliJ IDEA with Developer Edition.
To get started, click File | Settings | Application Servers, then add a new Sping tc Server application server and specify its home directory:

Then, choose a server instance. By default server has a single called tomcat-***, and Developer Edition provides spring-insight-instance supplied with Spring Insight. You may also create another instance, specifying its name and optionally a template to enable some additional features. To get Spring Insight support in a new instance you should use spring-insight-instance server folder as a template.

Now it’s time to create a run configuration. For local one, we just need to pick an application server:

Remote run configuration needs server JMX and HTTP ports and staging protocol instead:

Finally, we go to Deployment tab and configure artifacts and corresponding web paths.


Try it all for youself with pleasure! Your feedback is welcome in our issue tracker and forums.
Tags: Application Servers, ideaX, Java EE, Spring, tc server

September 29th, 2010 at 10:30 am
Hi Elena
I am running IntelliJ 9.0.3. I cannot find the plugin in the plugin repository. When I download it from the online plugin directory and install it manually. It show up as inactive and red in my list of plugins.
Any ideas?
thanks
bjorn
October 4th, 2010 at 9:10 am
@Bjorn: Many apologies, the problem is fixed.
Please reinstall the plugin at File | Settings | Plugins page.
Kirill
October 25th, 2010 at 6:30 pm
To deploy locally, I had to enable JMX authentication with role “admin” and password “springsource”.
Cheers,
11011011
October 26th, 2010 at 5:08 pm
Hi, I have tcServer 6.0.20.C from STS 2.3.2 distribution. I cannot add my tcServer in IDEA beacause of “Executable ‘…\tcruntime-ctl.bat’ not found.”
October 27th, 2010 at 5:45 am
@Zdenek plugin doesn`t support 6.0 version, 2.0 only.
October 27th, 2010 at 7:22 am
@Zdenek/@Shaverdova Elena
TcServer does not exist in anything newer than 2.0 - the 6.0.xx version inside the tcserver zips refer to which Tomcat version it contains.
The latest tcserver distribution as of the 27th of October is 2.0.3 which contains Tomcat 6.0.29
October 27th, 2010 at 8:19 am
@Joensson Yes, 2.0 version is the most recent one. If you look at tc Server Announcements you’ll find 6.0.xx version before it. Now it is available only as a part of STS, and it has some significant differences from 2.0 version.
November 17th, 2010 at 3:49 am
With tcServer 2.1 (developer) it does not load the instances: “Failed to get available server instances.” Previous versions work fine. Good work!
December 23rd, 2010 at 8:30 am
@roekoe new plugin version with tcServer 2.1 support is available now. Please update the plugin at File | Settings | Plugins page.
December 30th, 2010 at 10:13 am
The new version does not seem to work for me. I tried it several times … Does anybody else have this problem with the 2.1 compatible version ?
January 11th, 2011 at 4:11 pm
Just tried this on latest SpringSource ToolSuite version, which includes tcServer 2.1.1 and I get “JAVA_HOME environment variable is not defined”. This is coming from the top of the tcruntime-*.sh scripts, which are checking for JAVA_HOME to be explicitly set, which it isn’t on my Mac OS X/IDEA 10 install.
Tried setting JAVA_HOME in path variables (global IDEA config) as well as setting JAVA_HOME in my “.profile” (which I don’t really want to do).
January 14th, 2011 at 2:15 pm
@J.Brisbin Have you tried setting in ~/.MacOSX/environment.plist? That worked for me.
January 14th, 2011 at 2:17 pm
@Rudy Could you create an ussue describing your problem?
July 21st, 2011 at 1:11 pm
Any plans to update it for tc server 2.5
July 22nd, 2011 at 5:38 am
@Mohit Changes in tc Server 2.5 didn’t break support, plugin works fine with it.
August 8th, 2011 at 7:31 am
I believe I need version 1.1.1 of the plugin to get my tc server instance 2.5 running.
But my Idea-plugin-repository (idea 9.0.4 ultimate) only offers version 1.0 of your tc server plugin. Refresh of the repository is also not helping. Thx in advance.
August 8th, 2011 at 12:18 pm
@Hedric tc server v.2.1 and higher is supported since 1.1 version, and it is available only on IDEA 10.* Consider upgrade.
August 21st, 2011 at 5:38 pm
Worked like a charm for me but redeploy fails. If i removed the application from webapps directory and then let the server startup build and deploy it works perfectly fine but in case application is already deployed, redeploy throws exception all the times.
August 22nd, 2011 at 6:06 am
@Mohit I’ve created an issue: http://youtrack.jetbrains.net/issue/IDEA-73409 . Please, write there, what exactly exception do you get, your tc server version and plugin version.
October 1st, 2011 at 1:32 pm
Following is the error snapshot. I am using latest version of plugin
01-Oct-2011 13:07:24.543 INFO com.springsource.tcserver.security.PropertyDecoder. tc Runtime property decoder using memory-based key
01-Oct-2011 13:07:24.762 INFO com.springsource.tcserver.security.PropertyDecoder. tcServer Runtime property decoder has been initialized in 220 ms
01-Oct-2011 13:07:25.90 INFO org.apache.coyote.AbstractProtocolHandler.init Initializing ProtocolHandler ["http-bio-8081"]
…and more in issue
October 4th, 2011 at 8:41 am
@Mohit What is tc Server version?
October 4th, 2011 at 7:06 pm
vfabric-tc-server-developer-2.5.0.RELEASE
October 5th, 2011 at 12:00 pm
@Mohit Can’t reproduce your problem. Log shows plugin’s actions were correct, seems there is a problem with server’s settings.
February 28th, 2012 at 11:32 am
@J.Brisbin: I was having a similar issue with Insight not resolving other environment variables. It feels like a dirty hack, but I was able to get around it by adding my variables to vfabric-tc-server-2.6.3\{instance}\conf\wrapper.conf like so:
set.ENVIRONMENT_VARIABLE=value
There’s also a set.JAVA_HOME line in this file. I’d check that to make sure it’s pointing to a real JDK installation.
July 19th, 2012 at 3:34 pm
Did anyone try vfabric-tc-server-developer-2.7.0.RELEASE with IntelliJ 11.1.2
Plugin is getting installed but after providing home directory, it is not able to detect servers.
September 3rd, 2012 at 7:42 am
Does not work with vfabric-tc-server-developer-2.7.1.RELEASE and IntelliJ 10.5.4