cancel
Showing results for 
Search instead for 
Did you mean: 

JLAN Configuration and errors

msalihg
Champ in-the-making
Champ in-the-making
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
3 REPLIES 3

sharifu
Confirmed Champ
Confirmed Champ
I have not configured jlan however I am getting the following error every minute on 4.2.b


2012-11-26 10:11:01,124  ERROR [org.alfresco.fileserver] [Sess_FTP513_63.140.51.209] Error from JLAN
java.io.FileNotFoundException: \xxx\documentLibrary\Contracts and Bids\Contracts for Indexing
   at org.alfresco.filesys.repo.CifsHelper.getNodeRef(CifsHelper.java:608)
   at org.alfresco.filesys.repo.ContentDiskDriver2.getNodeForPath(ContentDiskDriver2.java:2054)
   at org.alfresco.filesys.repo.ContentDiskDriver2.createFile(ContentDiskDriver2.java:2336)
   at sun.reflect.GeneratedMethodAccessor1143.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.alfresco.filesys.repo.FilesystemTransactionAdvice$1.execute(FilesystemTransactionAdvice.java:71)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:323)
   at org.alfresco.filesys.repo.FilesystemTransactionAdvice.invoke(FilesystemTransactionAdvice.java:95)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy223.createFile(Unknown Source)
   at org.alfresco.filesys.repo.CommandExecutorImpl.executeInternal(CommandExecutorImpl.java:218)
   at org.alfresco.filesys.repo.CommandExecutorImpl.executeInternal(CommandExecutorImpl.java:205)
   at org.alfresco.filesys.repo.CommandExecutorImpl.access$000(CommandExecutorImpl.java:43)
   at org.alfresco.filesys.repo.CommandExecutorImpl$1.execute(CommandExecutorImpl.java:91)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:323)
   at org.alfresco.filesys.repo.CommandExecutorImpl.execute(CommandExecutorImpl.java:103)
   at org.alfresco.filesys.repo.NonTransactionalRuleContentDiskDriver.createFile(NonTransactionalRuleContentDiskDriver.java:221)
   at org.alfresco.filesys.repo.LegacyFileStateDriver.createFile(LegacyFileStateDriver.java:104)
   at org.alfresco.filesys.repo.BufferedContentDiskDriver.createFile(BufferedContentDiskDriver.java:468)
   at org.alfresco.jlan.ftp.FTPSrvSession.procStoreFile(FTPSrvSession.java:2317)
   at org.alfresco.jlan.ftp.FTPSrvSession.run(FTPSrvSession.java:5085)
   at java.lang.Thread.run(Thread.java:722)

mrogers
Star Contributor
Star Contributor
Looks like you are missing a folder or can't read it due to permissions.

sharifu
Confirmed Champ
Confirmed Champ
I don't have JLAN configure  or anything I also get these errors, How ever my folder structure does exist so what can be the problem?