cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS customization problem

mfriedrich
Champ in-the-making
Champ in-the-making
Hallo,

Ich teste gerade Alfresco 3.3 (3.2 tomcat full install + war-patch zu 3.3 - nightly fom 11.8.) und habe ein Problem einen weiteren CIFS share hinzuzufügen.

Anscheinen werden bei mir weder die file-servers-custom.xml noch die file-servers.xml eingelesen, sieht so aus dass alles hardcoded in file-servers-context.xml (bean filesystemContexts) steht.
Wie bekomme ich es hin dass meine file-servers-custom.xml eingelesen wird? Hab schon ohne Erfolg das network-protocol-context.xml(.sample) probiert.
Kann da jemand weiterhelfen?

Gruss,
Mike
3 REPLIES 3

bwerner
Champ in-the-making
Champ in-the-making
Hallo Mike,

Kannst Du bitte mal Deine Configs posten? ..und vielleicht sehe ich heute nicht mehr so gut, aber auf welchem Betriebssystem läuft Deine Installation?

Viele Grüße,
Bernhard

mfriedrich
Champ in-the-making
Champ in-the-making
Windows XP SP3 32Bit Heim-PC ohne Domaine, ohne Netzwerk, ohne WINS Server Smiley Wink
Alfresco wird über alfresco.bat gestartet.

Install:
Alfresco-Community-3.2-Full-Setup.exe (nightly 2009-07-14)
alfresco-community-office2003-addins-3.2 (nightly 2009-07-14)
alfresco-community-war-3.3.zip (nightly-2009-08-11)
OOo_3.1.0_Win32Intel_install_en-US.exe
C:\Alfresco\exiftool.exe
Modules (apply_amps.bat):
    01-vti-module.amp (nightly-2009-08-11)
      02-alfresco-metadata-embedders-0.2.amp
      03-alfresco-xmp-0.3.amp
      04-alfresco-iptcexif-0.5.amp
Registry:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters]
"SMBDeviceEnabled"=dword:00000000

Other configs:
C:\WINDOWS\system32\drivers\etc\hosts

127.0.0.1       localhost
xx.xxx.xxx.xx   evilA evilB evilC

C:\WINDOWS\system32\drivers\etc\lmhosts
xx.xxx.xxx.xx   evilA evilB evilC

Lan-Verbindung mit

Client for Microsoft Networks
File and Printersharing for Microsoft Networks

Environment:

ALF_HOME=C:\Alfresco
CATALINA_HOME=C:\Alfresco\tomcat
JAVA_HOME=C:\Programme\Java\jdk1.6.0_06
JAVA_OPTS=-Xms256m -Xmx640M -XX:MaxPermSize=128M -XX:NewSize=128m

JAVA_OPTS in alfresco.bat:

set JAVA_OPTS=-Xms256m -Xmx640M -XX:MaxPermSize=128M -XX:NewSize=128m
set JAVA_OPTS=%JAVA_OPTS% -server -Dalfresco.home=%ALF_HOME% -Dcom.sun.management.jmxremote
set JAVA_OPTS=%JAVA_OPTS% -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:CMSInitiatingOccupancyFraction=80

Configs:
C:\Alfresco\tomcat\shared\classes\alfresco-global.properties

dir.root=C:/Alfresco/alf_data
db.name=alfresco
db.username=alfresco
db.password=alfresco
db.host=localhost
db.port=3306
ooo.exe=C:/Alfresco/OpenOffice.org/program/soffice
img.root=C:/Alfresco/ImageMagick
swf.exe=C:/Alfresco/bin/pdf2swf
db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://${db.host}:${db.port}/${db.name}
hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
email.inbound.enabled=false
imap.server.enabled=false

C:\Alfresco\tomcat\shared\classes\alfresco\extension\file-servers.properties

filesystem.name=Alfresco
filesystem.acl.global.defaultAccessLevel=
cifs.enabled=true
cifs.serverName=${localname}A
cifs.localname=${localname}
cifs.domain=WORKGROUP
cifs.broadcast=255.255.255.255
cifs.bindto=
cifs.ipv6.enabled=false
cifs.hostannounce=true
cifs.disableNIO=false
cifs.disableNativeCode=false
cifs.sessionTimeout=900
cifs.tcpipSMB.port=445
cifs.netBIOSSMB.sessionPort=139
cifs.netBIOSSMB.namePort=137
cifs.netBIOSSMB.datagramPort=138
cifs.WINS.autoDetectEnabled=true
cifs.WINS.primary=127.0.0.1
cifs.WINS.secondary=127.0.0.1
ftp.enabled=true
ftp.port=21
ftp.ipv6.enabled=false
nfs.enabled=false
cifs.urlfile.prefix=http://${localname}:8080/alfresco/

C:\Alfresco\tomcat\shared\classes\alfresco\extension\file-servers-custom.xml

<alfresco-config area="file-servers">
   <config evaluator="string-compare" condition="Filesystems" replace="true">
      <filesystems>
         <filesystem name="${filesystem.name}Data">
            <store>workspace://SpacesStore</store>
            <rootPath>/app:company_home</rootPath>
            <disableChangeNotification/>
            <offlineFiles/>
         </filesystem>
         <filesystem name="${filesystem.name}Work">
            <store>workspace://SpacesStore</store>
            <rootPath>/app:company_home</rootPath>
            <disableChangeNotification/>
            <offlineFiles/>
            <urlFile>
               <filename>__Alfresco.url</filename>
               <webpath>http://${localname}:8080/alfresco/</webpath>
            </urlFile>
            <desktopActions>
               <global>
                  <path>alfresco/desktop/Alfresco.exe</path>
                  <webpath>http://${localname}:8080/alfresco/</webpath>
               </global>
               <action>
                  <class>org.alfresco.filesys.repo.desk.CheckInOutDesktopAction</class>
                  <name>CheckInOut</name>
                  <filename>__CheckInOut.exe</filename>
               </action>
               <action>
                  <class>org.alfresco.filesys.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>
         </filesystem>
      </filesystems>
   </config>
</alfresco-config>

Trotz der definierten Filesystem-namen oben (AlfrescoData und AlfrescoWork)  erscheint das CIFS share nur als Alfresco == ${filesystem.name}.

mfriedrich
Champ in-the-making
Champ in-the-making
Probiert habe ich mal das network-protocol-context.xml.sample (ohne Erfolg wie gesagt)…

C:\Alfresco\tomcat\shared\classes\alfresco\extension\network-protocol-context.xml

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
   <bean id="fileServersConfigSource" class="org.alfresco.config.source.UrlConfigSource">
      <constructor-arg>
         <list>
            <value>classpath:alfresco/file-servers.xml</value>
            <value>classpath:alfresco/extension/file-servers-custom.xml</value>
         </list>
      </constructor-arg>
   </bean>
   <bean id="fileServersConfigService" class="org.alfresco.config.xml.XMLConfigService" init-method="init">
      <constructor-arg>
         <ref bean="fileServersConfigSource" />
      </constructor-arg>
      <property name="properties">
         <list>
           <value>classpath:alfresco/file-servers.properties</value>
           <value>classpath:alfresco/extension/file-servers.properties</value>
         </list>
      </property>
   </bean>
</beans>