Bug with roles in struts-config.xml in latest EAP 5594 Build

IntelliJ highlights my custom roles in red. When I hover over it reports 'Cannot resolve role administrator', where administrator is one of the roles. When the ? comes up in the left it suggest: 'Create new role administrator' but clicking on this does not do anything. Following is an except of my struts-config.xml file:

            
            
        

        
]]>


I'm checking these roles in my SecurityRequestProcessor class in the overwritten processRoles method.

I'm running: WinXP Prof., JBoss 4.0.3SP1, jdk1.5.0_06, struts-1.2.9, hibernate-3.1, mysql-connector-java-3.1.13

Any help as to how to resolve this would be appreciated.

Thanks,
Carlo

0
Avatar
Permanently deleted user

Hi Carlo,

Thanks for your feedback. Do you have your roles described in web.xml?

e.g.
<security-role>
<role-name>administrator</role-name>
</security-role>





0

请先登录再写评论。