NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

GF: Default appl welcome page

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
arthury



Joined: 16 Feb 2011
Posts: 5

PostPosted: Wed Feb 16, 2011 8:00 pm    Post subject: GF: Default appl welcome page Reply with quote

All,

I have been looking around in the manuals and Goolging but cannot find the answer to this supposedly simply scenario.

If I have a web application built in NetBeans using Glassfish and deployed it locally in localhost.

When I use a browser to hit this

[1] http://localhost:8080/MyAppl/

versus

[2] http://localhost:8080/MyAppl/index.html

Where on earth is it rendering the HTML page from in [1]?
[1] and [2] are currently rendering differing contents.

I have checked my configs in
a) web.xml
b) domain.xml
and both looks good.


Please shed some light.

Thanks,
Art
      Back to top
      Tony
      Posted via mailing list.





      PostPosted: Thu Feb 17, 2011 10:07 am    Post subject: Re: GF: Default appl welcome page Reply with quote

      Project/Properties/Run

      Tony

      -----Original Message-----
      From: arthury [mailto:address-removed]
      Sent: 16 February 2011 20:00
      To: address-removed
      Subject: [nbj2ee] GF: Default appl welcome page

      All,

      I have been looking around in the manuals and Goolging but cannot find the
      answer to this supposedly simply scenario.

      If I have a web application built in NetBeans using Glassfish and deployed
      it locally in localhost.

      When I use a browser to hit this

      [1] http://localhost:8080/MyAppl/

      versus

      [2] http://localhost:8080/MyAppl/index.html

      Where on earth is it rendering the HTML page from in [1]?
      [1] and [2] are currently rendering differing contents.

      I have checked my configs in
      a) web.xml
      b) domain.xml
      and both looks good.


      Please shed some light.

      Thanks,
      Art
      Back to top
      troy a. giunipero
      Posted via mailing list.





      PostPosted: Fri Feb 18, 2011 9:37 pm    Post subject: Re: GF: Default appl welcome page Reply with quote

      I'm pretty sure this is a result of the Servlet 3.0 Specification.

      The index.html (and index.jsp) page is mapped by default when there is no mapping in the deployment descriptor.  So if GlassFish' servlet container adheres to the Servlet 3.0 spec (it does), the application will try to serve these pages when none is specified.



      On 16 February 2011 20:00, arthury <address-removed ([email]address-removed[/email])> wrote:
      Quote:
      All,

      I have been looking around in the manuals and Goolging but cannot find the answer to this supposedly simply scenario.

      If I have a web application built in NetBeans using Glassfish and deployed it locally in localhost.

      When I use a browser to hit this

      [1] http://localhost:8080/MyAppl/

      versus

      [2] http://localhost:8080/MyAppl/index.html

      Where on earth is it rendering the HTML page from in [1]?
      [1] and [2] are currently rendering differing contents.

      I have checked my configs  in
      a) web.xml
      b) domain.xml
      and both looks good.


      Please shed some light.

      Thanks,
      Art




      Back to top
      Display posts from previous:   
      Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
      Page 1 of 1

       
      Jump to:  
      You cannot post new topics in this forum
      You cannot reply to topics in this forum
      You cannot edit your posts in this forum
      You cannot delete your posts in this forum
      You cannot vote in polls in this forum
      You can attach files in this forum
      You can download files in this forum


      Powered by phpBB
      By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo