[jboss-user] [JBoss Seam] - SeamTest Target Unreachable, identifier 'authenticator' re
urswag
do-not-reply at jboss.com
Tue Aug 14 09:53:05 EDT 2007
Seam 2.0 Beta
JBoss 4.2.0
I would to build tests. I have the following problem. When I add the security rules file I get an exception. Has anyone any idea?
part of components.xml
| <drools:rule-base name="securityRules">
| <drools:rule-files>
| <value>/security.drl</value>
| </drools:rule-files>
| </drools:rule-base>
|
| <security:identity authenticate-method="#{authenticator.authenticate}"
| security-rules="#{securityRules}"/>
|
content of security.drl
| package Permissions;
|
| import java.security.Principal;
|
| import org.jboss.seam.security.PermissionCheck;
| import org.jboss.seam.se
|
| curity.Role;
|
The tast case call
| @Override
| public void invokeApplication() {
|
| invokeMethod("#{identity.login}");
| }
|
generates the exception
| [testng] ERROR 14-08 15:37:22,670 (SeamLoginModule.java:login:112) -Error invoking login method
| [testng] javax.el.PropertyNotFoundException: Target Unreachable, identifier 'authenticator' resolved to null
| [testng] at org.jboss.el.parser.AstValue.getTarget(AstValue.java:38)
| [testng] at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
| [testng] at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
| [testng] at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:174)
| [testng] at org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:108)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [testng] at java.lang.reflect.Method.invoke(Method.java:585)
| [testng] at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
| [testng] at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
| [testng] at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
| [testng] at java.security.AccessController.doPrivileged(Native Method)
| [testng] at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
| [testng] at javax.security.auth.login.LoginContext.login(LoginContext.java:575)
| [testng] at org.jboss.seam.security.Identity.authenticate(Identity.java:331)
| [testng] at org.jboss.seam.security.Identity.authenticate(Identity.java:321)
| [testng] at org.jboss.seam.security.Identity.login(Identity.java:237)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [testng] at java.lang.reflect.Method.invoke(Method.java:585)
| [testng] at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325)
| [testng] at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338)
| [testng] at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
| [testng] at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
| [testng] at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
| [testng] at org.jboss.seam.mock.BaseSeamTest$Request.invokeMethod(BaseSeamTest.java:456)
| [testng] at com.frox.atirasafnetz.test.AfNetzTest$LoginRequest.invokeApplication(AfNetzTest.java:40)
| [testng] at org.jboss.seam.mock.BaseSeamTest$Request.invokeApplicationPhase(BaseSeamTest.java:604)
| [testng] at org.jboss.seam.mock.BaseSeamTest$Request.emulateJsfLifecycle(BaseSeamTest.java:556)
| [testng] at org.jboss.seam.mock.BaseSeamTest$Request.run(BaseSeamTest.java:487)
| [testng] at com.frox.atirasafnetz.test.integration.LoginTest.testLogin(LoginTest.java:36)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [testng] at java.lang.reflect.Method.invoke(Method.java:585)
| [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
| [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
| [testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
| [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
| [testng] at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
| [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
| [testng] at org.testng.TestRunner.runWorkers(TestRunner.java:678)
| [testng] at org.testng.TestRunner.privateRun(TestRunner.java:624)
| [testng] at org.testng.TestRunner.run(TestRunner.java:495)
| [testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
| [testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
| [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
| [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:190)
| [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
| [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
| [testng] at org.testng.TestNG.run(TestNG.java:699)
| [testng] at org.testng.TestNG.privateMain(TestNG.java:824)
| [testng] at org.testng.TestNG.main(TestNG.java:802)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074017#4074017
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074017
More information about the jboss-user
mailing list