One of the most wanted feature requests for our tooling is Maven integration/support for our projects, such as Seam.

Unfortunately we won't be able to add 'automatic' maven support in the upcoming JBoss Tools 3 release, but we have though started on doing the preparations to do so in a following release.

The biggest part of supporting Maven is that actual runtimes (i.e. Seam, Hibernate, the various specs involved etc.) is now fully mavenized and the other part is that m2eclipse have matured greatly the last few months so it is now possible to combine Eclipse WTP projects with Maven without having your head explode too often.

To illustrate how well these things work together today without any additional features from JBoss Tools Snjezana Peco made a few screencasts of how to use the examples she made available through JBoss Tools 'Project Example' functionality which are Seam projects that work with the Maven support m2eclipse offers.


  1. Eclipse 3.4 with JBoss Tools 3 or Developer Studio 2 (CR2 or latest release works with this)
  2. JBoss AS 4.2, EAP 4.3 or AS 5 GA (the example work with either)
  3. Seam 2.1.1 GA
  4. A recent m2eclipse, from Sonatype's updatesite

The following two screencasts Snjezana recorded shows how it works:

Screencast #1: Installing m2eclipse and get the Seam/Maven project example

  1. Snjezana starts of with showing JBoss Developer Studio 2 (you can use JBoss Tools too, just requires a bit more typing/manual configuration)
  2. Shows where Seam and AS is configured
  3. Goes to Help > Software Updates to install m2eclipse from their update site
  4. Selects Maven Integration, Doxia editor and Maven Integration for WTP under Maven Project Configurators (you can choose them all, but these are just the important ones)
  5. Wait's for the download and the install etc.
  6. When m2eclipse is installed she goes to Project Examples, types in maven and selects the Seam Booking Example - EAR mavenized - seam 2.1.21.GA
  7. Wait for the download and Maven getting all its dependencies
  8. Uses quick fix to configure the proper runtimes (i.e. jboss-seam-2.1.1.GA and JBoss 5.0 Runtime), if you had those configured from the start this step would not be needed.
  9. Wait for the project to compile
  10. Done!

Screencast #2: Using the Project Example and how to deploy/use the application.

  1. Shows again how to get the Seam booking example via Project examples
  2. Show's that the project is really a Maven project and have all the Maven features enabled
  3. Find and marks the datasource file (-ds.xml) as Deployable so the datasource will be known to JBoss
  4. Add the project to server which will deploy it
  5. Starts the server and goes to http://localhost:8080/booking/home.seam and see the Seam project runs

There you have it - nothing more to it. A mavenized Seam project where all the features of JBoss Tools is available next to all the Maven features m2eclipse brings to the plate.

Snjezana manually adjusted the pom.xml and Seam settings in tools to get this, in upcoming versions of JBoss Tools we will make sure that you can enable this automatically on new Maven/Seam projects.

Hope you like it!

Have fun! /max

17. Mar 2009, 01:48 CET | Link


Are Project Examples only available for RHDS? I do not have them on JBoss Tools.

17. Mar 2009, 04:15 CET | Link

Project Examples are also available in JBoss Tools, just need to install it from a JBoss Tools update site or zip.

p.s. JBDS was only called RHDS in its very first alpha/beta release.



17. Mar 2009, 13:29 CET | Link
Sakuraba | saku(AT)

m2clipse-integration, sweet!

17. Mar 2009, 23:04 CET | Link
re: "...m2eclipse have matured greatly the last few months so it is now possible to combine Eclipse WTP projects with Maven without having your head explode too often".

Max, if I recall correctly, there wasn't much recent changes in m2eclipse related to the WTP support and functionality been working solid in the dev builds since October or something like that, so your statement is confusing, unless you count few months back to October. :)
18. Mar 2009, 03:25 CET | Link

When I tried m2eclipse back in October it caused (or rather the collective dependencies) causes crashes and we had issues with WTP EAR projects.

That was fixed recently or at least we couldn't get it to work until December/January and finally in February we got things working. That is in my world view - in the last few months.



18. Mar 2009, 06:49 CET | Link
Rodney Moore | rmoore2112(AT)

I posted this last month, sample project attached. I think the greatest benefit is having all of the source code (that exists in maven repositories) linked automatically by the eclipse plug-in.

18. Mar 2009, 15:26 CET | Link

Cool - sounds like you did the same or similar thing we did.

And yes automatic source linking is the nice part of this :)

I wish I could somehow isolate the automatic dependency lib and source management and provide that on all projects including those that are not Maven projects.



19. Mar 2009, 23:00 CET | Link

Just wanted to give everyone a heads up - In screencast one, the Seam Booking Example - EAR mavenized - Seam 2.1.1.GA is used - In screencast two, the Seam Booking Example - EAR mavenized is used (this is chosen at time 0:11)

The Booking Example used in screencast two is based on Seam 2.0.2.SP1 and I got it to work fine. When I tried to get the Booking Example Seam 2.1.1.GA by following the instructions above, I get an error message

Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener java.lang.RuntimeException: error while reading /WEB-INF/components.xml at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument( at org.jboss.seam.init.Initialization.create( at org.jboss.seam.servlet.SeamListener.contextInitialized( at org.apache.catalina.core.StandardContext.listenerStart( at org.apache.catalina.core.StandardContext.start( at org.apache.catalina.core.ContainerBase.addChildInternal( at org.apache.catalina.core.ContainerBase.addChild( at org.apache.catalina.core.StandardHost.addChild( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at org.apache.tomcat.util.modeler.BaseModelMBean.invoke( at at at org.apache.catalina.core.StandardContext.init( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at org.apache.tomcat.util.modeler.BaseModelMBean.invoke( at at at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal( at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy( at org.jboss.web.AbstractWebDeployer.start( at org.jboss.web.WebModule.startModule( at org.jboss.web.WebModule.startService( at org.jboss.system.ServiceMBeanSupport.jbossInternalStart( at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle( at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at at at at at at org.jboss.system.ServiceController$ServiceProxy.invoke( at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start( at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at at at at at at at $Proxy44.start(Unknown Source) at org.jboss.web.AbstractWebContainer.start( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at at at at at at at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext( at org.jboss.wsf.container.jboss42.DeployerInterceptor.start( at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start( at org.jboss.deployment.SubDeployerInterceptor.invoke( at at at at at $Proxy45.start(Unknown Source) at org.jboss.deployment.MainDeployer.start( at org.jboss.deployment.MainDeployer.start( at org.jboss.deployment.MainDeployer.deploy( at org.jboss.deployment.MainDeployer.deploy( at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at at at at at at at at at at $Proxy9.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy( at org.jboss.deployment.scanner.URLDeploymentScanner.scan( at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan( at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop( at org.jboss.deployment.scanner.AbstractDeploymentScanner$ Caused by: java.lang.RuntimeException: Error loading element Init with component name null and component class null at org.jboss.seam.init.Initialization.installComponentsFromXmlElements( at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument( ... 92 more

24. Mar 2009, 22:38 CET | Link

This issue happens if there is the jboss-seam.jar in WEB-INF/lib of a war project. Since this file already exists in an ear project, seam 2.1.1 isn't started correctly. The maven goal install adds this jar to the WEB-INF/lib directory. A workaround is to remove all the libraries from WEB-INF/lib. This can be done in the Project Explorer or in Navigator view. I will try to fix the issue.

29. Mar 2009, 00:48 CET | Link

Fixed. You should create new Seam Booking Example - EAR mavenized Seam 2.1.1.GA projects.

31. Mar 2009, 11:21 CET | Link
Hi Max and all the other ones down this thread.

I'm facing another problem with this tutorial. I'm running "Maven install" over the "booking-ear" project and this error shows up...

[INFO] ------------------------------------------------------------------------
[INFO] Building JBoss Seam Booking - EAR
[INFO] Id: org.jboss.seam.examples:booking-ear:ear:1.0.0
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [ear:generate-application-xml]
[INFO] Generating application.xml
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [ear:ear]
[INFO] Copying artifact[ejb:org.jboss.seam.examples:booking-ejb:1.0.0] to[booking-ejb-1.0.0.jar]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] Seam-based Booking Application ........................ SUCCESS [1.813s]
[INFO] JBoos Seam Booking - EJB .............................. SUCCESS [1.497s]
[INFO] JBoss Seam Booking - WAR .............................. SUCCESS [2.653s]
[INFO] JBoss Seam Booking - EAR .............................. FAILED [0.641s]
[INFO] ------------------------------------------------------------------------

The following mojo encountered an error while executing:
Group-Id: org.apache.maven.plugins
Artifact-Id: maven-ear-plugin
Version: 2.3.1
Mojo: ear
brought in via: packaging: ear

While building project:
Group-Id: org.jboss.seam.examples
Artifact-Id: booking-ear
Version: 1.0.0
From file: /home/dev/workspace/booking-ear/pom.xml
Reason: Cannot copy a directory: /home/dev/workspace/booking/WebContent/WEB-INF/classes; Did you package/install active project artifact:
        artifact = org.jboss.seam.examples:booking:war:1.0.0:compile;
        project: MavenProject: org.jboss.seam.examples:booking:1.0.0 @ /home/dev/workspace/booking/pom.xml?

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run with the -e flag
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Tue Mar 31 00:12:04 UYT 2009
[INFO] Final Memory: 3M/16M
[INFO] ------------------------------------------------------------------------

BTW, I'm using Maven 2.1.0!

Thank you in advance.
02. Apr 2009, 16:24 CET | Link

I am facing the same problem of yours, using Maven 2.1.0 too.

02. Apr 2009, 20:17 CET | Link

Thank's god it's not me :)

03. Apr 2009, 02:10 CET | Link
This issue is caused by the incompatibility between maven 2.1.0 (m2eclipse uses it) and maven 2.0.x.
You can find more details on:

You can add External Tools Configuration that will call command line maven.
09. Apr 2009, 05:18 CET | Link
Miroslav Havram

That does not solve problem. I'm using maven 2.1.0 as external tool from eclipse 3.4.2 and still have same problem.

10. Apr 2009, 04:32 CET | Link

Maven 2.1.0 isn't compatible with 2.0.x. Could you try Maven 2.0.9?

10. Apr 2009, 05:17 CET | Link
Miroslav Havram

Nop, still the same - I've tried with both 2.0.9 and 2.0.10

13. Apr 2009, 07:21 CET | Link
I have fixed the issue in the Seam Booking Example - EAR mavenized - Seam 2.1.1.GA.
You can execute "Maven install" over the booking-ear or booking-parent project using the command line or External Tools (maven 2.0.9).
Now this example contains the booking-test project. The test project can be executed using "Run As>TestNG Suite". "Maven install" doesn't work for now.
13. May 2009, 02:47 CET | Link

I downloaded the current version (as of 5/12/09) of Seam Booking Example - EAR mavenized - Seam 2.1.1.GA, and followed the instructions above. The project builds and deploys and runs correctly. But I can't get the TestNG tests to run. I'm getting the following error:

[Parser] Running:

FAILED CONFIGURATION: @BeforeSuite startSeam
java.lang.RuntimeException: Unable to create a KernelInitializer based on the specified KernelConfig
        at org.jboss.kernel.KernelFactory.createKernelInitializer(
        at org.jboss.kernel.KernelFactory.assembleNewKernel(
        at org.jboss.kernel.KernelFactory.newInstance(
        at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.bootstrap(
        at org.jboss.embedded.Bootstrap.createKernel(
        at org.jboss.embedded.Bootstrap.getInstance(
        at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(
        at org.jboss.seam.mock.AbstractSeamTest.startJbossEmbeddedIfNecessary(
        at org.jboss.seam.mock.AbstractSeamTest.startSeam(
        at org.jboss.seam.mock.SeamTest.startSeam(
Caused by: java.lang.NoSuchMethodError: org.jboss.aop.proxy.container.ContainerCache.initialise(Lorg/jboss/aop/AspectManager;Ljava/lang/Class;Lorg/jboss/metadata/spi/MetaData;Z)Lorg/jboss/aop/proxy/container/ContainerCache;
        at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(
        at org.jboss.kernel.plugins.config.Configurator.instantiate(
        at org.jboss.kernel.plugins.config.Configurator.instantiateAndConfigure(
        at org.jboss.kernel.KernelFactory.createKernelInitializer(
        ... 25 more
... Removed 15 stack frames
31. May 2009, 23:07 CET | Link

I cannot reproduce the issue. What version of JBDS/JBoss Tools and Seam are you using?

02. Jun 2009, 00:58 CET | Link
Miguel Cohnen | miguel.cohnen(AT)

I have the same error here. I have:

maven 2.0.0 eclipse 3.4.2 m2eclipse dev seam 2.1.1ga jboss tools Stable release

Thank you and I wait for any answer!

02. Jun 2009, 01:14 CET | Link

Maven is 2.0.9 above

02. Jun 2009, 19:32 CET | Link
Since I can't reproduce the issue, I suppose that you have an older version of jboss-embedded jars. The Seam team changes these jars without changing their version (see, for instance).
You can try to remove your jboss-embedded jars from your local maven repository (i.e., remove the M2_REPO/org/jboss/seam/embedded directory) and call Maven>Update Dependencies for the booking-test project. After that, try to run TestNG Suite again.

Please let me know if this helps.
02. Jun 2009, 19:42 CET | Link
Snjezana Peco wrote on Jun 02, 2009 13:32:
The Seam team changes these jars without changing their version (see, for instance).

Actually, no, that was an issue requesting a reversion to the correct version which someone had overwritten by mistake. Changing jars without changing the version number in maven is a big no-no.

02. Jun 2009, 22:12 CET | Link
Miguel Cohnen | miguel.cohnen(AT)

Thanks for the reply, I removed the org/jboss/seam/embedded folder from my local repository, updated, received new jars, and still the same error...

03. Jun 2009, 17:14 CET | Link

In my opinion this issue happens when a Seam test project contains an invalid classpath. It is possible that some plugin within your Eclipse distribution changes the classpath after importing project. I have created Could you export your booking-test project and attach it to this jira?

03. Jun 2009, 19:51 CET | Link
Miguel Cohnen | miguel.cohnen(AT)

Thanks! How do you want me to export it? Archive file, jar...?

04. Jun 2009, 03:34 CET | Link
Miguel Cohnen

Ahh! I found the error! I was using Jboss 4.2.2 insteadn of 5.0... is there something I can change to use Jboss 4.2.2?

04. Jun 2009, 04:39 CET | Link
Miguel Cohnen | miguel.cohnen(AT)

I'm facing now another issue... I'm trying this example in a mac (my laptop). Everything goes fine, but when I deploy the ear in the server, it deploys:

  • war as a folder (OK)
  • ejb as a folder (OK)
  • jboss-seam as a jar (OK)
  • WEB-INF folder (shouldn't this be inside the war folder┬┐?┬┐?)
  • META-INF folder

When I run the the server, I get an error because it can't find the jsf libraries, that are into that WEB-INF folder, that should be into the war folder, not in the root...

Someone more faced that issue?


20. Sep 2014, 08:20 CET | Link

If you ambition to replica watches go for appearance and admirable appearance in a watch,again a alarm watch is the appropriate watch to choose.Alarm watches are altered watches that appear in both an alternation as able-bodied as agenda design.Alarm watches are acutely popular,rather a appearance account and they are usually bogus by affluence top end brands.Even admitting a lot of prada replica the alike accoutrements accept the adumbration the superior would let it know.Such aberration could be coined by those who accept acclimated and apperceive about these bags.Incase of Louis Vuitton handbags even the archetypal ones are advised to be today's contemporary fashion.The outstanding affection of Louis Vuitton handbags are that they are fabricated out from the accomplished superior abstracts and are duke fabricated by able craftsmen who are active for this purpose.While arcade for hublot replica Louis Vuitton handbags accomplish abiding that you don't abatement for affected varieties of these accoutrements and it would be consistently bigger if you could atom out the differences amid the aboriginal and affected types.The prices of these articles accommodated the budgets of all women.Even you accept to chanel replica pay a little added for a accurate artist handbag,apperception the superior and the appearance which are priceless.What aberration do you feel actuality ? Might be this: a woman afterwards her backpack seems to be incomplete.It is the assessment of abounding men that women feel added assured while accustomed a admirable backpack than any added accustomed handbag.In a awash market,we generally appear beyond women arcade for their handbags.

30. Sep 2014, 11:42 CET | Link

When selecting a top top great quality display you need to consider many aspects. UPVC vinyl material fabric ms windows will delay the life-time of your display due to they are designed to prevent discolouring. important source

02. Oct 2014, 12:43 CET | Link
windows utilize

The best high quality ms windows utilize low-conductivity steel and foam spacers instead of steel spacers, which are becoming less frequent. my link