Hello to All,
I made a proper setup of OFBiz in my PC. And it is running well(means all other Application like HR,ACCOUNTING etc.) . But my application "practice" which i develop as guide in OFBiz for begginers is not running console log file. I think error may generate due to following of this , which i extraxt from my console log file. "Set OFBIZ_HOME to - D:/Mayank/OFBiz Admin socket not configured; set to port 0" or ---- exception report ---------------------------------------------------------- Cannot load component : practice @ D:\Mayank\OFBiz\hot-deploy\practice : Error reading the component config file: file:/D:/Mayank/OFBiz/hot-deploy/practice/ofbiz-component.xml (White space is required before the encoding pseudo attribute in the XML declaration.) Exception: org.ofbiz.base.component.ComponentException Message: Error reading the component config file: file:/D:/Mayank/OFBiz/hot-deploy/practice/ofbiz-component.xml (White space is required before the encoding pseudo attribute in the XML declaration.) ---- stack trace --------------------------------------------------------------- org.ofbiz.base.component.ComponentException: Error reading the component config file: file:/D:/Mayank/OFBiz/hot-deploy/practice/ofbiz-component.xml (White space is required before the encoding pseudo attribute in the XML declaration.) org.ofbiz.base.component.ComponentConfig.<init>(ComponentConfig.java:358) org.ofbiz.base.component.ComponentConfig.getComponentConfig(ComponentConfig.java:73) org.ofbiz.base.container.ComponentContainer.loadComponentDirectory(ComponentContainer.java:190) org.ofbiz.base.container.ComponentContainer.loadComponentFromConfig(ComponentContainer .java:152) org.ofbiz.base.container.ComponentContainer.loadComponents(ComponentContainer.java:115) org.ofbiz.base.container.ComponentContainer.init(ComponentContainer.java:76) org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190) org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66) org.ofbiz.base.start.Start.initStartLoaders(Start.java:250) org.ofbiz.base.start.Start.init(Start.java:89) org.ofbiz.base.start.Start.main(Start.java:398) org.xml.sax.SAXParseException: White space is required before the encoding pseudo attribute in the XML declaration. org.apache.xerces.parsers.DOMParser.parse(Unknown Source) org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124) org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:238) org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:177) org.ofbiz.base.component.ComponentConfig.<init>(ComponentConfig.java:356) org.ofbiz.base.component.ComponentConfig.getComponentConfig(ComponentConfig.java:73) org.ofbiz.base.container.ComponentContainer.loadComponentDirectory(ComponentContainer.java:190) org.ofbiz.base.container.ComponentContainer.loadComponentFromConfig(ComponentContainer.java:152) org.ofbiz.base.container.ComponentContainer.loadComponents(ComponentContainer.java:115) org.ofbiz.base.container.ComponentContainer.init(ComponentContainer.java:76) org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190) org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66) org.ofbiz.base.start.Start.initStartLoaders(Start.java:250) org.ofbiz.base.start.Start.init(Start.java:89) org.ofbiz.base.start.Start.main(Start.java:398) -------------------------------------------------------------------------------- 2008-06-16 15:07:06,437 (main) [ ComponentContainer.java:195:ERROR] Cannot load component : practice @ D:\Mayank\OFBiz\hot-deploy\practice 2008-06-16 15:07:06,484 (main) [ ComponentContainer.java:126:INFO ] All components loaded 2008-06-16 15:07:06,828 (main) [ClassLoaderContainer.java:50 :INFO ] CachedClassLoader created 2008-06-16 15:07:07,984 (main) [ GenericDelegator.java:127:INFO ] Creating new delegator [default] (main) I have highlighted in green where i found doubt, but still didn't understand the meaning of "(White space is required before the encoding pseudo attribute in the XML declaration.)".So please guide me that where i am going wrong. Thanks in Advance With warm regards Mayank Upadhyay |
It looks like you have some invalid XML in your
hot-deploy/practice/ofbiz-component.xml file. -Adrian Mayank Upadhyay wrote: > Hello to All, > > I made a proper setup of OFBiz in my PC. And it is running well(means all > other Application like HR,ACCOUNTING etc.) . But my application > "practice" which i develop as guide in OFBiz for begginers is not running > console log file. > I think error may generate due to following of this , which i extraxt from > my console log file. > "Set OFBIZ_HOME to - D:/Mayank/OFBiz > Admin socket not configured; set to port 0" > > or > > ---- exception report > ---------------------------------------------------------- > Cannot load component : practice @ D:\Mayank\OFBiz\hot-deploy\practice : > Error reading the component config file: > file:/D:/Mayank/OFBiz/hot-deploy/practice/ofbiz-component.xml (White space > is required before the encoding pseudo attribute in the XML declaration.) > Exception: org.ofbiz.base.component.ComponentException > Message: Error reading the component config file: > file:/D:/Mayank/OFBiz/hot-deploy/practice/ofbiz-component.xml (White space > is required before the encoding pseudo attribute in the XML declaration.) > ---- stack trace > --------------------------------------------------------------- > org.ofbiz.base.component.ComponentException: Error reading the component > config file: file:/D:/Mayank/OFBiz/hot-deploy/practice/ofbiz-component.xml > (White > space is required before the encoding pseudo attribute in the XML > declaration.) > org.ofbiz.base.component.ComponentConfig.<init>(ComponentConfig.java:358) > org.ofbiz.base.component.ComponentConfig.getComponentConfig(ComponentConfig.java:73) > org.ofbiz.base.container.ComponentContainer.loadComponentDirectory(ComponentContainer.java:190) > org.ofbiz.base.container.ComponentContainer.loadComponentFromConfig(ComponentContainer > .java:152) > org.ofbiz.base.container.ComponentContainer.loadComponents(ComponentContainer.java:115) > org.ofbiz.base.container.ComponentContainer.init(ComponentContainer.java:76) > org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190) > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66) > org.ofbiz.base.start.Start.initStartLoaders(Start.java:250) > org.ofbiz.base.start.Start.init(Start.java:89) > org.ofbiz.base.start.Start.main(Start.java:398) > org.xml.sax.SAXParseException: White space is required before the encoding > pseudo attribute in the XML declaration. > org.apache.xerces.parsers.DOMParser.parse(Unknown Source) > org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) > javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124) > org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:238) > org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:177) > org.ofbiz.base.component.ComponentConfig.<init>(ComponentConfig.java:356) > org.ofbiz.base.component.ComponentConfig.getComponentConfig(ComponentConfig.java:73) > org.ofbiz.base.container.ComponentContainer.loadComponentDirectory(ComponentContainer.java:190) > org.ofbiz.base.container.ComponentContainer.loadComponentFromConfig(ComponentContainer.java:152) > org.ofbiz.base.container.ComponentContainer.loadComponents(ComponentContainer.java:115) > org.ofbiz.base.container.ComponentContainer.init(ComponentContainer.java:76) > org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190) > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66) > org.ofbiz.base.start.Start.initStartLoaders(Start.java:250) > org.ofbiz.base.start.Start.init(Start.java:89) > org.ofbiz.base.start.Start.main(Start.java:398) > -------------------------------------------------------------------------------- > > 2008-06-16 15:07:06,437 (main) [ ComponentContainer.java:195:ERROR] Cannot > load component : practice @ D:\Mayank\OFBiz\hot-deploy\practice > 2008-06-16 15:07:06,484 (main) [ ComponentContainer.java:126:INFO ] All > components loaded > 2008-06-16 15:07:06,828 (main) [ClassLoaderContainer.java:50 :INFO ] > CachedClassLoader created > 2008-06-16 15:07:07,984 (main) [ GenericDelegator.java:127:INFO ] Creating > new delegator [default] (main) > > I have highlighted in green where i found doubt, but still didn't understand > the meaning of "(White space is required before the encoding pseudo > attribute in the XML declaration.)".So please guide me that where i am going > wrong. > > Thanks in Advance > > With warm regards > > Mayank Upadhyay > |
In reply to this post by Mayank Upadhyay
you may have a unprintable character if you file.
if you have a EDI like eclipse with a XML editor you may want to look at it. Mayank Upadhyay sent the following on 6/19/2008 7:31 AM: > Hello to All, > > I made a proper setup of OFBiz in my PC. And it is running well(means all > other Application like HR,ACCOUNTING etc.) . But my application > "practice" which i develop as guide in OFBiz for begginers is not running > console log file. > I think error may generate due to following of this , which i extraxt from > my console log file. > "Set OFBIZ_HOME to - D:/Mayank/OFBiz > Admin socket not configured; set to port 0" > > or > > ---- exception report > ---------------------------------------------------------- > Cannot load component : practice @ D:\Mayank\OFBiz\hot-deploy\practice : > Error reading the component config file: > file:/D:/Mayank/OFBiz/hot-deploy/practice/ofbiz-component.xml (White space > is required before the encoding pseudo attribute in the XML declaration.) > Exception: org.ofbiz.base.component.ComponentException > Message: Error reading the component config file: > file:/D:/Mayank/OFBiz/hot-deploy/practice/ofbiz-component.xml (White space > is required before the encoding pseudo attribute in the XML declaration.) > ---- stack trace > --------------------------------------------------------------- > org.ofbiz.base.component.ComponentException: Error reading the component > config file: file:/D:/Mayank/OFBiz/hot-deploy/practice/ofbiz-component.xml > (White > space is required before the encoding pseudo attribute in the XML > declaration.) > org.ofbiz.base.component.ComponentConfig.<init>(ComponentConfig.java:358) > org.ofbiz.base.component.ComponentConfig.getComponentConfig(ComponentConfig.java:73) > org.ofbiz.base.container.ComponentContainer.loadComponentDirectory(ComponentContainer.java:190) > org.ofbiz.base.container.ComponentContainer.loadComponentFromConfig(ComponentContainer > .java:152) > org.ofbiz.base.container.ComponentContainer.loadComponents(ComponentContainer.java:115) > org.ofbiz.base.container.ComponentContainer.init(ComponentContainer.java:76) > org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190) > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66) > org.ofbiz.base.start.Start.initStartLoaders(Start.java:250) > org.ofbiz.base.start.Start.init(Start.java:89) > org.ofbiz.base.start.Start.main(Start.java:398) > org.xml.sax.SAXParseException: White space is required before the encoding > pseudo attribute in the XML declaration. > org.apache.xerces.parsers.DOMParser.parse(Unknown Source) > org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) > javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124) > org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:238) > org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:177) > org.ofbiz.base.component.ComponentConfig.<init>(ComponentConfig.java:356) > org.ofbiz.base.component.ComponentConfig.getComponentConfig(ComponentConfig.java:73) > org.ofbiz.base.container.ComponentContainer.loadComponentDirectory(ComponentContainer.java:190) > org.ofbiz.base.container.ComponentContainer.loadComponentFromConfig(ComponentContainer.java:152) > org.ofbiz.base.container.ComponentContainer.loadComponents(ComponentContainer.java:115) > org.ofbiz.base.container.ComponentContainer.init(ComponentContainer.java:76) > org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:190) > org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:66) > org.ofbiz.base.start.Start.initStartLoaders(Start.java:250) > org.ofbiz.base.start.Start.init(Start.java:89) > org.ofbiz.base.start.Start.main(Start.java:398) > -------------------------------------------------------------------------------- > > 2008-06-16 15:07:06,437 (main) [ ComponentContainer.java:195:ERROR] Cannot > load component : practice @ D:\Mayank\OFBiz\hot-deploy\practice > 2008-06-16 15:07:06,484 (main) [ ComponentContainer.java:126:INFO ] All > components loaded > 2008-06-16 15:07:06,828 (main) [ClassLoaderContainer.java:50 :INFO ] > CachedClassLoader created > 2008-06-16 15:07:07,984 (main) [ GenericDelegator.java:127:INFO ] Creating > new delegator [default] (main) > > I have highlighted in green where i found doubt, but still didn't understand > the meaning of "(White space is required before the encoding pseudo > attribute in the XML declaration.)".So please guide me that where i am going > wrong. > > Thanks in Advance > > With warm regards > > Mayank Upadhyay > |
Free forum by Nabble | Edit this page |