| Author |
Message |
|
|
Post subject: Glassfish 3.1.2 deployment changes
Posted: Mar 05, 2012 - 06:14 PM
|
|
Registered Member


Joined: Sep 29, 2004
Posts: 27
|
|
Hi all,
I've recently upgraded my Glassfish installation to 3.1.2 - the current version available. Unfortunately, Glassfish seems to have changed the autodeploy naming conventions. Before 3.1.2 MyEclipse would create domain/domain1/appname.war and I would access it at http://localhost:8080/appname. Now, however, I need to access it at http://localhost:8080/appname.war.
Is there any configuration I can do to prevent the Glassfish chunk of MyEclipse to not put the .war on now? To me this is a Glassfish bug/breaking change but I wondered if there was a quick way to have MyEclipse handle it.
Thanks for any info. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 06, 2012 - 12:02 PM
|
|

Joined: Nov 11, 2010
Posts: 2191
|
|
stdunbar ,
Thank you for pointing to it.I have filed a PR for the dev team to investigate the issue.
They are looking into it now. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 07, 2012 - 07:33 AM
|
|

Joined: Mar 09, 2011
Posts: 727
|
|
stdunbar,
We are still investigating this though I think you're right that Glassfish is now treating the full name of the exploded directory as the context root.
I see that you've raise an issue against Glassfish, so I hope that gets picked up soon. However, there is a better workaround than changing the context root in the admin console each time. You can specify the context root in a glassfish-web.xml file. This file should be in the WEB-INF directory, alongside the web.xml file. Here is a sample, for just setting the context root:
| Code: | <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD
GlassFish Application Server 3.1 Servlet 3.0//EN"
"http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
<glassfish-web-app>
<context-root>appname</context-root>
</glassfish-web-app> |
I hope this helps. |
_________________ Tony
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 08, 2012 - 02:49 AM
|
|
Registered Member


Joined: Sep 29, 2004
Posts: 27
|
|
Gaah! Too many years of changing between app servers and I forget about the app server specific config files! And 4 years at BEA with tons of them too.
Excellent, simple work around - thank you very much! |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Mar 08, 2012 - 08:09 AM
|
|

Joined: Mar 09, 2011
Posts: 727
|
|
stdunbar,
Life is getting much too complicated in our line of business! And we thought things were meant to get simpler.
So I guess you're saying that this was a problem with earlier glassfish releases too. We should still do something about it, though, so the problem report will stay.
I'm glad you're back working to full capacity and thanks for getting back to us. |
_________________ Tony
MyEclipse Support
|
| |
|
|
|
 |
|
|