I get the following failure when I try to run the tests for the booking example (which I'm trying to get to work with maven2):
------------------------------------------------------------------------------- | Test set: org.jboss.seam.example.booking.test.LoginTest | ------------------------------------------------------------------------------- | Tests run: 2, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 1.109 sec <<< FAILURE! | init(org.jboss.seam.example.booking.test.LoginTest) Time elapsed: 0 sec <<< FAILURE! | java.lang.RuntimeException: Could not create Component: authenticator | at org.jboss.seam.init.Initialization.addComponent(Initialization.java:865) | at org.jboss.seam.init.Initialization.installComponents(Initialization.java:796) | at org.jboss.seam.init.Initialization.init(Initialization.java:503) | at org.jboss.seam.mock.SeamTest.init(SeamTest.java:701) | 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.TestNGDirectoryTestSuite.executeTestNG(TestNGDirectoryTestSuite.java:286) | at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:224) | 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: authenticator | at org.jboss.seam.Component.getJndiName(Component.java:372) | at org.jboss.seam.Component.<init>(Component.java:219) | at org.jboss.seam.Component.<init>(Component.java:203) | at org.jboss.seam.init.Initialization.addComponent(Initialization.java:851) | ... 31 more Any ideas on how to fix this? Is there a jar I need to include in my pom? Here are my dependencies: | <dependencies> | <dependency> | <groupId>jboss</groupId> | <artifactId>jboss-seam</artifactId> | <version>1.2.1.GA</version> | <scope>provided</scope> | </dependency> | <dependency> | <groupId>javax.ejb</groupId> | <artifactId>ejb-api</artifactId> | <version>3.0</version> | <scope>provided</scope> | </dependency> | <dependency> | <groupId>jboss</groupId> | <artifactId>javassist</artifactId> | <version>3.4.ga</version> | <scope>provided</scope> | </dependency> | <dependency> | <groupId>org.apache.myfaces.core</groupId> | <artifactId>myfaces-api</artifactId> | <version>1.1.4</version> | <scope>provided</scope> | </dependency> | <dependency> | <groupId>org.apache.myfaces.core</groupId> | <artifactId>myfaces-impl</artifactId> | <version>1.1.4</version> | <scope>provided</scope> | </dependency> | <dependency> | <groupId>javax.servlet</groupId> | <artifactId>servlet-api</artifactId> | <version>2.5</version> | <scope>provided</scope> | </dependency> | <dependency> | <groupId>org.hibernate</groupId> | <artifactId>hibernate-annotations</artifactId> | <version>3.2.0.ga</version> | <scope>provided</scope> | </dependency> | </dependencies> | Also if someone has an idea on how to clean these up (what's really needed, etc.) I would be very grateful. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047620#4047620 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047620 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
