In order to test-launch our first application, we will create a HelloWorld
web application using Eclipse. So launch Eclipse and choose to create a new web project using File | New | Dynamic Web Project.
Choose a name for your application and check the Use default location box if you want to create your project within the same location of your Eclipse workspace. If you have correctly configured a new JBoss AS 7.1 server in Eclipse, you should see the JBoss 7.1 Runtime option selected by default and Target Runtime and Default Configuration for JBoss 7.1 Runtime preselected in the Configuration combobox.
Select 3.0 as Dynamic web module version, which buys us ease of development by using the Servlet 3.0 specifications, and also leave the EAR membership checkbox unselected.
Click on Finish to continue.
Now let's add a quintessential servlet to our project that merely dumps a HelloWorld message. From the File menu, select New | Servlet and enter a meaningful...