---------- Forwarded message ----------
From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Mon, Jan 10, 2011 at 1:30 PM
Subject: Re: Glassfish3.0.1: Is it possible to map web address so that it
display like www.myhost.com instead of www.myhost.com:8080/projectname-war?
To: "Pham, Thang" <phamtn8_at_wfu.edu>
Cc: users_at_glassfish.java.net
One can configure the default web module through admin gui. For instance,
Configurations > server-config > Virtual Servers > server > Default Web
Module (choose corresponding web app).
cc users_at_glassfish.java.net alias as others may interest in this, too.
Shing Wai Chan
On 1/10/11 1:15 AM, Pham, Thang wrote:
Hi Shing
Hi again, I am the one who ask how to remap the address to
www.myhost.com instead
of www.myhost.com:8080/projectname-war. Thank you very much for replying,
and please help me get through this problem as this is a very critical part
of my development process. I am not quite understand what you mean when you
said "2. change default web module corresponding to the war file with the
context root /myproject-war."
I have post this question on stackoverflow.com, so if you want to see more
in details what I did, please visit this website:
http://stackoverflow.com/questions/4600593/gf-3-0-1-virtual-server-www-myhost-com8080-projectname-war-www-myhost-com
Thank you so much and have a wonderful day
On Sat, Jan 8, 2011 at 10:20 PM, Pham, Thang <phamtn8_at_wfu.edu> wrote:
> Thank you so so much for replying my question.
>
> On (2), when you said "with the context root/myproject-war", can u
> explain more on that? What I try was that. I use netbean 6.9 and my project
> is ScholarActive that contain ScholarActive-ejb and ScholarActive-war. I
> change the context path of ScholarActive-war from "/ScholarActive-war" to
> "/root/ScholarActive-war". In the GF admin console, I change the default web
> module of virtual server "server" to "ScholarActive#ScholarActive-war.war",
> which is the only option from drop down list. Restart server, then I type
> localhost:8080, expecting the see my project load, but it does not.
>
> Would u please kindly enough to give me a step by step instruction,
> please? I've been trying to do this for a while, very frustrated. Thank you
> so much and have a wonderful day
>
> On Sat, Jan 8, 2011 at 9:48 PM, Shing Wai Chan <shing.wai.chan_at_oracle.com>wrote:
>
>> 1. use can start GlassFish with port 80 instead of 8080
>> 2. change default web module corresponding to the war file with the
>> context root /myproject-war.
>>
>> ----- Original Message -----
>> From: phamtn8_at_wfu.edu
>> To: users_at_glassfish.java.net
>> Sent: Saturday, January 8, 2011 6:05:13 PM GMT -08:00 US/Canada Pacific
>> Subject: Glassfish3.0.1: Is it possible to map web address so that it
>> display like www.myhost.com instead of
>> www.myhost.com:8080/projectname-war?
>>
>> I am using Java EE 6 with GF 3.0.1. How can I configure glassfish3.0.1 so
>> that my web addr is www.myhost.com instead of
>> www.myhost.com:8080/myproject-war.
>>
>
>