[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

bsmithjj do-not-reply at jboss.com
Tue Oct 30 15:28:32 EDT 2007


hopefully this is the last question I have on the jboss embedded container.

I'm currently having trouble on boot - it says here:


  | init(com.wachovia.evergreen.apps.infostrat.BootStrapTest)  Time elapsed: 0 sec  <<< FAILURE!
  | java.lang.RuntimeException: Could not create Component: commercialPaperHelper
  |         at org.jboss.seam.init.Initialization.addComponent(Initialization.java:976)
  |         at org.jboss.seam.init.Initialization.installComponents(Initialization.java:903)
  |         at org.jboss.seam.init.Initialization.init(Initialization.java:548)
  |         at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:939)
  |         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:645)
  |         at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:385)
  |         at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:141)
  |         at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
  |         at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:158)
  |         at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
  |         at org.testng.TestRunner.runWorkers(TestRunner.java:673)
  |         at org.testng.TestRunner.privateRun(TestRunner.java:620)
  |         at org.testng.TestRunner.run(TestRunner.java:480)
  |         at org.testng.SuiteRunner.runTest(SuiteRunner.java:278)
  |         at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:273)
  |         at org.testng.SuiteRunner.privateRun(SuiteRunner.java:253)
  |         at org.testng.SuiteRunner.run(SuiteRunner.java:168)
  |         at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:987)
  |         at org.testng.TestNG.runSuitesLocally(TestNG.java:951)
  |         at org.apache.maven.surefire.testng.TestNGExecutor.executeTestNG(TestNGExecutor.java:161)
  |         at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:101)
  |         at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
  |         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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:275)
  |         at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:832)
  | Caused by: java.lang.IllegalArgumentException: You must specify org.jboss.seam.core.init.jndiPattern or use @JndiName: commercialPaperHelper
  |         at org.jboss.seam.Component.getJndiName(Component.java:437)
  |         at org.jboss.seam.Component.<init>(Component.java:242)
  |         at org.jboss.seam.Component.<init>(Component.java:216)
  |         at org.jboss.seam.init.Initialization.addComponent(Initialization.java:961)
  |         ... 32 more
  | 

I've examined the server log and it's not clear to me where in the JNDI tree the server is deploying the EJB's.  My components.xml has the following core:init tag:


  | <core:init debug="true" jndi-pattern="#{ejbName}/local"/>
  | 

In my Seam 1.2.1 app, which uses the (old?) jboss microcontainer, my core:init tag is identical:


  | <core:init jndi-pattern="#{ejbName}/local" debug="true"/>
  | 

and that has and does work fine.  Since I can't easily see what's going on with JBoss naming (org.jboss.naming) even with DEBUG level logging on, I'm not sure what the pattern is.  Does anyone know?

Thanks,
Brad
<core:init jndi-pattern="#{ejbName}/local" debug="true"/>

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

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



More information about the jboss-user mailing list