AnsweredAssumed Answered

HTTPConfigSource??

Question asked by soeursourire on Apr 3, 2006
Latest reply on May 9, 2006 by soeursourire
Hi!

I am trying to read a XML file that is stored in Company_Home by its http url however I have this error :

caused by:
org.alfresco.config.ConfigException: Failed to parse config stream

caused by:
org.dom4j.DocumentException: Error on line 31 of document : Open quote is expected for attribute "width" associated with an element type "table". Nested exception: Open quote is expected for attribute "width" associated with an element type "table".


I get this error when I am doing this:
XMLConfigService svc = new XMLConfigService(new HTTPConfigSource(http://localhost:8080/alfresco/download/direct/workspace/SpacesStore/4cc5bdbc-c323-11da-9641-7f540d74d65b/EF_Config_Pages.xml));
svc.init();


Although I do not have error while doing this with the same xml file:

XMLConfigService svc = new XMLConfigService(new FileConfigSource("./src/projects/web-client/source/web/WEB-INF/EF_Config_Pages.xml"));
svc.init();       


Cannot I use XMLConfigService with a url? What do I do wrong here?
Thanks

Outcomes