wood burning stoves 2.0*
The moose likes JSP and the fly likes Oracle tutorial for Java EE using NetBeans on Mac OS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Oracle tutorial for Java EE using NetBeans on Mac OS" Watch "Oracle tutorial for Java EE using NetBeans on Mac OS" New topic
Author

Oracle tutorial for Java EE using NetBeans on Mac OS

Monica Marcus
Ranch Hand

Joined: Oct 17, 2012
Posts: 43
I am reading this tutorial to learn Java EE:
http://docs.oracle.com/javaee/6/tutorial/doc/bnadx.html
and I don't get the glassfish-web.xml file for the hello1 application.

It is a simple Web application whose code is given in the tutorial. However, since Java EE 6 SDK is not available for Mac OS, I had to type in by hand the files for this example. These files which I typed in myself are index.xhtml, response.xhtml and a JavaBeans class Hello.java. The application runs on my Glass Fish 3+ server but the tutorial mentions this glassfish-web.xml file which I believe should be created automatically, like the web.xml file.

Anyone knows whether this file should be created automatically? If yes, how do I get it? The tutorial does not show its contents. The Web application runs without this file and then I also wonder why is this file used for?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
Not a direct answer, but the Unix/Linux download should work on OS X.


Ping & DNS - updated with new look and Ping home screen widget
Niraj Jha
Ranch Hand

Joined: Feb 20, 2013
Posts: 63

This file only contains context root and it is server specific.It should be created automatically once you create web application using glassfish server.
For a web application only web.xml file is required.
Monica Marcus
Ranch Hand

Joined: Oct 17, 2012
Posts: 43
Thanks Ulf! Thanks Niraj!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Oracle tutorial for Java EE using NetBeans on Mac OS
 
Similar Threads
Using JMS on a client only, outside of a container
JSP to connect to a web service
The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
Web.xml not displayed in Netbeans 6.9.1 instead sun-web.xml is being displayed
GlassFish forum?