This is a step-by-step tutorial. I made this Tutorial, because I was not happy with the four project folders generated by JBoss Tools 2.0.0 when I select a new Seam EAR project. The work is a bit confusing. If I create a new Seam WAR project I only get two projects (one of them is a test project). I had a lot of trouble with the WAR project. I was not able to not get the EJB3 examples work with it. Never the less the folder structure is different from the Seam-gen generated projects. This tutorial works completely without JBoss Tool. You can use JBoss Tools anyway, it has nice functions do build a RichFaces JSF page, but keep in mind that new generated projects are difficult to handle, since you have to keep an overview of all four projects and the changes you made in each of them.
Download and extract the files
First of all you need to download a few things.
Eclipse for Java EE Developers (second entry)
Try to download the last GAs from the JBoss websites.
JBoss Seam 2.0.X (of course)
And the JBoss Application Server 4.2.X
And you will need a database, I used MySQL. Download the proper JDBC Driver
Extract these files where you like but keep in mind not to use blanks ” ” or special characters “áä”.
I used “C:\Development” as path. Create a new workspace folder here.
Now the folder should look like this:
Download and install Database
Download the MySQL Database from this Page
Next we need to get our database up and running.
Run the setup and make a “typical” installation. At the end of the setup configure the MySQL server. Choose “Standard Configuration”. Do not change anything in the next screen. Now set root password for the DB. I used “mysql” at this point (very inventive, huh?). Go to the next screen and finish the configuration.
Setup JBoss Seam and create a new project
You need to create a new Seam project
Enter the Console, Start => Run an enter “cmd”
Enter “C:” and change the Directory to the JBoss Seam installation
Now it is time to setup JBoss Seam.
Type: “seam setup”
Seam welcomes us but wants to know some things about our project.
Enter the project folder. That will be our workspace
Enter the Directory of the JBoss Application Server
Give the Seam project a name.
RichFaces is fine. Hit enter.
The BlueSky Theme is fine, too. Hit enter.
EAR, ok. Hit enter
Enter the package name of your session beans.
Enter the package name of your entity beans.
The package for the test cases is ok. Enter.
I use MySQL, so I enter “mysql”.
Dialect is ok. Enter.
Enter the path to the JDBC driver. In this case it is
This is the driver class, hit enter.
Now it gets a bit tricky. Enter the connection URL to your Database.
I used the test database in my MySQL installation.
The username was “root” and the password “mysql”.
There is no DB catalog in this case. Enter.
There are no tables so far. Enter.
I want to keep my tables. Enter.
The setup is finished. That was a lot of work, so where is my project?
There is no project till now.
Enter “seam create-project”
That’s enough console hacking for now.