AnsweredAssumed Answered

Alfresco WCM - File Server Deployment Failing - XML Parsing

Question asked by bshort on Mar 19, 2008
Latest reply on Jan 19, 2009 by pawanawaits
We're running Alfresco 2.1 Enterprise version with the WCM installed on RedHat Linux Enterprise Edition 5.1 running against an Oracle 10g database.

I'd like to get Deployment working using the File System Receiver, but I'm having some issues.

Here is my deployment.properties file:

dep.datadir=depdata
dep.logdir=deplog
dep.metadatadir=depmetadata
dep.rmi.port=44100

Here is my application-context.xml file:

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

<beans>
    <bean id="properties" class="org.springframework.beans.factory.config.Prope\
rtyPlaceholderConfigurer">
        <property name="ignoreUnresolvablePlaceholders">
           <value>true</value>
        </property>
        <property name="locations">
            <list>
                <value>classpath:deployment.properties</value>
            </list>
        </property>
    </bean>
 
   
    <bean id="configuration" class="org.alfresco.deployment.config.Configuration"
          init-method="init">
        <property name="dataDirectory">
            <value>${dep.datadir}</value>
        </property>
        <property name="logDirectory">
            <value>${dep.logdir}</value>
        </property>
        <property name="metaDataDirectory">
            <value>${dep.metadatadir}</value>
        </property>
        <!– Target Configuration. Modify for your site. –>
        <property name="targetData">
            <map>
                <entry key="default">
                    <map>
                        <entry key="root"><value>/opt/www</value></entry>
                        <entry key="user"><value>admin</value></entry>
                        <entry key="password"><value>admin</value></entry>
                        <entry key="runnable"><value>org.alfresco.deployment.SampleRunnable</value></entry>
                        <!–
                        <entry key="program"><value>/path/to/program</value></entry>
                         –>
                    </map>
                </entry>
               <entry key="sampleTarget">
                   <map>
                     <entry key="root"><value>/opt/www2</value></entry>
                     <entry key="user"><value>admin</value></entry>
                     <entry key="password"><value>admin</value></entry>
                     <entry key="runnable"><value>org.alfresco.deployment.SampleRunnable</value></entry>
                     <!–
                     <entry key="program"><value>/path/to/program</value></entry>
                      –>
                   </map>
               </entry>
            </map>
        </property>
    </bean>
   
    <bean id="deploymentReceiverService" class="org.alfresco.deployment.impl.server.DeploymentReceiverServiceImpl"
          init-method="init">
        <property name="configuration">
            <ref bean="configuration"/>
        </property>
    </bean>
   
    <bean id="deploymentReceiverTransport" class="org.alfresco.deployment.impl.server.DeploymentReceiverTransportImpl">
        <property name="deploymentReceiverService">
            <ref bean="deploymentReceiverService"/>
        </property>
    </bean>
   
        <bean id="deploymentReceiverTransportRMI" class="org.springframework.remoting.rmi.RmiServiceExporter">
                <property name="service">
                        <ref bean="deploymentReceiverTransport"/>
                </property>
                <property name="serviceInterface">
                        <value>org.alfresco.deployment.DeploymentReceiverTransport</value>
                </property>
                <property name="serviceName">
                        <value>deployment</value>
                </property>
                <property name="registryPort">
                        <value>${dep.rmi.port}</value>
                </property>
        </bean>
</beans>


The IPTables on the box is set up to allow 44100

The deployment directory looks like this:
/opt/deployment
                         /depdata
                         /deptemp
                         /deplogs

I'm trying to deploy to /opt/www and it's current permission bits are:
drwxrwxrwx  2 root       root       4096 Mar 14 14:28 www



Here's the error I'm getting:

19-Mar-08 11:31:21 AM org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
19-Mar-08 11:31:21 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from file [/opt/deployment/application-context.xml]
Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unexpected failure during bean definition parsing
Offending resource: file [/opt/deployment/application-context.xml]
Bean 'properties'; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: <property> element for property 'ignoreUnr\
esolvablePlaceholders' is only allowed to contain either 'ref' attribute OR 'value' attribute OR sub-element
Offending resource: file [/opt/deployment/application-context.xml]
Bean 'properties'
        -> Property 'ignoreUnresolvablePlaceholders'
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: <property> element for property 'ignoreUnresolvablePlaceholders' is on\
ly allowed to contain either 'ref' attribute OR 'value' attribute OR sub-element
Offending resource: file [/opt/deployment/application-context.xml]
Bean 'properties'
        -> Property 'ignoreUnresolvablePlaceholders'

This doesn't make any sense to me at all. I've also tried setting the value attribute on a singleton property tag like this:
<property name="ignoreUnresolvablePlaceholders" value="true" />

But that resulted in the same error.

How should this property tag be written to avoid this error?

Thanks,
-Brian Short

Outcomes