[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 13:30:26 EDT 2007


I see that if hibernate-annotations 3.3.0 is in the classpath, I get the last error, now I am up to this:


  | *** CONTEXTS IN ERROR: Name -> Error
  | <UNKNOWN> -> ** UNRESOLVED AbstractDemandMetaData$DemandDependencyItem at 1f2b0dd{name=jboss.j2ee:jar=classes,name=RatingsHelperBean,service=EJB3 depen
  | dsOn=null whenRequired=Described resolved=false demand=persistence.units:jar=classes.jar,unitName=InfoStratGui} **
  | persistence.units:jar=classes.jar,unitName=InfoStratGui -> java.lang.SecurityException: Invalid authentication attempt, principal=null
  | 
  |         at org.jboss.embedded.DeploymentGroup.checkIncomplete(DeploymentGroup.java:151)
  |         at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:129)
  |         at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:307)
  |         at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:14)
  |         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: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)
  | 

How do I turn off the security stuff for testing?

Thanks,
Brad

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

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



More information about the jboss-user mailing list