Friday, January 2, 2009

SeamTest and Eclipse TestNG plugin

I encountered a small problem running a new SeamTest with Eclipse' TestNG plugin. The error was :

DEBUG [main] ( - Starting JBoss Kernel construction...
DEBUG [main] ( - Completed JBoss Kernel construction. Duration: 381 milliseconds
FAILED CONFIGURATION: @BeforeSuite startSeam
org.jboss.deployers.spi.DeploymentException: Unable to find bootstrap file: conf/bootstrap-beans.xml in classpath
at org.jboss.embedded.Bootstrap.bootstrap(
at org.jboss.embedded.Bootstrap.bootstrap(
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(
... Removed 15 stack frames
The solution is pretty simple.

Open up the run configuration (the arrow next to the run button and choose "Run Configurations...")
The most recently run test should be highlighted. If not select it.
Choose the "Classpath" tab in the right side of the pane.
Click "User Entries" which should be in the center pane.
Click "Advanced' -> "Add Folders" -> OK and navigate to the "bootstrap" folder.
Click "Add Jars" and navigate to the "lib/test" folder and add all three jars.


No comments: