<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Dobesland - Latest Comments in Glassfish: Setting the context-root of a WAR inside an EAR | Dobesland</title><link>http://dobesland.disqus.com/</link><description>Dobes Vandermeer's blog - software engineering, java programming, enlightenment</description><atom:link href="https://dobesland.disqus.com/glassfish_setting_the_context_root_of_a_war_inside_an_ear_dobesland/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 23 Apr 2009 12:35:07 -0000</lastBuildDate><item><title>Re: Glassfish: Setting the context-root of a WAR inside an EAR | Dobesland</title><link>http://www.dobesland.com/2008/01/15/glassfish-setting-the-context-root-of-a-war-inside-an-ear/#comment-8611428</link><description>&lt;p&gt;Did you try using an empty string?  I'm not sure what else might work.&lt;br&gt; Another option is to set the war as the "default web application" in the&lt;br&gt;glassfish admin panel, I believe it's the virtual server configuration that&lt;br&gt;lets you do that.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dobes_vandermeer</dc:creator><pubDate>Thu, 23 Apr 2009 12:35:07 -0000</pubDate></item><item><title>Re: Glassfish: Setting the context-root of a WAR inside an EAR | Dobesland</title><link>http://www.dobesland.com/2008/01/15/glassfish-setting-the-context-root-of-a-war-inside-an-ear/#comment-8609159</link><description>&lt;p&gt;I've already known than the file is applicattion.xml, but my problem is that I want to set me root context to "/", but when I deploy it, and enter the URL like http:localhost:82/ (thats de URL), then, it don't load the applicattion, so I don't know how to set the root context into "/" and make it work.&lt;/p&gt;&lt;p&gt;Ane help?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guille</dc:creator><pubDate>Thu, 23 Apr 2009 11:22:41 -0000</pubDate></item><item><title>Re: Glassfish: Setting the context-root of a WAR inside an EAR | Dobesland</title><link>http://www.dobesland.com/2008/01/15/glassfish-setting-the-context-root-of-a-war-inside-an-ear/#comment-2814309</link><description>&lt;p&gt;Thanks xlinuks - that'll help for a a WAR file (a Web Application), but this tip is for people who've created an EAR file (an Enterprise Application).  In the version of glassfish I have, I can't change the context root of a WAR file that's bundled inside an EAR file using the admin interface, although I can, as you've shown, change the context root of a WAR file.&lt;/p&gt;&lt;p&gt;FWIW, anyone who didn't know already, you CAN change the context root of a WAR file by editing it's web.xml or sun-web.xml, as long as it's not being deployed as part of an EAR file.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dobes</dc:creator><pubDate>Tue, 08 Jul 2008 02:16:48 -0000</pubDate></item><item><title>Re: Glassfish: Setting the context-root of a WAR inside an EAR | Dobesland</title><link>http://www.dobesland.com/2008/01/15/glassfish-setting-the-context-root-of-a-war-inside-an-ear/#comment-2814312</link><description>&lt;p&gt;The GlassFish server has a server GUI manager available at localhost port 4848 through the browser.&lt;br&gt;One can log in (default username/password are "admin" and "adminadmin" respectively), go to Applications-&amp;gt;WebApplications, click on the name of your one and you'll see to the right the Context Root option which you can change and click "Save" and you're done.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xlinuks</dc:creator><pubDate>Mon, 07 Jul 2008 23:46:47 -0000</pubDate></item><item><title>Re: Glassfish: Setting the context-root of a WAR inside an EAR | Dobesland</title><link>http://www.dobesland.com/2008/01/15/glassfish-setting-the-context-root-of-a-war-inside-an-ear/#comment-2814313</link><description>&lt;p&gt;Thanks, had are hard time looking into this.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephan</dc:creator><pubDate>Fri, 16 May 2008 07:36:18 -0000</pubDate></item><item><title>Re: Glassfish: Setting the context-root of a WAR inside an EAR | Dobesland</title><link>http://www.dobesland.com/2008/01/15/glassfish-setting-the-context-root-of-a-war-inside-an-ear/#comment-2814308</link><description>&lt;p&gt;Dobes,&lt;/p&gt;&lt;p&gt;This was just what I needed. I also did not quite figure out what happend.&lt;/p&gt;&lt;p&gt;Thank your for sharing this!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dj Rabbit JAvA</dc:creator><pubDate>Fri, 25 Apr 2008 16:26:16 -0000</pubDate></item><item><title>Re: Glassfish: Setting the context-root of a WAR inside an EAR | Dobesland</title><link>http://www.dobesland.com/2008/01/15/glassfish-setting-the-context-root-of-a-war-inside-an-ear/#comment-2814311</link><description>&lt;p&gt;Thanks for sharing this information. Like you, I also spent quite some time trying to achieve this supposedly easy task.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cw</dc:creator><pubDate>Mon, 25 Feb 2008 22:56:04 -0000</pubDate></item><item><title>Re: Glassfish: Setting the context-root of a WAR inside an EAR | Dobesland</title><link>http://www.dobesland.com/2008/01/15/glassfish-setting-the-context-root-of-a-war-inside-an-ear/#comment-2814310</link><description>&lt;p&gt;Thanks for sharing this.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexis MP</dc:creator><pubDate>Fri, 01 Feb 2008 09:11:17 -0000</pubDate></item></channel></rss>