Re: Impact of transaction isolation implementation differences between databases on applications
The database is responsible for transaction isolation, ie it's not something that OFBiz does. There is configuration in OFBiz for the desired transaction isolation. For comments and recommendations, please see the entityengine.xml file where this is configured (just before the datasource section). -David On Jul 8, 2009, at 8:36 PM, sastry mln wrote: Hi, In http://www.oracle.com/technology/oramag/oracle/05-nov/o65asktom.html , Tom Kyte described the differences between Oracle and non-oracle databases regarding the implementation of isolation levels. Not sure which non-oracle database he was referring to. but he made a point that other dbs use "shared read lock" for consistent answers which has a side effect: "Readers of data will block writers of data" 1) MySQL I donot know how isolation levels implemented in mysql .. I found this discussions - http://forums.mysql.com/read.php?97,75190,75584 . Here the author gave an example of 2 concurrent transactions where one commits before the other. The results of the first are available in the second. I do not see anything wrong with that, may be I missed the point of the author. 2) PostGreSQL http://www.postgresql.org/docs/8.1/interactive/transaction-iso.html I read, reread, but could not completely grasp this. seems it's an esoteric topic for my level of expertise. My Question is, does ofbiz architecture ensure consistent isolation behavior across all/popular databses? Please advise if we need to think through this before choosing a database for our business needs regards Sastry
Re: Bug on creating an entity thru minilang
Thanks Ian. This is fixed in SVN rev 792422. -David On Jul 9, 2009, at 12:10 AM, ian tabangay wrote: Hi. We were having a problem with creating entities (example Party, Facility or Product) wherein whenever we provide an id for a new entity during creation and that id exists, ofbiz updates the entity of the given id instead of throwing an exception. We checked the schema of simple-methods and saw that the attribute "or-store" for the element "create-value" can be set to false if you don't want this behavior. Seeing that most simple methods of ofbiz for creating entities does not specify a value for the attribute "or- store", that attribute should have a value of "false"; that is, it should not update the entity of the given id if its already existing. We checked the class org.ofbiz.minilang.method.entityops.CreateValue and saw that the condition for checking the attribute "or-store" was wrong. snippet of http://svn.apache.org/repos/asf/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/CreateValue.javarev 791212 *76*if (createOrStore = true) { *77*methodContext.getDelegator().createOrStore(value, doCacheClear); *78*} else { *79*methodContext.getDelegator().create(value, doCacheClear); *80*} ** lines 75 - 79 for http://svn.apache.org/repos/asf/ofbiz/branches/release09.04/framework/minilang/src/org/ofbiz/minilang/method/entityops/CreateValue.javarev 759238 As you can see, the if condition at line 75 would always result to true; therefore, would always use Delegator#createOrStore(GenericValue, boolean). Thanks. ian
Bug on creating an entity thru minilang
Hi. We were having a problem with creating entities (example Party, Facility or Product) wherein whenever we provide an id for a new entity during creation and that id exists, ofbiz updates the entity of the given id instead of throwing an exception. We checked the schema of simple-methods and saw that the attribute "or-store" for the element "create-value" can be set to false if you don't want this behavior. Seeing that most simple methods of ofbiz for creating entities does not specify a value for the attribute "or-store", that attribute should have a value of "false"; that is, it should not update the entity of the given id if its already existing. We checked the class org.ofbiz.minilang.method.entityops.CreateValue and saw that the condition for checking the attribute "or-store" was wrong. snippet of http://svn.apache.org/repos/asf/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/CreateValue.javarev 791212 *76*if (createOrStore = true) { *77*methodContext.getDelegator().createOrStore(value, doCacheClear); *78*} else { *79*methodContext.getDelegator().create(value, doCacheClear); *80*} ** lines 75 - 79 for http://svn.apache.org/repos/asf/ofbiz/branches/release09.04/framework/minilang/src/org/ofbiz/minilang/method/entityops/CreateValue.javarev 759238 As you can see, the if condition at line 75 would always result to true; therefore, would always use Delegator#createOrStore(GenericValue, boolean). Thanks. ian
Impact of transaction isolation implementation differences between databases on applications
Hi, In http://www.oracle.com/technology/oramag/oracle/05-nov/o65asktom.html, Tom Kyte described the differences between Oracle and non-oracle databases regarding the implementation of isolation levels. Not sure which non-oracle database he was referring to. but he made a point that other dbs use "shared read lock" for consistent answers which has a side effect: "Readers of data will block writers of data" 1) MySQL I donot know how isolation levels implemented in mysql .. I found this discussions - http://forums.mysql.com/read.php?97,75190,75584. Here the author gave an example of 2 concurrent transactions where one commits before the other. The results of the first are available in the second. I do not see anything wrong with that, may be I missed the point of the author. 2) PostGreSQL http://www.postgresql.org/docs/8.1/interactive/transaction-iso.html I read, reread, but could not completely grasp this. seems it's an esoteric topic for my level of expertise. My Question is, does ofbiz architecture ensure consistent isolation behavior across all/popular databses? Please advise if we need to think through this before choosing a database for our business needs regards Sastry
Re: Auto scheduler to start ofbiz instance required.
I saw Adam heath in the dev list mention something. However as I said before I don't see my memory allocation creeping up and I have been running ofbiz 9.04 since it was released. so if there is a memory leak, I have not used the portions that have it or there is non. That is the best I can say. Kumaraswamy nandipati sent the following on 7/8/2009 7:05 PM: > BJ Freeman, > > As a technical person, > > I am curious to know what are the memory leaking areas in ofbiz? > (API methods, classes, etc.,) so, I can stop using them. Any information > will be appreciated. > > > > On Thu, Jul 9, 2009 at 3:26 AM, BJ Freeman wrote: > >> an added information >> using swap file, called virtual memory in windows is many times slower >> than using real memory. This because you are using disk access times >> instead of real memory access times. >> So do everything you can not get into the virtual memory. >> >> Kumaraswamy nandipati sent the following on 7/8/2009 1:54 PM: >>> Thanks for your reply BJ Freeman & Henning. >>> >>> You people gave new dimention of solutions. I have to look into them. >>> >>> >>> By the way, I am using Debain server to host my ofbiz application. May be >>> its time to concentrate on memory leaks. >>> >>> thanks once again for showing way to success(I feel). >>> >>> I am novise to linux script coding. My another question *is Is there a >>> autoScheduler which will identify whether a ofbiz instance is running or >>> not. If not, it will schedule(start) ofbiz automatically*. Because of my >>> existing server condition(memory leaks), I need to use that scheduler >> till >>> fix the memory leaks. Because, my ofbiz application was shutting down at >> any >>> time of clock. >>> >>> >>> >>> >>> >>> On Wed, Jul 8, 2009 at 9:43 PM, Henning wrote: >>> Btw.: There is a great memory analyzer tool available for eclipse - a >> real life saver. See www.eclipse.org/mat. As your configuration will have given you heap dumps, why not let that >> tool have a look at those? There is a "leak suspects" analysis available that quite often leads to the hot spot. Henning -- Urspr. Mitt. -- Betreff: Re: Auto scheduler to start ofbiz instance required. Von: BJ Freeman Datum: 08.07.2009 18:03 I run ofbiz and it only takes 700K I have 2 megs memory and never use swap file. There is not memory leaks that I can see, my server has been up for 14 days since my last restart to add code. as side note: if your using windows and a swapfile extensively, you system will hang. So I would start by having a server with one instance to verify that it is ofbiz or a modification you have done. Then work back. Kumaraswamy nandipati sent the following on 7/8/2009 8:42 AM: > Hi., > > I am using Ofbiz for my ecommerce application. Due to memory issues server > geting shutdown. > > My ofbiz server hosted with memory information as follows > Primary memory : 4GB( 50% as swap) > > here is memory information in startup script: > > MEMIF="-server -Xverify:none -Xms1024M -Xmx1536M -XX:MaxPermSize=1024M > -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParNewGC > -XX:+CMSClassUnloadingEnabled -XX:+UseAdaptiveSizePolicy" > > > My application has two instances on two different machines for load > balancing called *Frontend* and *Backend*(all other modules except ecommerce > module). both are different ofbiz instances for my website synchronized at > apache level. > > I am having 2 issues > 1.P) When I open order stats page, backend ofbiz was getting down for some > times because of out of memory issue. In orderstats page, its trying to > travel each and every order in current year for stat information. Till now > in current year, my application had 10K orders, This may holds huge memory I > think. > > 2.P) My application(ecommerce module i.e Frontend) was running fine for 4-5 > days, after that, it is shutting down because outOfMemory issue. > > In both ofbiz instances, I am using cache management for certain things upto > 3 hrs of cacheing. > > Seriously these are two issues pointing me > > Before find a solution for this, I want to use a scheduler/cron which will > identify server down and restart the server automatically and in meanwhile I > has to fix this issue. > > Any suggestions are appriciated towards this. > > > > > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com >> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. >>> >> -- >> BJ Freeman >> http://www.businessesnetwork.com/automation >> http://bjfreeman.elance.com >> >> http://www.linkedin.com/profil
Re: Auto scheduler to start ofbiz instance required.
BJ Freeman, As a technical person, I am curious to know what are the memory leaking areas in ofbiz? (API methods, classes, etc.,) so, I can stop using them. Any information will be appreciated. On Thu, Jul 9, 2009 at 3:26 AM, BJ Freeman wrote: > an added information > using swap file, called virtual memory in windows is many times slower > than using real memory. This because you are using disk access times > instead of real memory access times. > So do everything you can not get into the virtual memory. > > Kumaraswamy nandipati sent the following on 7/8/2009 1:54 PM: > > Thanks for your reply BJ Freeman & Henning. > > > > You people gave new dimention of solutions. I have to look into them. > > > > > > By the way, I am using Debain server to host my ofbiz application. May be > > its time to concentrate on memory leaks. > > > > thanks once again for showing way to success(I feel). > > > > I am novise to linux script coding. My another question *is Is there a > > autoScheduler which will identify whether a ofbiz instance is running or > > not. If not, it will schedule(start) ofbiz automatically*. Because of my > > existing server condition(memory leaks), I need to use that scheduler > till > > fix the memory leaks. Because, my ofbiz application was shutting down at > any > > time of clock. > > > > > > > > > > > > On Wed, Jul 8, 2009 at 9:43 PM, Henning wrote: > > > >> Btw.: There is a great memory analyzer tool available for eclipse - a > real > >> life saver. > >> > >> See www.eclipse.org/mat. > >> > >> As your configuration will have given you heap dumps, why not let that > tool > >> have a look at those? There is a "leak suspects" analysis available that > >> quite often leads to the hot spot. > >> > >> Henning > >> > >> -- Urspr. Mitt. -- > >> Betreff: Re: Auto scheduler to start ofbiz instance required. > >> Von: BJ Freeman > >> Datum: 08.07.2009 18:03 > >> > >> I run ofbiz and it only takes 700K I have 2 megs memory and never use > >> swap file. There is not memory leaks that I can see, my server has been > >> up for 14 days since my last restart to add code. > >> as side note: > >> if your using windows and a swapfile extensively, you system will hang. > >> So I would start by having a server with one instance to verify that it > >> is ofbiz or a modification you have done. Then work back. > >> > >> > >> Kumaraswamy nandipati sent the following on 7/8/2009 8:42 AM: > >>> Hi., > >>> > >>> I am using Ofbiz for my ecommerce application. Due to memory issues > >> server > >>> geting shutdown. > >>> > >>> My ofbiz server hosted with memory information as follows > >>> Primary memory : 4GB( 50% as swap) > >>> > >>> here is memory information in startup script: > >>> > >>> MEMIF="-server -Xverify:none -Xms1024M -Xmx1536M -XX:MaxPermSize=1024M > >>> -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParNewGC > >>> -XX:+CMSClassUnloadingEnabled -XX:+UseAdaptiveSizePolicy" > >>> > >>> > >>> My application has two instances on two different machines for load > >>> balancing called *Frontend* and *Backend*(all other modules except > >> ecommerce > >>> module). both are different ofbiz instances for my website synchronized > >> at > >>> apache level. > >>> > >>> I am having 2 issues > >>> 1.P) When I open order stats page, backend ofbiz was getting down for > >> some > >>> times because of out of memory issue. In orderstats page, its trying to > >>> travel each and every order in current year for stat information. Till > >> now > >>> in current year, my application had 10K orders, This may holds huge > >> memory I > >>> think. > >>> > >>> 2.P) My application(ecommerce module i.e Frontend) was running fine for > >> 4-5 > >>> days, after that, it is shutting down because outOfMemory issue. > >>> > >>> In both ofbiz instances, I am using cache management for certain things > >> upto > >>> 3 hrs of cacheing. > >>> > >>> Seriously these are two issues pointing me > >>> > >>> Before find a solution for this, I want to use a scheduler/cron which > >> will > >>> identify server down and restart the server automatically and in > >> meanwhile I > >>> has to fix this issue. > >>> > >>> Any suggestions are appriciated towards this. > >>> > >>> > >>> > >>> > >>> > >> -- > >> BJ Freeman > >> http://www.businessesnetwork.com/automation > >> http://bjfreeman.elance.com > >> > >> > http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro > >> Systems Integrator. > >> > >> > >> > > > > > > -- > BJ Freeman > http://www.businessesnetwork.com/automation > http://bjfreeman.elance.com > > http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro > Systems Integrator. > > -- Thanks, Kumaraswamy.N 91-9866805250.
Re: Bsh Error
to keep consistency and to learn correctly I suggest you put this in scripts folder. you can follow other examples as to the full path. then put it in the ofbiz-component.xml in the hot-deploy folder, following the examples in other folders. su2 sent the following on 7/8/2009 6:13 PM: > I have saved bshcontainer.bsh file in C:\workspace\ofbiz > I am trying to run > > source("bshcontainer.bsh"); > > result = dispatcher.runSync("createHelloPerson", UtilMisc.toMap("firstName", > "Si" , "lastName", "Chen", "comments", "Will it work this time?")); > > I am getting following error. > > Error: > Target exception: org.ofbiz.service.GenericSericeException: Cannot locate > serivce by name (createHelloPerson) > > services.xml > > > http://www.w3.org/2001/XMLSchema-instance"; > > xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/services.xsd";> > Hello 3 Services > > >location="org.ofbiz.hello3.Hello3Services" > invoke="createHelloPerson"> > Create a HelloPerson >include="nonpk" > optional="true"/> >optional="false"/> > > > >location="org/ofbiz/hello3/Hello3Services.xml" > invoke="createHelloPersonHobby"> > Create a HelloPersonHobby which links a person and > a > hobby. >include="pk" > optional="false"/> > > > > > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator.
Re: Bsh Error
Make sure the services.xml file is declared in the ofbiz-component.xml file of the application, look at other ofbiz-component.xml files for examples. Regards Scott HotWax Media http://www.hotwaxmedia.com On 9/07/2009, at 1:13 PM, su2 wrote: I have saved bshcontainer.bsh file in C:\workspace\ofbiz I am trying to run source("bshcontainer.bsh"); result = dispatcher.runSync("createHelloPerson", UtilMisc.toMap("firstName", "Si" , "lastName", "Chen", "comments", "Will it work this time?")); I am getting following error. Error: Target exception: org.ofbiz.service.GenericSericeException: Cannot locate serivce by name (createHelloPerson) services.xml http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/ services.xsd"> Hello 3 Services location="org.ofbiz.hello3.Hello3Services" invoke="createHelloPerson"> Create a HelloPerson include="nonpk" optional="true"/> Create a HelloPersonHobby which links a person and a hobby. include="pk" optional="false"/> -- View this message in context: http://www.nabble.com/Bsh-Error-tp24402213p24402213.html Sent from the OFBiz - User mailing list archive at Nabble.com. smime.p7s Description: S/MIME cryptographic signature
Bsh Error
I have saved bshcontainer.bsh file in C:\workspace\ofbiz I am trying to run source("bshcontainer.bsh"); result = dispatcher.runSync("createHelloPerson", UtilMisc.toMap("firstName", "Si" , "lastName", "Chen", "comments", "Will it work this time?")); I am getting following error. Error: Target exception: org.ofbiz.service.GenericSericeException: Cannot locate serivce by name (createHelloPerson) services.xml http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/services.xsd";> Hello 3 Services Create a HelloPerson Create a HelloPersonHobby which links a person and a hobby. -- View this message in context: http://www.nabble.com/Bsh-Error-tp24402213p24402213.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Re: Auto scheduler to start ofbiz instance required.
2009/7/9 Kumaraswamy nandipati > > I am novise to linux script coding. My another question *is Is there a > autoScheduler which will identify whether a ofbiz instance is running or > not. If not, it will schedule(start) ofbiz automatically*. I have successfully used monit. It watches the PID and will restart a service if there is no process matching the PID. I have also had it watch a log file, and take action if the log file is not updated after a specific length of time. Cheers, Anne. -- Coherent Software Australia Pty Ltd PO Box 2773 Cheltenham Vic 3192 Phone: (03) 9585 6788 Fax: (03) 9585 1086 Web: http://www.cohsoft.com.au/ Email: sa...@cohsoft.com.au Bonsai ERP, the all-inclusive ERP system http://www.bonsaierp.com.au/
Re: Build Failed
I was able to fix it. thank you for the help. BJ Freeman wrote: > > so you have a folder under the hot-deploy called content > or is it under ofbiz/content > > su2 sent the following on 7/8/2009 1:23 PM: >> I checked at that location and there is lib(at the same location >> specified in >> the error) folder. That is what I checked first when I saw the error. >> >> >> BJ Freeman wrote: >>> what does this mean to you >>> C:\workspace\ofbiz\hot-deploy\content\build\lib not found. >>> >>> >>> >>> su2 sent the following on 7/8/2009 12:56 PM: Hello All, I am trying to create Hello 3 application using the tutorial. I added Hello3Services.java in src folder, Hello3Services.xml in script folder. When I try to build the application it gives me following error. error: * BUILD FAILED C:\workspace\ofbiz\build.xml:119: The following error occurred while executing this line: C:\workspace\ofbiz\hot-deploy\hello3\build.xml:88: C:\workspace\ofbiz\hot-deploy\content\build\lib not found. * Hello3Services.java * package org.ofbiz.hello3; import java.util.HashMap; import java.util.Map; import org.ofbiz.base.util.Debug; // uses Log4J import org.ofbiz.base.util.UtilMisc; // helpful utility for working with Maps, Lists, etc. import org.ofbiz.entity.GenericDelegator; import org.ofibz.entity.GenericEntityException; import org.ofbiz.entity.GenericValue; import org.ofbiz.service.DespatchContext; import org.ofbiz.service.ServiceUtil; public class Hello3Services { public static final String module = Hello3Services.class.getName(); // used for debugging public static Map createHelloPerson(DispatchContext dctx, Map context) { GenericDelegator delegator = dctx.getDelegator(); // always passed in with DispatchContext try { String helloPersonId = delegator.getNextSeqId("HelloPerson"); // gets next available key for HelloPerson Debug.logInfo("helloPersonId = " + helloPersonId, module) ; // prints to the console or console.log GenericValue helloPerson = delegator.makeValue("HelloPerson", UtilMisc.toMap ("helloPersonId", helloPersonId)); // create a GenericValue from ID we just got helloPerson.setNonPKFields(context); // move non-primary key fields from input parameters to GenericValue delegator.create(helloPerson); // store the generic value, ie persists it Map result = ServiceUtil.returnSuccess(); // gets standard Map for successful service operations result.put("helloPersonId", helloPersonId); // puts output parameter into Map to return return result; // return Map } catch (GenericEntityException ex) { // required if you use delegator in Java return ServiceUtil.returnError(ex.getMessage())' } } } } * Hello3Services.xml * http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd";> >>> short-description="Create a Hobby-Person relationship" login-required="false"> * I copied my build.xml file from party component build.xml * >>> destdir="${build.dir}/classes"> >>> includes="**/*.properties,**/*.xml,**/*.bsh,**/*.logic,**/*.js,**/*.jacl,**/*.py"/> >>> basedir="${build.dir}/classes"/> >>> classpathref="local.class.path" destdir="${build.dir}/javadocs" Windowtitle="Open for Business - ${desc}"> * Thanks for the help in advance.
Re: Build Failed
so you have a folder under the hot-deploy called content or is it under ofbiz/content su2 sent the following on 7/8/2009 1:23 PM: > I checked at that location and there is lib(at the same location specified in > the error) folder. That is what I checked first when I saw the error. > > > BJ Freeman wrote: >> what does this mean to you >> C:\workspace\ofbiz\hot-deploy\content\build\lib not found. >> >> >> >> su2 sent the following on 7/8/2009 12:56 PM: >>> Hello All, >>> >>> I am trying to create Hello 3 application using the tutorial. >>> >>> I added Hello3Services.java in src folder, Hello3Services.xml in script >>> folder. When I try to build the application it gives me following error. >>> >>> error: >>> * >>> BUILD FAILED >>> C:\workspace\ofbiz\build.xml:119: The following error occurred while >>> executing this line: >>> C:\workspace\ofbiz\hot-deploy\hello3\build.xml:88: >>> C:\workspace\ofbiz\hot-deploy\content\build\lib not found. >>> >>> * >>> >>> Hello3Services.java >>> * >>> package org.ofbiz.hello3; >>> >>> import java.util.HashMap; >>> import java.util.Map; >>> >>> import org.ofbiz.base.util.Debug; // uses Log4J >>> import org.ofbiz.base.util.UtilMisc; // helpful utility for working with >>> Maps, Lists, etc. >>> import org.ofbiz.entity.GenericDelegator; >>> import org.ofibz.entity.GenericEntityException; >>> import org.ofbiz.entity.GenericValue; >>> import org.ofbiz.service.DespatchContext; >>> import org.ofbiz.service.ServiceUtil; >>> >>> public class Hello3Services { >>> >>> public static final String module = Hello3Services.class.getName(); // >>> used >>> for debugging >>> >>> public static Map createHelloPerson(DispatchContext dctx, Map context) { >>> GenericDelegator delegator = dctx.getDelegator(); // always passed in >>> with >>> DispatchContext >>> >>> try { >>> String helloPersonId = delegator.getNextSeqId("HelloPerson"); // gets >>> next >>> available key for HelloPerson >>> Debug.logInfo("helloPersonId = " + helloPersonId, module) ; // prints to >>> the >>> console or console.log >>> GenericValue helloPerson = delegator.makeValue("HelloPerson", >>> UtilMisc.toMap ("helloPersonId", helloPersonId)); // create a >>> GenericValue >>> from ID we just got >>> helloPerson.setNonPKFields(context); // move non-primary key fields from >>> input parameters to GenericValue >>> delegator.create(helloPerson); // store the generic value, ie persists it >>> >>> Map result = ServiceUtil.returnSuccess(); // gets standard Map for >>> successful service operations >>> result.put("helloPersonId", helloPersonId); // puts output parameter into >>> Map to return >>> return result; // return Map >>> >>> } catch (GenericEntityException ex) { // required if you use delegator in >>> Java >>> return ServiceUtil.returnError(ex.getMessage())' >>> } >>> >>> } >>> } >>> } >>> * >>> Hello3Services.xml >>> * >>> >>> >>> http://www.w3.org/2001/XMLSchema-instance"; >>> xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd";> >>> >>> >>> >> short-description="Create a Hobby-Person relationship" >>> login-required="false"> >>> >>> >>> >>> >>> >>> >>> * >>> >>> I copied my build.xml file from party component >>> >>> build.xml >>> * >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> destdir="${build.dir}/classes"> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> includes="**/*.properties,**/*.xml,**/*.bsh,**/*.logic,**/*.js,**/*.jacl,**/*.py"/> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> basedir="${build.dir}/classes"/> >>> >>> >>> >>> >>> >>> >>> >>> >> classpathref="local.class.path" >>> destdir="${build.dir}/javadocs" >>> Windowtitle="Open for Business - ${desc}"> >>> >>> >>> >>> >>> >>> >>> >>> * >>> >>> Thanks for the help in advance. >>> >> -- >> BJ Freeman >> http://www.businessesnetwork.com/automation >> http://bjfreeman.elance.com >> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro >> Systems Integrator. >> >> >> > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?vie
Re: Auto scheduler to start ofbiz instance required.
an added information using swap file, called virtual memory in windows is many times slower than using real memory. This because you are using disk access times instead of real memory access times. So do everything you can not get into the virtual memory. Kumaraswamy nandipati sent the following on 7/8/2009 1:54 PM: > Thanks for your reply BJ Freeman & Henning. > > You people gave new dimention of solutions. I have to look into them. > > > By the way, I am using Debain server to host my ofbiz application. May be > its time to concentrate on memory leaks. > > thanks once again for showing way to success(I feel). > > I am novise to linux script coding. My another question *is Is there a > autoScheduler which will identify whether a ofbiz instance is running or > not. If not, it will schedule(start) ofbiz automatically*. Because of my > existing server condition(memory leaks), I need to use that scheduler till > fix the memory leaks. Because, my ofbiz application was shutting down at any > time of clock. > > > > > > On Wed, Jul 8, 2009 at 9:43 PM, Henning wrote: > >> Btw.: There is a great memory analyzer tool available for eclipse - a real >> life saver. >> >> See www.eclipse.org/mat. >> >> As your configuration will have given you heap dumps, why not let that tool >> have a look at those? There is a "leak suspects" analysis available that >> quite often leads to the hot spot. >> >> Henning >> >> -- Urspr. Mitt. -- >> Betreff: Re: Auto scheduler to start ofbiz instance required. >> Von: BJ Freeman >> Datum: 08.07.2009 18:03 >> >> I run ofbiz and it only takes 700K I have 2 megs memory and never use >> swap file. There is not memory leaks that I can see, my server has been >> up for 14 days since my last restart to add code. >> as side note: >> if your using windows and a swapfile extensively, you system will hang. >> So I would start by having a server with one instance to verify that it >> is ofbiz or a modification you have done. Then work back. >> >> >> Kumaraswamy nandipati sent the following on 7/8/2009 8:42 AM: >>> Hi., >>> >>> I am using Ofbiz for my ecommerce application. Due to memory issues >> server >>> geting shutdown. >>> >>> My ofbiz server hosted with memory information as follows >>> Primary memory : 4GB( 50% as swap) >>> >>> here is memory information in startup script: >>> >>> MEMIF="-server -Xverify:none -Xms1024M -Xmx1536M -XX:MaxPermSize=1024M >>> -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParNewGC >>> -XX:+CMSClassUnloadingEnabled -XX:+UseAdaptiveSizePolicy" >>> >>> >>> My application has two instances on two different machines for load >>> balancing called *Frontend* and *Backend*(all other modules except >> ecommerce >>> module). both are different ofbiz instances for my website synchronized >> at >>> apache level. >>> >>> I am having 2 issues >>> 1.P) When I open order stats page, backend ofbiz was getting down for >> some >>> times because of out of memory issue. In orderstats page, its trying to >>> travel each and every order in current year for stat information. Till >> now >>> in current year, my application had 10K orders, This may holds huge >> memory I >>> think. >>> >>> 2.P) My application(ecommerce module i.e Frontend) was running fine for >> 4-5 >>> days, after that, it is shutting down because outOfMemory issue. >>> >>> In both ofbiz instances, I am using cache management for certain things >> upto >>> 3 hrs of cacheing. >>> >>> Seriously these are two issues pointing me >>> >>> Before find a solution for this, I want to use a scheduler/cron which >> will >>> identify server down and restart the server automatically and in >> meanwhile I >>> has to fix this issue. >>> >>> Any suggestions are appriciated towards this. >>> >>> >>> >>> >>> >> -- >> BJ Freeman >> http://www.businessesnetwork.com/automation >> http://bjfreeman.elance.com >> >> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro >> Systems Integrator. >> >> >> > > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator.
Re: Using OfBiz modular, partially, and in many instances
We do indeed have a single copy of the entityengine.xml file, but we have added "templates" to the file, such that we have an entity in our main "provisioning" instance, that lists all the tenants and the coordinates of the database for their delegator. The delegator for the tenants are then instantiated using the template and the information from this provisioning database. This means, that in a VM, all instances share the same "structure" of delegator and data sources. Below is a snippet of our entityengine.xml file that illustrates the template delegator and associated datasource. The FlexibleStringExpander is used to expand the template items. Our delegators have names that are numbers, (ie. party_id of our customer in our deployment instance). Each tenant has a row in the DatabaseDetail entity which has columns databaseName, internalHost, externalHost. In our case, the username and password are generated (not stored in the database). The internalHost is the internal hostname for the database server, while the externalHost is the external hostname for the database server. Since we deploy on Amazon EC2, each host has both a local and public IP address. If your paying attention to the information below, you can see that the sequence numbers for each tenant are prefixed with the party_id and a "-". Making all surrogate keys non-colliding (an important feature for sharing database between tenants). GRANT SELECT,INSERT,UPDATE,DELETE ON TABLE ${table} TO runtime GRANT SELECT ON TABLE ${table} TO readonly REVOKE ALL ON TABLE ${table} FROM public ALTER TABLE ${table} OWNER TO admin GRANT SELECT ON TABLE ${table} TO runtime GRANT SELECT ON TABLE ${table} TO readonly REVOKE ALL ON TABLE ${table} FROM public ALTER TABLE ${table} OWNER TO admin - Original Message - From: "Henning" To: user@ofbiz.apache.org Sent: Wednesday, July 8, 2009 6:25:15 AM GMT -05:00 US/Canada Eastern Subject: Re: Using OfBiz modular, partially, and in many instances After spending some more time on stepping through the OfBiz code and trying to get the entity engine running outside of the OfBiz framework I found that while you can run the entity engine like that, but it still requires a single entityengine.xml from the classpath and will maintain that in some static cache. I think I saw the same pattern applied for other configurations. In my understanding that means that one instance of the entity engine code can be used for exactly one configuration per VM and in particular, for the multi-tenant use-case, all data sources for all tenants have to be pre-defined in that one configuration file. If I understood Marc correctly, that's also what he does. So the entity engine can be configured exactly once and it will not forget until the VM stops. However, it seems that all you need to process a request for a tenant is its delegator and subsequently a service dispatcher. Both, it seems, could be created based on some tenant specific configuration and still work correctly, if it wasn't for the static cache. Also, it seems that the ResourceLoader supports separation per class loader, so that you could have different entityengine.xml files in different deployable (assuming these use different classloaders at runtime) and the one to be the first one to ask for a delegator would actually provide the entity engine config. Unfortunately any other code would then share that configuration. Plus... GenericDelegator, EntityConfigUtil etc. would not know about different classloaders still. Currently I have the impression that trying to change all those places could be an endless endeavour and I better start looking into a solution that - at runtime - has duplicate deployments of OfBiz. Any thoughts? Thanks, Henning
Re: Re: Auto scheduler to start ofbiz instance required.
Thanks for your reply BJ Freeman & Henning. You people gave new dimention of solutions. I have to look into them. By the way, I am using Debain server to host my ofbiz application. May be its time to concentrate on memory leaks. thanks once again for showing way to success(I feel). I am novise to linux script coding. My another question *is Is there a autoScheduler which will identify whether a ofbiz instance is running or not. If not, it will schedule(start) ofbiz automatically*. Because of my existing server condition(memory leaks), I need to use that scheduler till fix the memory leaks. Because, my ofbiz application was shutting down at any time of clock. On Wed, Jul 8, 2009 at 9:43 PM, Henning wrote: > Btw.: There is a great memory analyzer tool available for eclipse - a real > life saver. > > See www.eclipse.org/mat. > > As your configuration will have given you heap dumps, why not let that tool > have a look at those? There is a "leak suspects" analysis available that > quite often leads to the hot spot. > > Henning > > -- Urspr. Mitt. -- > Betreff: Re: Auto scheduler to start ofbiz instance required. > Von: BJ Freeman > Datum: 08.07.2009 18:03 > > I run ofbiz and it only takes 700K I have 2 megs memory and never use > swap file. There is not memory leaks that I can see, my server has been > up for 14 days since my last restart to add code. > as side note: > if your using windows and a swapfile extensively, you system will hang. > So I would start by having a server with one instance to verify that it > is ofbiz or a modification you have done. Then work back. > > > Kumaraswamy nandipati sent the following on 7/8/2009 8:42 AM: > > Hi., > > > > I am using Ofbiz for my ecommerce application. Due to memory issues > server > > geting shutdown. > > > > My ofbiz server hosted with memory information as follows > > Primary memory : 4GB( 50% as swap) > > > > here is memory information in startup script: > > > > MEMIF="-server -Xverify:none -Xms1024M -Xmx1536M -XX:MaxPermSize=1024M > > -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParNewGC > > -XX:+CMSClassUnloadingEnabled -XX:+UseAdaptiveSizePolicy" > > > > > > My application has two instances on two different machines for load > > balancing called *Frontend* and *Backend*(all other modules except > ecommerce > > module). both are different ofbiz instances for my website synchronized > at > > apache level. > > > > I am having 2 issues > > 1.P) When I open order stats page, backend ofbiz was getting down for > some > > times because of out of memory issue. In orderstats page, its trying to > > travel each and every order in current year for stat information. Till > now > > in current year, my application had 10K orders, This may holds huge > memory I > > think. > > > > 2.P) My application(ecommerce module i.e Frontend) was running fine for > 4-5 > > days, after that, it is shutting down because outOfMemory issue. > > > > In both ofbiz instances, I am using cache management for certain things > upto > > 3 hrs of cacheing. > > > > Seriously these are two issues pointing me > > > > Before find a solution for this, I want to use a scheduler/cron which > will > > identify server down and restart the server automatically and in > meanwhile I > > has to fix this issue. > > > > Any suggestions are appriciated towards this. > > > > > > > > > > > > -- > BJ Freeman > http://www.businessesnetwork.com/automation > http://bjfreeman.elance.com > > http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro > Systems Integrator. > > > -- Thanks, Kumaraswamy.N 91-9866805250.
Re: Build Failed
I checked at that location and there is lib(at the same location specified in the error) folder. That is what I checked first when I saw the error. BJ Freeman wrote: > > what does this mean to you > C:\workspace\ofbiz\hot-deploy\content\build\lib not found. > > > > su2 sent the following on 7/8/2009 12:56 PM: >> Hello All, >> >> I am trying to create Hello 3 application using the tutorial. >> >> I added Hello3Services.java in src folder, Hello3Services.xml in script >> folder. When I try to build the application it gives me following error. >> >> error: >> * >> BUILD FAILED >> C:\workspace\ofbiz\build.xml:119: The following error occurred while >> executing this line: >> C:\workspace\ofbiz\hot-deploy\hello3\build.xml:88: >> C:\workspace\ofbiz\hot-deploy\content\build\lib not found. >> >> * >> >> Hello3Services.java >> * >> package org.ofbiz.hello3; >> >> import java.util.HashMap; >> import java.util.Map; >> >> import org.ofbiz.base.util.Debug; // uses Log4J >> import org.ofbiz.base.util.UtilMisc; // helpful utility for working with >> Maps, Lists, etc. >> import org.ofbiz.entity.GenericDelegator; >> import org.ofibz.entity.GenericEntityException; >> import org.ofbiz.entity.GenericValue; >> import org.ofbiz.service.DespatchContext; >> import org.ofbiz.service.ServiceUtil; >> >> public class Hello3Services { >> >> public static final String module = Hello3Services.class.getName(); // >> used >> for debugging >> >> public static Map createHelloPerson(DispatchContext dctx, Map context) { >> GenericDelegator delegator = dctx.getDelegator(); // always passed in >> with >> DispatchContext >> >> try { >> String helloPersonId = delegator.getNextSeqId("HelloPerson"); // gets >> next >> available key for HelloPerson >> Debug.logInfo("helloPersonId = " + helloPersonId, module) ; // prints to >> the >> console or console.log >> GenericValue helloPerson = delegator.makeValue("HelloPerson", >> UtilMisc.toMap ("helloPersonId", helloPersonId)); // create a >> GenericValue >> from ID we just got >> helloPerson.setNonPKFields(context); // move non-primary key fields from >> input parameters to GenericValue >> delegator.create(helloPerson); // store the generic value, ie persists it >> >> Map result = ServiceUtil.returnSuccess(); // gets standard Map for >> successful service operations >> result.put("helloPersonId", helloPersonId); // puts output parameter into >> Map to return >> return result; // return Map >> >> } catch (GenericEntityException ex) { // required if you use delegator in >> Java >> return ServiceUtil.returnError(ex.getMessage())' >> } >> >> } >> } >> } >> * >> Hello3Services.xml >> * >> >> >> http://www.w3.org/2001/XMLSchema-instance"; >> xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd";> >> >> >> > short-description="Create a Hobby-Person relationship" >> login-required="false"> >> >> >> >> >> >> >> * >> >> I copied my build.xml file from party component >> >> build.xml >> * >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > destdir="${build.dir}/classes"> >> >> >> >> >> >> >> >> >> > includes="**/*.properties,**/*.xml,**/*.bsh,**/*.logic,**/*.js,**/*.jacl,**/*.py"/> >> >> >> >> >> >> >> >> >> >> >> > basedir="${build.dir}/classes"/> >> >> >> >> >> >> >> >> > classpathref="local.class.path" >> destdir="${build.dir}/javadocs" >> Windowtitle="Open for Business - ${desc}"> >> >> >> >> >> >> >> >> * >> >> Thanks for the help in advance. >> > > -- > BJ Freeman > http://www.businessesnetwork.com/automation > http://bjfreeman.elance.com > http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro > Systems Integrator. > > > -- View this message in context: http://www.nabble.com/Build-Failed-tp24398207p24398655.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Build Failed
THe Hello1-3 practice apps are opentaps tutorials. You will probably have better luck getting your questions answered by asking the opentaps folks. Thanks, Rob Schapper On Jul 8, 2009, at 2:01 PM, BJ Freeman wrote: what does this mean to you C:\workspace\ofbiz\hot-deploy\content\build\lib not found. su2 sent the following on 7/8/2009 12:56 PM: Hello All, I am trying to create Hello 3 application using the tutorial. I added Hello3Services.java in src folder, Hello3Services.xml in script folder. When I try to build the application it gives me following error. error: * BUILD FAILED C:\workspace\ofbiz\build.xml:119: The following error occurred while executing this line: C:\workspace\ofbiz\hot-deploy\hello3\build.xml:88: C:\workspace\ofbiz\hot-deploy\content\build\lib not found. * Hello3Services.java * package org.ofbiz.hello3; import java.util.HashMap; import java.util.Map; import org.ofbiz.base.util.Debug; // uses Log4J import org.ofbiz.base.util.UtilMisc; // helpful utility for working with Maps, Lists, etc. import org.ofbiz.entity.GenericDelegator; import org.ofibz.entity.GenericEntityException; import org.ofbiz.entity.GenericValue; import org.ofbiz.service.DespatchContext; import org.ofbiz.service.ServiceUtil; public class Hello3Services { public static final String module = Hello3Services.class.getName(); // used for debugging public static Map createHelloPerson(DispatchContext dctx, Map context) { GenericDelegator delegator = dctx.getDelegator(); // always passed in with DispatchContext try { String helloPersonId = delegator.getNextSeqId("HelloPerson"); // gets next available key for HelloPerson Debug.logInfo("helloPersonId = " + helloPersonId, module) ; // prints to the console or console.log GenericValue helloPerson = delegator.makeValue("HelloPerson", UtilMisc.toMap ("helloPersonId", helloPersonId)); // create a GenericValue from ID we just got helloPerson.setNonPKFields(context); // move non-primary key fields from input parameters to GenericValue delegator.create(helloPerson); // store the generic value, ie persists it Map result = ServiceUtil.returnSuccess(); // gets standard Map for successful service operations result.put("helloPersonId", helloPersonId); // puts output parameter into Map to return return result; // return Map } catch (GenericEntityException ex) { // required if you use delegator in Java return ServiceUtil.returnError(ex.getMessage())' } } } } * Hello3Services.xml * http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd "> * I copied my build.xml file from party component build.xml * includes="**/*.properties,**/*.xml,**/*.bsh,**/*.logic,**/*.js,**/ *.jacl,**/*.py"/> * Thanks for the help in advance. -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. smime.p7s Description: S/MIME cryptographic signature
Re: Build Failed
what does this mean to you C:\workspace\ofbiz\hot-deploy\content\build\lib not found. su2 sent the following on 7/8/2009 12:56 PM: > Hello All, > > I am trying to create Hello 3 application using the tutorial. > > I added Hello3Services.java in src folder, Hello3Services.xml in script > folder. When I try to build the application it gives me following error. > > error: > * > BUILD FAILED > C:\workspace\ofbiz\build.xml:119: The following error occurred while > executing this line: > C:\workspace\ofbiz\hot-deploy\hello3\build.xml:88: > C:\workspace\ofbiz\hot-deploy\content\build\lib not found. > > * > > Hello3Services.java > * > package org.ofbiz.hello3; > > import java.util.HashMap; > import java.util.Map; > > import org.ofbiz.base.util.Debug; // uses Log4J > import org.ofbiz.base.util.UtilMisc; // helpful utility for working with > Maps, Lists, etc. > import org.ofbiz.entity.GenericDelegator; > import org.ofibz.entity.GenericEntityException; > import org.ofbiz.entity.GenericValue; > import org.ofbiz.service.DespatchContext; > import org.ofbiz.service.ServiceUtil; > > public class Hello3Services { > > public static final String module = Hello3Services.class.getName(); // used > for debugging > > public static Map createHelloPerson(DispatchContext dctx, Map context) { > GenericDelegator delegator = dctx.getDelegator(); // always passed in with > DispatchContext > > try { > String helloPersonId = delegator.getNextSeqId("HelloPerson"); // gets next > available key for HelloPerson > Debug.logInfo("helloPersonId = " + helloPersonId, module) ; // prints to the > console or console.log > GenericValue helloPerson = delegator.makeValue("HelloPerson", > UtilMisc.toMap ("helloPersonId", helloPersonId)); // create a GenericValue > from ID we just got > helloPerson.setNonPKFields(context); // move non-primary key fields from > input parameters to GenericValue > delegator.create(helloPerson); // store the generic value, ie persists it > > Map result = ServiceUtil.returnSuccess(); // gets standard Map for > successful service operations > result.put("helloPersonId", helloPersonId); // puts output parameter into > Map to return > return result; // return Map > > } catch (GenericEntityException ex) { // required if you use delegator in > Java > return ServiceUtil.returnError(ex.getMessage())' > } > > } > } > } > * > Hello3Services.xml > * > > > http://www.w3.org/2001/XMLSchema-instance"; > xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd";> > > short-description="Create a Hobby-Person relationship" > login-required="false"> > > > > > > > * > > I copied my build.xml file from party component > > build.xml > * > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > destdir="${build.dir}/classes"> > > > > > > > > > includes="**/*.properties,**/*.xml,**/*.bsh,**/*.logic,**/*.js,**/*.jacl,**/*.py"/> > > > > > > > > > > > > > > > > > > > classpathref="local.class.path" > destdir="${build.dir}/javadocs" > Windowtitle="Open for Business - ${desc}"> > > > > > > > > * > > Thanks for the help in advance. > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator.
Build Failed
Hello All, I am trying to create Hello 3 application using the tutorial. I added Hello3Services.java in src folder, Hello3Services.xml in script folder. When I try to build the application it gives me following error. error: * BUILD FAILED C:\workspace\ofbiz\build.xml:119: The following error occurred while executing this line: C:\workspace\ofbiz\hot-deploy\hello3\build.xml:88: C:\workspace\ofbiz\hot-deploy\content\build\lib not found. * Hello3Services.java * package org.ofbiz.hello3; import java.util.HashMap; import java.util.Map; import org.ofbiz.base.util.Debug; // uses Log4J import org.ofbiz.base.util.UtilMisc; // helpful utility for working with Maps, Lists, etc. import org.ofbiz.entity.GenericDelegator; import org.ofibz.entity.GenericEntityException; import org.ofbiz.entity.GenericValue; import org.ofbiz.service.DespatchContext; import org.ofbiz.service.ServiceUtil; public class Hello3Services { public static final String module = Hello3Services.class.getName(); // used for debugging public static Map createHelloPerson(DispatchContext dctx, Map context) { GenericDelegator delegator = dctx.getDelegator(); // always passed in with DispatchContext try { String helloPersonId = delegator.getNextSeqId("HelloPerson"); // gets next available key for HelloPerson Debug.logInfo("helloPersonId = " + helloPersonId, module) ; // prints to the console or console.log GenericValue helloPerson = delegator.makeValue("HelloPerson", UtilMisc.toMap ("helloPersonId", helloPersonId)); // create a GenericValue from ID we just got helloPerson.setNonPKFields(context); // move non-primary key fields from input parameters to GenericValue delegator.create(helloPerson); // store the generic value, ie persists it Map result = ServiceUtil.returnSuccess(); // gets standard Map for successful service operations result.put("helloPersonId", helloPersonId); // puts output parameter into Map to return return result; // return Map } catch (GenericEntityException ex) { // required if you use delegator in Java return ServiceUtil.returnError(ex.getMessage())' } } } } * Hello3Services.xml * http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd";> * I copied my build.xml file from party component build.xml * * Thanks for the help in advance. -- View this message in context: http://www.nabble.com/Build-Failed-tp24398207p24398207.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: How to build Java Services.
your right Adrian. spaced out. then he should not need to run the ant command in the hot deploy Adrian Crum sent the following on 7/8/2009 11:58 AM: > BJ, > > The main build file already builds all components in the hot-deploy > folder. The problem is the user doesn't understand basic DOS commands > and paths. > > -Adrian > > BJ Freeman wrote: >> include your ofbiz/hot-deploy/build.xml >> in the /ofbiz/build.xml >> >> su2 sent the following on 7/8/2009 10:17 AM: >>> I did run ant.bat file at root folder and build was successful. After >>> that I >>> am trying: workspace/ofbiz/hot-deploy/hello3> ant Buildfile: build.xml >>> >>> Which gives me the error: 'ant' is not recognized as internal or >>> external >>> command >>> >>> >>> Dan Dodd wrote: I'm not yet familiar with Eclipse, something I need to work on. I run ant.bat from the command line in the OFBiz Trunk and OFBiz 9.04 Dan Dodd IHOP-KC dand...@ihop.org -Original Message- From: su2 [mailto:shu...@pexsupply.com] Sent: Wednesday, July 08, 2009 9:15 AM To: user@ofbiz.apache.org Subject: RE: How to build Java Services. Yes I am running this command in windows - DOS. I do have ant program. I see ANT in my Eclipse platform. I am not sure how to run this. I really appreciate your help. Thank you. Dan Dodd wrote: > Hi, It looks like you are running in Windows and don't have the ant program > or don't have it on your execution PATH. > > Dan Dodd > > > > > -Original Message- > From: su2 [mailto:shu...@pexsupply.com] Sent: Wednesday, July 08, > 2009 8:52 AM > To: user@ofbiz.apache.org > Subject: How to build Java Services. > > > Hello All, > > I am following Hello World 3 tutorial. I have created > Hello3Services.java > and build.xml file. > > > when I try to build java service using following command it gives me > error: > > > Command:ant Buildfile: build.xml > > > Error:'ant' is not recognized as internal or external command, operable > program or batch file. > > > I appreciate your help. > > > Thank you in advance. > -- > View this message in context: > http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24391954.ht > ml > Sent from the OFBiz - User mailing list archive at Nabble.com. > > -- View this message in context: http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24392304.ht ml Sent from the OFBiz - User mailing list archive at Nabble.com. >> > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator.
Re: How to build Java Services.
BJ, The main build file already builds all components in the hot-deploy folder. The problem is the user doesn't understand basic DOS commands and paths. -Adrian BJ Freeman wrote: include your ofbiz/hot-deploy/build.xml in the /ofbiz/build.xml su2 sent the following on 7/8/2009 10:17 AM: I did run ant.bat file at root folder and build was successful. After that I am trying: workspace/ofbiz/hot-deploy/hello3> ant Buildfile: build.xml Which gives me the error: 'ant' is not recognized as internal or external command Dan Dodd wrote: I'm not yet familiar with Eclipse, something I need to work on. I run ant.bat from the command line in the OFBiz Trunk and OFBiz 9.04 Dan Dodd IHOP-KC dand...@ihop.org -Original Message- From: su2 [mailto:shu...@pexsupply.com] Sent: Wednesday, July 08, 2009 9:15 AM To: user@ofbiz.apache.org Subject: RE: How to build Java Services. Yes I am running this command in windows - DOS. I do have ant program. I see ANT in my Eclipse platform. I am not sure how to run this. I really appreciate your help. Thank you. Dan Dodd wrote: Hi, It looks like you are running in Windows and don't have the ant program or don't have it on your execution PATH. Dan Dodd -Original Message- From: su2 [mailto:shu...@pexsupply.com] Sent: Wednesday, July 08, 2009 8:52 AM To: user@ofbiz.apache.org Subject: How to build Java Services. Hello All, I am following Hello World 3 tutorial. I have created Hello3Services.java and build.xml file. when I try to build java service using following command it gives me error: Command:ant Buildfile: build.xml Error:'ant' is not recognized as internal or external command, operable program or batch file. I appreciate your help. Thank you in advance. -- View this message in context: http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24391954.ht ml Sent from the OFBiz - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24392304.ht ml Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Feeds of currency updates of all countries
any source for currency convesion, where here is a large amount of traffic will usually want a fee. that said if you look on the site http://www.currencysource.com/webmasters.html there is a form you can put on the website. if you did into the form you can get the code to convert to a service in ofbiz. you can do a google for real time currency conversion karthik Ofbiz sent the following on 7/8/2009 9:40 AM: > But the above link does not provide me with the currency updates of > all the countries. > > I need the data of almost 185 countries... > > > Thanks in Advance > > On 7/8/09, Cimballi wrote: >> You can look here for a web service : >> >> http://www.xmethods.net/ve2/index.po >> >> And here for a feed : >> >> http://www.currencysource.com/rss_currencyexchangerates.html >> >> I didn't try them, so not sure if they work well. >> >> Cimballi >> >> >> On Wed, Jul 8, 2009 at 11:20 AM, karthik Ofbiz >> wrote: >>> Hi, >>> >>> I am using Ofbiz for my ecommerce application. >>> >>> Now we have updated our services to 185 countries.We have to show >>> prices in local currencies. >>> >>> Is there any feed from any of the web sites which gives information of >>> currency updates of all the countries? >>> >>> Any help would be appreciated... >>> >>> Thanks in advance >>> >>> >>> Regards, >>> Karthik Ramini. >>> > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator.
Re: How to build Java Services.
include your ofbiz/hot-deploy/build.xml in the /ofbiz/build.xml su2 sent the following on 7/8/2009 10:17 AM: > I did run ant.bat file at root folder and build was successful. After that I > am trying: workspace/ofbiz/hot-deploy/hello3> ant Buildfile: build.xml > > Which gives me the error: 'ant' is not recognized as internal or external > command > > > Dan Dodd wrote: >> I'm not yet familiar with Eclipse, something I need to work on. >> I run ant.bat from the command line in the OFBiz Trunk and OFBiz 9.04 >> >> >> Dan Dodd >> >> IHOP-KC >> dand...@ihop.org >> >> -Original Message- >> From: su2 [mailto:shu...@pexsupply.com] >> Sent: Wednesday, July 08, 2009 9:15 AM >> To: user@ofbiz.apache.org >> Subject: RE: How to build Java Services. >> >> >> Yes I am running this command in windows - DOS. I do have ant program. I >> see >> ANT in my Eclipse platform. >> >> I am not sure how to run this. >> >> I really appreciate your help. >> >> Thank you. >> >> Dan Dodd wrote: >>> Hi, >>> It looks like you are running in Windows and don't have the ant >> program >>> or don't have it on your execution PATH. >>> >>> Dan Dodd >>> >>> >>> >>> >>> -Original Message- >>> From: su2 [mailto:shu...@pexsupply.com] >>> Sent: Wednesday, July 08, 2009 8:52 AM >>> To: user@ofbiz.apache.org >>> Subject: How to build Java Services. >>> >>> >>> Hello All, >>> >>> I am following Hello World 3 tutorial. I have created >>> Hello3Services.java >>> and build.xml file. >>> >>> >>> when I try to build java service using following command it gives me >>> error: >>> >>> >>> Command:ant Buildfile: build.xml >>> >>> >>> Error:'ant' is not recognized as internal or external command, >> operable >>> program or batch file. >>> >>> >>> I appreciate your help. >>> >>> >>> Thank you in advance. >>> -- >>> View this message in context: >>> >> http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24391954.ht >>> ml >>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>> >>> >> -- >> View this message in context: >> http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24392304.ht >> ml >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> >> >> > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator.
RE: How to build Java Services.
I did run ant.bat file at root folder and build was successful. After that I am trying: workspace/ofbiz/hot-deploy/hello3> ant Buildfile: build.xml Which gives me the error: 'ant' is not recognized as internal or external command Dan Dodd wrote: > > I'm not yet familiar with Eclipse, something I need to work on. > I run ant.bat from the command line in the OFBiz Trunk and OFBiz 9.04 > > > Dan Dodd > > IHOP-KC > dand...@ihop.org > > -Original Message- > From: su2 [mailto:shu...@pexsupply.com] > Sent: Wednesday, July 08, 2009 9:15 AM > To: user@ofbiz.apache.org > Subject: RE: How to build Java Services. > > > Yes I am running this command in windows - DOS. I do have ant program. I > see > ANT in my Eclipse platform. > > I am not sure how to run this. > > I really appreciate your help. > > Thank you. > > Dan Dodd wrote: >> >> Hi, >> It looks like you are running in Windows and don't have the ant > program >> or don't have it on your execution PATH. >> >> Dan Dodd >> >> >> >> >> -Original Message- >> From: su2 [mailto:shu...@pexsupply.com] >> Sent: Wednesday, July 08, 2009 8:52 AM >> To: user@ofbiz.apache.org >> Subject: How to build Java Services. >> >> >> Hello All, >> >> I am following Hello World 3 tutorial. I have created >> Hello3Services.java >> and build.xml file. >> >> >> when I try to build java service using following command it gives me >> error: >> >> >> Command:ant Buildfile: build.xml >> >> >> Error:'ant' is not recognized as internal or external command, > operable >> program or batch file. >> >> >> I appreciate your help. >> >> >> Thank you in advance. >> -- >> View this message in context: >> > http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24391954.ht >> ml >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> >> > > -- > View this message in context: > http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24392304.ht > ml > Sent from the OFBiz - User mailing list archive at Nabble.com. > > > -- View this message in context: http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24395710.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Feeds of currency updates of all countries
But the above link does not provide me with the currency updates of all the countries. I need the data of almost 185 countries... Thanks in Advance On 7/8/09, Cimballi wrote: > You can look here for a web service : > > http://www.xmethods.net/ve2/index.po > > And here for a feed : > > http://www.currencysource.com/rss_currencyexchangerates.html > > I didn't try them, so not sure if they work well. > > Cimballi > > > On Wed, Jul 8, 2009 at 11:20 AM, karthik Ofbiz > wrote: >> Hi, >> >> I am using Ofbiz for my ecommerce application. >> >> Now we have updated our services to 185 countries.We have to show >> prices in local currencies. >> >> Is there any feed from any of the web sites which gives information of >> currency updates of all the countries? >> >> Any help would be appreciated... >> >> Thanks in advance >> >> >> Regards, >> Karthik Ramini. >> >
Re: Feeds of currency updates of all countries
You can look here for a web service : http://www.xmethods.net/ve2/index.po And here for a feed : http://www.currencysource.com/rss_currencyexchangerates.html I didn't try them, so not sure if they work well. Cimballi On Wed, Jul 8, 2009 at 11:20 AM, karthik Ofbiz wrote: > Hi, > > I am using Ofbiz for my ecommerce application. > > Now we have updated our services to 185 countries.We have to show > prices in local currencies. > > Is there any feed from any of the web sites which gives information of > currency updates of all the countries? > > Any help would be appreciated... > > Thanks in advance > > > Regards, > Karthik Ramini. >
Feeds of currency updates of all countries
Hi, I am using Ofbiz for my ecommerce application. Now we have updated our services to 185 countries.We have to show prices in local currencies. Is there any feed from any of the web sites which gives information of currency updates of all the countries? Any help would be appreciated... Thanks in advance Regards, Karthik Ramini.
AW: Re: Auto scheduler to start ofbiz instance required.
Btw.: There is a great memory analyzer tool available for eclipse - a real life saver. See www.eclipse.org/mat. As your configuration will have given you heap dumps, why not let that tool have a look at those? There is a "leak suspects" analysis available that quite often leads to the hot spot. Henning -- Urspr. Mitt. -- Betreff: Re: Auto scheduler to start ofbiz instance required. Von: BJ Freeman Datum: 08.07.2009 18:03 I run ofbiz and it only takes 700K I have 2 megs memory and never use swap file. There is not memory leaks that I can see, my server has been up for 14 days since my last restart to add code. as side note: if your using windows and a swapfile extensively, you system will hang. So I would start by having a server with one instance to verify that it is ofbiz or a modification you have done. Then work back. Kumaraswamy nandipati sent the following on 7/8/2009 8:42 AM: > Hi., > > I am using Ofbiz for my ecommerce application. Due to memory issues server > geting shutdown. > > My ofbiz server hosted with memory information as follows > Primary memory : 4GB( 50% as swap) > > here is memory information in startup script: > > MEMIF="-server -Xverify:none -Xms1024M -Xmx1536M -XX:MaxPermSize=1024M > -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParNewGC > -XX:+CMSClassUnloadingEnabled -XX:+UseAdaptiveSizePolicy" > > > My application has two instances on two different machines for load > balancing called *Frontend* and *Backend*(all other modules except ecommerce > module). both are different ofbiz instances for my website synchronized at > apache level. > > I am having 2 issues > 1.P) When I open order stats page, backend ofbiz was getting down for some > times because of out of memory issue. In orderstats page, its trying to > travel each and every order in current year for stat information. Till now > in current year, my application had 10K orders, This may holds huge memory I > think. > > 2.P) My application(ecommerce module i.e Frontend) was running fine for 4-5 > days, after that, it is shutting down because outOfMemory issue. > > In both ofbiz instances, I am using cache management for certain things upto > 3 hrs of cacheing. > > Seriously these are two issues pointing me > > Before find a solution for this, I want to use a scheduler/cron which will > identify server down and restart the server automatically and in meanwhile I > has to fix this issue. > > Any suggestions are appriciated towards this. > > > > > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator.
Re: Auto scheduler to start ofbiz instance required.
I run ofbiz and it only takes 700K I have 2 megs memory and never use swap file. There is not memory leaks that I can see, my server has been up for 14 days since my last restart to add code. as side note: if your using windows and a swapfile extensively, you system will hang. So I would start by having a server with one instance to verify that it is ofbiz or a modification you have done. Then work back. Kumaraswamy nandipati sent the following on 7/8/2009 8:42 AM: > Hi., > > I am using Ofbiz for my ecommerce application. Due to memory issues server > geting shutdown. > > My ofbiz server hosted with memory information as follows > Primary memory : 4GB( 50% as swap) > > here is memory information in startup script: > > MEMIF="-server -Xverify:none -Xms1024M -Xmx1536M -XX:MaxPermSize=1024M > -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParNewGC > -XX:+CMSClassUnloadingEnabled -XX:+UseAdaptiveSizePolicy" > > > My application has two instances on two different machines for load > balancing called *Frontend* and *Backend*(all other modules except ecommerce > module). both are different ofbiz instances for my website synchronized at > apache level. > > I am having 2 issues > 1.P) When I open order stats page, backend ofbiz was getting down for some > times because of out of memory issue. In orderstats page, its trying to > travel each and every order in current year for stat information. Till now > in current year, my application had 10K orders, This may holds huge memory I > think. > > 2.P) My application(ecommerce module i.e Frontend) was running fine for 4-5 > days, after that, it is shutting down because outOfMemory issue. > > In both ofbiz instances, I am using cache management for certain things upto > 3 hrs of cacheing. > > Seriously these are two issues pointing me > > Before find a solution for this, I want to use a scheduler/cron which will > identify server down and restart the server automatically and in meanwhile I > has to fix this issue. > > Any suggestions are appriciated towards this. > > > > > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator.
Re: Ofbiz4.0
unless you have a reason to use 4.0 I suggest you start with 9.04. Especially if you using the hello world application on th doc pages. That said: I can compile and run 4.0 from the SVN, using Ant su2 sent the following on 7/8/2009 8:40 AM: > Hello All, > > I am trying to learn ofbiz4.0 and tried setting up using > http://svn.apache.org/repos/asf/ofbiz/branches/ > release4.0. but when I start the eCommerce site, I get gollowing error > message and in > :ERROR MESSAGE: > org.ofbiz.base.util.GeneralException: Error rendering screen > [component://ecommerce/widget/CommonScreens.xml#main]: > org.ofbiz.base.util.GeneralException: Error rendering screen > [component://ecommerce/widget/CommonScreens.xml#main-decorator]: > org.ofbiz.base.util.GeneralException: Error rendering screen > [component://ecommerce/widget/CommonScreens.xml#rightbar]: > org.ofbiz.base.util.GeneralException: Error rendering screen > [component://ecommerce/widget/CartScreens.xml#minipromotext]: > org.ofbiz.base.util.GeneralException: Error running BSH script at location > [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh]: > org.ofbiz.base.util.GeneralException: Error running BSH script at > [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh], > line [30]: Sourced file: > component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh > : Method Invocation ProductPromoWorker.getStoreProductPromos : at Line: 30 : > in file: > component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh > : ProductPromoWorker .getStoreProductPromos ( delegator , dispatcher , > request ) > > Target exception: java.lang.NullPointerException > (Sourced file: > component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh > : Method Invocation ProductPromoWorker.getStoreProductPromos) (Error running > BSH script at > [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh], > line [30]: Sourced file: > component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh > : Method Invocation ProductPromoWorker.getStoreProductPromos : at Line: 30 : > in file: > component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh > : ProductPromoWorker .getStoreProductPromos ( delegator , dispatcher , > request ) > > Target exception: java.lang.NullPointerException > (Sourced file: > component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh > : Method Invocation ProductPromoWorker.getStoreProductPromos)) (Error > running BSH script at location > [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh]: > org.ofbiz.base.util.GeneralException: Error running BSH script at > [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh], > line [30]: Sourced file: > component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh > : Method Invocation ProductPromoWorker.getStoreProductPromos : at Line: 30 : > in file: > component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh > : ProductPromoWorker .getStoreProductPromos ( delegator , dispatcher , > request ) > > Target exception: java.lang.NullPointerException > (Sourced file: > component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh > : Method Invocation ProductPromoWorker.getStoreProductPromos) (Error running > BSH script at > [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh], > line [30]: Sourced file: > component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh > : Method Invocation ProductPromoWorker.getStoreProductPromos : at Line: 30 : > in file: > component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh > : ProductPromoWorker .getStoreProductPromos ( delegator , dispatcher , > request ) > > Target exception: java.lang.NullPointerException > (Sourced file: > component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh > : Method Invocation ProductPromoWorker.getStoreProductPromos))) (Error > rendering screen > [component://ecommerce/widget/CartScreens.xml#minipromotext]: > org.ofbiz.base.util.GeneralException: Error running BSH script at location > [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh]: > org.ofbiz.base.util.GeneralException: Error running BSH script at > [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh], > line [30]: Sourced file: > component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh > : Method Invocation ProductPromoWorker.getStoreProductPromos : at Line: 30 : > in file: > component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh > : ProductPromoWorker .getStoreProductPromos ( delegator , dispatcher , > request ) > > Target exception: java.lang.NullPointerException > (Sourced file: > component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/s
Auto scheduler to start ofbiz instance required.
Hi., I am using Ofbiz for my ecommerce application. Due to memory issues server geting shutdown. My ofbiz server hosted with memory information as follows Primary memory : 4GB( 50% as swap) here is memory information in startup script: MEMIF="-server -Xverify:none -Xms1024M -Xmx1536M -XX:MaxPermSize=1024M -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled -XX:+UseAdaptiveSizePolicy" My application has two instances on two different machines for load balancing called *Frontend* and *Backend*(all other modules except ecommerce module). both are different ofbiz instances for my website synchronized at apache level. I am having 2 issues 1.P) When I open order stats page, backend ofbiz was getting down for some times because of out of memory issue. In orderstats page, its trying to travel each and every order in current year for stat information. Till now in current year, my application had 10K orders, This may holds huge memory I think. 2.P) My application(ecommerce module i.e Frontend) was running fine for 4-5 days, after that, it is shutting down because outOfMemory issue. In both ofbiz instances, I am using cache management for certain things upto 3 hrs of cacheing. Seriously these are two issues pointing me Before find a solution for this, I want to use a scheduler/cron which will identify server down and restart the server automatically and in meanwhile I has to fix this issue. Any suggestions are appriciated towards this. -- Thanks, Kumaraswamy.N 91-9866805250.
RE: How to build Java Services.
I'm not yet familiar with Eclipse, something I need to work on. I run ant.bat from the command line in the OFBiz Trunk and OFBiz 9.04 Dan Dodd IHOP-KC dand...@ihop.org -Original Message- From: su2 [mailto:shu...@pexsupply.com] Sent: Wednesday, July 08, 2009 9:15 AM To: user@ofbiz.apache.org Subject: RE: How to build Java Services. Yes I am running this command in windows - DOS. I do have ant program. I see ANT in my Eclipse platform. I am not sure how to run this. I really appreciate your help. Thank you. Dan Dodd wrote: > > Hi, > It looks like you are running in Windows and don't have the ant program > or don't have it on your execution PATH. > > Dan Dodd > > > > > -Original Message- > From: su2 [mailto:shu...@pexsupply.com] > Sent: Wednesday, July 08, 2009 8:52 AM > To: user@ofbiz.apache.org > Subject: How to build Java Services. > > > Hello All, > > I am following Hello World 3 tutorial. I have created > Hello3Services.java > and build.xml file. > > > when I try to build java service using following command it gives me > error: > > > Command:ant Buildfile: build.xml > > > Error:'ant' is not recognized as internal or external command, operable > program or batch file. > > > I appreciate your help. > > > Thank you in advance. > -- > View this message in context: > http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24391954.ht > ml > Sent from the OFBiz - User mailing list archive at Nabble.com. > > -- View this message in context: http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24392304.ht ml Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: How to build Java Services.
Hi I don't think I did what you said and not even sure how to do it. Thanks. Su- SELC Sales Div wrote: Hi Shuchi, Have you told the eclipse about your folder at - JAVA BUILD PATH > Source > Add Folder ... - Charles TJ -Original Message- From: su2 [mailto:shu...@pexsupply.com] Sent: 08 Juli 2009 21:15 To: user@ofbiz.apache.org Subject: RE: How to build Java Services. Yes I am running this command in windows - DOS. I do have ant program. I see ANT in my Eclipse platform. I am not sure how to run this. I really appreciate your help. Thank you.
Ofbiz4.0
Hello All, I am trying to learn ofbiz4.0 and tried setting up using http://svn.apache.org/repos/asf/ofbiz/branches/ release4.0. but when I start the eCommerce site, I get gollowing error message and in :ERROR MESSAGE: org.ofbiz.base.util.GeneralException: Error rendering screen [component://ecommerce/widget/CommonScreens.xml#main]: org.ofbiz.base.util.GeneralException: Error rendering screen [component://ecommerce/widget/CommonScreens.xml#main-decorator]: org.ofbiz.base.util.GeneralException: Error rendering screen [component://ecommerce/widget/CommonScreens.xml#rightbar]: org.ofbiz.base.util.GeneralException: Error rendering screen [component://ecommerce/widget/CartScreens.xml#minipromotext]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh]: org.ofbiz.base.util.GeneralException: Error running BSH script at [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh], line [30]: Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh : Method Invocation ProductPromoWorker.getStoreProductPromos : at Line: 30 : in file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh : ProductPromoWorker .getStoreProductPromos ( delegator , dispatcher , request ) Target exception: java.lang.NullPointerException (Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh : Method Invocation ProductPromoWorker.getStoreProductPromos) (Error running BSH script at [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh], line [30]: Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh : Method Invocation ProductPromoWorker.getStoreProductPromos : at Line: 30 : in file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh : ProductPromoWorker .getStoreProductPromos ( delegator , dispatcher , request ) Target exception: java.lang.NullPointerException (Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh : Method Invocation ProductPromoWorker.getStoreProductPromos)) (Error running BSH script at location [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh]: org.ofbiz.base.util.GeneralException: Error running BSH script at [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh], line [30]: Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh : Method Invocation ProductPromoWorker.getStoreProductPromos : at Line: 30 : in file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh : ProductPromoWorker .getStoreProductPromos ( delegator , dispatcher , request ) Target exception: java.lang.NullPointerException (Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh : Method Invocation ProductPromoWorker.getStoreProductPromos) (Error running BSH script at [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh], line [30]: Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh : Method Invocation ProductPromoWorker.getStoreProductPromos : at Line: 30 : in file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh : ProductPromoWorker .getStoreProductPromos ( delegator , dispatcher , request ) Target exception: java.lang.NullPointerException (Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh : Method Invocation ProductPromoWorker.getStoreProductPromos))) (Error rendering screen [component://ecommerce/widget/CartScreens.xml#minipromotext]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh]: org.ofbiz.base.util.GeneralException: Error running BSH script at [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh], line [30]: Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh : Method Invocation ProductPromoWorker.getStoreProductPromos : at Line: 30 : in file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh : ProductPromoWorker .getStoreProductPromos ( delegator , dispatcher , request ) Target exception: java.lang.NullPointerException (Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh : Method Invocation ProductPromoWorker.getStoreProductPromos) (Error running BSH script at [component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh], line [30]: Sourced file: component://ecommerce/webapp/ecommerce/WEB-INF/actions/cart/showpromotext.bsh : Method Invocation ProductPromoWorker.getStoreProductPromos : at Line: 30 : in file: component://ecommerce/webapp/ecommerce/WEB-INF/a
RE: How to build Java Services.
Hi Shuchi, Have you told the eclipse about your folder at - JAVA BUILD PATH > Source > Add Folder ... - Charles TJ -Original Message- From: su2 [mailto:shu...@pexsupply.com] Sent: 08 Juli 2009 21:15 To: user@ofbiz.apache.org Subject: RE: How to build Java Services. Yes I am running this command in windows - DOS. I do have ant program. I see ANT in my Eclipse platform. I am not sure how to run this. I really appreciate your help. Thank you.
Re: How to build Java Services.
Are you running a non ofbiz trunk version? if so you need to go to the forum that supports that code since it does not conform to the trunk and could have other solutions not valid with ofbiz. su2 sent the following on 7/8/2009 6:52 AM: > Hello All, > > I am following Hello World 3 tutorial. I have created Hello3Services.java > and build.xml file. > > > when I try to build java service using following command it gives me error: > > > Command:ant Buildfile: build.xml > > > Error:'ant' is not recognized as internal or external command, operable > program or batch file. > > > I appreciate your help. > > > Thank you in advance. -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator.
RE: How to build Java Services.
Yes I am running this command in windows - DOS. I do have ant program. I see ANT in my Eclipse platform. I am not sure how to run this. I really appreciate your help. Thank you. Dan Dodd wrote: > > Hi, > It looks like you are running in Windows and don't have the ant program > or don't have it on your execution PATH. > > Dan Dodd > > > > > -Original Message- > From: su2 [mailto:shu...@pexsupply.com] > Sent: Wednesday, July 08, 2009 8:52 AM > To: user@ofbiz.apache.org > Subject: How to build Java Services. > > > Hello All, > > I am following Hello World 3 tutorial. I have created > Hello3Services.java > and build.xml file. > > > when I try to build java service using following command it gives me > error: > > > Command:ant Buildfile: build.xml > > > Error:'ant' is not recognized as internal or external command, operable > program or batch file. > > > I appreciate your help. > > > Thank you in advance. > -- > View this message in context: > http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24391954.ht > ml > Sent from the OFBiz - User mailing list archive at Nabble.com. > > -- View this message in context: http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24392304.html Sent from the OFBiz - User mailing list archive at Nabble.com.
RE: How to build Java Services.
Hi, It looks like you are running in Windows and don't have the ant program or don't have it on your execution PATH. Dan Dodd -Original Message- From: su2 [mailto:shu...@pexsupply.com] Sent: Wednesday, July 08, 2009 8:52 AM To: user@ofbiz.apache.org Subject: How to build Java Services. Hello All, I am following Hello World 3 tutorial. I have created Hello3Services.java and build.xml file. when I try to build java service using following command it gives me error: Command:ant Buildfile: build.xml Error:'ant' is not recognized as internal or external command, operable program or batch file. I appreciate your help. Thank you in advance. -- View this message in context: http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24391954.ht ml Sent from the OFBiz - User mailing list archive at Nabble.com.
How to build Java Services.
Hello All, I am following Hello World 3 tutorial. I have created Hello3Services.java and build.xml file. when I try to build java service using following command it gives me error: Command:ant Buildfile: build.xml Error:'ant' is not recognized as internal or external command, operable program or batch file. I appreciate your help. Thank you in advance. -- View this message in context: http://www.nabble.com/How-to-build-Java-Services.-tp24391954p24391954.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Using OfBiz modular, partially, and in many instances
After spending some more time on stepping through the OfBiz code and trying to get the entity engine running outside of the OfBiz framework I found that while you can run the entity engine like that, but it still requires a single entityengine.xml from the classpath and will maintain that in some static cache. I think I saw the same pattern applied for other configurations. In my understanding that means that one instance of the entity engine code can be used for exactly one configuration per VM and in particular, for the multi-tenant use-case, all data sources for all tenants have to be pre-defined in that one configuration file. If I understood Marc correctly, that's also what he does. So the entity engine can be configured exactly once and it will not forget until the VM stops. However, it seems that all you need to process a request for a tenant is its delegator and subsequently a service dispatcher. Both, it seems, could be created based on some tenant specific configuration and still work correctly, if it wasn't for the static cache. Also, it seems that the ResourceLoader supports separation per class loader, so that you could have different entityengine.xml files in different deployable (assuming these use different classloaders at runtime) and the one to be the first one to ask for a delegator would actually provide the entity engine config. Unfortunately any other code would then share that configuration. Plus... GenericDelegator, EntityConfigUtil etc. would not know about different classloaders still. Currently I have the impression that trying to change all those places could be an endless endeavour and I better start looking into a solution that - at runtime - has duplicate deployments of OfBiz. Any thoughts? Thanks, Henning
Re: What is the purpose of orderQtyIncrements field?
Yes, the idea is that if you set it to, let's say 100, (together with minimumOrderQuantity set to 100) then this means that the supplier will sell you the product in case packs of 100 units. Unfortunately the orderQtyIncrements is not yet used, but it should be an easy to do enhancement (in the shopping cart object). Jacopo On Jul 8, 2009, at 8:54 AM, Sharad Gupta wrote: Hello All, Please tell me , what is the purpose of orderQtyIncrements field in SupplierProduct entity. Is it Case Pack or some things else? I think Case Pack is quantity of orderitems ordered in a case for a order. I also looked into the code. But could not found any implementation regarding this. Thanks in Advance With Regards Sharad Gupta smime.p7s Description: S/MIME cryptographic signature
Re: Multiply applications
Hi David, Thank you for your answer. I mean following directory: framework base common {...etc OfBiz components.} application product category {... etc OfBiz applications...} my app1 app2 I want deploy this in one server. But. I want, that app1 and app2 have difference category, product and other tables, means difference application but use on base OfBiz components and applications. Currently I see only one decision: duplicate OfBiz component such as product, category and etc for each my app with different config delegator to difference databases. Thanks in advance. Best Regards, Pavel Drobushevich mailto: p.drobushev...@gmail.com icq: 450345393 skype: pavel_drabushevich On Tue, Jul 7, 2009 at 17:52, David E. Jones wrote: > > You can remove the applications directory, either completely or from the > component-load.xml files so that it doesn't load, and things in the > framework will still work fine. > > As for the other part, about the one app server and different databases, > do you mean a multi-tenant sort of thing? > > -David > > > On Tue, 2009-07-07 at 12:32 +0300, Pavel Drobushevich wrote: > > Hi all, > > > > I started work with Apache OfBiz and want create following solution. When > I > > create new application on OfBiz I must use some powerful bases (commons) > > OfBiz modules (for example from ‘framework’ directory) and I can deploy > only > > one my application on OfBiz. > > But I want create several applications like 'framework/example', with > will > > work with difference database, but use one application server and common > > OfBiz components. > > Can you help me? > > > > Thanks in advance. > > > > > > Best Regards, > > Pavel Drobushevich > > mailto: p.drobushev...@gmail.com > > icq: 450345393 > > skype: pavel_drabushevich > >