Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot perform access control without an authenticated principal

 
robbie keane
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As discussed in the startguide.pdf (section 2.2.3 Security Service) of JBoss 4.0.3, i made the changes (basically uncommented code) in jboss-web.xml and web.xml in WEB-INF directory. The JMX-console was working fine earlier but after making the changes, I'm getting "cannot perform access control without an authenticated principal" exception when I click on jmx-console. The document said "If you've configured everything correctly and re-deployed the application, the next time you try to access the JMX Console, JBoss will ask you for a name and password."
Please help
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you create a policy in login-config.xml?
 
robbie keane
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is that required? The policy (uncommented) in login-config already is

<application-policy name = "jmx-console">
<authentication>
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
flag = "required">
<module-option name="usersProperties">props/jmx-console-users.properties</module-option>
<module-option name="rolesProperties">props/jmx-console-roles.properties</module-option>
</login-module>
</authentication>
</application-policy>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic