AnsweredAssumed Answered

replication, my share-config-custom.xml has problem

Question asked by bisana on May 27, 2013
Latest reply on May 27, 2013 by bisana
Hi All
I am trying out replication, I have edited "share-config-custom.xml" file in the location
"/opt/alfresco/tomcat/shared/classes/alfresco/web-extension/"
I have added it as sibling of other config elements, what I have done I am pasting it here for reference
 
  <config evaluator=”string-compare” condition=”Replication”>
      <share-urls>
         <share-url repositoryId=”f1101703-50f2-4e16-ae8a-f98873406e86”> http://192.168.20.64:8080/share/</share-url>
      </share-urls>
   </config>


I am getting error in catalina.out such as

  2013-05-27 17:49:46,322  ERROR [extensions.config.BaseConfigService] [localhost-startStop-1] Input stream invalid - skipped for source: classpath:alfresco/web-extension/share-config-custom.xml'
org.springframework.extensions.config.ConfigException: 04270001 Failed to parse config stream
   at org.springframework.extensions.config.xml.XMLConfigService.parse(XMLConfigService.java:224)
   at org.springframework.extensions.config.BaseConfigService.appendConfig(BaseConfigService.java:268)
   at org.springframework.extensions.config.BaseConfigService.parse(BaseConfigService.java:298)
   at org.springframework.extensions.config.xml.XMLConfigService.initConfig(XMLConfigService.java:132)
   at org.springframework.extensions.config.BaseConfigService.reset(BaseConfigService.java:145)
   at org.springframework.extensions.webscripts.AbstractRuntimeContainer.reset(AbstractRuntimeContainer.java:260)
   at org.springframework.extensions.webscripts.PresentationContainer.reset(PresentationContainer.java:121)
   at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.reset(LocalWebScriptRuntimeContainer.java:122)
   at org.springframework.extensions.webscripts.AbstractRuntimeContainer.onApplicationEvent(AbstractRuntimeContainer.java:280)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)
Caused by: org.dom4j.DocumentException: Error on line 52 of document  : Open quote is expected for attribute "{1}" associated with an  element type  "evaluator". Nested exception: Open quote is expected for attribute "{1}" associated with an  element type  "evaluator".
   at org.dom4j.io.SAXReader.read(SAXReader.java:482)
   at org.dom4j.io.SAXReader.read(SAXReader.java:343)
   at org.springframework.extensions.config.xml.XMLConfigService.parse(XMLConfigService.java:212)
   … 29 more


Guidance and advice requested.
Please let me know where in the xml file I had done wrong

Outcomes