File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Oracle tutorial for Java EE using NetBeans on Mac OS

 
Monica Marcus
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a direct answer, but the Unix/Linux download should work on OS X.
 
Niraj Jha
Ranch Hand
Posts: 63
Java Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf! Thanks Niraj!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic