redeploy/hotswap tc Server support

I'm evaluating Idea at work and I love it... expect for one thing. Hot swap/redeploy seems to fail.

On redeploy I see an exception logged in the undeploy step and it loops indefinately.

Hot swap places the updated files in the wrong place, for example

it should be placed in

/mywar-web.war/pages/home.jsp

it always goes to

/mywar.web/pages/home.jsp

so obviously its very hard to develop my web resources having to restart the server every time.

This always occurs using an exploded war. Using the built war doesn't allow updating of individual resources for tc server.


Anyone have a solution or workaround for this? My eval expires in two days, I'll purchase if I get a solution.

R/
Matt

5 comments
Comment actions Permalink

Hello

Please attach .idea subfolder of your project. It would probably make sense to post attachment into the new youtrack.

Regards,
Michael

0
Comment actions Permalink

Here is the .idea folder. Thanks for any help ou have with this. I like idea, but hotswap resources is a deal breaker.



Attachment(s):
.idea.zip
0
Comment actions Permalink

Hello

1) Regarding the exception on undeploy: there's known exception with tc Server 2.6.x (the server itself, not IDEA integration), as described at http://youtrack.jetbrains.com/issue/IDEA-118205#comment=27-645637
Do you face the same one? Please provide stacktrace if you have another one.

2) Regarding the hotswap problem: 'How swap classes' action updates classes only (by the means of JVM), and is not intended to update resources (jsp's are resources in fact).
There are 'Update [classes and] resources' actions which updates resources in the artifact output folder, but they are available for the exploded artifacts only (while you deploy an archive artifact).

Regards,
Michael

0
Comment actions Permalink

Yes that is the same exception I'm seeing - that's good news I suppose I'm guessing someone is working on that. I'm not sure it's a tc Server problem - STS and Eclipse seem to handle this fine (I hate to say - I'm a big proponent of JetBrains stuff!)

I've set it to update classes and resources already.

Resources ARE redeployed just to the wrong place. For an exploded WAR

/mywar.war/resource.jsp (original location)
/mywar/resource.jsp (redeployed location)

everything but the location of the location of the updated resource is incorrect.

Thank You
Matt

0
Comment actions Permalink
I have checked tc Server redeploy/hotswap and it works correctly for my project configuration.


In your "idea.zip" attachment you have configured "lqspark-web:war" and "lqspark-web:war exploded" artifacts. In your update resources example you have mentioned "mywar.war" exploded war.
So it is unclear with what configuration update resources issue appears.

Please note that exploded artifact directory name should NOT have ".war" extension to be deployed on tc Server correctly (and the next plugin release, aligned with 13.0.2, will have proper warning about this possible extension problem).

To resolve your issue please provide additional information:
1. Specify used operation system and exact tc Server version

2. Specify your artifact names and attach .idea folder of the project with update resources issue
3. Try to deploy\update resources using expanded WAR without ".war" extension in it's web path

Regards,
0

Please sign in to leave a comment.