[jboss-user] [JBoss Seam] - Re: Trouble Getting the Most Basic SeamTest to Work

neilac333 do-not-reply at jboss.com
Thu Nov 1 15:37:45 EDT 2007


I have moved to CR3 and based on the Wiki example have reconfigured my classpath to load libraries in a special order.  Here is the classpath, which I hope is self-explanatory:


  | <path id="seam.test.class.path.libs">
  |       <fileset dir="${seam-hibernate.lib.dir}/bootstrap" />
  |       <fileset dir="${seam-hibernate.lib.dir}" includes="jboss-embedded-all.jar,thirdparty-all.jar"/>
  |       <fileset dir="${sun-jsf.lib.dir}"/>
  |       <fileset dir="${commons.lib.dir}"/>
  |       <fileset dir="${seam-hibernate.lib.dir}" excludes="jboss-container.jar,hibernate*,jboss-seam.jar"/>
  |       <fileset dir="${seam-hibernate.lib.dir}" includes="hibernate*,jboss-archive-browsing.jar"/>
  |       <fileset dir="${seam-hibernate.lib.dir}" includes="jboss-seam.jar"/>
  | </path>
  | 

I get this exception, which I can probably figure out on my own:


  | org.jboss.deployers.spi.DeploymentException: Unable to find bootstrap file: conf/bootstrap-beans.xml in classpath
  | 	at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:200)
  | 	at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
  | 	at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
  | 	at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
  | 	at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
  | 	at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
  | 	at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:394)
  | 	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
  | 	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
  | 	at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:165)
  | 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
  | 	at org.testng.TestRunner.runWorkers(TestRunner.java:678)
  | 	at org.testng.TestRunner.privateRun(TestRunner.java:624)
  | 	at org.testng.TestRunner.run(TestRunner.java:495)
  | 	at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
  | 	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
  | 	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
  | 	at org.testng.SuiteRunner.run(SuiteRunner.java:190)
  | 	at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
  | 	at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
  | 	at org.testng.TestNG.run(TestNG.java:699)
  | 	at org.testng.TestNG.privateMain(TestNG.java:824)
  | 	at org.testng.TestNG.main(TestNG.java:802)
  | 

Now certain JARs in the Ant script in the example, like jboss-embedded-all.jar, are not found in the CR3 distribution.  So I really need an idea as to what JARs/bootstrap files I need and in what order I need to load them.

And I thought out-of-container testing was supposed to be easy!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101060#4101060

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101060



More information about the jboss-user mailing list