users@glassfish.java.net

setting context-root for a webapp?

From: Matthew Pease <mpease_at_gmail.com>
Date: Wed, 14 Jun 2006 09:27:59 -0700

Hello Glass Fishermen & Fisherwomen -

   Simple stupid question really, but I couldn't find it in the docs.

   How can I make my .ear deployed webapp the default?

 I now use http://localhost/karmapop/login.jsp

but I'd rather use

   http://localhost/login.jsp

   Anyone know how to do this? I tried adding a META-INF directory
with this file in it, but that didn't work at all.


<application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
                        http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
    <display-name>KarmaPop Demo</display-name>

    <module>
        <web>
            <web-uri>karmapop.war</web-uri>
            <context-root>/</context-root>
        </web>
    </module>
</application>


Thanks people -
Matt