Hi,
I try to use configuration file introduce by issue OFBIZ-4793 <https://issues.apache.org/jira/browse/OFBIZ-4793> and new build target "start" introduce by Jacopo. After load my configuration on framework/start/src/org/ofbiz/base/start/start.properties, when I run "ant start" my configuration has been ignored. I set admin socket port to 10555 and : start: [java] Start.java using configuration file org/ofbiz/base/start/start.properties [java] Set OFBIZ_HOME to - /usr/local/workspace/OFBiz.12.04/4-ofbiz [java] Admin socket configured on - /127.0.0.1:10523 To force the configuration load, I change this : svn diff framework/start/src/org/ofbiz/base/start/Config.java Index: framework/start/src/org/ofbiz/base/start/Config.java =================================================================== --- framework/start/src/org/ofbiz/base/start/Config.java (révision 1362842) +++ framework/start/src/org/ofbiz/base/start/Config.java (copie de travail) @@ -48,14 +48,17 @@ } else if (command.equalsIgnoreCase("status")) { command = "start"; } - return "org/ofbiz/base/start/" + command + ".properties"; + return "framework/start/src/org/ofbiz/base/start/" + command + ".properties"; } Questions : 1. framework/start/src/org/ofbiz/base/start/start.properties is the good configuration file by default ? 2. Other operating system have the same problem or not ? thanks, Nicolas -- Nicolas MALIN Consultant Tél : 06.17.66.40.06 Site projet : http://www.neogia.org/ ------- Société LibrenBerry Tél : 02.48.02.56.12 Site : http://www.librenberry.net/ |
What does the console say when you start OFBiz? What file is it using?
-Adrian On 7/30/2012 6:41 PM, Nicolas Malin wrote: > Hi, > > I try to use configuration file introduce by issue OFBIZ-4793 > <https://issues.apache.org/jira/browse/OFBIZ-4793> and new build > target "start" introduce by Jacopo. > After load my configuration on > framework/start/src/org/ofbiz/base/start/start.properties, when I run > "ant start" my configuration has been ignored. > > I set admin socket port to 10555 and : > start: > [java] Start.java using configuration file > org/ofbiz/base/start/start.properties > [java] Set OFBIZ_HOME to - /usr/local/workspace/OFBiz.12.04/4-ofbiz > [java] Admin socket configured on - /127.0.0.1:10523 > > > To force the configuration load, I change this : > svn diff framework/start/src/org/ofbiz/base/start/Config.java > Index: framework/start/src/org/ofbiz/base/start/Config.java > =================================================================== > --- framework/start/src/org/ofbiz/base/start/Config.java (révision > 1362842) > +++ framework/start/src/org/ofbiz/base/start/Config.java (copie de > travail) > @@ -48,14 +48,17 @@ > } else if (command.equalsIgnoreCase("status")) { > command = "start"; > } > - return "org/ofbiz/base/start/" + command + ".properties"; > + return "framework/start/src/org/ofbiz/base/start/" + command > + ".properties"; > } > > Questions : > 1. framework/start/src/org/ofbiz/base/start/start.properties is the > good configuration file by default ? > 2. Other operating system have the same problem or not ? > > thanks, > Nicolas > |
I changed the port on mine and it works fine. Did you forget to build
the jar file after making the properties file change? -Adrian On 7/31/2012 8:02 AM, Adrian Crum wrote: > What does the console say when you start OFBiz? What file is it using? > > -Adrian > > On 7/30/2012 6:41 PM, Nicolas Malin wrote: >> Hi, >> >> I try to use configuration file introduce by issue OFBIZ-4793 >> <https://issues.apache.org/jira/browse/OFBIZ-4793> and new build >> target "start" introduce by Jacopo. >> After load my configuration on >> framework/start/src/org/ofbiz/base/start/start.properties, when I run >> "ant start" my configuration has been ignored. >> >> I set admin socket port to 10555 and : >> start: >> [java] Start.java using configuration file >> org/ofbiz/base/start/start.properties >> [java] Set OFBIZ_HOME to - /usr/local/workspace/OFBiz.12.04/4-ofbiz >> [java] Admin socket configured on - /127.0.0.1:10523 >> >> >> To force the configuration load, I change this : >> svn diff framework/start/src/org/ofbiz/base/start/Config.java >> Index: framework/start/src/org/ofbiz/base/start/Config.java >> =================================================================== >> --- framework/start/src/org/ofbiz/base/start/Config.java (révision >> 1362842) >> +++ framework/start/src/org/ofbiz/base/start/Config.java (copie de >> travail) >> @@ -48,14 +48,17 @@ >> } else if (command.equalsIgnoreCase("status")) { >> command = "start"; >> } >> - return "org/ofbiz/base/start/" + command + ".properties"; >> + return "framework/start/src/org/ofbiz/base/start/" + command >> + ".properties"; >> } >> >> Questions : >> 1. framework/start/src/org/ofbiz/base/start/start.properties is the >> good configuration file by default ? >> 2. Other operating system have the same problem or not ? >> >> thanks, >> Nicolas >> > |
Oh exactly Adrian, you solve my problem. This properties files need to
be build. Thanks for your time ! I complete the wiki and FAQ . Nicolas Le 31/07/2012 09:25, Adrian Crum a écrit : > I changed the port on mine and it works fine. Did you forget to build > the jar file after making the properties file change? > > -Adrian > > On 7/31/2012 8:02 AM, Adrian Crum wrote: >> What does the console say when you start OFBiz? What file is it using? >> >> -Adrian >> >> On 7/30/2012 6:41 PM, Nicolas Malin wrote: >>> Hi, >>> >>> I try to use configuration file introduce by issue OFBIZ-4793 >>> <https://issues.apache.org/jira/browse/OFBIZ-4793> and new build >>> target "start" introduce by Jacopo. >>> After load my configuration on >>> framework/start/src/org/ofbiz/base/start/start.properties, when I >>> run "ant start" my configuration has been ignored. >>> >>> I set admin socket port to 10555 and : >>> start: >>> [java] Start.java using configuration file >>> org/ofbiz/base/start/start.properties >>> [java] Set OFBIZ_HOME to - >>> /usr/local/workspace/OFBiz.12.04/4-ofbiz >>> [java] Admin socket configured on - /127.0.0.1:10523 >>> >>> >>> To force the configuration load, I change this : >>> svn diff framework/start/src/org/ofbiz/base/start/Config.java >>> Index: framework/start/src/org/ofbiz/base/start/Config.java >>> =================================================================== >>> --- framework/start/src/org/ofbiz/base/start/Config.java (révision >>> 1362842) >>> +++ framework/start/src/org/ofbiz/base/start/Config.java (copie de >>> travail) >>> @@ -48,14 +48,17 @@ >>> } else if (command.equalsIgnoreCase("status")) { >>> command = "start"; >>> } >>> - return "org/ofbiz/base/start/" + command + ".properties"; >>> + return "framework/start/src/org/ofbiz/base/start/" + >>> command + ".properties"; >>> } >>> >>> Questions : >>> 1. framework/start/src/org/ofbiz/base/start/start.properties is the >>> good configuration file by default ? >>> 2. Other operating system have the same problem or not ? >>> >>> thanks, >>> Nicolas >>> >> > -- Nicolas MALIN Consultant Tél : 06.17.66.40.06 Site projet : http://www.neogia.org/ ------- Société LibrenBerry Tél : 02.48.02.56.12 Site : http://www.librenberry.net/ |
Administrator
|
Thanks for the update Nicolas :o)
I completly forgot this page BTW, thank you for it Jacopo Jacques From: "Nicolas Malin" <[hidden email]> > Oh exactly Adrian, you solve my problem. This properties files need to be build. > Thanks for your time ! > > I complete the wiki and FAQ . > > Nicolas > > Le 31/07/2012 09:25, Adrian Crum a écrit : >> I changed the port on mine and it works fine. Did you forget to build the jar file after making the properties file change? >> >> -Adrian >> >> On 7/31/2012 8:02 AM, Adrian Crum wrote: >>> What does the console say when you start OFBiz? What file is it using? >>> >>> -Adrian >>> >>> On 7/30/2012 6:41 PM, Nicolas Malin wrote: >>>> Hi, >>>> >>>> I try to use configuration file introduce by issue OFBIZ-4793 <https://issues.apache.org/jira/browse/OFBIZ-4793> and new build >>>> target "start" introduce by Jacopo. >>>> After load my configuration on framework/start/src/org/ofbiz/base/start/start.properties, when I run "ant start" my >>>> configuration has been ignored. >>>> >>>> I set admin socket port to 10555 and : >>>> start: >>>> [java] Start.java using configuration file org/ofbiz/base/start/start.properties >>>> [java] Set OFBIZ_HOME to - /usr/local/workspace/OFBiz.12.04/4-ofbiz >>>> [java] Admin socket configured on - /127.0.0.1:10523 >>>> >>>> >>>> To force the configuration load, I change this : >>>> svn diff framework/start/src/org/ofbiz/base/start/Config.java >>>> Index: framework/start/src/org/ofbiz/base/start/Config.java >>>> =================================================================== >>>> --- framework/start/src/org/ofbiz/base/start/Config.java (révision 1362842) >>>> +++ framework/start/src/org/ofbiz/base/start/Config.java (copie de travail) >>>> @@ -48,14 +48,17 @@ >>>> } else if (command.equalsIgnoreCase("status")) { >>>> command = "start"; >>>> } >>>> - return "org/ofbiz/base/start/" + command + ".properties"; >>>> + return "framework/start/src/org/ofbiz/base/start/" + command + ".properties"; >>>> } >>>> >>>> Questions : >>>> 1. framework/start/src/org/ofbiz/base/start/start.properties is the good configuration file by default ? >>>> 2. Other operating system have the same problem or not ? >>>> >>>> thanks, >>>> Nicolas >>>> >>> >> > > > -- > Nicolas MALIN > Consultant > Tél : 06.17.66.40.06 > Site projet : http://www.neogia.org/ > ------- > Société LibrenBerry > Tél : 02.48.02.56.12 > Site : http://www.librenberry.net/ > |
Free forum by Nabble | Edit this page |