Hi, I'm trying to migrate from 4.0.3SP1 to 4.0.4.GA. The last hitch that I have 
is creating my security domain. Normally, I just add this application-policy 
snippet to the login-cofig.xml file.

anonymous wrote :       <!-- Application for Pink Applications. -->
  |     <application-policy name = "PinkRealm">
  |             
  |                     <login-module code = 
"org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required">
  |                             <module-option name = 
"dsJndiName">java:/jdbc/PinkCommon</module-option>
  |                             <module-option name = 
"principalsQuery"><![CDATA[
  |                                     SELECT password FROM userinfo
  |                                     WHERE email = ? AND is_active = 
1]]></module-option>
  | 
  |                             <module-option name = 
"rolesQuery"><![CDATA[SELECT DISTINCT ur.role_id, 'Roles' FROM 
user_role_company ur
  |                                     INNER JOIN userinfo u ON ur.user_id = 
u.id
  |                                     WHERE u.email = ? AND u.is_active = 1 
AND ur.is_active = 1 AND
  |                                     ((ur.start_date IS NULL) OR 
(ur.start_date <= CURRENT_TIMESTAMP)) AND
  |                                     ((ur.end_date IS NULL) OR (ur.end_date 
> CURRENT_TIMESTAMP))]]></module-option>
  | 
  |                             <module-option 
name="hashAlgorithm">MD5</module-option>
  |                             <module-option 
name="hashEncoding">hex</module-option>
  |                     </login-module>
  |             
  |     </application-policy>

For whatever reason, when I start up jboss, the configuration is not picked up 
at all! All my session beans show this warning ...

anonymous wrote : --- MBeans waiting for other MBeans ---
  | ObjectName: 
jboss.j2ee:ear=pinkcommon.ear,jar=pinkcommon-ejb.jar,name=AnalyzeLegacyDatabaseBean,service=EJB3
  |   State: FAILED
  |   Reason: java.lang.RuntimeException: Unable to find Security Domain
  |   I Depend On:
  |     
persistence.units:ear=pinkcommon.ear,jar=pinkcommon-ejb.jar,unitName=pinkCommon
  |   Depends On Me:
  |     
jboss.j2ee:ear=pinkcommon.ear,jar=pinkcommon-ejb.jar,name=GlobalInfoServiceBean,service=EJB3
  | 

What has changed from 4.0.3SP1 to 4.0.4.GA that my security domain would not 
have been picked up?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953437#3953437

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953437

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to