users@glassfish.java.net

Re: setting context-root for a webapp?

From: Edson Carlos Ericksson Richter <edson.richter_at_mgrinformatica.com.br>
Date: Wed, 14 Jun 2006 14:36:00 -0300

Hi!

Just found a way:

Go to web admin console (http://localhost:4848), select Configuration ->
HTTP Service -> Virtual Servers -> Select your server -> Configure
"Default Web Module".

Should do the job.

Best regards,

Richter

Jan Luehe escreveu:
> Hi Matthew,
>
> Matthew Pease wrote On 06/14/06 09:27,:
>
>> 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>
>
>
> This should work, at least it does for me.
>
> You've stored the above <application ..> in your EAR file's
> META-INF/application.xml, right?
>
> Does your karmapop.war by any chance have a
> WEB-INF/sun-web.xml with a different <context-root> setting?
>
> What info is getting logged to your server.log as you deploy your
> EAR?
>
> Jan
>
>
>>
>>
>> Thanks people -
>> Matt
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>
>