Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Other Java Products and Servers and the fly likes How to set Home page in Glass Fish Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "How to set Home page in Glass Fish" Watch "How to set Home page in Glass Fish" New topic

How to set Home page in Glass Fish

Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162
Hi All,

i am new to EJB. i dont have any idea about EJB.

i tried the stateless session bean example in netBeans with glassfish, in that the home page is getting displayed in the URL mentioned below.


but the context root is /ServletStateless-war, i dont know how this particular page is getting displayed when i say run from netBeans.

where to configure to display this particular URL.

i searched web.xml, sun-web.xml, sun-resources.xml, persistence.xml

i am not able to find that.

please help me.

Thanks In Advance,
Bennet Xavier.X.
[ December 10, 2008: Message edited by: Bennet Xavier ]

Thanks And Regards

Bennet Xavier. X
Bhavik patel
Ranch Hand

Joined: Feb 20, 2007
Posts: 49

Right click on project --> select properties ---> select run --> edit relative-url text box according to your need

Bhavik Patel
Glassfish Consultancy service At
I agree. Here's the link:
subject: How to set Home page in Glass Fish
It's not a secret anymore!