Intellij 12.1 and WebSphere Liberty Profile configuration help

I need assisstance configuring Liberty Profile for my 12.1 workspace.

Issues that I am running into:

1) How do I set the context root for my deployed application in Liberty Profile? In Tomcat, there is a field to do so but in WebSphere LP, there isn't one. The context root that gets assigned is the id with value like "..._war_exploded" in the server.xml file.

2) I am deploying multiple WARs via Intellij and any configuration override I make only gets applied to the first WAR. When I edit the server.xml file for LP, I manually added context root and classloader delegation to each of the WARs xml entry. When I start up the server, my customized entries all get wiped out except for the first WAR entry.

Thanks

4 comments
Hello,

1) it's impossible now with IDEA, so I have just opened new feature request (http://youtrack.jetbrains.com/issue/IDEA-104976) to support context paths in a WebSphere Liberty Profile IDEA run configuration.
We may be able to deliver that in 12.1.x but not sure.
2) I'm investigating now, will update you here

Regards,
Michael
0

Hello,

Now, regarding 2):
Indeed, IDEA doesn't preserve <application> node content on (re)deploy. Actually, i found a race condition which *may* keep <application> node of the first deployment, yet it's not guaranteed.
So, I've opened http://youtrack.jetbrains.com/issue/IDEA-105017 to keep the <application> node content on each (re)deploy.

Regards,
Michael
0

Hello Michael, I really appreciate your time and efforts in getting these 2 items implemented.

Regards
G

0

Hello,

Some good news -- I was wrong about 1).

Have just verified that IDEA 12.1 allows you to specify the context path with the deployment descriptor -- ibm-web-ext.xml for a WAR or application.xml for an EAR
(details are described here: http://www.redbooks.ibm.com/redbooks/pdfs/sg248076.pdf - section 1.4.4).

For IDEA 13 we also will allow to override this value from run configuration UI (like it is implemented for Tomcat and other servers), this feature is covered by youtrack IDEA-104976.

Regards,
Michael

0

Please sign in to leave a comment.