AnsweredAssumed Answered

JLAN Configuration and errors

Question asked by msalihg on Feb 16, 2012
Latest reply on Feb 6, 2013 by sharifu
Hi to all,
I am using the following JLAN configuration and getting the corresponding error messages.

<?xml version="1.0" standalone="no"?>
<!– <!DOCTYPE jlanserver SYSTEM "jlanserver.dtd"> –>
<jlanserver>
   <servers>
      <SMB />
      <noFTP />
      <noNFS />
   </servers>
   <SMB>
      <host name="hostname" domain="lab.net">
         <broadcast>255.255.255.255</broadcast>
         <smbdialects>LanMan,NT</smbdialects>
         <comment>Alfresco JLAN Server</comment>
         <Win32NetBIOS />
         <Win32Announce interval="5" />
         <tcpipSMB platforms="windows" />
      </host>
      <sessionDebug flags="Negotiate,Socket,Tree" />
      <authenticator type="enterprise">
         <class>org.alfresco.jlan.server.auth.EnterpriseCifsAuthenticator</class>
         <mode>USER</mode>
         <Debug />
         <KDC>dc1.lab.net</KDC>
         <Realm>LAB.NET</Realm>
         <Password>phassword</Password>
         <Principal>cifs/hostname.lab.net</Principal>
         <kerberosDebug />
         <allowGuest />
      </authenticator>
   </SMB>

   <debug>
      <output>
         <class>org.alfresco.jlan.debug.ConsoleDebug</class>
         <logFile>jlansrv.log</logFile>
         <append />
      </output>
   </debug>

   <shares>
      <diskshare name="JLAN" comment="Test share">
         <driver>
            <class>org.alfresco.jlan.smb.server.disk.JavaFileDiskDriver</class>
            <LocalPath>C:\VfsFiles</LocalPath>
         </driver>
      </diskshare>
   </shares>

   <security>
      <JCEProvider>cryptix.jce.provider.CryptixCrypto</JCEProvider>
      <authenticator type="enterprise">
         <class>org.alfresco.jlan.server.auth.EnterpriseCifsAuthenticator</class>
         <mode>USER</mode>
         <Debug />
         <KDC>dc1.lab.net</KDC>
         <Realm>LAB.NET</Realm>
         <Password>phassword</Password>
         <Principal>cifs/hostname.lab.net</Principal>
         <kerberosDebug />
         <allowGuest />
      </authenticator>

      <users>
         <user name="dummyuser">
            <password>dummypass</password>
         </user>
      </users>
   </security>
</jlanserver>

Alfresco JLAN Server starting, enter 'x' to shutdown server, 'r' to restart serv
er …
%% Failed to load server configuration
org.alfresco.jlan.server.config.InvalidConfigurationException: XML error
        at org.alfresco.jlan.app.CifsOnlyXMLServerConfiguration.loadConfiguratio
n(CifsOnlyXMLServerConfiguration.java:218)
        at org.alfresco.jlan.app.CifsOnlyXMLServerConfiguration.loadConfiguratio
n(CifsOnlyXMLServerConfiguration.java:181)
        at org.alfresco.jlan.app.JLANServer.loadConfiguration(JLANServer.java:59
6)
        at org.alfresco.jlan.app.JLANServer.start(JLANServer.java:190)
        at org.alfresco.jlan.app.JLANServer.main(JLANServer.java:123)
Caused by: org.alfresco.jlan.server.config.InvalidConfigurationException: XML er
ror
        at org.alfresco.jlan.app.XMLServerConfiguration.loadConfiguration(XMLSer
verConfiguration.java:154)
        at org.alfresco.jlan.app.CifsOnlyXMLServerConfiguration.loadConfiguratio
n(CifsOnlyXMLServerConfiguration.java:212)
        … 4 more
Caused by: java.lang.SecurityException: Unable to locate a login configuration
        at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:93)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at javax.security.auth.login.Configuration$3.run(Configuration.java:246)

        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.Configuration.getConfiguration(Configuratio
n.java:241)
        at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.init(LoginContext.java:234)
        at javax.security.auth.login.LoginContext.<init>(LoginContext.java:403)
        at org.alfresco.jlan.server.auth.EnterpriseCifsAuthenticator.initialize(
EnterpriseCifsAuthenticator.java:226)
        at org.alfresco.jlan.smb.server.CIFSConfigSection.setAuthenticator(CIFSC
onfigSection.java:621)
        at org.alfresco.jlan.app.CifsOnlyXMLServerConfiguration.procSMBServerEle
ment(CifsOnlyXMLServerConfiguration.java:756)
        at org.alfresco.jlan.app.XMLServerConfiguration.loadConfiguration(XMLSer
verConfiguration.java:138)
        … 5 more
Caused by: java.io.IOException: Unable to locate a login configuration
        at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:250)
        at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:91)
        … 22 more
Press any key to continue . . .

Could anybody help please?

Thanks,
Salih

Outcomes