Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Facing problem in imeplementing file based JAAS security mechanism

subuhi nigar
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,

I am implementing JAAS file based security mechanism .
Web app name is FlyWeb.
For that below is entry in web.xml



entry in WEB-INF/jboss-web.xml



i have placed 3 files inside META-INF of EAR in which this FlyWeb.war is kept.

entry in those 3 files as below




<!-- hooking in a login module for the standalone version of JSF Forums -->
<!-- The custom JAAS login configuration that installs
a Configuration capable of dynamically updating the
config settings
<mbean code=""
<attribute name="AuthConfig">META-INF/security-config.xml</attribute>
<depends optional-attribute-name="LoginConfigService">
<depends optional-attribute-name="SecurityManagerService">


<application-policy name="FlyWeb">

<login-module code="" flag="required">
<module-option name="usersProperties">props/</module-option>
<module-option name="rolesProperties">props/</module-option>

also i have placed 2 properties file / and/ in /usr/local/jboss/server/default/deploy/conf/propsfolder.

jboss_home is usr/local/jboss

but every time when i m entering user name & passwd it is going to error.jsp .

can anybody please help me in rectifying the problem . Is anything that i m missing ?

in advance
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic