Friday, November 27, 2009

Alfresco CIFS on Windows XP

Below steps will enable to Configure Alfresco CIFS on Windows Platform

1. Create file-server-custom.xml in alfresco/extension package

<alfresco-config area="file-servers">

<!-- To override the default Alfresco filesystem use replace="true", to -->
<!-- add additional filesystems remove the replace="true" attribute -->

<config evaluator="string-compare" condition="Filesystems" replace="true">
<filesystems>

<filesystem name="Alfresco">
<store>workspace://SpacesStore</store>
<rootPath>/app:company_home</rootPath>
<disableChangeNotification/>
<!-- Add a URL file to each folder that links back to the web client -->
<urlFile>
<filename>__Alfresco.url</filename>
<webpath>http://${localname}A:8080/alfresco/</webpath>
</urlFile>

<!-- Mark locked files as offline -->
<offlineFiles/>

<!-- Desktop actions -->

<desktopActions>
<global>
<path>alfresco/desktop/Alfresco.exe</path>
<webpath>http://${localname}A:8080/alfresco/</webpath>
</global>
<action>
<class>org.alfresco.filesys.smb.server.repo.desk.CheckInOutDesktopAction</class>
<name>CheckInOut</name>
<filename>__CheckInOut.exe</filename>
</action>
<action>
<class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>
<name>JavaScriptURL</name>
<filename>__ShowDetails.exe</filename>
<script>alfresco/desktop/showDetails.js</script>
<attributes>anyFiles</attributes>
<preprocess>copyToTarget</preprocess>
</action>

</desktopActions>

<!--
<accessControl default="Write">
<user name="admin" access="Write"/>
<address subnet="90.1.0.0" mask="255.255.0.0" access="Write"/>
</accessControl>
-->
</filesystem>

<!-- AVM virtualization view of all stores/versions for WCM -->
<avmfilesystem name="AVM">
<virtualView/>
</avmfilesystem>

</filesystems>
</config>

</alfresco-config>


2. Enable Debug setting for CIFS server (so that you can see successful execution on CIFS @ tomcat\webapps\alfresco\WEB-INF\classes\log4j.properties)
log4j.logger.org.alfresco.smb.protocol=debug
log4j.logger.org.alfresco.smb.protocol.auth=debug
log4j.logger.org.alfresco.acegi=debug
3. Restart Tomcat and Map Drive with \\alfresco109A\Alfresco


Troubleshooting
If your are still unable to get CIFS server up...
Please be sure

1. Your custom-configuration is deployed on tomcat server (see in "tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension" or in jar if you are using jar for your application module).
2. Your computer name should be less than 15 character.


Please post a comment if you found this blog useful to you :)

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. POKER CASINO - Mapyro
    The 천안 출장안마 Poker Room at the Hotel 경상북도 출장샵 Casino in downtown Tulsa, Tulsa offers a 태백 출장마사지 24-hour gaming area featuring 목포 출장샵 a 광주광역 출장마사지 variety of video poker, blackjack,  Rating: 3.3 · ‎7 reviews

    ReplyDelete