Unsubscribe me
Please UnSubscribe my mail-id from all OfBiz mailer alias. regards Mayank Upadhyay
Found Error in Development of OFBiz Application
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
Questions regarding development in OfBiz
Hello to All, First of all thanks to you all for previous help n guide. Now i have installed Ofbiz properly in my PC. But still i am not getting the meaning of this statement that *Start OFBiz with embedded Tomcat* which is written in http://docs.ofbiz.org/display/OFBADMIN/Demo+and+Test+Setup+Guide link. While it running so nicely. Because in my PC Tomcat 6 is already install, so is it required ? Q 1I want to know that how OFBiz is related to Tomcat. Q 2Like Tomcat, in OfBiz also i need to restart Ofbiz server again n again after each changes in application. Q 3When i run ant file , it takes along time to BUILD all components(application) so is there any way to make short of this time period. Q 4Also please guide me that how can i integrate OFBiz with *Eclipse*because currently i am using another java editor for the development. Please help me out for the above queries. Thanks in Advance with warm regards Mayank Upadhyay
Re: Questions regarding development in OfBiz
Dear Ashish Sir, I am not getting abt Window box that what is Window Box ? i am just doing that first I run run-install command for ant file in Ofbiz from console of Window where it Build all and then i run Ofbiz bat file.And finally through browser i start to access Ofbiz (According to OFbiz setup guide and link).But yesterday i found some problem for the same and the Page was not opening.So please. guide me a proper process to start and access the Ofbiz. Here my is my PC configuration as you required O/S:- Window XP / Window 2003 Server Processor:-1.8 ghz Celeron RAM::-256 MBDDR JDK1.6 install And regarding Tomcat there i do update web.xml to reload my application else i do start and stop Tomcat for changes So is it the same process in Ofbiz.? Please help me for the above Thanks in Advance with warm regards Mayank Upadhyay On 6/12/08, Ashish Vijaywargiya [EMAIL PROTECTED] wrote: In tomcat you need not to restart the Mayank, Comments Inline :- On Thu, Jun 12, 2008 at 7:24 AM, Mayank Upadhyay [EMAIL PROTECTED] wrote: Hello to All, First of all thanks to you all for previous help n guide. Now i have installed Ofbiz properly in my PC. No problem buddy we are here to help you :-). And its really great that you are able to run ofbiz on your machine now. But still i am not getting the meaning of this statement that *Start OFBiz with embedded Tomcat* which is written in http://docs.ofbiz.org/display/OFBADMIN/Demo+and+Test+Setup+Guide link. While it running so nicely. Because in my PC Tomcat 6 is already install, so is it required ? Q 1I want to know that how OFBiz is related to Tomcat. See ofbiz comes with Inbuild Tomcat, so you need not to have external tomcat on your machine. You can safely remove the tomcat installed on your machine or if you would like to keep the external tomcat instance on your machine then change the port settings for tomcat either in Ofbiz (ofbiz-containers.xml) or on externally installed instance on your machine. Inbuild tomcat (that comes with Ofbiz) listen on port 8080 (For http request) 8443 (For https request). Q 2Like Tomcat, in OfBiz also i need to restart Ofbiz server again n again after each changes in application. While considering the case of External Tomcat you need not to restart the server.You can redeploy the application from the Tomcat Mangement console.But you restart the server while doing some changes in Property files ,configuration files etc. In case of Ofbiz you need to restart the server when you do changes in service definition (services.xml) ,java files (run ant before running server) , property files and some configuration files. Most of the files from Screen/Form Widget(For UI preparation) , Beanshell , Groovy (For Data Preparation) and Services written in Mini Lang (Decides what to do with data) gives result without restarting the server. Q 3When i run ant file , it takes along time to BUILD all components(application) so is there any way to make short of this time period. I am sure you are using Windows Box. BTW what is the configuration of your machine ? Q 4Also please guide me that how can i integrate OFBiz with *Eclipse*because currently i am using another java editor for the development. Jacques has provided you the answer for this so I am safe on this I think. Please help me out for the above queries. Thanks in Advance with warm regards Mayank Upadhyay
How to Downloading Ofbiz ?
Hello to All, I am a beginner of Ofbiz, and i need to setup and install it on my PC( Window XP O/S). So I go through to link http://docs.ofbiz.org/display/OFBADMIN/Demo+and+Test+Setup+Guide where it is written that *Download the OFBiz release archive and unzip* ,and then i go through the link http://svn.apache.org/repos/asf/ofbiz/branches/release4.0/ where i found that each directory and files are seperatly given .So do i need to download each file and directory each one by one or is there any another way to download whole in a single zip. Please guide me for the above. Thanks in advance. Mayank Upadhyay