congiguration problem
--------------------- Key: OFBIZ-4439 URL: https://issues.apache.org/jira/browse/OFBIZ-4439 Project: OFBiz Issue Type: Task Components: ALL APPLICATIONS Affects Versions: Release 10.04 Reporter: Dhiraj Gupta Hi when I configure the postgresql with ofbiz with following code.and i put the jar in framework/entity/lib/jdbc <delegator name="default" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" distributed-cache-clear-enabled="false"> <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> <group-map group-name="org.ofbiz.olap" datasource-name="localpostgres"/> </delegator> <delegator name="default-no-eca" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" entity-eca-enabled="false" distributed-cache-clear-enabled="false"> <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> <group-map group-name="org.ofbiz.olap" datasource-name="localpostgres"/> </delegator> <!-- be sure that your default delegator (or the one you use) uses the same datasource for test. You must run "ant run-install" before running "ant run-tests" --> <delegator name="test" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main"> <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> <group-map group-name="org.ofbiz.olap" datasource-name="localpostgres"/> </delegator> <delegator name="other" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main"> <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> </delegator> After it when i run ant run-install, it give the following error. apache-ofbiz-10.04/hot-deploy] [java] 2011-10-17 10:01:30,012 (main) [ ComponentContainer.java:146:INFO ] All components loaded [java] 2011-10-17 10:01:30,426 (main) [ClassLoaderContainer.java:50 :INFO ] CachedClassLoader created [java] 2011-10-17 10:01:30,572 (main) [ ContainerLoader.java:95 :INFO ] [Startup] Starting containers... [java] 2011-10-17 10:01:30,608 (main) [DelegatorFactoryImpl.java:30 :INFO ] Creating new delegator [default] (main) [java] 2011-10-17 10:01:30,854 (main) [ UtilXml.java:1079:ERROR] XmlFileLoader: File file:/home/pks/Desktop/Software/apache-ofbiz-10.04/framework/entity/config/entityengine.xml process fatal error. Line: 88. Error message: The string "--" is not permitted within comments. [java] 2011-10-17 10:01:30,882 (main) [ EntityConfigUtil.java:82 :ERROR] [java] ---- exception report ---------------------------------------------------------- [java] Error loading entity config XML file entityengine.xml [java] Exception: org.ofbiz.entity.GenericEntityConfException [java] Message: Could not get entity engine XML root element (Error reading entityengine.xml (The string "--" is not permitted within comments.)) [java] ---- cause --------------------------------------------------------------------- [java] Exception: org.ofbiz.base.config.GenericConfigException [java] Message: Error reading entityengine.xml (The string "--" is not permitted within comments.) [java] ---- cause --------------------------------------------------------------------- [java] Exception: org.xml.sax.SAXParseException [java] Message: The string "--" is not permitted within comments. [java] ---- stack trace --------------------------------------------------------------- [java] org.xml.sax.SAXParseException: The string "--" is not permitted within comments. [java] org.apache.xerces.parsers.DOMParser.parse(Unknown Source) [java] org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) [java] javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124) [java] org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:468) [java] org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:396) [java] org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:386) [java] org.ofbiz.base.config.ResourceLoader.getXmlDocument(ResourceLoader.java:111) [java] org.ofbiz.base.config.ResourceLoader.getXmlRootElement(ResourceLoader.java:84) [java] org.ofbiz.entity.config.EntityConfigUtil.getXmlRootElement(EntityConfigUtil.java:64) [java] org.ofbiz.entity.config.EntityConfigUtil.<clinit>(EntityConfigUtil.java:80) [java] org.ofbiz.entity.model.ModelReader.getModelReader(ModelReader.java:83) [java] org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:237) [java] org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33) [java] org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25) [java] org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:202) [java] org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:47) [java] org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:230) [java] org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100) [java] org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) [java] org.ofbiz.base.start.Start.startServer(Start.java:322) [java] org.ofbiz.base.start.Start.start(Start.java:326) [java] org.ofbiz.base.start.Start.main(Start.java:411) [java] -------------------------------------------------------------------------------- [java] [java] Exception in thread "main" java.lang.NullPointerException [java] at org.ofbiz.entity.config.EntityConfigUtil.getDelegatorInfo(EntityConfigUtil.java:214) [java] at org.ofbiz.entity.model.ModelReader.getModelReader(ModelReader.java:83) [java] at org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:237) [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33) [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25) [java] at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:202) [java] at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:47) [java] at org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:230) [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100) [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) [java] at org.ofbiz.base.start.Start.startServer(Start.java:322) [java] at org.ofbiz.base.start.Start.start(Start.java:326) [java] at org.ofbiz.base.start.Start.main(Start.java:411) [java] 2011-10-17 10:01:30,970 (OFBiz_Shutdown_Hook) [ ContainerLoader.java:113:INFO ] Shutting down containers [java] Java Result: 1 BUILD SUCCESSFUL Total time: 1 minute 18 seconds -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira |
[ https://issues.apache.org/jira/browse/OFBIZ-4439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adrian Crum closed OFBIZ-4439. ------------------------------ Resolution: Not A Problem Please ask your questions on the user mailing list. > congiguration problem > --------------------- > > Key: OFBIZ-4439 > URL: https://issues.apache.org/jira/browse/OFBIZ-4439 > Project: OFBiz > Issue Type: Task > Components: ALL APPLICATIONS > Affects Versions: Release 10.04 > Reporter: Dhiraj Gupta > > > Hi > when I configure the postgresql with ofbiz with following code.and i put the jar in framework/entity/lib/jdbc > <delegator name="default" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" > distributed-cache-clear-enabled="false"> > <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> > <group-map group-name="org.ofbiz.olap" datasource-name="localpostgres"/> > </delegator> > <delegator name="default-no-eca" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" > entity-eca-enabled="false" distributed-cache-clear-enabled="false"> > <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> > <group-map group-name="org.ofbiz.olap" datasource-name="localpostgres"/> > </delegator> > <!-- be sure that your default delegator (or the one you use) uses > the same datasource for test. You must run "ant run-install" before > running "ant run-tests" --> > <delegator name="test" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main"> > <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> > <group-map group-name="org.ofbiz.olap" datasource-name="localpostgres"/> > </delegator> > <delegator name="other" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main"> > <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> > </delegator> > After it when i run ant run-install, it give the following error. > apache-ofbiz-10.04/hot-deploy] > [java] 2011-10-17 10:01:30,012 (main) [ ComponentContainer.java:146:INFO ] All components loaded > [java] 2011-10-17 10:01:30,426 (main) [ClassLoaderContainer.java:50 :INFO ] CachedClassLoader created > [java] 2011-10-17 10:01:30,572 (main) [ ContainerLoader.java:95 :INFO ] [Startup] Starting containers... > [java] 2011-10-17 10:01:30,608 (main) [DelegatorFactoryImpl.java:30 :INFO ] Creating new delegator [default] (main) > [java] 2011-10-17 10:01:30,854 (main) [ UtilXml.java:1079:ERROR] XmlFileLoader: File file:/home/pks/Desktop/Software/apache-ofbiz-10.04/framework/entity/config/entityengine.xml process fatal error. Line: 88. Error message: The string "--" is not permitted within comments. > [java] 2011-10-17 10:01:30,882 (main) [ EntityConfigUtil.java:82 :ERROR] > [java] ---- exception report ---------------------------------------------------------- > [java] Error loading entity config XML file entityengine.xml > [java] Exception: org.ofbiz.entity.GenericEntityConfException > [java] Message: Could not get entity engine XML root element (Error reading entityengine.xml (The string "--" is not permitted within comments.)) > [java] ---- cause --------------------------------------------------------------------- > [java] Exception: org.ofbiz.base.config.GenericConfigException > [java] Message: Error reading entityengine.xml (The string "--" is not permitted within comments.) > [java] ---- cause --------------------------------------------------------------------- > [java] Exception: org.xml.sax.SAXParseException > [java] Message: The string "--" is not permitted within comments. > [java] ---- stack trace --------------------------------------------------------------- > [java] org.xml.sax.SAXParseException: The string "--" is not permitted within comments. > [java] org.apache.xerces.parsers.DOMParser.parse(Unknown Source) > [java] org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) > [java] javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124) > [java] org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:468) > [java] org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:396) > [java] org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:386) > [java] org.ofbiz.base.config.ResourceLoader.getXmlDocument(ResourceLoader.java:111) > [java] org.ofbiz.base.config.ResourceLoader.getXmlRootElement(ResourceLoader.java:84) > [java] org.ofbiz.entity.config.EntityConfigUtil.getXmlRootElement(EntityConfigUtil.java:64) > [java] org.ofbiz.entity.config.EntityConfigUtil.<clinit>(EntityConfigUtil.java:80) > [java] org.ofbiz.entity.model.ModelReader.getModelReader(ModelReader.java:83) > [java] org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:237) > [java] org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33) > [java] org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25) > [java] org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:202) > [java] org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:47) > [java] org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:230) > [java] org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100) > [java] org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] org.ofbiz.base.start.Start.startServer(Start.java:322) > [java] org.ofbiz.base.start.Start.start(Start.java:326) > [java] org.ofbiz.base.start.Start.main(Start.java:411) > [java] -------------------------------------------------------------------------------- > [java] > [java] Exception in thread "main" java.lang.NullPointerException > [java] at org.ofbiz.entity.config.EntityConfigUtil.getDelegatorInfo(EntityConfigUtil.java:214) > [java] at org.ofbiz.entity.model.ModelReader.getModelReader(ModelReader.java:83) > [java] at org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:237) > [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33) > [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25) > [java] at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:202) > [java] at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:47) > [java] at org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:230) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:322) > [java] at org.ofbiz.base.start.Start.start(Start.java:326) > [java] at org.ofbiz.base.start.Start.main(Start.java:411) > [java] 2011-10-17 10:01:30,970 (OFBiz_Shutdown_Hook) [ ContainerLoader.java:113:INFO ] Shutting down containers > [java] Java Result: 1 > BUILD SUCCESSFUL > Total time: 1 minute 18 seconds -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dhiraj Gupta reopened OFBIZ-4439: --------------------------------- how can manage it > congiguration problem > --------------------- > > Key: OFBIZ-4439 > URL: https://issues.apache.org/jira/browse/OFBIZ-4439 > Project: OFBiz > Issue Type: Task > Components: ALL APPLICATIONS > Affects Versions: Release 10.04 > Reporter: Dhiraj Gupta > > > Hi > when I configure the postgresql with ofbiz with following code.and i put the jar in framework/entity/lib/jdbc > <delegator name="default" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" > distributed-cache-clear-enabled="false"> > <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> > <group-map group-name="org.ofbiz.olap" datasource-name="localpostgres"/> > </delegator> > <delegator name="default-no-eca" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" > entity-eca-enabled="false" distributed-cache-clear-enabled="false"> > <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> > <group-map group-name="org.ofbiz.olap" datasource-name="localpostgres"/> > </delegator> > <!-- be sure that your default delegator (or the one you use) uses > the same datasource for test. You must run "ant run-install" before > running "ant run-tests" --> > <delegator name="test" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main"> > <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> > <group-map group-name="org.ofbiz.olap" datasource-name="localpostgres"/> > </delegator> > <delegator name="other" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main"> > <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> > </delegator> > After it when i run ant run-install, it give the following error. > apache-ofbiz-10.04/hot-deploy] > [java] 2011-10-17 10:01:30,012 (main) [ ComponentContainer.java:146:INFO ] All components loaded > [java] 2011-10-17 10:01:30,426 (main) [ClassLoaderContainer.java:50 :INFO ] CachedClassLoader created > [java] 2011-10-17 10:01:30,572 (main) [ ContainerLoader.java:95 :INFO ] [Startup] Starting containers... > [java] 2011-10-17 10:01:30,608 (main) [DelegatorFactoryImpl.java:30 :INFO ] Creating new delegator [default] (main) > [java] 2011-10-17 10:01:30,854 (main) [ UtilXml.java:1079:ERROR] XmlFileLoader: File file:/home/pks/Desktop/Software/apache-ofbiz-10.04/framework/entity/config/entityengine.xml process fatal error. Line: 88. Error message: The string "--" is not permitted within comments. > [java] 2011-10-17 10:01:30,882 (main) [ EntityConfigUtil.java:82 :ERROR] > [java] ---- exception report ---------------------------------------------------------- > [java] Error loading entity config XML file entityengine.xml > [java] Exception: org.ofbiz.entity.GenericEntityConfException > [java] Message: Could not get entity engine XML root element (Error reading entityengine.xml (The string "--" is not permitted within comments.)) > [java] ---- cause --------------------------------------------------------------------- > [java] Exception: org.ofbiz.base.config.GenericConfigException > [java] Message: Error reading entityengine.xml (The string "--" is not permitted within comments.) > [java] ---- cause --------------------------------------------------------------------- > [java] Exception: org.xml.sax.SAXParseException > [java] Message: The string "--" is not permitted within comments. > [java] ---- stack trace --------------------------------------------------------------- > [java] org.xml.sax.SAXParseException: The string "--" is not permitted within comments. > [java] org.apache.xerces.parsers.DOMParser.parse(Unknown Source) > [java] org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) > [java] javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124) > [java] org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:468) > [java] org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:396) > [java] org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:386) > [java] org.ofbiz.base.config.ResourceLoader.getXmlDocument(ResourceLoader.java:111) > [java] org.ofbiz.base.config.ResourceLoader.getXmlRootElement(ResourceLoader.java:84) > [java] org.ofbiz.entity.config.EntityConfigUtil.getXmlRootElement(EntityConfigUtil.java:64) > [java] org.ofbiz.entity.config.EntityConfigUtil.<clinit>(EntityConfigUtil.java:80) > [java] org.ofbiz.entity.model.ModelReader.getModelReader(ModelReader.java:83) > [java] org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:237) > [java] org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33) > [java] org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25) > [java] org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:202) > [java] org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:47) > [java] org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:230) > [java] org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100) > [java] org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] org.ofbiz.base.start.Start.startServer(Start.java:322) > [java] org.ofbiz.base.start.Start.start(Start.java:326) > [java] org.ofbiz.base.start.Start.main(Start.java:411) > [java] -------------------------------------------------------------------------------- > [java] > [java] Exception in thread "main" java.lang.NullPointerException > [java] at org.ofbiz.entity.config.EntityConfigUtil.getDelegatorInfo(EntityConfigUtil.java:214) > [java] at org.ofbiz.entity.model.ModelReader.getModelReader(ModelReader.java:83) > [java] at org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:237) > [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33) > [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25) > [java] at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:202) > [java] at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:47) > [java] at org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:230) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:322) > [java] at org.ofbiz.base.start.Start.start(Start.java:326) > [java] at org.ofbiz.base.start.Start.main(Start.java:411) > [java] 2011-10-17 10:01:30,970 (OFBiz_Shutdown_Hook) [ ContainerLoader.java:113:INFO ] Shutting down containers > [java] Java Result: 1 > BUILD SUCCESSFUL > Total time: 1 minute 18 seconds -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adrian Crum closed OFBIZ-4439. ------------------------------ Resolution: Not A Problem Please ask your questions on the user mailing list: https://cwiki.apache.org/OFBADMIN/mailing-lists.html > congiguration problem > --------------------- > > Key: OFBIZ-4439 > URL: https://issues.apache.org/jira/browse/OFBIZ-4439 > Project: OFBiz > Issue Type: Task > Components: ALL APPLICATIONS > Affects Versions: Release 10.04 > Reporter: Dhiraj Gupta > > > Hi > when I configure the postgresql with ofbiz with following code.and i put the jar in framework/entity/lib/jdbc > <delegator name="default" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" > distributed-cache-clear-enabled="false"> > <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> > <group-map group-name="org.ofbiz.olap" datasource-name="localpostgres"/> > </delegator> > <delegator name="default-no-eca" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" > entity-eca-enabled="false" distributed-cache-clear-enabled="false"> > <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> > <group-map group-name="org.ofbiz.olap" datasource-name="localpostgres"/> > </delegator> > <!-- be sure that your default delegator (or the one you use) uses > the same datasource for test. You must run "ant run-install" before > running "ant run-tests" --> > <delegator name="test" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main"> > <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> > <group-map group-name="org.ofbiz.olap" datasource-name="localpostgres"/> > </delegator> > <delegator name="other" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main"> > <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> > </delegator> > After it when i run ant run-install, it give the following error. > apache-ofbiz-10.04/hot-deploy] > [java] 2011-10-17 10:01:30,012 (main) [ ComponentContainer.java:146:INFO ] All components loaded > [java] 2011-10-17 10:01:30,426 (main) [ClassLoaderContainer.java:50 :INFO ] CachedClassLoader created > [java] 2011-10-17 10:01:30,572 (main) [ ContainerLoader.java:95 :INFO ] [Startup] Starting containers... > [java] 2011-10-17 10:01:30,608 (main) [DelegatorFactoryImpl.java:30 :INFO ] Creating new delegator [default] (main) > [java] 2011-10-17 10:01:30,854 (main) [ UtilXml.java:1079:ERROR] XmlFileLoader: File file:/home/pks/Desktop/Software/apache-ofbiz-10.04/framework/entity/config/entityengine.xml process fatal error. Line: 88. Error message: The string "--" is not permitted within comments. > [java] 2011-10-17 10:01:30,882 (main) [ EntityConfigUtil.java:82 :ERROR] > [java] ---- exception report ---------------------------------------------------------- > [java] Error loading entity config XML file entityengine.xml > [java] Exception: org.ofbiz.entity.GenericEntityConfException > [java] Message: Could not get entity engine XML root element (Error reading entityengine.xml (The string "--" is not permitted within comments.)) > [java] ---- cause --------------------------------------------------------------------- > [java] Exception: org.ofbiz.base.config.GenericConfigException > [java] Message: Error reading entityengine.xml (The string "--" is not permitted within comments.) > [java] ---- cause --------------------------------------------------------------------- > [java] Exception: org.xml.sax.SAXParseException > [java] Message: The string "--" is not permitted within comments. > [java] ---- stack trace --------------------------------------------------------------- > [java] org.xml.sax.SAXParseException: The string "--" is not permitted within comments. > [java] org.apache.xerces.parsers.DOMParser.parse(Unknown Source) > [java] org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) > [java] javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124) > [java] org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:468) > [java] org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:396) > [java] org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:386) > [java] org.ofbiz.base.config.ResourceLoader.getXmlDocument(ResourceLoader.java:111) > [java] org.ofbiz.base.config.ResourceLoader.getXmlRootElement(ResourceLoader.java:84) > [java] org.ofbiz.entity.config.EntityConfigUtil.getXmlRootElement(EntityConfigUtil.java:64) > [java] org.ofbiz.entity.config.EntityConfigUtil.<clinit>(EntityConfigUtil.java:80) > [java] org.ofbiz.entity.model.ModelReader.getModelReader(ModelReader.java:83) > [java] org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:237) > [java] org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33) > [java] org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25) > [java] org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:202) > [java] org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:47) > [java] org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:230) > [java] org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100) > [java] org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] org.ofbiz.base.start.Start.startServer(Start.java:322) > [java] org.ofbiz.base.start.Start.start(Start.java:326) > [java] org.ofbiz.base.start.Start.main(Start.java:411) > [java] -------------------------------------------------------------------------------- > [java] > [java] Exception in thread "main" java.lang.NullPointerException > [java] at org.ofbiz.entity.config.EntityConfigUtil.getDelegatorInfo(EntityConfigUtil.java:214) > [java] at org.ofbiz.entity.model.ModelReader.getModelReader(ModelReader.java:83) > [java] at org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:237) > [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33) > [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25) > [java] at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:202) > [java] at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:47) > [java] at org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:230) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:322) > [java] at org.ofbiz.base.start.Start.start(Start.java:326) > [java] at org.ofbiz.base.start.Start.main(Start.java:411) > [java] 2011-10-17 10:01:30,970 (OFBiz_Shutdown_Hook) [ ContainerLoader.java:113:INFO ] Shutting down containers > [java] Java Result: 1 > BUILD SUCCESSFUL > Total time: 1 minute 18 seconds -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dhiraj Gupta updated OFBIZ-4439: -------------------------------- Labels: cql (was: ) hi > congiguration problem > --------------------- > > Key: OFBIZ-4439 > URL: https://issues.apache.org/jira/browse/OFBIZ-4439 > Project: OFBiz > Issue Type: Task > Components: ALL APPLICATIONS > Affects Versions: Release 10.04 > Reporter: Dhiraj Gupta > Labels: cql > > > Hi > when I configure the postgresql with ofbiz with following code.and i put the jar in framework/entity/lib/jdbc > <delegator name="default" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" > distributed-cache-clear-enabled="false"> > <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> > <group-map group-name="org.ofbiz.olap" datasource-name="localpostgres"/> > </delegator> > <delegator name="default-no-eca" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" > entity-eca-enabled="false" distributed-cache-clear-enabled="false"> > <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> > <group-map group-name="org.ofbiz.olap" datasource-name="localpostgres"/> > </delegator> > <!-- be sure that your default delegator (or the one you use) uses > the same datasource for test. You must run "ant run-install" before > running "ant run-tests" --> > <delegator name="test" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main"> > <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> > <group-map group-name="org.ofbiz.olap" datasource-name="localpostgres"/> > </delegator> > <delegator name="other" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main"> > <group-map group-name="org.ofbiz" datasource-name="localpostgres"/> > </delegator> > After it when i run ant run-install, it give the following error. > apache-ofbiz-10.04/hot-deploy] > [java] 2011-10-17 10:01:30,012 (main) [ ComponentContainer.java:146:INFO ] All components loaded > [java] 2011-10-17 10:01:30,426 (main) [ClassLoaderContainer.java:50 :INFO ] CachedClassLoader created > [java] 2011-10-17 10:01:30,572 (main) [ ContainerLoader.java:95 :INFO ] [Startup] Starting containers... > [java] 2011-10-17 10:01:30,608 (main) [DelegatorFactoryImpl.java:30 :INFO ] Creating new delegator [default] (main) > [java] 2011-10-17 10:01:30,854 (main) [ UtilXml.java:1079:ERROR] XmlFileLoader: File file:/home/pks/Desktop/Software/apache-ofbiz-10.04/framework/entity/config/entityengine.xml process fatal error. Line: 88. Error message: The string "--" is not permitted within comments. > [java] 2011-10-17 10:01:30,882 (main) [ EntityConfigUtil.java:82 :ERROR] > [java] ---- exception report ---------------------------------------------------------- > [java] Error loading entity config XML file entityengine.xml > [java] Exception: org.ofbiz.entity.GenericEntityConfException > [java] Message: Could not get entity engine XML root element (Error reading entityengine.xml (The string "--" is not permitted within comments.)) > [java] ---- cause --------------------------------------------------------------------- > [java] Exception: org.ofbiz.base.config.GenericConfigException > [java] Message: Error reading entityengine.xml (The string "--" is not permitted within comments.) > [java] ---- cause --------------------------------------------------------------------- > [java] Exception: org.xml.sax.SAXParseException > [java] Message: The string "--" is not permitted within comments. > [java] ---- stack trace --------------------------------------------------------------- > [java] org.xml.sax.SAXParseException: The string "--" is not permitted within comments. > [java] org.apache.xerces.parsers.DOMParser.parse(Unknown Source) > [java] org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) > [java] javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124) > [java] org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:468) > [java] org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:396) > [java] org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:386) > [java] org.ofbiz.base.config.ResourceLoader.getXmlDocument(ResourceLoader.java:111) > [java] org.ofbiz.base.config.ResourceLoader.getXmlRootElement(ResourceLoader.java:84) > [java] org.ofbiz.entity.config.EntityConfigUtil.getXmlRootElement(EntityConfigUtil.java:64) > [java] org.ofbiz.entity.config.EntityConfigUtil.<clinit>(EntityConfigUtil.java:80) > [java] org.ofbiz.entity.model.ModelReader.getModelReader(ModelReader.java:83) > [java] org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:237) > [java] org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33) > [java] org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25) > [java] org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:202) > [java] org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:47) > [java] org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:230) > [java] org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100) > [java] org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] org.ofbiz.base.start.Start.startServer(Start.java:322) > [java] org.ofbiz.base.start.Start.start(Start.java:326) > [java] org.ofbiz.base.start.Start.main(Start.java:411) > [java] -------------------------------------------------------------------------------- > [java] > [java] Exception in thread "main" java.lang.NullPointerException > [java] at org.ofbiz.entity.config.EntityConfigUtil.getDelegatorInfo(EntityConfigUtil.java:214) > [java] at org.ofbiz.entity.model.ModelReader.getModelReader(ModelReader.java:83) > [java] at org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:237) > [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:33) > [java] at org.ofbiz.entity.DelegatorFactoryImpl.getInstance(DelegatorFactoryImpl.java:25) > [java] at org.ofbiz.base.util.UtilObject.getObjectFromFactory(UtilObject.java:202) > [java] at org.ofbiz.entity.DelegatorFactory.getDelegator(DelegatorFactory.java:47) > [java] at org.ofbiz.entityext.data.EntityDataLoadContainer.start(EntityDataLoadContainer.java:230) > [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:100) > [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:322) > [java] at org.ofbiz.base.start.Start.start(Start.java:326) > [java] at org.ofbiz.base.start.Start.main(Start.java:411) > [java] 2011-10-17 10:01:30,970 (OFBiz_Shutdown_Hook) [ ContainerLoader.java:113:INFO ] Shutting down containers > [java] Java Result: 1 > BUILD SUCCESSFUL > Total time: 1 minute 18 seconds -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira |
Free forum by Nabble | Edit this page |