[
https://issues.apache.org/jira/browse/GERONIMO-5524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12899692#action_12899692
]
janel Zhang commented on GERONIMO-5524:
---------------------------------------
The sample can run on Geronimo 2.1.5,but can not start on Geronimo 3.0
1.Deploy the ear.
2.The ear can deploy but can not start.
The error is:
2010-08-10 14:16:14,875 ERROR [GBeanInstanceState] Error while starting; GBean
is now in the FAILED state:
abstractName="default/security-ejb-ear-3.0-SNAPSHOT/1281420951544/car?J2EEApplication=default/security-ejb-ear-3.0-SNAPSHOT/1281420951544/car,j2eeType=RoleMapper,name=RoleMapper"
javax.security.auth.login.LoginException: No LoginModules configured for
demo-properties-realm
at javax.security.auth.login.LoginContext.init(LoginContext.java:256)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:499)
at org.apache.geronimo.security.ContextManager.login(ContextManager.java:92)
at
org.apache.geronimo.security.credentialstore.SimpleCredentialStoreImpl.getSubject(SimpleCredentialStoreImpl.java:100)
at
org.apache.geronimo.security.jacc.mappingprovider.ApplicationPrincipalRoleConfigurationManager.<init>(ApplicationPrincipalRoleConfigurationManager.java:66)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:952)
at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:933)
at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
Details for https://issues.apache.org/jira/browse/GERONIMO-5515
> Security annotation on EJB testsuite:javax.annotation.security.RunAs
> RolesAllowed PermitAll DenyAll DeclareRoles
> ----------------------------------------------------------------------------------------------------------------
>
> Key: GERONIMO-5524
> URL: https://issues.apache.org/jira/browse/GERONIMO-5524
> Project: Geronimo
> Issue Type: Task
> Security Level: public(Regular issues)
> Components: testsuite
> Affects Versions: 3.0
> Environment: OS:Linux 2.6.24-24-generic
> JVM:sun 1.6.0_20
> Server:Geronimo 3.0
> Reporter: janel Zhang
> Assignee: Forrest Xia
> Fix For: 3.0
>
> Attachments: test-security-annotation-ejb.patch
>
>
> The testsuite test for security annotation on EJB.The annotation
> includes:1.javax.annotation.security.RunAs
> 2.javax.annotation.security.RolesAllowed
> 3.javax.annotation.security.PermitAll 4.javax.annotation.security.DenyAll
> 5.javax.annotation.security.DeclareRoles
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.