JBoss Community

JBoss AS 7 is still trying to locate login-config.xml

created by valentino cruz in JBoss AS 7 Development - View the full discussion

I have migrated our application from JBoss 4.0.5 to JBoss AS 7 and the only thing left to be completely done is to allow JBoss 7 to authenticate users via Kerberos SSO as we used to in JBoss 4.0.5.

 

The documentation says that now I can simply use the standalone.xml and put the contents of my previous login-config.xml file in there and specify the type of authentication and necessary properties such as the SPN.   However, when I try to login I see this exception on my logs:

 

18:17:39,628 WARN  [org.jboss.security.auth.login.XMLLoginConfigImpl] (http-executor-threads - 10) End loadConfig, failed to load config: file:/login-config.xml: java.io.FileNotFoundException: /login-config.xml (No such file or directory)

          at java.io.FileInputStream.open(Native Method) [classes.jar:1.6.0_22]

          at java.io.FileInputStream.<init>(FileInputStream.java:106) [classes.jar:1.6.0_22]

          at java.io.FileInputStream.<init>(FileInputStream.java:66) [classes.jar:1.6.0_22]

          at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70) [classes.jar:1.6.0_22]

          at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161) [classes.jar:1.6.0_22]

          at java.net.URL.openStream(URL.java:1010) [classes.jar:1.6.0_22]

          at org.jboss.security.auth.login.XMLLoginConfigImpl.loadSunConfig(XMLLoginConfigImpl.java:440) [picketbox-4.0.7.Final.jar:4.0.7.Final]

          at org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig(XMLLoginConfigImpl.java:408) [picketbox-4.0.7.Final.jar:4.0.7.Final]

          at org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig(XMLLoginConfigImpl.java:379) [picketbox-4.0.7.Final.jar:4.0.7.Final]

          at org.jboss.security.auth.login.XMLLoginConfigImpl.refresh(XMLLoginConfigImpl.java:118) [picketbox-4.0.7.Final.jar:4.0.7.Final]

 

This tells me that somehow JB7 is not aware that I'm trying to configure this information in the standalone.xml file and not in the login-config.xml.   I'm not even packaging that file anymore since the documentation says it is no longer used.

 

Has anyone gotten SSO to work by using their previous login-config.xml contents into the standalone.xml or domain.xml files

 

Any help woill be greatly appreciated, it seems this portion of the documetation is still lacking quite a bit.

 

Thank you

-Valentino

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community