03-19-2008 04:17 PM
dep.datadir=depdata
dep.logdir=deplog
dep.metadatadir=depmetadata
dep.rmi.port=44100
<?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>
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'
03-20-2008 11:05 PM
<bean id="properties" class="org.springframework.beans.factory.config.Prope\(this needs to be a single line without the '\' character). In fact the DOCTYPE declaration has the same problem too:
rtyPlaceholderConfigurer">
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.or\If that's just an artifact of posting to the forum, let me know and I'll take a closer look at it.
g/dtd/spring-beans.dtd'>
03-21-2008 03:45 PM
Mar 21, 2008 3:29:21 PM org.springframework.core.CollectionFactory <clinit>
INFO: JDK 1.4+ collections available
Mar 21, 2008 3:29:21 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from file [/opt/deployment/application-context.xml]
Mar 21, 2008 3:29:21 PM org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=3203712]: org.springframework.beans.factory.support.Defau\
ltListableBeanFactory defining beans [properties,configuration,deploymentReceiverService,deploymentReceiverTransport,deploymentReceiverTransportRMI]; root of BeanFactory hierarch\
y
Mar 21, 2008 3:29:21 PM org.springframework.context.support.AbstractApplicationContext refresh
INFO: 5 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=3203712]
Mar 21, 2008 3:29:21 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from class path resource [deployment.properties]
Mar 21, 2008 3:29:21 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
INFO: Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [properties,configuration,deploymentReceiverService,deployment\
ReceiverTransport,deploymentReceiverTransportRMI]; root of BeanFactory hierarchy}
Exception in thread "main" org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path\
resource [deployment.properties] cannot be opened because it does not exist
Caused by: java.io.FileNotFoundException: class path resource [deployment.properties] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:135)
at org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:179)
at org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:158)
at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:69)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:414)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:328)
at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:89)
at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:74)
at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:65)
at org.alfresco.deployment.Main.main(Main.java:47)
03-21-2008 04:04 PM
-Djava.ext.dirs=[directory in which FSR is installed]
Cheers,03-21-2008 05:59 PM
10-20-2008 05:57 AM
10-20-2008 06:35 AM
10-20-2008 07:02 AM
10-20-2008 04:00 PM
01-19-2009 05:21 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.