Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WildFly Configuration, Deployment, and Administration - Second Edition

You're reading from   WildFly Configuration, Deployment, and Administration - Second Edition Build a functional and efficient WildFly server with this step-by-step, practical guide

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher
ISBN-13 9781783286232
Length 402 pages
Edition 2nd Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (14) Chapters Close

Preface 1. Installing WildFly FREE CHAPTER 2. Configuring the Core WildFly Subsystems 3. Configuring Enterprise Services 4. The Undertow Web Server 5. Configuring a WildFly Domain 6. Application Structure and Deployment 7. Using the Management Interfaces 8. Clustering 9. Load-balancing Web Applications 10. Securing WildFly 11. WildFly, OpenShift, and Cloud Computing A. CLI References Index

Creating a new Maven web project

There are several ways in which you can create a web application project using Eclipse. Since Maven is the de facto build tool, it makes sense to use the Maven project structure in this example.

Let's start by creating the project file structure. Go to File | New | Maven Project, select skip archetype selection, create a simple project, and proceed to the next page. Then, complete the artifact details as shown in the following screenshot, ensuring that you select war as the packaging:

Creating a new Maven web project

After clicking on Finish, Eclipse will generate a default folder structure for your application:

Creating a new Maven web project

We are going to use JSF to create the view. Configuring the JSF 2.2 web application requires very little effort. You can achieve this with the following steps:

  1. Create a file called web.xml and place it in the WEB-INF folder of your application.
  2. Add the FacesServlet to your web.xml file and specify what kind of URL patterns will be directed to it.
  3. Create a faces-config.xml file and...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image