Techie has posted 1 posts at DZone. View Full User Profile

How to Make JBoss Seam Work with Eclipse (for Windows)

  • submit to reddit

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
“cd C:\Development\jboss-seam-2.0.X.GA”.

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”

There it is!

Seam finished


That’s enough console hacking for now.

Published at DZone with permission of its author, Techie Exchange.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)


Alain Hoang replied on Sun, 2008/07/13 - 5:40pm

Great post...


Priyank Doshi replied on Wed, 2008/07/16 - 6:52pm

Hi ,

I followed your instruction and I am stuck at 1 place where you restart the server and  run ANT on "build.xml". and after that you give "succesffull".And when I checked on the "localhost:8080/MyFirstSeamProj" it gives error as localhost 404 but I checked my server is running. so what could be the possible error 

srinivas rao replied on Tue, 2009/03/10 - 1:00am

It was great post! I have frustrated to read a lot of blogs to build and run seam application. By using this post, I have build, run and deploy the application successfully. I have a query about database configuration. I am new to hibernate. I am using mysql as a database. When I have run registration application. 'users' table is created by default under the 'test' schema. When I registered new user, data updated into the 'users' table. I couldn’t find the query hbm files in the sem-gen application. So could you please brief more about application to database relationship and configurations Many Thanks, Rao.

Uma Maheswari Muthu replied on Tue, 2011/09/20 - 12:18am

It was a great blog for seam beginners.

I followed the steps provided here for registration example.

But I get the error as

It would be a great help, please help me to resolve this issue


org.jboss.seam.InstantiationException: Could not instantiate Seam component: register
    at org.jboss.seam.Component.newInstance(
    at org.jboss.seam.Component.getInstance(
    at org.jboss.seam.Component.getInstance(
    at org.jboss.seam.Component.getInstance(
    at org.jboss.seam.Namespace.getComponentInstance(
    at org.jboss.seam.Namespace.getComponentInstance(
    at org.jboss.seam.el.SeamELResolver.resolveBase(
    at org.jboss.seam.el.SeamELResolver.getValue(
    at javax.el.CompositeELResolver.getValue(
    at com.sun.faces.el.FacesCompositeELResolver.getValue(
    at org.jboss.el.parser.AstIdentifier.getValue(
    at org.jboss.el.parser.AstValue.getTarget(
    at org.jboss.el.parser.AstValue.invoke(
    at org.jboss.el.MethodExpressionImpl.invoke(
    at com.sun.facelets.el.TagMethodExpression.invoke(
    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(
    at com.sun.faces.application.ActionListenerImpl.processAction(
    at javax.faces.component.UICommand.broadcast(
    at org.ajax4jsf.component.AjaxViewRoot.processEvents(
    at org.ajax4jsf.component.AjaxViewRoot.broadcastEventsForPhase(
    at org.ajax4jsf.component.AjaxViewRoot.processPhase(
    at org.ajax4jsf.component.AjaxViewRoot.processApplication(
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(
    at com.sun.faces.lifecycle.Phase.doPhase(
    at com.sun.faces.lifecycle.LifecycleImpl.execute(
    at javax.faces.webapp.FacesServlet.service(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(
    at org.jboss.seam.web.IdentityFilter.doFilter(
    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(
    at org.jboss.seam.web.MultipartFilter.doFilter(
    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(
    at org.jboss.seam.web.ExceptionFilter.doFilter(
    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(
    at org.jboss.seam.web.RedirectFilter.doFilter(
    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(
    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(
    at org.ajax4jsf.webapp.BaseFilter.handleRequest(
    at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(
    at org.ajax4jsf.webapp.BaseFilter.doFilter(
    at org.jboss.seam.web.Ajax4jsfFilter.doFilter(
    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(
    at org.jboss.seam.web.LoggingFilter.doFilter(
    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(
    at org.jboss.seam.web.HotDeployFilter.doFilter(
    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(
    at org.jboss.seam.servlet.SeamFilter.doFilter(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.apache.catalina.core.StandardWrapperValve.invoke(
    at org.apache.catalina.core.StandardContextValve.invoke(
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
    at org.apache.catalina.core.StandardHostValve.invoke(
    at org.apache.catalina.valves.ErrorReportValve.invoke(
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(
    at org.apache.catalina.core.StandardEngineValve.invoke(
    at org.apache.catalina.connector.CoyoteAdapter.service(
    at org.apache.coyote.http11.Http11Processor.process(
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
    at Source)
Caused by: javax.naming.NameNotFoundException: UmaSeam not bound
    at org.jnp.server.NamingServer.getBinding(
    at org.jnp.server.NamingServer.getBinding(
    at org.jnp.server.NamingServer.getObject(
    at org.jnp.server.NamingServer.lookup(
    at org.jnp.interfaces.NamingContext.lookup(
    at org.jnp.interfaces.NamingContext.lookup(
    at javax.naming.InitialContext.lookup(Unknown Source)
    at org.jboss.seam.Component.instantiateSessionBean(
    at org.jboss.seam.Component.instantiate(
    at org.jboss.seam.Component.newInstance(


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.