|
Gracelets Server embeds Tomcat 6.0.12 along with custom servlet and tomcat implementations
in order to streamline the development of a gracelets application. It boots up a simple application with Gracelets, JSF, Facelets and JBoss Seam in six seconds with absolutely no configuration needed. Of course, just about everything inside the server is customizable. But to get up and going is as easy as downloading, unzipping and running. No web.xml, faces-config.xml or server.xml to maintain. You can configure the server with a groovy script and can configure your web app with one as well. The Gracelets Server is also a good way to get familiar with Gracelets. It comes with the latest version of Gracelets since release and has some live demo applications showing alot of the features in Gracelets. The following are some characteristics of Gracelets Server: Directory StructureThe Gracelets Server has the following basic directory structure: / lib extension server support web_context server application base config scl.properties startup.jarThe lib/server, lib/support and lib/extension directory contains all of the server-level clsses in order for it to boot properly. The lib/web_context is a common web application level class area, in other words, every web application deployed in a Gracelets Server will have the jars in this directory automatically in its web level class loader. The server directory is kind of a central place for the server, although as will be revealed with time, your gracelet applications can be anywhere in your file system and do not need to be placed here. The server/application directory is where the default application that is deployed is at, and you can code anywhere under it to start learning how to write gracelet pages, controllers and libraries. The server/config directory contains logging configuration and a special groovy script called server.cfg.groovy. Server ConfigurationThe following is what is in your current config script:
Web ApplicationsInstead of writing a web.xml, faces-config.xml and the like, you have the option to write a config.groovy file in the WEB-INF directory of your web applications.It is not necesary to write anything or even have the file existing if you are doing a standard gracelet setup (JSF/Facelets/Groovy/Seam). Soon we will have here the configuration options available when using a config.groovy file to configure your application. Special FeaturesOn the root of your app, it will auto-redirect to index.jsf when someone goes to the root of your app without specifying a file (i.e., /).Also, if you setup web container security as follows (in your WEB-INF/config.groovy):
|
| Last Updated: 05/05/2009 09:43PM CDT | © Gracelets 2008-2009 |