Hi all,
I spent the whole day trying to solve this problem, without success. Now I ask 
the experts... I am using JBoss 4.0.0 with Tomcat.

When I add a new application policy to login-config.xml, I get the following 
exception at server startup:


  | 2005-01-26 15:47:03,029 WARN  
[org.jboss.security.auth.login.XMLLoginConfigImpl] End loadConfig, failed to 
load config: file:/usr/jboss-4.0.0/server/default/conf/login-config.xml
  | org.jboss.security.auth.login.ParseException: Encountered "<?xml" at line 
1, column 1.
  | Was expecting one of:
  |     <EOF> 
  |     <IDENTIFIER> ...
  | 

Here is the part that I added in login-config.xml:


  | <application-policy name="testDomain">
  |   <authentication>
  |     <login-module code = "org.jboss.security.ClientLoginModule" flag = 
"required"></login-module>
  |     <login-module 
code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
  |       <module-option name = "dsJndiName">java:/DefaultDS</module-option>
  |       <module-option name = "principalsQuery">... some SQL 
...</module-option>
  |       <module-option name = "rolesQuery">... some SQL ...</module-option>
  |     </login-module>
  |   </authentication>
  | </application-policy>
  | 

Unlike the error message suggests, it is not a parsing exception. The XML file 
is valid.
Am I missing something obvious?
Could it be something missing in other files (auth.conf?)?

It seems that I am almost the only one getting this problem, so it must be 
blindingly stupid.
Please help!

Bruno Collet
www.practicalsoftwarearchitect.com
- The Paradox of Software Architecture: It is easy to make a complex 
architecture, but it is difficult to make a simple architecture.

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to