Re: running OFBiz inside JBoss For Microsoft windows OS
Refer http://www.nabble.com/How-to-integrate-ofbiz-in-JBoss-to25676607.html Jitender wrote: > > anyone please provide the steps to run ofbiz using JBOSS 4.2.2 > > ASAP > wating for reply > Thanks. > Jitender > > - > > Nattanicha R. wrote: >> >> I tried to config ofbiz to run inside JBoss 4.2.2. I did follow this link >> http://docs.ofbiz.org/display/OFBTECH/JBoss+4.2.2. But there are many >> errors >> about "command not found". How can I fix this? >> >> This is log file >> - >> $./deploy.sh >> removed META-INF >> removed libs >> removed wars >> ./deploy.sh: line 43: patch: command not found >> created entityengine-jboss.xml >> moved D:/natty_work/ofbiz691890/framework/base/config/log4j.xml >> moved D:/natty_work/ofbiz691890/framework/base/config/jndi.properties >> installed ofbiz libraries >> ./deploy.sh: line 169: jar: command not found >> ./deploy.sh: line 170: jar: command not found >> ./deploy.sh: line 171: jar: command not found >> ./deploy.sh: line 172: jar: command not found >> ... >> .. >> . >> packaged and installed ofbiz configuration directories >> linked webapp directories >> installed application.xml >> updated bsh.jar >> fixed D:/natty_work/ofbiz691890/framework/base/config/log4j.xml >> fixed D:/natty_work/ofbiz691890/framework/base/config/jndi.properties >> -- >> >> Nattanicha Rittammanart (Programmer) >> Haadthip Public Company Limited >> Haadyai, Songkhla >> >> Master of Science (Software Engineering) >> Shool of Engineering and Technology >> Asian Institute of Technology >> P.O. Box 4, Klongluang, Pathumthani >> - >> nattani...@haadthip.com >> nattani...@gmail.com >> >> > > -- View this message in context: http://www.nabble.com/running-OFBiz-inside-JBoss-tp19365823p25693437.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: How to integrate ofbiz in JBoss
Hi, 1.) Using 8080 port you can access ecommerce module and to access other modules use 8443 port . for eg:- http://localhost:8080/ecommerce/control/main https://localhost:8443/ordermgr/control/main 2.) set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=C:\JBoss-Ofbiz\ofbiz is correct. __
Re: How to integrate ofbiz in JBoss
hi Arun, I downloaded JBoss 4.2.2GA,I followed your steps as you mailed. I started JBoss Server also,But I do not no how to open Ofbiz link. Which Port number i have type in address bar in browser. JBoss server running in 8080 port, your mentioned in 12th 8443. which port i have to specific in address bar in browser. in run.bat i copied as u given 11th set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=C:\JBoss-Ofbiz\ofbiz is this correct way to specific ofbiz home location. i am waiting your reply,thanks in advance... On Wed, Sep 30, 2009 at 6:07 PM, Gnanashankar Shanmugam < gn...@formativesolutions.co.in> wrote: > thanks lot arun..i will try in JBoss4.2.2GA..thanks your help.. > > > On Wed, Sep 30, 2009 at 5:55 PM, Arun Mehta wrote: > >> >> Hi, >> I have integrated ofbiz in JBOSS 4.2.2 and steps that I have mentioned >> are >> for JBOSS 4.2.2. It may be possible that in JBOSS 5.1.0 , the >> configuration >> settings are different. >> >> >> Arun Mehta wrote: >> > >> > Hi, >> > You can write the below line, >> > set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME >> > >> > after this, >> > rem With Sun JVMs reduce the RMI GCs to once per hour >> > rem set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=360 >> > -Dsun.rmi.dgc.server.gcInterval=360 >> > >> > note:- OFBIZ_HOME is the location where ofbiz is placed. >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > GNANASHANKAR wrote: >> >> >> >> hi arun, i followed your steps..after running JBoss i am getting below >> >> error.. >> >> >> >> DEPLOYMENTS IN ERROR: >> >> Deployment "vfsfile:/C:/Apps/JBoss/ >> >> jboss-5.1.0.GA/server/default/deploy/ofbiz. >> >> ear/" is in error due to the following reason(s): >> >> org.xml.sax.SAXException: >> >> The >> >> content of element type "web-app" must match >> >> "(icon?,display-name?,description?, >> >> >> distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet >> >> >> -mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,r >> >> >> esource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role* >> >> ,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/C:/Apps/JBoss/ >> >> jboss-5.1.0.GA/s >> >> erver/default/deploy/ofbiz.ear/webtools.war/WEB-INF/web.xml[169,11] >> >> Deployment "WebServer" is in error due to the following reason(s): >> >> LifecycleEx >> >> ception: Protocol handler initialization failed: >> >> java.io.FileNotFoundException: >> >> path (The system cannot find the file specified) >> >> Deployment "jboss.web:service=WebServer" is in error due to the >> >> following >> >> reas >> >> on(s): ** NOT FOUND Depends on 'jboss.web:service=WebServer' ** >> >> >> >> 16:32:44,812 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA(build: >> >> SVNTag= >> >> JBoss_5_1_0_GA date=200905221053)] Started in 1m:234ms >> >> >> >> in 11th step run.bat file where i have to copy the below line >> >> >> >> set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver >> >> set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME >> >> >> >> in 11th step your given comment the below line, >> >> >> >>rem set JAVA_OPTS=%JAVA_OPTS% >> >> -Dsun.rmi.dgc.client.gcInterval=360 >> >> -Dsun.rmi.dgc.server.gcInterval=360 >> >> >> >> >> >> >> >> >> >> On Wed, Sep 30, 2009 at 3:56 PM, Arun Mehta >> >> wrote: >> >> >> >>> >> >>> Hi, >> >>> You must have Apache Ant 1.7.0 and set the environmental variables >> >>> CLASS_PATH and PATH. >> >>> Type 'ant' on the command prompt (from >> >>> JBOSS_HOME\server\default\deploy\ofbiz.ear). >> >> >> >> >> >>> >> >>> GNANASHANKAR wrote: >> >>> > >> >>> > hi arun, >> >>> >i followed u steps up to 9. In the 10th steps, >> >>> > >> >>> >10. From JBOSS_HOME\server\default\deploy\ofbiz.ear location, run >> >>> > ant command >> >>> > >> >>> > can you tell the command to run the ant. >> >>> > >> >>> > On Wed, Sep 30, 2009 at 2:08 PM, >> wrote: >> >>> > >> >>> >> Steps to Integrate JBOSS in OFBiz on WINDOWS platform >> >>> >> >> >>> >> 1. Download the latest OFBiz from the Apache site and unzip >> it. >> >>> >> 2. Compile the application and build the derby database by >> >>> running >> >>> >> the command ?ant run-install?. >> >>> >> 3. Change the value of disable.log4j.config from false to true >> >>> in >> >>> >> debug.properties >> >>> >>(OFBiz_HOME\framework\base\config\debug.properties). >> >>> >>disable.log4j.config = true >> >>> >> >> >>> >> 4. Download the JBOSS (jboss-4.2.2.GA) and unzip it. >> >>> >> 5. The JBOSS templates are included in the directory >> >>> >>OFBiz_HOME\framework\appserver\templates\jboss422 >> >>> >> >> >>> >> 6. Run the following command from the OFBiz directory: >> >>> >>java ?jar ofbiz.jar ?setup jboss422 >> >>> >> >> >>> >> 7. When this command finishes, a new directory will be created >> >>> in >> >>> >> the >> >>> >> ofbiz home directory called 'setup'. Inside this directory will be >> >>> >> subd
Re: Error while converting string to int
Hi Shuchi, This not seems to be the error of parsing. Look at this again :- Target exception: java.lang.IndexOutOfBoundsException: index: 0 for list of size: 0 It shows that you accessing first index of any arraylist of size 0. Also I would like to confirm u have myString as a array of String or a single String object. (I have a String - which has _*numbers*_ stored) Please use log messages to trace where the exact problem is coming and post it again. Regards -- Chirag Manocha HotWax Media Pvt. Ltd. Website :- www.hotwaxmedia.com Contact :- +91-98263-19099 su2 wrote: Hello Friends, I have a java function, where I have a String - which has numbers stored as string. When I "return" the string as a String, it prints perfectly fine. But I need to do some math-data manipulation with those string numbers. When I try to convert the string into int (int a = Integer.parseInt(myString);), it gives me following error in log file --- BSH Evaluation error. Exception: bsh.TargetError Message: Sourced file: inline evaluation of: ``com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal(delega . . . '' : Method Invocation com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal stack trace --- Sourced file: inline evaluation of: ``com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal(delega . . . '' : Method Invocation com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal : at Line: 1 : in file: inline evaluation of: ``com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal(delega . . . '' : com .opensourcestrategies .financials .reports .ReportHelper .getOrderSubTotal ( delegator , OTCMOrderNo ) Target exception: java.lang.IndexOutOfBoundsException: index: 0 for list of size: 0 bsh.BSHMethodInvocation.eval(Unknown Source) bsh.BSHPrimaryExpression.eval(Unknown Source) bsh.BSHPrimaryExpression.eval(Unknown Source) bsh.Interpreter.evalParsedScript(Unknown Source) bsh.Interpreter.eval(Unknown Source) bsh.Interpreter.eval(Unknown Source) bsh.Interpreter.eval(Unknown Source) org.ofbiz.base.util.BshUtil.eval(BshUtil.java:77) --- I was not able to understand the error. I really appreciate the help. Thank you in advance. su-
Relation with other modules while creating security group
Dear All, I got a requirement to create a user called FACILITYADMIN, so that he can access only the screens of facility module in OFBiz, i have created a security group with permissions of FACILITY_CREATE FACILITY_DELETE FACILITY_UPDATE FACILITY_VIEW And i have added that to the user, but i am getting an error: Unable to login. I have seen in console.log, there is no error messages. When i add an another security group of CATALOG_ADMIN for the user(FACILITYADMIN), i am able to login successfully. My query is, when i create a user with particular module access, can i need to give access to the dependency module also. Please clarify my issue. Waiting for your replies. Thanks and Regards, Naveen Chanda -- View this message in context: http://www.nabble.com/Relation-with-other-modules-while-creating-security-group-tp25692975p25692975.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Final order amount dependent on several dependent taxes.
Any suggestions on this... Thanks. On Tue, Sep 29, 2009 at 7:51 PM, aswath narayana wrote: > Hello, > I am looking to configure the following. I tried looking into > TaxAuthorityAssoc, but did not understand completely. How can I add one > taxauthority dependent on another taxauthority. > > There are 4 taxes for the Order amount = 10,000 > 1) Excise duty - 8% of order amount = 800 > 2) Cess - 2% on Excise duty = 16 > 3) Higher Cess - 1% of Excise duty = 8 > > sub total = 10,824 > 4) Add VAT (4% on subtotal) = 432 > Final Total =11,256 > > Thanks, > -Aswath > >
To Delete UOM Currency in Dropdown List
Hi I want to delete UOM Currency in Dropdown List, I Cant delete EUR & USD.. In CurrenyData.xml I deleted all the Data Exept INR... I cant delete EUR & USD in web tools entity Is there is any other way -- Thanks in Advance, Prabhakaran.D +91 99 520 93 900
Re: Error on Financial Account Transactions screen
Sharan, I have fixed this issue in r820509. Please test and let us know if problem persists. Regards Anil Patel On Sep 30, 2009, at 9:13 PM, Sharan-F wrote: Hi I've just come across this long error message (see below) on the demo.ofbiz.org online trunk version 820206. This message is appearing in the Find Financial Account Transactions screen (FindFinAccountTrans). Steps to duplicate are as follows: 1. Enter a Sales Order for DemoCustomer using product FA-001 (Account Activation) 2. Create the Sales order 3. In Order Manager 'Receive Payment' for the order (I used cash) 4. A Financial Account of type 'Customer Balance Account' will be created for DemoCustomer under the Accounting/Financial Accounts/Find Financial Accounts tab. 5. Navigate to the Accounting/Financial Accounts/Find Financial Accounts tab 6. Select the newly created Financial Account for DemoCustomer from the list 7. Select the 'Transactions' tab 8. Press the 'Search' button and the error message is displayed. Note that this error message is not displayed if the Financial Account Type is a one of the demo bank accounts so I think this has something to do with the newly implemented functionality for bank accounts that uses financial accounts. I've done this test using the online demo 9.04 version 819460 and this error message doesnt appear at all. The new bank account functionality that uses financial accounts is not implemented in 9.04. I'll create a Jira with all this information. Thanks Sharan Expression finAccount.postToGlAccountId is undefined on line 98, column 93 in component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl . The problematic instruction: -- ==> assignment: glReconciliations=delegator.findByAnd("GlReconciliation", {"glAccountId" : finAccount.postToGlAccountId, "statusId" : "GLREC_CREATED"}, Static["org.ofbiz.base.util.UtilMisc"].toList("reconciledDate DESC")) [on line 98, column 7 in component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl] -- Java backtrace for programmers: -- freemarker.core.InvalidReferenceException: Expression finAccount.postToGlAccountId is undefined on line 98, column 93 in component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl . at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java: 124) at freemarker.core.HashLiteral$SequenceHash.(HashLiteral.java:132) at freemarker.core.HashLiteral._getAsTemplateModel(HashLiteral.java:72) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.ListLiteral.getModelList(ListLiteral.java:125) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:89) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.Assignment.accept(Assignment.java:90) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.IfBlock.accept(IfBlock.java:82) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.Environment.process(Environment.java:189) at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate (FreeMarkerWorker.java:205) at org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate (HtmlWidget.java:205) at org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString (HtmlWidget.java:250) at org.ofbiz.widget.screen.HtmlWidget.renderWidgetString (HtmlWidget.java:110) at org.ofbiz.widget.screen.ModelScreenWidget $PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1043) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString (ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget $DecoratorSection.renderWidgetString(ModelScreenWidget.java:733) at org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render (ModelScreenWidget.java:210) at org.ofbiz.widget.screen.ModelScreenWidget $DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java: 765) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString (ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget $Container.renderWidgetString(ModelScreenWidget.java:339) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString (ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget $Container.renderWidgetString(ModelScreenWidget.java:339) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString (ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString (ModelScreenWidget.java:271) at org.ofbiz.widget.screen.ModelScreen.renderScreenString (ModelScreen.java:393) at org.ofbiz.widget.screen.ModelScreenWidget $DecoratorScreen.renderWidgetSt
Error on Financial Account Transactions screen
Hi I've just come across this long error message (see below) on the demo.ofbiz.org online trunk version 820206. This message is appearing in the Find Financial Account Transactions screen (FindFinAccountTrans). Steps to duplicate are as follows: 1. Enter a Sales Order for DemoCustomer using product FA-001 (Account Activation) 2. Create the Sales order 3. In Order Manager 'Receive Payment' for the order (I used cash) 4. A Financial Account of type 'Customer Balance Account' will be created for DemoCustomer under the Accounting/Financial Accounts/Find Financial Accounts tab. 5. Navigate to the Accounting/Financial Accounts/Find Financial Accounts tab 6. Select the newly created Financial Account for DemoCustomer from the list 7. Select the 'Transactions' tab 8. Press the 'Search' button and the error message is displayed. Note that this error message is not displayed if the Financial Account Type is a one of the demo bank accounts so I think this has something to do with the newly implemented functionality for bank accounts that uses financial accounts. I've done this test using the online demo 9.04 version 819460 and this error message doesnt appear at all. The new bank account functionality that uses financial accounts is not implemented in 9.04. I'll create a Jira with all this information. Thanks Sharan Expression finAccount.postToGlAccountId is undefined on line 98, column 93 in component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl. The problematic instruction: -- ==> assignment: glReconciliations=delegator.findByAnd("GlReconciliation", {"glAccountId" : finAccount.postToGlAccountId, "statusId" : "GLREC_CREATED"}, Static["org.ofbiz.base.util.UtilMisc"].toList("reconciledDate DESC")) [on line 98, column 7 in component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl] -- Java backtrace for programmers: -- freemarker.core.InvalidReferenceException: Expression finAccount.postToGlAccountId is undefined on line 98, column 93 in component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124) at freemarker.core.HashLiteral$SequenceHash.(HashLiteral.java:132) at freemarker.core.HashLiteral._getAsTemplateModel(HashLiteral.java:72) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.ListLiteral.getModelList(ListLiteral.java:125) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:89) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.Assignment.accept(Assignment.java:90) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.IfBlock.accept(IfBlock.java:82) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.Environment.process(Environment.java:189) at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:205) at org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205) at org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250) at org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110) at org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1043) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:733) at org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:210) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:765) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:339) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:339) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:271) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:701) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:733) at org.ofbiz.widget.
Error while converting string to int
Hello Friends, I have a java function, where I have a String - which has numbers stored as string. When I "return" the string as a String, it prints perfectly fine. But I need to do some math-data manipulation with those string numbers. When I try to convert the string into int (int a = Integer.parseInt(myString);), it gives me following error in log file --- BSH Evaluation error. Exception: bsh.TargetError Message: Sourced file: inline evaluation of: ``com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal(delega . . . '' : Method Invocation com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal stack trace --- Sourced file: inline evaluation of: ``com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal(delega . . . '' : Method Invocation com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal : at Line: 1 : in file: inline evaluation of: ``com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal(delega . . . '' : com .opensourcestrategies .financials .reports .ReportHelper .getOrderSubTotal ( delegator , OTCMOrderNo ) Target exception: java.lang.IndexOutOfBoundsException: index: 0 for list of size: 0 bsh.BSHMethodInvocation.eval(Unknown Source) bsh.BSHPrimaryExpression.eval(Unknown Source) bsh.BSHPrimaryExpression.eval(Unknown Source) bsh.Interpreter.evalParsedScript(Unknown Source) bsh.Interpreter.eval(Unknown Source) bsh.Interpreter.eval(Unknown Source) bsh.Interpreter.eval(Unknown Source) org.ofbiz.base.util.BshUtil.eval(BshUtil.java:77) --- I was not able to understand the error. I really appreciate the help. Thank you in advance. su- -- View this message in context: http://www.nabble.com/Error-while-converting-string-to-int-tp25686534p25686534.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: How to get value from the delegator object declared as list which has only one value?
Hi Bob, I was trying to follow your suggestion (my function name is getOrderSubTotal1) and I am getting some errors. 1) The method makeCondition(Map) is undefined for the type EntityCondition I added following method in GenericDelegater.java to resolve the error. public List findList(String string, EntityCondition condition, Object object, Object object2, Object object3, boolean b) { // TODO Auto-generated method stub return null; } 2) The method findList(String, EntityCondition, null, null, null, boolean) is undefined for the type GenericDelegator I added following method to EntityCondition.java to resolve the error. public static EntityCondition makeCondition(Map map) { // TODO Auto-generated method stub return null; } 3) After resolving above errors. After compiling and restarting the system, in Log file I get following error. Error evaluating BSH scriplet [com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal1(delegator, OTCMOrderNo)], inserting nothing; error was: Sourced file: inline evaluation of: ``com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal1(deleg . . . '' : Method Invocation com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal1 : at Line: 1 : in file: inline evaluation of: ``com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal1(deleg . . . '' : com .opensourcestrategies .financials .reports .ReportHelper .getOrderSubTotal1 ( delegator , OTCMOrderNo ) Target exception: java.lang.NullPointerException Exception: bsh.TargetError Message: Sourced file: inline evaluation of: ``com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal1(deleg . . . '' : Method Invocation com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal1 Do you know, what wrong is in my code? Thank you for the help. Su- Bob Morley wrote: > > > > Hey Su, > > Here is how I would code the method: > > public static BigDecimal getOrderSubTotal(GenericDelegator > delegator, String OTCMOrderNo) { > BigDecimal subTotal = BigDecimal.ZERO; > try { > EntityCondition condition = EntityCondition.makeCondition( > UtilMisc.toMap("OTCMOrderNo", OTCMOrderNo, > "OTCMAdjustmentAmountType", "SHIPPING_CHARGES", "OTCMContactType", > "SHIPPING_LOCATION")); > List subTotals = > delegator.findList("OrderAndTaxByCounty", condition, null, null, null, > false); > if (subTotals.size() > 0) { > GenericValue subTotalEntity = subTotals.get(0); > subTotal = > subTotalEntity.getBigDecimal("OTCMOrderSubTotal"); > } > } catch (GenericEntityException e) { > Debug.logError(e, "Error finding OrderAndTaxByCounty in > getPartyName", module); > } > > return subTotal; > } > > I did not test this, but the key point is that the findList is used > (instead of findCondition which is depreciated). It returns a list > (as someone else had pointed out) so we check the size to ensure we > have at least one result, and then get the first GenericEntity and > form it get your field (OTCMOrderSubTotal). Usually numbers in the > system are BigDecimal so I found it interesting that in your view- > entity you have it come up as a double. You could certainly change > this code to use the double; but I would look at possibly changing to > a BigDecimal because I am guessing that the underlying entities that > your v-e is based on use that data type. > > > On Sep 30, 2009, at 8:47 AM, su2 wrote: > >> >> Thanks Bob for the response. >> >> Yes, You are correct, the "delegator.findByCondition" returns a >> GenericEntity. >> >> I think subTotalObject.get("OTCMOrderSubTotal") will not help me >> as .get(int >> index) - it takes only int index. That is where I am stuck, as I am >> not sure >> how can I directly reference my desired value. >> >> It would be helpful if you can share the idea. >> >> Thank you. >> Su- >> >> >> Bob Morley wrote: >>> >>> This line will return a GenericEntity, not the single selected field: >>> subTotalObject = delegator.findByCondition >>> >>> Change the bottom of your method to something like... >>> >>> String subTotal = String.valueOf(subTotalObject.get >>> ("OTCMOrderSubTotal")); >>> >>> Bob >>> >>> On 2009-09-29, at 11:03 PM, su2 wrote: >>> Hello Friends, I have created following java function with delegator. --- --- -- public static String getOrderSubTotal(GenericDelegator delegator, String OTCMOrderNo) { List subTotalO
Re: How to get value from the delegator object declared as list which has only one value?
Hey Su, Here is how I would code the method: public static BigDecimal getOrderSubTotal(GenericDelegator delegator, String OTCMOrderNo) { BigDecimal subTotal = BigDecimal.ZERO; try { EntityCondition condition = EntityCondition.makeCondition( UtilMisc.toMap("OTCMOrderNo", OTCMOrderNo, "OTCMAdjustmentAmountType", "SHIPPING_CHARGES", "OTCMContactType", "SHIPPING_LOCATION")); List subTotals = delegator.findList("OrderAndTaxByCounty", condition, null, null, null, false); if (subTotals.size() > 0) { GenericValue subTotalEntity = subTotals.get(0); subTotal = subTotalEntity.getBigDecimal("OTCMOrderSubTotal"); } } catch (GenericEntityException e) { Debug.logError(e, "Error finding OrderAndTaxByCounty in getPartyName", module); } return subTotal; } I did not test this, but the key point is that the findList is used (instead of findCondition which is depreciated). It returns a list (as someone else had pointed out) so we check the size to ensure we have at least one result, and then get the first GenericEntity and form it get your field (OTCMOrderSubTotal). Usually numbers in the system are BigDecimal so I found it interesting that in your view- entity you have it come up as a double. You could certainly change this code to use the double; but I would look at possibly changing to a BigDecimal because I am guessing that the underlying entities that your v-e is based on use that data type. On Sep 30, 2009, at 8:47 AM, su2 wrote: Thanks Bob for the response. Yes, You are correct, the "delegator.findByCondition" returns a GenericEntity. I think subTotalObject.get("OTCMOrderSubTotal") will not help me as .get(int index) - it takes only int index. That is where I am stuck, as I am not sure how can I directly reference my desired value. It would be helpful if you can share the idea. Thank you. Su- Bob Morley wrote: This line will return a GenericEntity, not the single selected field: subTotalObject = delegator.findByCondition Change the bottom of your method to something like... String subTotal = String.valueOf(subTotalObject.get ("OTCMOrderSubTotal")); Bob On 2009-09-29, at 11:03 PM, su2 wrote: Hello Friends, I have created following java function with delegator. --- --- -- public static String getOrderSubTotal(GenericDelegator delegator, String OTCMOrderNo) { List subTotalObject = null; try { List fieldsToSelect = UtilMisc.toList ("OTCMOrderSubTotal"); EntityConditionList whereConditions = new EntityConditionList(UtilMisc.toList( new EntityExpr("OTCMOrderNo", EntityOperator.EQUALS, OTCMOrderNo), new EntityExpr("OTCMAdjustmentAmountType", EntityOperator.EQUALS, "SHIPPING_CHARGES"), new EntityExpr("OTCMContactType", EntityOperator.EQUALS, "SHIPPING_LOCATION") ), EntityOperator.AND); subTotalObject = delegator.findByCondition ("OrderAndTaxByCounty", whereConditions, null, fieldsToSelect, null, null); } catch (GenericEntityException e) { Debug.logError(e, "Error finding OrderAndTaxByCounty in getPartyName", module); } String subTotal = String.valueOf(subTotalObject); return subTotal; } --- --- --- --- --- -- I am trying to call this java function in Form widget with delegator, OTCMOrderNo)}"/> The "return Subtotal" in my java class prints --- --- --- --- --- -- [[GenericEntity:OrderAndTaxByCounty][OTCMOrderSubTotal,104.85 (java.lang.Double)]] --- --- --- --- --- -- I need to just print 104.85. Is there anyway to just get that part ? As you can see it is printing lot of extra stuff. -- View this message in context: http://www.nabble.com/How-to-get-value-from-the-delegator-object-declared-as-list-which-has-only-one-value--tp25674270p25674270.html Sent from the OFBiz - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/How-to-get-value-from-the-delegator-object-declared-as-list-which-has-only-one-value--tp25674270p25680328.html Sent from the OFBiz - User mailing list archive at Nabble.com. Robert Morley Software Developer Emforium Group Inc. ALL-IN Software™ 519-772-6824 ext 220 rmor...@emforium.com
Re: gatewayMessage should be pgrMessage in savePaymentGatewayResponse
Patch resubmitted On Wed, Sep 30, 2009 at 7:52 PM, Abdullah Shaikh < abdullah.sha...@viithiisys.com> wrote: > I have changed the service definition to include paymentGatewayRespMsg as > parameter and checked which parameter has been passed as per your > suggestion. Also changed the calling code where paymentGatewayRespMsg is > being passed, now instead of savePgr it will call savePgrMessage, as we > could not decided which parameter is passed in savePgr, I have created this > separate method, savePgrMessage. > > I will submit the patch when jira is up. > > > > On Wed, Sep 30, 2009 at 2:07 PM, Scott Gray wrote: > >> You could use the same service I guess since it's only real function is to >> save a generic value. I would change the service definition though so that >> there is a separate input attribute for a paymentGatewayResponseMsg and >> instead of checking checking the entity name just check which attribute has >> been passed in, I think this will be clearer for people looking at the code. >> >> Regards >> Scott >> >> >> On 30/09/2009, at 9:30 PM, Abdullah Shaikh wrote: >> >> Scott, >>> >>> Should we then have a separate service for saving >>> PaymentGatewayResponseMsgs >>> or should we have a condition in savePaymentGatewayResponse, which will >>> check the entity name (genericvalue.getEntityName()), and decided on the >>> field mapping ? >>> >>> >>> On Wed, Sep 30, 2009 at 1:56 PM, Abdullah Shaikh < >>> abdullah.sha...@viithiisys.com> wrote: >>> >>> The savePgr method of PaymentGatewayServices, is called from multiple places, this method expects 2 parameters, DispatchContext & GenericValue, but the issue is the calling methods which calls savePgr methods passes PaymentGatewayResponse in some places and PaymentGatewayRespMsg in some places. The savePgr method in turn calls savePaymentGatewayResponse service. I guess we need to have one more method which will work if PaymentGatewayRespMsg as GenericValue is passed or may be a condition based on the entity name which we can get from the GenericValue ? Any other thoughts ? On Wed, Sep 30, 2009 at 1:54 PM, Scott Gray >>> >wrote: You are right Abdullah, it looks the like the code calling the service > is > attempting to use it for saving both PaymentGatewayResponses and > PaymentGatewayResponseMsgs, but it is only capable of handling the > former. > The fix I think would be to have a separate service for saving > PaymentGatewayResponseMsgs and have the calling code use that where > needed. > > Regards > Scott > > > On 30/09/2009, at 8:52 PM, Abdullah Shaikh wrote: > > Hi Scott, > >> >> Yes, PaymentGatewayResponse does have a field called gatewayMessage, >> but >> the >> GenericValue we are getting from the context is of >> PaymentGatewayRespMsg. >> >> There can be two cases here: >> >> 1) Either the GenericValue that we are getting from the context should >> be >> of >> type PaymentGatewayResponse, which currently is PaymentGatewayRespMsg >> >> or >> >> 2) The field name should be changed as I mentioned earlier. >> >> Below is the error that I was getting that lead me to this issue : >> >> exception report >> -- >> [java] Service [savePaymentGatewayResponse] threw an unexpected >> exception/error >> [java] Exception: org.ofbiz.service.GenericServiceException >> [java] Message: Service [savePaymentGatewayResponse] target threw an >> unexpected exception ([GenericEntity.get] "gatewayMessage" is not a >> field >> of >> PaymentGatewayRespMsg) >> [java] cause >> - >> [java] Exception: java.lang.IllegalArgumentException >> [java] Message: [GenericEntity.get] "gatewayMessage" is not a field >> of >> PaymentGatewayRespMsg >> [java] stack trace >> --- >> [java] java.lang.IllegalArgumentException: [GenericEntity.get] >> "gatewayMessage" is not a field of PaymentGatewayRespMsg >> [java] org.ofbiz.entity.GenericEntity.get(GenericEntity.java:305) >> [java] >> org.ofbiz.entity.GenericEntity.getString(GenericEntity.java:582) >> [java] >> >> >> org.ofbiz.accounting.payment.PaymentGatewayServices.savePaymentGatewayResponse(PaymentGatewayServices.java:2850) >> >> >> On Wed, Sep 30, 2009 at 12:07 PM, Abdullah Shaikh < >> abdullah.sha...@viithiisys.com> wrote: >> >> Jira issue created and patch attached, >> >>> https://issues.apache.org/jira/browse/OFBIZ-2978 >>> >>> >>> On Wed, Sep 30, 2009 at 2:07 AM, Scott Gray < >>> scott.g...@hotwaxmedia.com >>> wrote: >
Automation of invoice generation in Paypal
Hi, I have a new requirement of integrating automation of invoice generation to customer from Ofbiz. Our scenario is when a customer wants to pay amount with invoice, we have to go to Paypal and fill all the details and send invoices to the customer.Is there any way where we can automate this process from Ofbiz i.e instead of going to Paypal web site can we send it from Ofbiz to request Paypal for sending invoices? Please update me and any help would be appreciated Thanks in advance. Regards, Karthik
Re: gatewayMessage should be pgrMessage in savePaymentGatewayResponse
I have changed the service definition to include paymentGatewayRespMsg as parameter and checked which parameter has been passed as per your suggestion. Also changed the calling code where paymentGatewayRespMsg is being passed, now instead of savePgr it will call savePgrMessage, as we could not decided which parameter is passed in savePgr, I have created this separate method, savePgrMessage. I will submit the patch when jira is up. On Wed, Sep 30, 2009 at 2:07 PM, Scott Gray wrote: > You could use the same service I guess since it's only real function is to > save a generic value. I would change the service definition though so that > there is a separate input attribute for a paymentGatewayResponseMsg and > instead of checking checking the entity name just check which attribute has > been passed in, I think this will be clearer for people looking at the code. > > Regards > Scott > > > On 30/09/2009, at 9:30 PM, Abdullah Shaikh wrote: > > Scott, >> >> Should we then have a separate service for saving >> PaymentGatewayResponseMsgs >> or should we have a condition in savePaymentGatewayResponse, which will >> check the entity name (genericvalue.getEntityName()), and decided on the >> field mapping ? >> >> >> On Wed, Sep 30, 2009 at 1:56 PM, Abdullah Shaikh < >> abdullah.sha...@viithiisys.com> wrote: >> >> The savePgr method of PaymentGatewayServices, is called from multiple >>> places, this method expects 2 parameters, DispatchContext & GenericValue, >>> but the issue is the calling methods which calls savePgr methods passes >>> PaymentGatewayResponse in some places and PaymentGatewayRespMsg in some >>> places. >>> >>> The savePgr method in turn calls savePaymentGatewayResponse service. >>> >>> I guess we need to have one more method which will work if >>> PaymentGatewayRespMsg as GenericValue is passed or may be a condition >>> based >>> on the entity name which we can get from the GenericValue ? >>> >>> Any other thoughts ? >>> >>> On Wed, Sep 30, 2009 at 1:54 PM, Scott Gray >> >wrote: >>> >>> You are right Abdullah, it looks the like the code calling the service is attempting to use it for saving both PaymentGatewayResponses and PaymentGatewayResponseMsgs, but it is only capable of handling the former. The fix I think would be to have a separate service for saving PaymentGatewayResponseMsgs and have the calling code use that where needed. Regards Scott On 30/09/2009, at 8:52 PM, Abdullah Shaikh wrote: Hi Scott, > > Yes, PaymentGatewayResponse does have a field called gatewayMessage, > but > the > GenericValue we are getting from the context is of > PaymentGatewayRespMsg. > > There can be two cases here: > > 1) Either the GenericValue that we are getting from the context should > be > of > type PaymentGatewayResponse, which currently is PaymentGatewayRespMsg > > or > > 2) The field name should be changed as I mentioned earlier. > > Below is the error that I was getting that lead me to this issue : > > exception report > -- > [java] Service [savePaymentGatewayResponse] threw an unexpected > exception/error > [java] Exception: org.ofbiz.service.GenericServiceException > [java] Message: Service [savePaymentGatewayResponse] target threw an > unexpected exception ([GenericEntity.get] "gatewayMessage" is not a > field > of > PaymentGatewayRespMsg) > [java] cause > - > [java] Exception: java.lang.IllegalArgumentException > [java] Message: [GenericEntity.get] "gatewayMessage" is not a field of > PaymentGatewayRespMsg > [java] stack trace > --- > [java] java.lang.IllegalArgumentException: [GenericEntity.get] > "gatewayMessage" is not a field of PaymentGatewayRespMsg > [java] org.ofbiz.entity.GenericEntity.get(GenericEntity.java:305) > [java] > org.ofbiz.entity.GenericEntity.getString(GenericEntity.java:582) > [java] > > > org.ofbiz.accounting.payment.PaymentGatewayServices.savePaymentGatewayResponse(PaymentGatewayServices.java:2850) > > > On Wed, Sep 30, 2009 at 12:07 PM, Abdullah Shaikh < > abdullah.sha...@viithiisys.com> wrote: > > Jira issue created and patch attached, > >> https://issues.apache.org/jira/browse/OFBIZ-2978 >> >> >> On Wed, Sep 30, 2009 at 2:07 AM, Scott Gray < >> scott.g...@hotwaxmedia.com >> >>> wrote: >>> >> >> Yes please >> >>> >>> Regards >>> Scott >>> >>> >>> On 30/09/2009, at 1:45 AM, Abdullah Shaikh wrote: >>> >>> Should I submit the patch ? >>> >>> On Tue, Sep 29, 2009 at 4:00 PM, Abdullah Shaikh < >
Re: How to get value from the delegator object declared as list which has only one value?
Hi Sumit, I tried the code. But I am getting error. Error says that to use "orderAndTaxByCounty = subTotalObject.get(0)", orderAndTaxByCounty should be defined as object and orderAndTaxByCounty.get("OTCMOrderSubTotal") is not allowed with the object. Sorry, If I am misunderstanding the code. Thank you. Su- Sumit Pandit-3 wrote: > > Su, > It is very simple - it is to fetch the field from the map which is in > a list. I already wrote the code in previous mail. Follow that code > and get the data. > > Regards > Sumit Pandit > On 30-Sep-09, at 6:19 PM, su2 wrote: > >> >> Hi Sumit, >> >> Yes it returns 1 item but its in GenericEntity >> ([[GenericEntity:OrderAndTaxByCounty][OTCMOrderSubTotal, >> 104.85(java.lang.Double)]]) format. I am not sure how to directly >> refer/get >> my desired value. >> >> Let me know if you have any idea. >> >> Thank you. >> Su- >> >> Sumit Pandit-3 wrote: >>> >>> Hi Su, >>> >>> Look at the "findByCondition" method, it returns a list, if you are >>> sure that this list contains only one item then you can get it from >>> orderAndTaxByCounty = subTotalObject.get(0) and then >>> return( orderAndTaxByCounty.get("OTCMOrderSubTotal")) would work for >>> you. >>> >>> -- >>> Regards >>> Sumit Pandit >>> >>> On 30-Sep-09, at 8:33 AM, su2 wrote: >>> Hello Friends, I have created following java function with delegator. public static String getOrderSubTotal(GenericDelegator delegator, String OTCMOrderNo) { List subTotalObject = null; try { List fieldsToSelect = UtilMisc.toList("OTCMOrderSubTotal"); EntityConditionList whereConditions = new EntityConditionList(UtilMisc.toList( new EntityExpr("OTCMOrderNo", EntityOperator.EQUALS, OTCMOrderNo), new EntityExpr("OTCMAdjustmentAmountType", EntityOperator.EQUALS, "SHIPPING_CHARGES"), new EntityExpr("OTCMContactType", EntityOperator.EQUALS, "SHIPPING_LOCATION") ), EntityOperator.AND); subTotalObject = delegator.findByCondition("OrderAndTaxByCounty", whereConditions, null, fieldsToSelect, null, null); } catch (GenericEntityException e) { Debug.logError(e, "Error finding OrderAndTaxByCounty in getPartyName", module); } String subTotal = String.valueOf(subTotalObject); return subTotal; } - I am trying to call this java function in Form widget with >>> description="$ {bsh:com .opensourcestrategies .financials.reports.ReportHelper.getOrderSubTotal(delegator, OTCMOrderNo)}"/> The "return Subtotal" in my java class prints - [[GenericEntity:OrderAndTaxByCounty][OTCMOrderSubTotal, 104.85(java.lang.Double)]] - I need to just print 104.85. Is there anyway to just get that part ? As you can see it is printing lot of extra stuff. -- View this message in context: http://www.nabble.com/How-to-get-value-from-the-delegator-object-declared-as-list-which-has-only-one-value--tp25674270p25674270.html Sent from the OFBiz - User mailing list archive at Nabble.com. >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-get-value-from-the-delegator-object-declared-as-list-which-has-only-one-value--tp25674270p25680369.html >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/How-to-get-value-from-the-delegator-object-declared-as-list-which-has-only-one-value--tp25674270p25680758.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: FastList.newInstance()
Hi, http://javolution.org/target/site/apidocs/javolution/util/FastList.html Regards Sumit Pandit On 30-Sep-09, at 6:30 PM, su2 wrote: Hello Friends, What does FastList.newInstance() do? What is the definition of it? I appreciate the help. Thank you. Su- -- View this message in context: http://www.nabble.com/FastList.newInstance%28%29-tp25680607p25680607.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: How to get value from the delegator object declared as list which has only one value?
Su, It is very simple - it is to fetch the field from the map which is in a list. I already wrote the code in previous mail. Follow that code and get the data. Regards Sumit Pandit On 30-Sep-09, at 6:19 PM, su2 wrote: Hi Sumit, Yes it returns 1 item but its in GenericEntity ([[GenericEntity:OrderAndTaxByCounty][OTCMOrderSubTotal, 104.85(java.lang.Double)]]) format. I am not sure how to directly refer/get my desired value. Let me know if you have any idea. Thank you. Su- Sumit Pandit-3 wrote: Hi Su, Look at the "findByCondition" method, it returns a list, if you are sure that this list contains only one item then you can get it from orderAndTaxByCounty = subTotalObject.get(0) and then return( orderAndTaxByCounty.get("OTCMOrderSubTotal")) would work for you. -- Regards Sumit Pandit On 30-Sep-09, at 8:33 AM, su2 wrote: Hello Friends, I have created following java function with delegator. public static String getOrderSubTotal(GenericDelegator delegator, String OTCMOrderNo) { List subTotalObject = null; try { List fieldsToSelect = UtilMisc.toList("OTCMOrderSubTotal"); EntityConditionList whereConditions = new EntityConditionList(UtilMisc.toList( new EntityExpr("OTCMOrderNo", EntityOperator.EQUALS, OTCMOrderNo), new EntityExpr("OTCMAdjustmentAmountType", EntityOperator.EQUALS, "SHIPPING_CHARGES"), new EntityExpr("OTCMContactType", EntityOperator.EQUALS, "SHIPPING_LOCATION") ), EntityOperator.AND); subTotalObject = delegator.findByCondition("OrderAndTaxByCounty", whereConditions, null, fieldsToSelect, null, null); } catch (GenericEntityException e) { Debug.logError(e, "Error finding OrderAndTaxByCounty in getPartyName", module); } String subTotal = String.valueOf(subTotalObject); return subTotal; } - I am trying to call this java function in Form widget with The "return Subtotal" in my java class prints - [[GenericEntity:OrderAndTaxByCounty][OTCMOrderSubTotal, 104.85(java.lang.Double)]] - I need to just print 104.85. Is there anyway to just get that part ? As you can see it is printing lot of extra stuff. -- View this message in context: http://www.nabble.com/How-to-get-value-from-the-delegator-object-declared-as-list-which-has-only-one-value--tp25674270p25674270.html Sent from the OFBiz - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/How-to-get-value-from-the-delegator-object-declared-as-list-which-has-only-one-value--tp25674270p25680369.html Sent from the OFBiz - User mailing list archive at Nabble.com.
FastList.newInstance()
Hello Friends, What does FastList.newInstance() do? What is the definition of it? I appreciate the help. Thank you. Su- -- View this message in context: http://www.nabble.com/FastList.newInstance%28%29-tp25680607p25680607.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: How to get value from the delegator object declared as list which has only one value?
Hi Sumit, Yes it returns 1 item but its in GenericEntity ([[GenericEntity:OrderAndTaxByCounty][OTCMOrderSubTotal, 104.85(java.lang.Double)]]) format. I am not sure how to directly refer/get my desired value. Let me know if you have any idea. Thank you. Su- Sumit Pandit-3 wrote: > > Hi Su, > > Look at the "findByCondition" method, it returns a list, if you are > sure that this list contains only one item then you can get it from > orderAndTaxByCounty = subTotalObject.get(0) and then > return( orderAndTaxByCounty.get("OTCMOrderSubTotal")) would work for > you. > > -- > Regards > Sumit Pandit > > On 30-Sep-09, at 8:33 AM, su2 wrote: > >> >> Hello Friends, >> >> I have created following java function with delegator. >> >> >>public static String getOrderSubTotal(GenericDelegator delegator, >> String >> OTCMOrderNo) { >>List subTotalObject = null; >> >> >>try { >> >> List fieldsToSelect = >> UtilMisc.toList("OTCMOrderSubTotal"); >> >> EntityConditionList whereConditions = new >> EntityConditionList(UtilMisc.toList( >>new EntityExpr("OTCMOrderNo", >> EntityOperator.EQUALS, >> OTCMOrderNo), >>new EntityExpr("OTCMAdjustmentAmountType", >> EntityOperator.EQUALS, "SHIPPING_CHARGES"), >>new EntityExpr("OTCMContactType", >> EntityOperator.EQUALS, >> "SHIPPING_LOCATION") >> ), EntityOperator.AND); >> >> subTotalObject = >> delegator.findByCondition("OrderAndTaxByCounty", >> whereConditions, null, fieldsToSelect, null, null); >> >> >>} catch (GenericEntityException e) { >>Debug.logError(e, "Error finding OrderAndTaxByCounty in >> getPartyName", module); >>} >> >>String subTotal = String.valueOf(subTotalObject); >> >>return subTotal; >> >>} >> - >> >> I am trying to call this java function in Form widget with >> >> > description="$ >> {bsh:com >> .opensourcestrategies >> .financials.reports.ReportHelper.getOrderSubTotal(delegator, >> OTCMOrderNo)}"/> >> >> The "return Subtotal" in my java class prints >> >> - >> [[GenericEntity:OrderAndTaxByCounty][OTCMOrderSubTotal, >> 104.85(java.lang.Double)]] >> - >> I need to just print 104.85. Is there anyway to just get that part ? >> As you >> can see it is printing lot of extra stuff. >> -- >> View this message in context: >> http://www.nabble.com/How-to-get-value-from-the-delegator-object-declared-as-list-which-has-only-one-value--tp25674270p25674270.html >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/How-to-get-value-from-the-delegator-object-declared-as-list-which-has-only-one-value--tp25674270p25680369.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: How to get value from the delegator object declared as list which has only one value?
Thanks Bob for the response. Yes, You are correct, the "delegator.findByCondition" returns a GenericEntity. I think subTotalObject.get("OTCMOrderSubTotal") will not help me as .get(int index) - it takes only int index. That is where I am stuck, as I am not sure how can I directly reference my desired value. It would be helpful if you can share the idea. Thank you. Su- Bob Morley wrote: > > This line will return a GenericEntity, not the single selected field: > subTotalObject = delegator.findByCondition > > Change the bottom of your method to something like... > > String subTotal = String.valueOf(subTotalObject.get > ("OTCMOrderSubTotal")); > > Bob > > On 2009-09-29, at 11:03 PM, su2 wrote: > >> >> Hello Friends, >> >> I have created following java function with delegator. >> >> --- >> --- >> -- >>public static String getOrderSubTotal(GenericDelegator delegator, >> String >> OTCMOrderNo) { >>List subTotalObject = null; >> >> >>try { >> >> List fieldsToSelect = UtilMisc.toList >> ("OTCMOrderSubTotal"); >> >>EntityConditionList whereConditions = new >> EntityConditionList(UtilMisc.toList( >>new EntityExpr("OTCMOrderNo", >> EntityOperator.EQUALS, >> OTCMOrderNo), >>new EntityExpr("OTCMAdjustmentAmountType", >> EntityOperator.EQUALS, "SHIPPING_CHARGES"), >>new EntityExpr("OTCMContactType", >> EntityOperator.EQUALS, >> "SHIPPING_LOCATION") >> ), EntityOperator.AND); >> >>subTotalObject = delegator.findByCondition >> ("OrderAndTaxByCounty", >> whereConditions, null, fieldsToSelect, null, null); >> >> >>} catch (GenericEntityException e) { >>Debug.logError(e, "Error finding OrderAndTaxByCounty in >> getPartyName", module); >>} >> >> String subTotal = String.valueOf(subTotalObject); >> >>return subTotal; >> >>} >> --- >> --- >> --- >> --- >> --- >> -- >> >> I am trying to call this java function in Form widget with >> >> > description="$ >> {bsh:com.opensourcestrategies.financials.reports.ReportHelper.getOrderSubTotal( >> >> delegator, >> OTCMOrderNo)}"/> >> >> The "return Subtotal" in my java class prints >> >> --- >> --- >> --- >> --- >> --- >> -- >> [[GenericEntity:OrderAndTaxByCounty][OTCMOrderSubTotal,104.85 >> (java.lang.Double)]] >> --- >> --- >> --- >> --- >> --- >> -- >> I need to just print 104.85. Is there anyway to just get that part ? >> As you >> can see it is printing lot of extra stuff. >> -- >> View this message in context: >> http://www.nabble.com/How-to-get-value-from-the-delegator-object-declared-as-list-which-has-only-one-value--tp25674270p25674270.html >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> > > -- View this message in context: http://www.nabble.com/How-to-get-value-from-the-delegator-object-declared-as-list-which-has-only-one-value--tp25674270p25680328.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: How to integrate ofbiz in JBoss
thanks lot arun..i will try in JBoss4.2.2GA..thanks your help.. On Wed, Sep 30, 2009 at 5:55 PM, Arun Mehta wrote: > > Hi, > I have integrated ofbiz in JBOSS 4.2.2 and steps that I have mentioned are > for JBOSS 4.2.2. It may be possible that in JBOSS 5.1.0 , the configuration > settings are different. > > > Arun Mehta wrote: > > > > Hi, > > You can write the below line, > > set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME > > > > after this, > > rem With Sun JVMs reduce the RMI GCs to once per hour > > rem set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=360 > > -Dsun.rmi.dgc.server.gcInterval=360 > > > > note:- OFBIZ_HOME is the location where ofbiz is placed. > > > > > > > > > > > > > > > > > > > > GNANASHANKAR wrote: > >> > >> hi arun, i followed your steps..after running JBoss i am getting below > >> error.. > >> > >> DEPLOYMENTS IN ERROR: > >> Deployment "vfsfile:/C:/Apps/JBoss/ > >> jboss-5.1.0.GA/server/default/deploy/ofbiz. > >> ear/" is in error due to the following reason(s): > >> org.xml.sax.SAXException: > >> The > >> content of element type "web-app" must match > >> "(icon?,display-name?,description?, > >> > distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet > >> > -mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,r > >> > esource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role* > >> ,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/C:/Apps/JBoss/ > >> jboss-5.1.0.GA/s > >> erver/default/deploy/ofbiz.ear/webtools.war/WEB-INF/web.xml[169,11] > >> Deployment "WebServer" is in error due to the following reason(s): > >> LifecycleEx > >> ception: Protocol handler initialization failed: > >> java.io.FileNotFoundException: > >> path (The system cannot find the file specified) > >> Deployment "jboss.web:service=WebServer" is in error due to the > >> following > >> reas > >> on(s): ** NOT FOUND Depends on 'jboss.web:service=WebServer' ** > >> > >> 16:32:44,812 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA(build: > >> SVNTag= > >> JBoss_5_1_0_GA date=200905221053)] Started in 1m:234ms > >> > >> in 11th step run.bat file where i have to copy the below line > >> > >> set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver > >> set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME > >> > >> in 11th step your given comment the below line, > >> > >>rem set JAVA_OPTS=%JAVA_OPTS% > >> -Dsun.rmi.dgc.client.gcInterval=360 > >> -Dsun.rmi.dgc.server.gcInterval=360 > >> > >> > >> > >> > >> On Wed, Sep 30, 2009 at 3:56 PM, Arun Mehta > >> wrote: > >> > >>> > >>> Hi, > >>> You must have Apache Ant 1.7.0 and set the environmental variables > >>> CLASS_PATH and PATH. > >>> Type 'ant' on the command prompt (from > >>> JBOSS_HOME\server\default\deploy\ofbiz.ear). > >> > >> > >>> > >>> GNANASHANKAR wrote: > >>> > > >>> > hi arun, > >>> >i followed u steps up to 9. In the 10th steps, > >>> > > >>> >10. From JBOSS_HOME\server\default\deploy\ofbiz.ear location, run > >>> > ant command > >>> > > >>> > can you tell the command to run the ant. > >>> > > >>> > On Wed, Sep 30, 2009 at 2:08 PM, wrote: > >>> > > >>> >> Steps to Integrate JBOSS in OFBiz on WINDOWS platform > >>> >> > >>> >> 1. Download the latest OFBiz from the Apache site and unzip it. > >>> >> 2. Compile the application and build the derby database by > >>> running > >>> >> the command ?ant run-install?. > >>> >> 3. Change the value of disable.log4j.config from false to true > >>> in > >>> >> debug.properties > >>> >>(OFBiz_HOME\framework\base\config\debug.properties). > >>> >>disable.log4j.config = true > >>> >> > >>> >> 4. Download the JBOSS (jboss-4.2.2.GA) and unzip it. > >>> >> 5. The JBOSS templates are included in the directory > >>> >>OFBiz_HOME\framework\appserver\templates\jboss422 > >>> >> > >>> >> 6. Run the following command from the OFBiz directory: > >>> >>java ?jar ofbiz.jar ?setup jboss422 > >>> >> > >>> >> 7. When this command finishes, a new directory will be created > >>> in > >>> >> the > >>> >> ofbiz home directory called 'setup'. Inside this directory will be > >>> >> subdirectory ?jboss422? containing several files: > >>> >>a. build.xml - A template to build package and deploy > >>> OFBiz. > >>> >>b. application.xml - A template to generate an > >>> applcation.xml > >>> >> file for the deployment of OFBiz web applications. > >>> >> > >>> >> 8. Create a new directory for the ofbiz deployment inside the > >>> JBoss > >>> >> deploy directory. Name this directory 'ofbiz.ear'; then copy the > file > >>> >> build.xml and application.xml from OFBIZ_HOME\setup\jboss422\ to > this > >>> new > >>> >> directory. > >>> >>JBOSS_HOME\server\default\deploy \ofbiz.ear > >>> >> > >>> >> 9. Make a copy of entityengine .xml and rename that to > >>> >> entityengine-jboss422.xml in OFBiz_HOME\framewor
Re: How to integrate ofbiz in JBoss
Hi, I have integrated ofbiz in JBOSS 4.2.2 and steps that I have mentioned are for JBOSS 4.2.2. It may be possible that in JBOSS 5.1.0 , the configuration settings are different. Arun Mehta wrote: > > Hi, > You can write the below line, > set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME > > after this, > rem With Sun JVMs reduce the RMI GCs to once per hour > rem set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=360 > -Dsun.rmi.dgc.server.gcInterval=360 > > note:- OFBIZ_HOME is the location where ofbiz is placed. > > > > > > > > > > GNANASHANKAR wrote: >> >> hi arun, i followed your steps..after running JBoss i am getting below >> error.. >> >> DEPLOYMENTS IN ERROR: >> Deployment "vfsfile:/C:/Apps/JBoss/ >> jboss-5.1.0.GA/server/default/deploy/ofbiz. >> ear/" is in error due to the following reason(s): >> org.xml.sax.SAXException: >> The >> content of element type "web-app" must match >> "(icon?,display-name?,description?, >> distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet >> -mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,r >> esource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role* >> ,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/C:/Apps/JBoss/ >> jboss-5.1.0.GA/s >> erver/default/deploy/ofbiz.ear/webtools.war/WEB-INF/web.xml[169,11] >> Deployment "WebServer" is in error due to the following reason(s): >> LifecycleEx >> ception: Protocol handler initialization failed: >> java.io.FileNotFoundException: >> path (The system cannot find the file specified) >> Deployment "jboss.web:service=WebServer" is in error due to the >> following >> reas >> on(s): ** NOT FOUND Depends on 'jboss.web:service=WebServer' ** >> >> 16:32:44,812 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: >> SVNTag= >> JBoss_5_1_0_GA date=200905221053)] Started in 1m:234ms >> >> in 11th step run.bat file where i have to copy the below line >> >> set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver >> set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME >> >> in 11th step your given comment the below line, >> >>rem set JAVA_OPTS=%JAVA_OPTS% >> -Dsun.rmi.dgc.client.gcInterval=360 >> -Dsun.rmi.dgc.server.gcInterval=360 >> >> >> >> >> On Wed, Sep 30, 2009 at 3:56 PM, Arun Mehta >> wrote: >> >>> >>> Hi, >>> You must have Apache Ant 1.7.0 and set the environmental variables >>> CLASS_PATH and PATH. >>> Type 'ant' on the command prompt (from >>> JBOSS_HOME\server\default\deploy\ofbiz.ear). >> >> >>> >>> GNANASHANKAR wrote: >>> > >>> > hi arun, >>> >i followed u steps up to 9. In the 10th steps, >>> > >>> >10. From JBOSS_HOME\server\default\deploy\ofbiz.ear location, run >>> > ant command >>> > >>> > can you tell the command to run the ant. >>> > >>> > On Wed, Sep 30, 2009 at 2:08 PM, wrote: >>> > >>> >> Steps to Integrate JBOSS in OFBiz on WINDOWS platform >>> >> >>> >> 1. Download the latest OFBiz from the Apache site and unzip it. >>> >> 2. Compile the application and build the derby database by >>> running >>> >> the command ?ant run-install?. >>> >> 3. Change the value of disable.log4j.config from false to true >>> in >>> >> debug.properties >>> >>(OFBiz_HOME\framework\base\config\debug.properties). >>> >>disable.log4j.config = true >>> >> >>> >> 4. Download the JBOSS (jboss-4.2.2.GA) and unzip it. >>> >> 5. The JBOSS templates are included in the directory >>> >>OFBiz_HOME\framework\appserver\templates\jboss422 >>> >> >>> >> 6. Run the following command from the OFBiz directory: >>> >>java ?jar ofbiz.jar ?setup jboss422 >>> >> >>> >> 7. When this command finishes, a new directory will be created >>> in >>> >> the >>> >> ofbiz home directory called 'setup'. Inside this directory will be >>> >> subdirectory ?jboss422? containing several files: >>> >>a. build.xml - A template to build package and deploy >>> OFBiz. >>> >>b. application.xml - A template to generate an >>> applcation.xml >>> >> file for the deployment of OFBiz web applications. >>> >> >>> >> 8. Create a new directory for the ofbiz deployment inside the >>> JBoss >>> >> deploy directory. Name this directory 'ofbiz.ear'; then copy the file >>> >> build.xml and application.xml from OFBIZ_HOME\setup\jboss422\ to this >>> new >>> >> directory. >>> >>JBOSS_HOME\server\default\deploy \ofbiz.ear >>> >> >>> >> 9. Make a copy of entityengine .xml and rename that to >>> >> entityengine-jboss422.xml in OFBiz_HOME\framework\entity\config. >>> Changes >>> >> required in this file are: >>> >>a. Comment the element >>> >>>> >> class="org.ofbiz.geronimo.GeronimoTransactionFactory"/> >>> >>b. Uncomment the element >>> >>>> >> class="org.ofbiz.entity.transaction.JNDIFactory"> >>> >>>> >> jndi-name="java:comp/UserTransaction"/> >>> >>>> >>
Re: How to integrate ofbiz in JBoss
hi arun, i am using jboss-5.1.0.GA, i followed your steps. but i am getting same error. tell me the correct line to paste below line. Is it correct to specify the Ofbiz_home location. set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home="C:\JBoss-Ofbiz\ofbiz" in my Jboss run.bat file i am not having below line rem set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360 i am waiting for your reply.thanks for previous reply.. On Wed, Sep 30, 2009 at 5:02 PM, Arun Mehta wrote: > > Hi, > You can write the below line, > set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME > > after this, > rem With Sun JVMs reduce the RMI GCs to once per hour > rem set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=360 > -Dsun.rmi.dgc.server.gcInterval=360 > > note:- OFBIZ_HOME is the location where ofbiz is placed. > > > > > > > > > > GNANASHANKAR wrote: > > > > hi arun, i followed your steps..after running JBoss i am getting below > > error.. > > > > DEPLOYMENTS IN ERROR: > > Deployment "vfsfile:/C:/Apps/JBoss/ > > jboss-5.1.0.GA/server/default/deploy/ofbiz. > > ear/" is in error due to the following reason(s): > > org.xml.sax.SAXException: > > The > > content of element type "web-app" must match > > "(icon?,display-name?,description?, > > > distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet > > > -mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,r > > > esource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role* > > ,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/C:/Apps/JBoss/ > > jboss-5.1.0.GA/s > > erver/default/deploy/ofbiz.ear/webtools.war/WEB-INF/web.xml[169,11] > > Deployment "WebServer" is in error due to the following reason(s): > > LifecycleEx > > ception: Protocol handler initialization failed: > > java.io.FileNotFoundException: > > path (The system cannot find the file specified) > > Deployment "jboss.web:service=WebServer" is in error due to the > > following > > reas > > on(s): ** NOT FOUND Depends on 'jboss.web:service=WebServer' ** > > > > 16:32:44,812 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: > > SVNTag= > > JBoss_5_1_0_GA date=200905221053)] Started in 1m:234ms > > > > in 11th step run.bat file where i have to copy the below line > > > > set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver > > set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME > > > > in 11th step your given comment the below line, > > > >rem set JAVA_OPTS=%JAVA_OPTS% > > -Dsun.rmi.dgc.client.gcInterval=360 > > -Dsun.rmi.dgc.server.gcInterval=360 > > > > > > > > > > On Wed, Sep 30, 2009 at 3:56 PM, Arun Mehta > > wrote: > > > >> > >> Hi, > >> You must have Apache Ant 1.7.0 and set the environmental variables > >> CLASS_PATH and PATH. > >> Type 'ant' on the command prompt (from > >> JBOSS_HOME\server\default\deploy\ofbiz.ear). > > > > > >> > >> GNANASHANKAR wrote: > >> > > >> > hi arun, > >> >i followed u steps up to 9. In the 10th steps, > >> > > >> >10. From JBOSS_HOME\server\default\deploy\ofbiz.ear location, run > >> > ant command > >> > > >> > can you tell the command to run the ant. > >> > > >> > On Wed, Sep 30, 2009 at 2:08 PM, wrote: > >> > > >> >> Steps to Integrate JBOSS in OFBiz on WINDOWS platform > >> >> > >> >> 1. Download the latest OFBiz from the Apache site and unzip it. > >> >> 2. Compile the application and build the derby database by > >> running > >> >> the command ?ant run-install?. > >> >> 3. Change the value of disable.log4j.config from false to true > in > >> >> debug.properties > >> >>(OFBiz_HOME\framework\base\config\debug.properties). > >> >>disable.log4j.config = true > >> >> > >> >> 4. Download the JBOSS (jboss-4.2.2.GA) and unzip it. > >> >> 5. The JBOSS templates are included in the directory > >> >>OFBiz_HOME\framework\appserver\templates\jboss422 > >> >> > >> >> 6. Run the following command from the OFBiz directory: > >> >>java ?jar ofbiz.jar ?setup jboss422 > >> >> > >> >> 7. When this command finishes, a new directory will be created > in > >> >> the > >> >> ofbiz home directory called 'setup'. Inside this directory will be > >> >> subdirectory ?jboss422? containing several files: > >> >>a. build.xml - A template to build package and deploy > >> OFBiz. > >> >>b. application.xml - A template to generate an > >> applcation.xml > >> >> file for the deployment of OFBiz web applications. > >> >> > >> >> 8. Create a new directory for the ofbiz deployment inside the > >> JBoss > >> >> deploy directory. Name this directory 'ofbiz.ear'; then copy the file > >> >> build.xml and application.xml from OFBIZ_HOME\setup\jboss422\ to this > >> new > >> >> directory. > >> >>JBOSS_HOME\server\default\deploy \ofbiz.ear > >> >> > >> >> 9. Make a copy of entityen
Re: How to integrate ofbiz in JBoss
Hi, You can write the below line, set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME after this, rem With Sun JVMs reduce the RMI GCs to once per hour rem set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360 note:- OFBIZ_HOME is the location where ofbiz is placed. GNANASHANKAR wrote: > > hi arun, i followed your steps..after running JBoss i am getting below > error.. > > DEPLOYMENTS IN ERROR: > Deployment "vfsfile:/C:/Apps/JBoss/ > jboss-5.1.0.GA/server/default/deploy/ofbiz. > ear/" is in error due to the following reason(s): > org.xml.sax.SAXException: > The > content of element type "web-app" must match > "(icon?,display-name?,description?, > distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet > -mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,r > esource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role* > ,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/C:/Apps/JBoss/ > jboss-5.1.0.GA/s > erver/default/deploy/ofbiz.ear/webtools.war/WEB-INF/web.xml[169,11] > Deployment "WebServer" is in error due to the following reason(s): > LifecycleEx > ception: Protocol handler initialization failed: > java.io.FileNotFoundException: > path (The system cannot find the file specified) > Deployment "jboss.web:service=WebServer" is in error due to the > following > reas > on(s): ** NOT FOUND Depends on 'jboss.web:service=WebServer' ** > > 16:32:44,812 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: > SVNTag= > JBoss_5_1_0_GA date=200905221053)] Started in 1m:234ms > > in 11th step run.bat file where i have to copy the below line > > set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver > set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME > > in 11th step your given comment the below line, > >rem set JAVA_OPTS=%JAVA_OPTS% > -Dsun.rmi.dgc.client.gcInterval=360 > -Dsun.rmi.dgc.server.gcInterval=360 > > > > > On Wed, Sep 30, 2009 at 3:56 PM, Arun Mehta > wrote: > >> >> Hi, >> You must have Apache Ant 1.7.0 and set the environmental variables >> CLASS_PATH and PATH. >> Type 'ant' on the command prompt (from >> JBOSS_HOME\server\default\deploy\ofbiz.ear). > > >> >> GNANASHANKAR wrote: >> > >> > hi arun, >> >i followed u steps up to 9. In the 10th steps, >> > >> >10. From JBOSS_HOME\server\default\deploy\ofbiz.ear location, run >> > ant command >> > >> > can you tell the command to run the ant. >> > >> > On Wed, Sep 30, 2009 at 2:08 PM, wrote: >> > >> >> Steps to Integrate JBOSS in OFBiz on WINDOWS platform >> >> >> >> 1. Download the latest OFBiz from the Apache site and unzip it. >> >> 2. Compile the application and build the derby database by >> running >> >> the command ?ant run-install?. >> >> 3. Change the value of disable.log4j.config from false to true in >> >> debug.properties >> >>(OFBiz_HOME\framework\base\config\debug.properties). >> >>disable.log4j.config = true >> >> >> >> 4. Download the JBOSS (jboss-4.2.2.GA) and unzip it. >> >> 5. The JBOSS templates are included in the directory >> >>OFBiz_HOME\framework\appserver\templates\jboss422 >> >> >> >> 6. Run the following command from the OFBiz directory: >> >>java ?jar ofbiz.jar ?setup jboss422 >> >> >> >> 7. When this command finishes, a new directory will be created in >> >> the >> >> ofbiz home directory called 'setup'. Inside this directory will be >> >> subdirectory ?jboss422? containing several files: >> >>a. build.xml - A template to build package and deploy >> OFBiz. >> >>b. application.xml - A template to generate an >> applcation.xml >> >> file for the deployment of OFBiz web applications. >> >> >> >> 8. Create a new directory for the ofbiz deployment inside the >> JBoss >> >> deploy directory. Name this directory 'ofbiz.ear'; then copy the file >> >> build.xml and application.xml from OFBIZ_HOME\setup\jboss422\ to this >> new >> >> directory. >> >>JBOSS_HOME\server\default\deploy \ofbiz.ear >> >> >> >> 9. Make a copy of entityengine .xml and rename that to >> >> entityengine-jboss422.xml in OFBiz_HOME\framework\entity\config. >> Changes >> >> required in this file are: >> >>a. Comment the element >> >>> >> class="org.ofbiz.geronimo.GeronimoTransactionFactory"/> >> >>b. Uncomment the element >> >>> >> class="org.ofbiz.entity.transaction.JNDIFactory"> >> >>> >> jndi-name="java:comp/UserTransaction"/> >> >>> >> jndi-name="java:comp/UserTransaction"/> >> >> >> >> >> >>c. Change the value of jndi-name attribute of >> >> transaction-manager-jndi element from "java:comp/UserTransaction" to >> >> "java:/TransactionManager". >> >>> >> jndi-name="java:/TransactionManager"/> >> >> >> >>d. In the datasource element having attribute ?name? with
Re: How to integrate ofbiz in JBoss
hi arun, i followed your steps..after running JBoss i am getting below error.. DEPLOYMENTS IN ERROR: Deployment "vfsfile:/C:/Apps/JBoss/ jboss-5.1.0.GA/server/default/deploy/ofbiz. ear/" is in error due to the following reason(s): org.xml.sax.SAXException: The content of element type "web-app" must match "(icon?,display-name?,description?, distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet -mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,r esource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role* ,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/C:/Apps/JBoss/ jboss-5.1.0.GA/s erver/default/deploy/ofbiz.ear/webtools.war/WEB-INF/web.xml[169,11] Deployment "WebServer" is in error due to the following reason(s): LifecycleEx ception: Protocol handler initialization failed: java.io.FileNotFoundException: path (The system cannot find the file specified) Deployment "jboss.web:service=WebServer" is in error due to the following reas on(s): ** NOT FOUND Depends on 'jboss.web:service=WebServer' ** 16:32:44,812 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag= JBoss_5_1_0_GA date=200905221053)] Started in 1m:234ms in 11th step run.bat file where i have to copy the below line set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME in 11th step your given comment the below line, rem set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360 On Wed, Sep 30, 2009 at 3:56 PM, Arun Mehta wrote: > > Hi, > You must have Apache Ant 1.7.0 and set the environmental variables > CLASS_PATH and PATH. > Type 'ant' on the command prompt (from > JBOSS_HOME\server\default\deploy\ofbiz.ear). > > GNANASHANKAR wrote: > > > > hi arun, > >i followed u steps up to 9. In the 10th steps, > > > >10. From JBOSS_HOME\server\default\deploy\ofbiz.ear location, run > > ant command > > > > can you tell the command to run the ant. > > > > On Wed, Sep 30, 2009 at 2:08 PM, wrote: > > > >> Steps to Integrate JBOSS in OFBiz on WINDOWS platform > >> > >> 1. Download the latest OFBiz from the Apache site and unzip it. > >> 2. Compile the application and build the derby database by running > >> the command ?ant run-install?. > >> 3. Change the value of disable.log4j.config from false to true in > >> debug.properties > >>(OFBiz_HOME\framework\base\config\debug.properties). > >>disable.log4j.config = true > >> > >> 4. Download the JBOSS (jboss-4.2.2.GA) and unzip it. > >> 5. The JBOSS templates are included in the directory > >>OFBiz_HOME\framework\appserver\templates\jboss422 > >> > >> 6. Run the following command from the OFBiz directory: > >>java ?jar ofbiz.jar ?setup jboss422 > >> > >> 7. When this command finishes, a new directory will be created in > >> the > >> ofbiz home directory called 'setup'. Inside this directory will be > >> subdirectory ?jboss422? containing several files: > >>a. build.xml - A template to build package and deploy > OFBiz. > >>b. application.xml - A template to generate an > applcation.xml > >> file for the deployment of OFBiz web applications. > >> > >> 8. Create a new directory for the ofbiz deployment inside the JBoss > >> deploy directory. Name this directory 'ofbiz.ear'; then copy the file > >> build.xml and application.xml from OFBIZ_HOME\setup\jboss422\ to this > new > >> directory. > >>JBOSS_HOME\server\default\deploy \ofbiz.ear > >> > >> 9. Make a copy of entityengine .xml and rename that to > >> entityengine-jboss422.xml in OFBiz_HOME\framework\entity\config. Changes > >> required in this file are: > >>a. Comment the element > >> >> class="org.ofbiz.geronimo.GeronimoTransactionFactory"/> > >>b. Uncomment the element > >> >> class="org.ofbiz.entity.transaction.JNDIFactory"> > >> >> jndi-name="java:comp/UserTransaction"/> > >> >> jndi-name="java:comp/UserTransaction"/> > >> > >> > >>c. Change the value of jndi-name attribute of > >> transaction-manager-jndi element from "java:comp/UserTransaction" to > >> "java:/TransactionManager". > >> >> jndi-name="java:/TransactionManager"/> > >> > >>d. In the datasource element having attribute ?name? with > >> value ?localderby?, uncomment the sub-element ?jndi-jdbc? and change > >> the > >> value of?jndi-name? from "java:/DerbyDataSource" to > >> ?java:/OFBizDS?. > >> >> isolation-level="ReadCommitted"/> > >> > >>e. In the datasource element having attribute ?name? with > >> value ?localderbyolap?, uncomment the sub-element ?jndi-jdbc? and > >> change > >> the value of ?jndi-name? from "java:/DerbyDataSource" to > >> ?java:/OFBizOlapDS?. > >> >> jndi-name="java:/OFBizOlapDS " isolation-l
Re: Regrading creating new Entities
Hi Scott and jacques, thank you lot..i got answer..unwanted field are removed from entity.. On Wed, Sep 30, 2009 at 3:40 PM, Scott Gray wrote: > no-auto-stamp="true"> > > Regards > Scott > > > On 30/09/2009, at 10:51 PM, Gnanashankar Shanmugam wrote: > > hi jacques, >> i created new component called entitytest, in that entitytest component >> entitymodel.xml, i created new entity called Planet. given below i wrote >> entity like >> >> >> >> >> >> >> >> >> >> >> >> >> in the above entity where i have to specific parameter no-auto-stamp. >> >> On Wed, Sep 30, 2009 at 3:00 PM, Jacques Le Roux < >> jacques.le.r...@les7arts.com> wrote: >> >> It's an attribute of Entity, see entitymodel.xml >>> >>> >>> Jacques >>> >>> From: "Gnanashankar Shanmugam" >>> >>> hi jacques, In EntityEngine.xml, where i have to give no-auto-stamp parameter for entities..any explain clearly..Advance thanks.. On Wed, Sep 30, 2009 at 2:24 PM, Jacques Le Roux < jacques.le.r...@les7arts.com> wrote: There is a parameter no-auto-stamp for entities > > Jacques > > From: "Gnanashankar Shanmugam" > > The problem I'm having is when I use webtools to export the data I get > > a SQL error because the entity engine adds the following ofbiz columns >> to the SQL query: >> >> LAST_UPDATED_STAMP, >> LAST_UPDATED_TX_STAMP, >> CREATED_STAMP, >> CREATED_TX_STAMP >> >> >> Since the table is not an ofbiz entity the columns do not exist and >> the generated query will fail. Is there a way to specify in the >> entity model to only use those columns that are explicitly defined in >> the definition file? >> >> >> >> > >>> >
Re: Creation of new Security group (Facility module)
This is the console message which i get, when i login: But i think it is not showing any errors. For reference, with existing security group assigning, in some cases i am not getting any error. Please help me. Thanks, Naveen -30 15:58:55,671 (http-0.0.0.0-8443-1) [ ControlServlet.java:299:INFO ] [[[main] Request Done- total:0.625,since last([main] Request Be...):0.625]] 2009-09-30 15:59:13,484 (http-0.0.0.0-8443-1) [ ControlServlet.java:130:INFO ] [[[login] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] 2009-09-30 15:59:13,578 (http-0.0.0.0-8443-1) [ ConfigXMLReader.java:118:INFO ] controller loaded: 0.0s, 17 requests, 13 views in file:/E:/ofbiz/ofbiz%209.4/framework/common/webcommon/WEB-INF/common-controller.xml 2009-09-30 15:59:13,593 (http-0.0.0.0-8443-1) [ ConfigXMLReader.java:118:INFO ] controller loaded: 0.047s, 260 requests, 109 views in jndi:/0.0.0.0/partymgr/WEB-INF/controller.xml 2009-09-30 15:59:13,656 (http-0.0.0.0-8443-1) [ ServiceDispatcher.java:584:INFO ] Sync service [partymgr/userLogin] finished in [63] milliseconds 2009-09-30 15:59:13,703 (http-0.0.0.0-8443-1) [ RequestHandler.java:593:INFO ] Ran Event [java:org.ofbiz.webapp.control.LoginWorker#login] from [request], result is [error] 2009-09-30 15:59:13,703 (http-0.0.0.0-8443-1) [ RequestHandler.java:399:ERROR] Request login caused an error with the following message: unable to login this application 2009-09-30 15:59:13,703 (http-0.0.0.0-8443-1) [ RequestHandler.java:697:INFO ] Rendering View [login], sessionId=31451B62908305707CCFAE8E996A09EE.jvm1 2009-09-30 15:59:13,734 (http-0.0.0.0-8443-1) [ ScreenFactory.java:129:INFO ] Got 22 screens in 0.031s from: file:/E:/ofbiz/ofbiz%209.4/framework/common/widget/CommonScreens.xml 2009-09-30 15:59:13,765 (http-0.0.0.0-8443-1) [ ScreenFactory.java:129:INFO ] Got 6 screens in 0.031s from: file:/E:/ofbiz/ofbiz%209.4/applications/party/widget/partymgr/CommonScreens.xml 2009-09-30 15:59:13,796 (http-0.0.0.0-8443-1) [ ScreenFactory.java:129:INFO ] Got 1 screens in 0.015s from: file:/E:/ofbiz/ofbiz%209.4/applications/commonext/widget/CommonScreens.xml 2009-09-30 15:59:13,812 (http-0.0.0.0-8443-1) [ PrimaryKeyFinder.java:141:INFO ] Returning null because found incomplete primary key in find: [GenericEntity:PartyNameView][partyId,null()] 2009-09-30 15:59:13,937 (http-0.0.0.0-8443-1) [ ServiceDispatcher.java:584:INFO ] Sync service [partymgr/getVisualThemeResources] finished in [78] milliseconds 2009-09-30 15:59:14,328 (http-0.0.0.0-8443-1) [ ControlServlet.java:299:INFO ] [[[login] Request Done- total:0.844,since last([login] Request B...):0.844]] Mridul Pathak-2 wrote: > > Can you be more verbose with the error you are getting, console log could > be > helpful to know if it is a permission error or something else? > -- > Thanks & Regards > Mridul Pathak > Hotwax Media > http://www.hotwaxmedia.com > mridul.pat...@hotwaxmedia.com > - > direct: +91 - 942.592.6892 > > > On Wed, Sep 30, 2009 at 3:33 PM, naveen chanda wrote: > >> >> Hi, >> >> I have followed as per the steps mentioned, but the below error is >> getting >> when i login with username/password: >> >> >> >> The Following Errors Occurred: >> >> unable to login this application >> >> >> >> Please help me to solve the issue. >> >> Thanks, >> Naveen Chanda. >> >> >> Mridul Pathak-2 wrote: >> > >> > You can manage Security Groups, their permissions and associated user >> > logins >> > under PartyMgr > Security tab ( >> > https://demo.ofbiz.org/partymgr/control/FindSecurityGroup). >> > Create a new Security Group, assign FACITLITY_VIEW, FACILITY_CREATE, >> > FACILITY_UPDATE, FACILITY_DELETE, FACILITY_ADMIN permissions to this >> > security group as per your requirements. Then you can assign this >> > security >> > group to a user login from same tab or Party Profile, under User Logins >> > screenlet. >> > >> > >> > -- >> > Thanks & Regards >> > Mridul Pathak >> > Hotwax Media >> > http://www.hotwaxmedia.com >> > mridul.pat...@hotwaxmedia.com >> > - >> > direct: +91 - 942.592.6892 >> > >> > >> > On Wed, Sep 30, 2009 at 12:55 PM, naveen chanda >> > wrote: >> > >> >> >> >> Dear All, >> >> >> >> Could anyone explain me the steps to create a new security group of >> type >> >> (FACILITY) to access all the screens under Facility module. >> >> >> >> How can i create and add the security group to the user. >> >> >> >> Please help to do this. >> >> >> >> Thanks and Regards, >> >> Naveen Chanda >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Creation-of-new-Security-group-%28Facility-module%29-tp25676226p25676226.html >> >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Creation-of-new-Security-group-%28Facility-module%29-tp25676226p25678252.html >> Se
Re: How to integrate ofbiz in JBoss
Hi, You must have Apache Ant 1.7.0 and set the environmental variables CLASS_PATH and PATH. Type 'ant' on the command prompt (from JBOSS_HOME\server\default\deploy\ofbiz.ear). GNANASHANKAR wrote: > > hi arun, >i followed u steps up to 9. In the 10th steps, > >10. From JBOSS_HOME\server\default\deploy\ofbiz.ear location, run > ant command > > can you tell the command to run the ant. > > On Wed, Sep 30, 2009 at 2:08 PM, wrote: > >> Steps to Integrate JBOSS in OFBiz on WINDOWS platform >> >> 1. Download the latest OFBiz from the Apache site and unzip it. >> 2. Compile the application and build the derby database by running >> the command ?ant run-install?. >> 3. Change the value of disable.log4j.config from false to true in >> debug.properties >>(OFBiz_HOME\framework\base\config\debug.properties). >>disable.log4j.config = true >> >> 4. Download the JBOSS (jboss-4.2.2.GA) and unzip it. >> 5. The JBOSS templates are included in the directory >>OFBiz_HOME\framework\appserver\templates\jboss422 >> >> 6. Run the following command from the OFBiz directory: >>java ?jar ofbiz.jar ?setup jboss422 >> >> 7. When this command finishes, a new directory will be created in >> the >> ofbiz home directory called 'setup'. Inside this directory will be >> subdirectory ?jboss422? containing several files: >>a. build.xml - A template to build package and deploy OFBiz. >>b. application.xml - A template to generate an applcation.xml >> file for the deployment of OFBiz web applications. >> >> 8. Create a new directory for the ofbiz deployment inside the JBoss >> deploy directory. Name this directory 'ofbiz.ear'; then copy the file >> build.xml and application.xml from OFBIZ_HOME\setup\jboss422\ to this new >> directory. >>JBOSS_HOME\server\default\deploy \ofbiz.ear >> >> 9. Make a copy of entityengine .xml and rename that to >> entityengine-jboss422.xml in OFBiz_HOME\framework\entity\config. Changes >> required in this file are: >>a. Comment the element >>> class="org.ofbiz.geronimo.GeronimoTransactionFactory"/> >>b. Uncomment the element >>> class="org.ofbiz.entity.transaction.JNDIFactory"> >>> jndi-name="java:comp/UserTransaction"/> >>> jndi-name="java:comp/UserTransaction"/> >> >> >>c. Change the value of jndi-name attribute of >> transaction-manager-jndi element from "java:comp/UserTransaction" to >> "java:/TransactionManager". >>> jndi-name="java:/TransactionManager"/> >> >>d. In the datasource element having attribute ?name? with >> value ?localderby?, uncomment the sub-element ?jndi-jdbc? and change >> the >> value of?jndi-name? from "java:/DerbyDataSource" to >> ?java:/OFBizDS?. >>> isolation-level="ReadCommitted"/> >> >>e. In the datasource element having attribute ?name? with >> value ?localderbyolap?, uncomment the sub-element ?jndi-jdbc? and >> change >> the value of ?jndi-name? from "java:/DerbyDataSource" to >> ?java:/OFBizOlapDS?. >>> jndi-name="java:/OFBizOlapDS " isolation-level="ReadCommitted"/> >> >> 10. From JBOSS_HOME\server\default\deploy\ofbiz.ear location, run >> ant >> command. This must be run from inside the directory you wish to deploy >> OFBiz into. This will package and deploy all the necessary libraries, >> webapps and configuration files into the JBoss exploded EAR (directory). >> >> 11. Add the following lines in run.bat (JBOSS_HOME/bin) >> set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver >> set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME >> >> and comment the following line in run.bat, >>rem set JAVA_OPTS=%JAVA_OPTS% >> -Dsun.rmi.dgc.client.gcInterval=360 >> -Dsun.rmi.dgc.server.gcInterval=360 >> >> 12. Add the following element in server.xml >> (JBOSS_HOME\server\default\deploy\jboss-web.deployer) >>> keystoreFile="path" keystorePass="password" maxThreads="150" >> scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> >> >> where, >>path -> full path of keystore file >>password -> password used to generate keystore file >> >>Note:- If required, you can change the port number. >> >> 13. Copy the derby directory from OFBiz_HOME\runtime\data and paste >> it >> into the directory JBOSS_HOME\server\default\data. >> >> 14. Start the JBOSS server by running the run.bat (JBOSS_HOME\bin) >> >> >> Thanks & Regards, >> Arun Mehta | iLabs | L&T Infotech >> Plot No.EL-200,TTC Electronic Zone, Navi Mumbai. >> Office: +91-22-67954321 | Extn: 4321 >> Mobile: 9970127578 >> Email: arun.me...@lntinfotech.com >> >> Larsen & Toubro Infotech Ltd. >> www.Lntinfotech.com >> >> This Document is classified as: >> >> L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech >> Internal Use Only L&T Infotech General B
Re: Creation of new Security group (Facility module)
Can you be more verbose with the error you are getting, console log could be helpful to know if it is a permission error or something else? -- Thanks & Regards Mridul Pathak Hotwax Media http://www.hotwaxmedia.com mridul.pat...@hotwaxmedia.com - direct: +91 - 942.592.6892 On Wed, Sep 30, 2009 at 3:33 PM, naveen chanda wrote: > > Hi, > > I have followed as per the steps mentioned, but the below error is getting > when i login with username/password: > > > > The Following Errors Occurred: > > unable to login this application > > > > Please help me to solve the issue. > > Thanks, > Naveen Chanda. > > > Mridul Pathak-2 wrote: > > > > You can manage Security Groups, their permissions and associated user > > logins > > under PartyMgr > Security tab ( > > https://demo.ofbiz.org/partymgr/control/FindSecurityGroup). > > Create a new Security Group, assign FACITLITY_VIEW, FACILITY_CREATE, > > FACILITY_UPDATE, FACILITY_DELETE, FACILITY_ADMIN permissions to this > > security group as per your requirements. Then you can assign this > > security > > group to a user login from same tab or Party Profile, under User Logins > > screenlet. > > > > > > -- > > Thanks & Regards > > Mridul Pathak > > Hotwax Media > > http://www.hotwaxmedia.com > > mridul.pat...@hotwaxmedia.com > > - > > direct: +91 - 942.592.6892 > > > > > > On Wed, Sep 30, 2009 at 12:55 PM, naveen chanda > > wrote: > > > >> > >> Dear All, > >> > >> Could anyone explain me the steps to create a new security group of type > >> (FACILITY) to access all the screens under Facility module. > >> > >> How can i create and add the security group to the user. > >> > >> Please help to do this. > >> > >> Thanks and Regards, > >> Naveen Chanda > >> -- > >> View this message in context: > >> > http://www.nabble.com/Creation-of-new-Security-group-%28Facility-module%29-tp25676226p25676226.html > >> Sent from the OFBiz - User mailing list archive at Nabble.com. > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/Creation-of-new-Security-group-%28Facility-module%29-tp25676226p25678252.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > >
Re: Regrading creating new Entities
auto-stamp="true"> Regards Scott On 30/09/2009, at 10:51 PM, Gnanashankar Shanmugam wrote: hi jacques, i created new component called entitytest, in that entitytest component entitymodel.xml, i created new entity called Planet. given below i wrote entity like in the above entity where i have to specific parameter no-auto-stamp. On Wed, Sep 30, 2009 at 3:00 PM, Jacques Le Roux < jacques.le.r...@les7arts.com> wrote: It's an attribute of Entity, see entitymodel.xml Jacques From: "Gnanashankar Shanmugam" hi jacques, In EntityEngine.xml, where i have to give no-auto-stamp parameter for entities..any explain clearly..Advance thanks.. On Wed, Sep 30, 2009 at 2:24 PM, Jacques Le Roux < jacques.le.r...@les7arts.com> wrote: There is a parameter no-auto-stamp for entities Jacques From: "Gnanashankar Shanmugam" The problem I'm having is when I use webtools to export the data I get a SQL error because the entity engine adds the following ofbiz columns to the SQL query: LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP Since the table is not an ofbiz entity the columns do not exist and the generated query will fail. Is there a way to specify in the entity model to only use those columns that are explicitly defined in the definition file? smime.p7s Description: S/MIME cryptographic signature
Re: Creation of new Security group (Facility module)
Hi, I have followed as per the steps mentioned, but the below error is getting when i login with username/password: The Following Errors Occurred: unable to login this application Please help me to solve the issue. Thanks, Naveen Chanda. Mridul Pathak-2 wrote: > > You can manage Security Groups, their permissions and associated user > logins > under PartyMgr > Security tab ( > https://demo.ofbiz.org/partymgr/control/FindSecurityGroup). > Create a new Security Group, assign FACITLITY_VIEW, FACILITY_CREATE, > FACILITY_UPDATE, FACILITY_DELETE, FACILITY_ADMIN permissions to this > security group as per your requirements. Then you can assign this > security > group to a user login from same tab or Party Profile, under User Logins > screenlet. > > > -- > Thanks & Regards > Mridul Pathak > Hotwax Media > http://www.hotwaxmedia.com > mridul.pat...@hotwaxmedia.com > - > direct: +91 - 942.592.6892 > > > On Wed, Sep 30, 2009 at 12:55 PM, naveen chanda > wrote: > >> >> Dear All, >> >> Could anyone explain me the steps to create a new security group of type >> (FACILITY) to access all the screens under Facility module. >> >> How can i create and add the security group to the user. >> >> Please help to do this. >> >> Thanks and Regards, >> Naveen Chanda >> -- >> View this message in context: >> http://www.nabble.com/Creation-of-new-Security-group-%28Facility-module%29-tp25676226p25676226.html >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Creation-of-new-Security-group-%28Facility-module%29-tp25676226p25678252.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Regrading creating new Entities
hi jacques, i created new component called entitytest, in that entitytest component entitymodel.xml, i created new entity called Planet. given below i wrote entity like in the above entity where i have to specific parameter no-auto-stamp. On Wed, Sep 30, 2009 at 3:00 PM, Jacques Le Roux < jacques.le.r...@les7arts.com> wrote: > It's an attribute of Entity, see entitymodel.xml > > > Jacques > > From: "Gnanashankar Shanmugam" > >> hi jacques, In EntityEngine.xml, where i have to give no-auto-stamp >> parameter for entities..any explain clearly..Advance thanks.. >> >> On Wed, Sep 30, 2009 at 2:24 PM, Jacques Le Roux < >> jacques.le.r...@les7arts.com> wrote: >> >> There is a parameter no-auto-stamp for entities >>> >>> Jacques >>> >>> From: "Gnanashankar Shanmugam" >>> >>> The problem I'm having is when I use webtools to export the data I get >>> a SQL error because the entity engine adds the following ofbiz columns to the SQL query: LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP Since the table is not an ofbiz entity the columns do not exist and the generated query will fail. Is there a way to specify in the entity model to only use those columns that are explicitly defined in the definition file? >>> >> >
Re: How to integrate ofbiz in JBoss
hi arun, i followed u steps up to 9. In the 10th steps, 10. From JBOSS_HOME\server\default\deploy\ofbiz.ear location, run ant command can you tell the command to run the ant. On Wed, Sep 30, 2009 at 2:08 PM, wrote: > Steps to Integrate JBOSS in OFBiz on WINDOWS platform > > 1. Download the latest OFBiz from the Apache site and unzip it. > 2. Compile the application and build the derby database by running > the command ?ant run-install?. > 3. Change the value of disable.log4j.config from false to true in > debug.properties >(OFBiz_HOME\framework\base\config\debug.properties). >disable.log4j.config = true > > 4. Download the JBOSS (jboss-4.2.2.GA) and unzip it. > 5. The JBOSS templates are included in the directory >OFBiz_HOME\framework\appserver\templates\jboss422 > > 6. Run the following command from the OFBiz directory: >java ?jar ofbiz.jar ?setup jboss422 > > 7. When this command finishes, a new directory will be created in the > ofbiz home directory called 'setup'. Inside this directory will be > subdirectory ?jboss422? containing several files: >a. build.xml - A template to build package and deploy OFBiz. >b. application.xml - A template to generate an applcation.xml > file for the deployment of OFBiz web applications. > > 8. Create a new directory for the ofbiz deployment inside the JBoss > deploy directory. Name this directory 'ofbiz.ear'; then copy the file > build.xml and application.xml from OFBIZ_HOME\setup\jboss422\ to this new > directory. >JBOSS_HOME\server\default\deploy \ofbiz.ear > > 9. Make a copy of entityengine .xml and rename that to > entityengine-jboss422.xml in OFBiz_HOME\framework\entity\config. Changes > required in this file are: >a. Comment the element > class="org.ofbiz.geronimo.GeronimoTransactionFactory"/> >b. Uncomment the element > class="org.ofbiz.entity.transaction.JNDIFactory"> > jndi-name="java:comp/UserTransaction"/> > jndi-name="java:comp/UserTransaction"/> > > >c. Change the value of jndi-name attribute of > transaction-manager-jndi element from "java:comp/UserTransaction" to > "java:/TransactionManager". > jndi-name="java:/TransactionManager"/> > >d. In the datasource element having attribute ?name? with > value ?localderby?, uncomment the sub-element ?jndi-jdbc? and change the > value of?jndi-name? from "java:/DerbyDataSource" to > ?java:/OFBizDS?. > isolation-level="ReadCommitted"/> > >e. In the datasource element having attribute ?name? with > value ?localderbyolap?, uncomment the sub-element ?jndi-jdbc? and change > the value of ?jndi-name? from "java:/DerbyDataSource" to > ?java:/OFBizOlapDS?. > jndi-name="java:/OFBizOlapDS " isolation-level="ReadCommitted"/> > > 10. From JBOSS_HOME\server\default\deploy\ofbiz.ear location, run ant > command. This must be run from inside the directory you wish to deploy > OFBiz into. This will package and deploy all the necessary libraries, > webapps and configuration files into the JBoss exploded EAR (directory). > > 11. Add the following lines in run.bat (JBOSS_HOME/bin) > set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver > set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME > > and comment the following line in run.bat, >rem set JAVA_OPTS=%JAVA_OPTS% > -Dsun.rmi.dgc.client.gcInterval=360 > -Dsun.rmi.dgc.server.gcInterval=360 > > 12. Add the following element in server.xml > (JBOSS_HOME\server\default\deploy\jboss-web.deployer) > keystoreFile="path" keystorePass="password" maxThreads="150" > scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> > > where, >path -> full path of keystore file >password -> password used to generate keystore file > >Note:- If required, you can change the port number. > > 13. Copy the derby directory from OFBiz_HOME\runtime\data and paste it > into the directory JBOSS_HOME\server\default\data. > > 14. Start the JBOSS server by running the run.bat (JBOSS_HOME\bin) > > > Thanks & Regards, > Arun Mehta | iLabs | L&T Infotech > Plot No.EL-200,TTC Electronic Zone, Navi Mumbai. > Office: +91-22-67954321 | Extn: 4321 > Mobile: 9970127578 > Email: arun.me...@lntinfotech.com > > Larsen & Toubro Infotech Ltd. > www.Lntinfotech.com > > This Document is classified as: > > L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech > Internal Use Only L&T Infotech General Business > > This Email may contain confidential or privileged information for the > intended recipient (s) If you are not the intended recipient, please do > not use or disseminate the information, notify the sender and delete it > from your system. > > > > Gnanashankar Shanmugam > 09/30/2009 01:31 PM > Please respond to > user@ofbiz.apache.org > >
Re: Regrading creating new Entities
It's an attribute of Entity, see entitymodel.xml Jacques From: "Gnanashankar Shanmugam" hi jacques, In EntityEngine.xml, where i have to give no-auto-stamp parameter for entities..any explain clearly..Advance thanks.. On Wed, Sep 30, 2009 at 2:24 PM, Jacques Le Roux < jacques.le.r...@les7arts.com> wrote: There is a parameter no-auto-stamp for entities Jacques From: "Gnanashankar Shanmugam" The problem I'm having is when I use webtools to export the data I get a SQL error because the entity engine adds the following ofbiz columns to the SQL query: LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP Since the table is not an ofbiz entity the columns do not exist and the generated query will fail. Is there a way to specify in the entity model to only use those columns that are explicitly defined in the definition file?
Error in Framework Introduction Videos
Hi All, I have noted an Error in one of the Framework Introduction Videos, the video "1. Introduction to OFBiz" which makes my player crash and causes a signal 11 error: http://docs.ofbiz.org/display/OFBTECH/Framework+Introduction+Videos+and+Diagrams I am using the Kaffeine Player running on SUSE Linux, all other videos are ok. Have anybody else noticed this problem with the video? -André
Re: Regrading creating new Entities
hi jacques, In EntityEngine.xml, where i have to give no-auto-stamp parameter for entities..any explain clearly..Advance thanks.. On Wed, Sep 30, 2009 at 2:24 PM, Jacques Le Roux < jacques.le.r...@les7arts.com> wrote: > There is a parameter no-auto-stamp for entities > > Jacques > > From: "Gnanashankar Shanmugam" > > The problem I'm having is when I use webtools to export the data I get >> a SQL error because the entity engine adds the following ofbiz columns >> to the SQL query: >> >> LAST_UPDATED_STAMP, >> LAST_UPDATED_TX_STAMP, >> CREATED_STAMP, >> CREATED_TX_STAMP >> >> >> Since the table is not an ofbiz entity the columns do not exist and >> the generated query will fail. Is there a way to specify in the >> entity model to only use those columns that are explicitly defined in >> the definition file? >> >> >
Re: Regrading creating new Entities
There is a parameter no-auto-stamp for entities Jacques From: "Gnanashankar Shanmugam" The problem I'm having is when I use webtools to export the data I get a SQL error because the entity engine adds the following ofbiz columns to the SQL query: LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP Since the table is not an ofbiz entity the columns do not exist and the generated query will fail. Is there a way to specify in the entity model to only use those columns that are explicitly defined in the definition file?
Is this possible? (Distributed databases)
Hi all, In my project I have several partners, each of them have their own database with the products that they supply. So, is there any way that ofbiz can look in more than one database to present the products in the main web and in the search function? If yes, can you point me a little? If no, would be this very difficult to code? Thanks in advance, Mario. -- View this message in context: http://www.nabble.com/Is-this-possible--%28Distributed-databases%29-tp25677214p25677214.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: How to integrate ofbiz in JBoss
Thank You Arun Mehta..now I am following your steps... On Wed, Sep 30, 2009 at 2:08 PM, wrote: > Steps to Integrate JBOSS in OFBiz on WINDOWS platform > > 1. Download the latest OFBiz from the Apache site and unzip it. > 2. Compile the application and build the derby database by running > the command ?ant run-install?. > 3. Change the value of disable.log4j.config from false to true in > debug.properties >(OFBiz_HOME\framework\base\config\debug.properties). >disable.log4j.config = true > > 4. Download the JBOSS (jboss-4.2.2.GA) and unzip it. > 5. The JBOSS templates are included in the directory >OFBiz_HOME\framework\appserver\templates\jboss422 > > 6. Run the following command from the OFBiz directory: >java ?jar ofbiz.jar ?setup jboss422 > > 7. When this command finishes, a new directory will be created in the > ofbiz home directory called 'setup'. Inside this directory will be > subdirectory ?jboss422? containing several files: >a. build.xml - A template to build package and deploy OFBiz. >b. application.xml - A template to generate an applcation.xml > file for the deployment of OFBiz web applications. > > 8. Create a new directory for the ofbiz deployment inside the JBoss > deploy directory. Name this directory 'ofbiz.ear'; then copy the file > build.xml and application.xml from OFBIZ_HOME\setup\jboss422\ to this new > directory. >JBOSS_HOME\server\default\deploy \ofbiz.ear > > 9. Make a copy of entityengine .xml and rename that to > entityengine-jboss422.xml in OFBiz_HOME\framework\entity\config. Changes > required in this file are: >a. Comment the element > class="org.ofbiz.geronimo.GeronimoTransactionFactory"/> >b. Uncomment the element > class="org.ofbiz.entity.transaction.JNDIFactory"> > jndi-name="java:comp/UserTransaction"/> > jndi-name="java:comp/UserTransaction"/> > > >c. Change the value of jndi-name attribute of > transaction-manager-jndi element from "java:comp/UserTransaction" to > "java:/TransactionManager". > jndi-name="java:/TransactionManager"/> > >d. In the datasource element having attribute ?name? with > value ?localderby?, uncomment the sub-element ?jndi-jdbc? and change the > value of?jndi-name? from "java:/DerbyDataSource" to > ?java:/OFBizDS?. > isolation-level="ReadCommitted"/> > >e. In the datasource element having attribute ?name? with > value ?localderbyolap?, uncomment the sub-element ?jndi-jdbc? and change > the value of ?jndi-name? from "java:/DerbyDataSource" to > ?java:/OFBizOlapDS?. > jndi-name="java:/OFBizOlapDS " isolation-level="ReadCommitted"/> > > 10. From JBOSS_HOME\server\default\deploy\ofbiz.ear location, run ant > command. This must be run from inside the directory you wish to deploy > OFBiz into. This will package and deploy all the necessary libraries, > webapps and configuration files into the JBoss exploded EAR (directory). > > 11. Add the following lines in run.bat (JBOSS_HOME/bin) > set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver > set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME > > and comment the following line in run.bat, >rem set JAVA_OPTS=%JAVA_OPTS% > -Dsun.rmi.dgc.client.gcInterval=360 > -Dsun.rmi.dgc.server.gcInterval=360 > > 12. Add the following element in server.xml > (JBOSS_HOME\server\default\deploy\jboss-web.deployer) > keystoreFile="path" keystorePass="password" maxThreads="150" > scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> > > where, >path -> full path of keystore file >password -> password used to generate keystore file > >Note:- If required, you can change the port number. > > 13. Copy the derby directory from OFBiz_HOME\runtime\data and paste it > into the directory JBOSS_HOME\server\default\data. > > 14. Start the JBOSS server by running the run.bat (JBOSS_HOME\bin) > > > Thanks & Regards, > Arun Mehta | iLabs | L&T Infotech > Plot No.EL-200,TTC Electronic Zone, Navi Mumbai. > Office: +91-22-67954321 | Extn: 4321 > Mobile: 9970127578 > Email: arun.me...@lntinfotech.com > > Larsen & Toubro Infotech Ltd. > www.Lntinfotech.com > > This Document is classified as: > > L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech > Internal Use Only L&T Infotech General Business > > This Email may contain confidential or privileged information for the > intended recipient (s) If you are not the intended recipient, please do > not use or disseminate the information, notify the sender and delete it > from your system. > > > > Gnanashankar Shanmugam > 09/30/2009 01:31 PM > Please respond to > user@ofbiz.apache.org > > > To > user@ofbiz.apache.org > cc > > Subject > How to integrate ofbiz in JBoss > > > > > > > hi, > can any tell steps to Integ
Re: How to integrate ofbiz in JBoss
From: "Olindo Pindaro" I have a similar problem (deploy on Websphere). This is what i found: 1) OfBiz is started a selfcontained jar who has inside tomcat and geronimo. Using starting opzion -setup managed by class Start.java you can deploy framework as exploded EAR in a directory. Configuration files are used to instruct where is deploy dir, ecc. ecc. 2) Not all server are supported (IBM websphere not), check for JBOSS, if non supported you have to adapt the code for your server. IBM websphere not but IBM WASCE is, look into wiki, ok I put the link http://docs.ofbiz.org/display/OFBTECH/Run+OFBiz+under+outside+Application+Servers A question for OBZIF developers/Manteiners: If create a setup for WebSphere I must/can release my code? if yes How! Follow the path already opened, see link above HTH Jacques Bye All Olindo 2009/9/30 Gnanashankar Shanmugam hi, can any tell steps to Integrate ofbiz in JBoss webserver in Windows XP Os... -- Olindo Pindaro http://www.linkedin.com/in/olindopindaro +39 3939455830
Re: How to integrate ofbiz in JBoss
Steps to Integrate JBOSS in OFBiz on WINDOWS platform 1. Download the latest OFBiz from the Apache site and unzip it. 2. Compile the application and build the derby database by running the command ?ant run-install?. 3. Change the value of disable.log4j.config from false to true in debug.properties (OFBiz_HOME\framework\base\config\debug.properties). disable.log4j.config = true 4. Download the JBOSS (jboss-4.2.2.GA) and unzip it. 5. The JBOSS templates are included in the directory OFBiz_HOME\framework\appserver\templates\jboss422 6. Run the following command from the OFBiz directory: java ?jar ofbiz.jar ?setup jboss422 7. When this command finishes, a new directory will be created in the ofbiz home directory called 'setup'. Inside this directory will be subdirectory ?jboss422? containing several files: a. build.xml - A template to build package and deploy OFBiz. b. application.xml - A template to generate an applcation.xml file for the deployment of OFBiz web applications. 8. Create a new directory for the ofbiz deployment inside the JBoss deploy directory. Name this directory 'ofbiz.ear'; then copy the file build.xml and application.xml from OFBIZ_HOME\setup\jboss422\ to this new directory. JBOSS_HOME\server\default\deploy \ofbiz.ear 9. Make a copy of entityengine .xml and rename that to entityengine-jboss422.xml in OFBiz_HOME\framework\entity\config. Changes required in this file are: a. Comment the element b. Uncomment the element c. Change the value of jndi-name attribute of transaction-manager-jndi element from "java:comp/UserTransaction" to "java:/TransactionManager". d. In the datasource element having attribute ?name? with value ?localderby?, uncomment the sub-element ?jndi-jdbc? and change the value of?jndi-name? from "java:/DerbyDataSource" to ?java:/OFBizDS?. e. In the datasource element having attribute ?name? with value ?localderbyolap?, uncomment the sub-element ?jndi-jdbc? and change the value of ?jndi-name? from "java:/DerbyDataSource" to ?java:/OFBizOlapDS?. 10. From JBOSS_HOME\server\default\deploy\ofbiz.ear location, run ant command. This must be run from inside the directory you wish to deploy OFBiz into. This will package and deploy all the necessary libraries, webapps and configuration files into the JBoss exploded EAR (directory). 11. Add the following lines in run.bat (JBOSS_HOME/bin) set JAVA_OPTS=%JAVA_OPTS% -Djboss.platform.mbeanserver set JAVA_OPTS=%JAVA_OPTS% -Dofbiz.home=OFBIZ_HOME and comment the following line in run.bat, rem set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360 12. Add the following element in server.xml (JBOSS_HOME\server\default\deploy\jboss-web.deployer) where, path -> full path of keystore file password -> password used to generate keystore file Note:- If required, you can change the port number. 13. Copy the derby directory from OFBiz_HOME\runtime\data and paste it into the directory JBOSS_HOME\server\default\data. 14. Start the JBOSS server by running the run.bat (JBOSS_HOME\bin) Thanks & Regards, Arun Mehta | iLabs | L&T Infotech Plot No.EL-200,TTC Electronic Zone, Navi Mumbai. Office: +91-22-67954321 | Extn: 4321 Mobile: 9970127578 Email: arun.me...@lntinfotech.com Larsen & Toubro Infotech Ltd. www.Lntinfotech.com This Document is classified as: L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech Internal Use Only L&T Infotech General Business This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. Gnanashankar Shanmugam 09/30/2009 01:31 PM Please respond to user@ofbiz.apache.org To user@ofbiz.apache.org cc Subject How to integrate ofbiz in JBoss hi, can any tell steps to Integrate ofbiz in JBoss webserver in Windows XP Os... __ __
Re: gatewayMessage should be pgrMessage in savePaymentGatewayResponse
You could use the same service I guess since it's only real function is to save a generic value. I would change the service definition though so that there is a separate input attribute for a paymentGatewayResponseMsg and instead of checking checking the entity name just check which attribute has been passed in, I think this will be clearer for people looking at the code. Regards Scott On 30/09/2009, at 9:30 PM, Abdullah Shaikh wrote: Scott, Should we then have a separate service for saving PaymentGatewayResponseMsgs or should we have a condition in savePaymentGatewayResponse, which will check the entity name (genericvalue.getEntityName()), and decided on the field mapping ? On Wed, Sep 30, 2009 at 1:56 PM, Abdullah Shaikh < abdullah.sha...@viithiisys.com> wrote: The savePgr method of PaymentGatewayServices, is called from multiple places, this method expects 2 parameters, DispatchContext & GenericValue, but the issue is the calling methods which calls savePgr methods passes PaymentGatewayResponse in some places and PaymentGatewayRespMsg in some places. The savePgr method in turn calls savePaymentGatewayResponse service. I guess we need to have one more method which will work if PaymentGatewayRespMsg as GenericValue is passed or may be a condition based on the entity name which we can get from the GenericValue ? Any other thoughts ? On Wed, Sep 30, 2009 at 1:54 PM, Scott Gray >wrote: You are right Abdullah, it looks the like the code calling the service is attempting to use it for saving both PaymentGatewayResponses and PaymentGatewayResponseMsgs, but it is only capable of handling the former. The fix I think would be to have a separate service for saving PaymentGatewayResponseMsgs and have the calling code use that where needed. Regards Scott On 30/09/2009, at 8:52 PM, Abdullah Shaikh wrote: Hi Scott, Yes, PaymentGatewayResponse does have a field called gatewayMessage, but the GenericValue we are getting from the context is of PaymentGatewayRespMsg. There can be two cases here: 1) Either the GenericValue that we are getting from the context should be of type PaymentGatewayResponse, which currently is PaymentGatewayRespMsg or 2) The field name should be changed as I mentioned earlier. Below is the error that I was getting that lead me to this issue : exception report -- [java] Service [savePaymentGatewayResponse] threw an unexpected exception/error [java] Exception: org.ofbiz.service.GenericServiceException [java] Message: Service [savePaymentGatewayResponse] target threw an unexpected exception ([GenericEntity.get] "gatewayMessage" is not a field of PaymentGatewayRespMsg) [java] cause - [java] Exception: java.lang.IllegalArgumentException [java] Message: [GenericEntity.get] "gatewayMessage" is not a field of PaymentGatewayRespMsg [java] stack trace --- [java] java.lang.IllegalArgumentException: [GenericEntity.get] "gatewayMessage" is not a field of PaymentGatewayRespMsg [java] org.ofbiz.entity.GenericEntity.get(GenericEntity.java:305) [java] org.ofbiz.entity.GenericEntity.getString(GenericEntity.java:582) [java] org .ofbiz .accounting .payment .PaymentGatewayServices .savePaymentGatewayResponse(PaymentGatewayServices.java:2850) On Wed, Sep 30, 2009 at 12:07 PM, Abdullah Shaikh < abdullah.sha...@viithiisys.com> wrote: Jira issue created and patch attached, https://issues.apache.org/jira/browse/OFBIZ-2978 On Wed, Sep 30, 2009 at 2:07 AM, Scott Gray wrote: Yes please Regards Scott On 30/09/2009, at 1:45 AM, Abdullah Shaikh wrote: Should I submit the patch ? On Tue, Sep 29, 2009 at 4:00 PM, Abdullah Shaikh < abdullah.sha...@viithiisys.com> wrote: In savePaymentGatewayResponse method of PaymentGatewayServices class, we are setting the "gatewayMessage" field on the GenericValue of PaymentGatewayRespMsg, but there is no field named "gatewayMessage" in entity PaymentGatewayRespMsg but instead we need to use "pgrMessage" in place of "gatewayMessage". I guess we mistakely assumed the GenericValue which we get from the context, context.get("paymentGatewayResponse");, to be of PaymentGatewayResponse, but its the GenericValue of PaymentGatewayRespMsg but while putting it on the context we named it as "paymentGatewayResponse". I have changed the savePaymentGatewayResponse, and will submit the patch, but before submitting I would like to confirm this. smime.p7s Description: S/MIME cryptographic signature
Re: How to integrate ofbiz in JBoss
Look into wiki Jacques From: "Gnanashankar Shanmugam" hi, can any tell steps to Integrate ofbiz in JBoss webserver in Windows XP Os...
Re: gatewayMessage should be pgrMessage in savePaymentGatewayResponse
Scott, Should we then have a separate service for saving PaymentGatewayResponseMsgs or should we have a condition in savePaymentGatewayResponse, which will check the entity name (genericvalue.getEntityName()), and decided on the field mapping ? On Wed, Sep 30, 2009 at 1:56 PM, Abdullah Shaikh < abdullah.sha...@viithiisys.com> wrote: > The savePgr method of PaymentGatewayServices, is called from multiple > places, this method expects 2 parameters, DispatchContext & GenericValue, > but the issue is the calling methods which calls savePgr methods passes > PaymentGatewayResponse in some places and PaymentGatewayRespMsg in some > places. > > The savePgr method in turn calls savePaymentGatewayResponse service. > > I guess we need to have one more method which will work if > PaymentGatewayRespMsg as GenericValue is passed or may be a condition based > on the entity name which we can get from the GenericValue ? > > Any other thoughts ? > > On Wed, Sep 30, 2009 at 1:54 PM, Scott Gray wrote: > >> You are right Abdullah, it looks the like the code calling the service is >> attempting to use it for saving both PaymentGatewayResponses and >> PaymentGatewayResponseMsgs, but it is only capable of handling the former. >> The fix I think would be to have a separate service for saving >> PaymentGatewayResponseMsgs and have the calling code use that where needed. >> >> Regards >> Scott >> >> >> On 30/09/2009, at 8:52 PM, Abdullah Shaikh wrote: >> >> Hi Scott, >>> >>> Yes, PaymentGatewayResponse does have a field called gatewayMessage, but >>> the >>> GenericValue we are getting from the context is of PaymentGatewayRespMsg. >>> >>> There can be two cases here: >>> >>> 1) Either the GenericValue that we are getting from the context should be >>> of >>> type PaymentGatewayResponse, which currently is PaymentGatewayRespMsg >>> >>> or >>> >>> 2) The field name should be changed as I mentioned earlier. >>> >>> Below is the error that I was getting that lead me to this issue : >>> >>> exception report >>> -- >>>[java] Service [savePaymentGatewayResponse] threw an unexpected >>> exception/error >>>[java] Exception: org.ofbiz.service.GenericServiceException >>>[java] Message: Service [savePaymentGatewayResponse] target threw an >>> unexpected exception ([GenericEntity.get] "gatewayMessage" is not a field >>> of >>> PaymentGatewayRespMsg) >>>[java] cause >>> - >>>[java] Exception: java.lang.IllegalArgumentException >>>[java] Message: [GenericEntity.get] "gatewayMessage" is not a field of >>> PaymentGatewayRespMsg >>>[java] stack trace >>> --- >>>[java] java.lang.IllegalArgumentException: [GenericEntity.get] >>> "gatewayMessage" is not a field of PaymentGatewayRespMsg >>>[java] org.ofbiz.entity.GenericEntity.get(GenericEntity.java:305) >>>[java] >>> org.ofbiz.entity.GenericEntity.getString(GenericEntity.java:582) >>>[java] >>> >>> org.ofbiz.accounting.payment.PaymentGatewayServices.savePaymentGatewayResponse(PaymentGatewayServices.java:2850) >>> >>> >>> On Wed, Sep 30, 2009 at 12:07 PM, Abdullah Shaikh < >>> abdullah.sha...@viithiisys.com> wrote: >>> >>> Jira issue created and patch attached, https://issues.apache.org/jira/browse/OFBIZ-2978 On Wed, Sep 30, 2009 at 2:07 AM, Scott Gray >>> >wrote: Yes please > > Regards > Scott > > > On 30/09/2009, at 1:45 AM, Abdullah Shaikh wrote: > > Should I submit the patch ? > >> >> On Tue, Sep 29, 2009 at 4:00 PM, Abdullah Shaikh < >> abdullah.sha...@viithiisys.com> wrote: >> >> In savePaymentGatewayResponse method of PaymentGatewayServices class, >> we >> >>> are setting the "gatewayMessage" field on the GenericValue of >>> PaymentGatewayRespMsg, but there is no field named "gatewayMessage" >>> in >>> entity PaymentGatewayRespMsg but instead we need to use "pgrMessage" >>> in >>> place of "gatewayMessage". >>> >>> I guess we mistakely assumed the GenericValue which we get from the >>> context, context.get("paymentGatewayResponse");, to be of >>> PaymentGatewayResponse, but its the GenericValue of >>> PaymentGatewayRespMsg >>> but while putting it on the context we named it as >>> "paymentGatewayResponse". >>> >>> I have changed the savePaymentGatewayResponse, and will submit the >>> patch, >>> but before submitting I would like to confirm this. >>> >>> >>> > >> >
Re: How to integrate ofbiz in JBoss
I have a similar problem (deploy on Websphere). This is what i found: 1) OfBiz is started a selfcontained jar who has inside tomcat and geronimo. Using starting opzion -setup managed by class Start.java you can deploy framework as exploded EAR in a directory. Configuration files are used to instruct where is deploy dir, ecc. ecc. 2) Not all server are supported (IBM websphere not), check for JBOSS, if non supported you have to adapt the code for your server. A question for OBZIF developers/Manteiners: If create a setup for WebSphere I must/can release my code? if yes How! Bye All Olindo 2009/9/30 Gnanashankar Shanmugam > hi, > can any tell steps to Integrate ofbiz in JBoss webserver in Windows XP > Os... > -- Olindo Pindaro http://www.linkedin.com/in/olindopindaro +39 3939455830
Re: gatewayMessage should be pgrMessage in savePaymentGatewayResponse
The savePgr method of PaymentGatewayServices, is called from multiple places, this method expects 2 parameters, DispatchContext & GenericValue, but the issue is the calling methods which calls savePgr methods passes PaymentGatewayResponse in some places and PaymentGatewayRespMsg in some places. The savePgr method in turn calls savePaymentGatewayResponse service. I guess we need to have one more method which will work if PaymentGatewayRespMsg as GenericValue is passed or may be a condition based on the entity name which we can get from the GenericValue ? Any other thoughts ? On Wed, Sep 30, 2009 at 1:54 PM, Scott Gray wrote: > You are right Abdullah, it looks the like the code calling the service is > attempting to use it for saving both PaymentGatewayResponses and > PaymentGatewayResponseMsgs, but it is only capable of handling the former. > The fix I think would be to have a separate service for saving > PaymentGatewayResponseMsgs and have the calling code use that where needed. > > Regards > Scott > > > On 30/09/2009, at 8:52 PM, Abdullah Shaikh wrote: > > Hi Scott, >> >> Yes, PaymentGatewayResponse does have a field called gatewayMessage, but >> the >> GenericValue we are getting from the context is of PaymentGatewayRespMsg. >> >> There can be two cases here: >> >> 1) Either the GenericValue that we are getting from the context should be >> of >> type PaymentGatewayResponse, which currently is PaymentGatewayRespMsg >> >> or >> >> 2) The field name should be changed as I mentioned earlier. >> >> Below is the error that I was getting that lead me to this issue : >> >> exception report >> -- >>[java] Service [savePaymentGatewayResponse] threw an unexpected >> exception/error >>[java] Exception: org.ofbiz.service.GenericServiceException >>[java] Message: Service [savePaymentGatewayResponse] target threw an >> unexpected exception ([GenericEntity.get] "gatewayMessage" is not a field >> of >> PaymentGatewayRespMsg) >>[java] cause >> - >>[java] Exception: java.lang.IllegalArgumentException >>[java] Message: [GenericEntity.get] "gatewayMessage" is not a field of >> PaymentGatewayRespMsg >>[java] stack trace >> --- >>[java] java.lang.IllegalArgumentException: [GenericEntity.get] >> "gatewayMessage" is not a field of PaymentGatewayRespMsg >>[java] org.ofbiz.entity.GenericEntity.get(GenericEntity.java:305) >>[java] org.ofbiz.entity.GenericEntity.getString(GenericEntity.java:582) >>[java] >> >> org.ofbiz.accounting.payment.PaymentGatewayServices.savePaymentGatewayResponse(PaymentGatewayServices.java:2850) >> >> >> On Wed, Sep 30, 2009 at 12:07 PM, Abdullah Shaikh < >> abdullah.sha...@viithiisys.com> wrote: >> >> Jira issue created and patch attached, >>> https://issues.apache.org/jira/browse/OFBIZ-2978 >>> >>> >>> On Wed, Sep 30, 2009 at 2:07 AM, Scott Gray >> >wrote: >>> >>> Yes please Regards Scott On 30/09/2009, at 1:45 AM, Abdullah Shaikh wrote: Should I submit the patch ? > > On Tue, Sep 29, 2009 at 4:00 PM, Abdullah Shaikh < > abdullah.sha...@viithiisys.com> wrote: > > In savePaymentGatewayResponse method of PaymentGatewayServices class, > we > >> are setting the "gatewayMessage" field on the GenericValue of >> PaymentGatewayRespMsg, but there is no field named "gatewayMessage" in >> entity PaymentGatewayRespMsg but instead we need to use "pgrMessage" >> in >> place of "gatewayMessage". >> >> I guess we mistakely assumed the GenericValue which we get from the >> context, context.get("paymentGatewayResponse");, to be of >> PaymentGatewayResponse, but its the GenericValue of >> PaymentGatewayRespMsg >> but while putting it on the context we named it as >> "paymentGatewayResponse". >> >> I have changed the savePaymentGatewayResponse, and will submit the >> patch, >> but before submitting I would like to confirm this. >> >> >> >>> >
Re: gatewayMessage should be pgrMessage in savePaymentGatewayResponse
The savePgr method of PaymentGatewayServices, is called from multiple places, this method expects 2 parameters, DispatchContext & GenericValue, but the issue is the calling methods which calls savePgr methods passes PaymentGatewayResponse in some places and PaymentGatewayRespMsg in some places. The savePgr method in turn calls savePaymentGatewayResponse service. I guess we need to have one more method which will work if PaymentGatewayRespMsg as GenericValue is passed or may be a condition based on the entity name which we can get from the GenericValue ? Any other thoughts ? On Wed, Sep 30, 2009 at 1:22 PM, Abdullah Shaikh < abdullah.sha...@viithiisys.com> wrote: > Hi Scott, > > Yes, PaymentGatewayResponse does have a field called gatewayMessage, but > the GenericValue we are getting from the context is of > PaymentGatewayRespMsg. > > There can be two cases here: > > 1) Either the GenericValue that we are getting from the context should be > of type PaymentGatewayResponse, which currently is PaymentGatewayRespMsg > > or > > 2) The field name should be changed as I mentioned earlier. > > Below is the error that I was getting that lead me to this issue : > > exception report > -- > [java] Service [savePaymentGatewayResponse] threw an unexpected > exception/error > [java] Exception: org.ofbiz.service.GenericServiceException > [java] Message: Service [savePaymentGatewayResponse] target threw an > unexpected exception ([GenericEntity.get] "gatewayMessage" is not a field of > PaymentGatewayRespMsg) > [java] cause > - > [java] Exception: java.lang.IllegalArgumentException > [java] Message: [GenericEntity.get] "gatewayMessage" is not a field of > PaymentGatewayRespMsg > [java] stack trace > --- > [java] java.lang.IllegalArgumentException: [GenericEntity.get] > "gatewayMessage" is not a field of PaymentGatewayRespMsg > [java] org.ofbiz.entity.GenericEntity.get(GenericEntity.java:305) > [java] > org.ofbiz.entity.GenericEntity.getString(GenericEntity.java:582) > [java] > org.ofbiz.accounting.payment.PaymentGatewayServices.savePaymentGatewayResponse(PaymentGatewayServices.java:2850) > > > > On Wed, Sep 30, 2009 at 12:07 PM, Abdullah Shaikh < > abdullah.sha...@viithiisys.com> wrote: > >> Jira issue created and patch attached, >> https://issues.apache.org/jira/browse/OFBIZ-2978 >> >> >> On Wed, Sep 30, 2009 at 2:07 AM, Scott Gray >> wrote: >> >>> Yes please >>> >>> Regards >>> Scott >>> >>> >>> On 30/09/2009, at 1:45 AM, Abdullah Shaikh wrote: >>> >>> Should I submit the patch ? On Tue, Sep 29, 2009 at 4:00 PM, Abdullah Shaikh < abdullah.sha...@viithiisys.com> wrote: In savePaymentGatewayResponse method of PaymentGatewayServices class, > we > are setting the "gatewayMessage" field on the GenericValue of > PaymentGatewayRespMsg, but there is no field named "gatewayMessage" in > entity PaymentGatewayRespMsg but instead we need to use "pgrMessage" in > place of "gatewayMessage". > > I guess we mistakely assumed the GenericValue which we get from the > context, context.get("paymentGatewayResponse");, to be of > PaymentGatewayResponse, but its the GenericValue of > PaymentGatewayRespMsg > but while putting it on the context we named it as > "paymentGatewayResponse". > > I have changed the savePaymentGatewayResponse, and will submit the > patch, > but before submitting I would like to confirm this. > > >>> >> >
Re: gatewayMessage should be pgrMessage in savePaymentGatewayResponse
You are right Abdullah, it looks the like the code calling the service is attempting to use it for saving both PaymentGatewayResponses and PaymentGatewayResponseMsgs, but it is only capable of handling the former. The fix I think would be to have a separate service for saving PaymentGatewayResponseMsgs and have the calling code use that where needed. Regards Scott On 30/09/2009, at 8:52 PM, Abdullah Shaikh wrote: Hi Scott, Yes, PaymentGatewayResponse does have a field called gatewayMessage, but the GenericValue we are getting from the context is of PaymentGatewayRespMsg. There can be two cases here: 1) Either the GenericValue that we are getting from the context should be of type PaymentGatewayResponse, which currently is PaymentGatewayRespMsg or 2) The field name should be changed as I mentioned earlier. Below is the error that I was getting that lead me to this issue : exception report -- [java] Service [savePaymentGatewayResponse] threw an unexpected exception/error [java] Exception: org.ofbiz.service.GenericServiceException [java] Message: Service [savePaymentGatewayResponse] target threw an unexpected exception ([GenericEntity.get] "gatewayMessage" is not a field of PaymentGatewayRespMsg) [java] cause - [java] Exception: java.lang.IllegalArgumentException [java] Message: [GenericEntity.get] "gatewayMessage" is not a field of PaymentGatewayRespMsg [java] stack trace --- [java] java.lang.IllegalArgumentException: [GenericEntity.get] "gatewayMessage" is not a field of PaymentGatewayRespMsg [java] org.ofbiz.entity.GenericEntity.get(GenericEntity.java:305) [java] org.ofbiz.entity.GenericEntity.getString(GenericEntity.java:582) [java] org .ofbiz .accounting .payment .PaymentGatewayServices .savePaymentGatewayResponse(PaymentGatewayServices.java:2850) On Wed, Sep 30, 2009 at 12:07 PM, Abdullah Shaikh < abdullah.sha...@viithiisys.com> wrote: Jira issue created and patch attached, https://issues.apache.org/jira/browse/OFBIZ-2978 On Wed, Sep 30, 2009 at 2:07 AM, Scott Gray >wrote: Yes please Regards Scott On 30/09/2009, at 1:45 AM, Abdullah Shaikh wrote: Should I submit the patch ? On Tue, Sep 29, 2009 at 4:00 PM, Abdullah Shaikh < abdullah.sha...@viithiisys.com> wrote: In savePaymentGatewayResponse method of PaymentGatewayServices class, we are setting the "gatewayMessage" field on the GenericValue of PaymentGatewayRespMsg, but there is no field named "gatewayMessage" in entity PaymentGatewayRespMsg but instead we need to use "pgrMessage" in place of "gatewayMessage". I guess we mistakely assumed the GenericValue which we get from the context, context.get("paymentGatewayResponse");, to be of PaymentGatewayResponse, but its the GenericValue of PaymentGatewayRespMsg but while putting it on the context we named it as "paymentGatewayResponse". I have changed the savePaymentGatewayResponse, and will submit the patch, but before submitting I would like to confirm this. smime.p7s Description: S/MIME cryptographic signature
Re: gatewayMessage should be pgrMessage in savePaymentGatewayResponse
Hi Scott, Yes, PaymentGatewayResponse does have a field called gatewayMessage, but the GenericValue we are getting from the context is of PaymentGatewayRespMsg. There can be two cases here: 1) Either the GenericValue that we are getting from the context should be of type PaymentGatewayResponse, which currently is PaymentGatewayRespMsg or 2) The field name should be changed as I mentioned earlier. Below is the error that I was getting that lead me to this issue : exception report -- [java] Service [savePaymentGatewayResponse] threw an unexpected exception/error [java] Exception: org.ofbiz.service.GenericServiceException [java] Message: Service [savePaymentGatewayResponse] target threw an unexpected exception ([GenericEntity.get] "gatewayMessage" is not a field of PaymentGatewayRespMsg) [java] cause - [java] Exception: java.lang.IllegalArgumentException [java] Message: [GenericEntity.get] "gatewayMessage" is not a field of PaymentGatewayRespMsg [java] stack trace --- [java] java.lang.IllegalArgumentException: [GenericEntity.get] "gatewayMessage" is not a field of PaymentGatewayRespMsg [java] org.ofbiz.entity.GenericEntity.get(GenericEntity.java:305) [java] org.ofbiz.entity.GenericEntity.getString(GenericEntity.java:582) [java] org.ofbiz.accounting.payment.PaymentGatewayServices.savePaymentGatewayResponse(PaymentGatewayServices.java:2850) On Wed, Sep 30, 2009 at 12:07 PM, Abdullah Shaikh < abdullah.sha...@viithiisys.com> wrote: > Jira issue created and patch attached, > https://issues.apache.org/jira/browse/OFBIZ-2978 > > > On Wed, Sep 30, 2009 at 2:07 AM, Scott Gray wrote: > >> Yes please >> >> Regards >> Scott >> >> >> On 30/09/2009, at 1:45 AM, Abdullah Shaikh wrote: >> >> Should I submit the patch ? >>> >>> On Tue, Sep 29, 2009 at 4:00 PM, Abdullah Shaikh < >>> abdullah.sha...@viithiisys.com> wrote: >>> >>> In savePaymentGatewayResponse method of PaymentGatewayServices class, we are setting the "gatewayMessage" field on the GenericValue of PaymentGatewayRespMsg, but there is no field named "gatewayMessage" in entity PaymentGatewayRespMsg but instead we need to use "pgrMessage" in place of "gatewayMessage". I guess we mistakely assumed the GenericValue which we get from the context, context.get("paymentGatewayResponse");, to be of PaymentGatewayResponse, but its the GenericValue of PaymentGatewayRespMsg but while putting it on the context we named it as "paymentGatewayResponse". I have changed the savePaymentGatewayResponse, and will submit the patch, but before submitting I would like to confirm this. >> >
Re: Creation of new Security group (Facility module)
You can manage Security Groups, their permissions and associated user logins under PartyMgr > Security tab ( https://demo.ofbiz.org/partymgr/control/FindSecurityGroup). Create a new Security Group, assign FACITLITY_VIEW, FACILITY_CREATE, FACILITY_UPDATE, FACILITY_DELETE, FACILITY_ADMIN permissions to this security group as per your requirements. Then you can assign this security group to a user login from same tab or Party Profile, under User Logins screenlet. -- Thanks & Regards Mridul Pathak Hotwax Media http://www.hotwaxmedia.com mridul.pat...@hotwaxmedia.com - direct: +91 - 942.592.6892 On Wed, Sep 30, 2009 at 12:55 PM, naveen chanda wrote: > > Dear All, > > Could anyone explain me the steps to create a new security group of type > (FACILITY) to access all the screens under Facility module. > > How can i create and add the security group to the user. > > Please help to do this. > > Thanks and Regards, > Naveen Chanda > -- > View this message in context: > http://www.nabble.com/Creation-of-new-Security-group-%28Facility-module%29-tp25676226p25676226.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > >
Re: Update Survey Response?
I found that "Edit Survey Response" always creates a new response, instead of updating one. I believe this is a bug in applications/content/script/org/ofbiz/content/survey/SurveyServices.xml --- applications/content/script/org/ofbiz/content/survey/SurveyServices.xml.orig 2009-09-30 00:27:18.0 -0700 +++ applications/content/script/org/ofbiz/content/survey/SurveyServices.xml 2009-09-30 00:28:06.0 -0700 @@ -475,7 +475,7 @@ - + -- James McGill Able Engineering Phoenix AZ
Creation of new Security group (Facility module)
Dear All, Could anyone explain me the steps to create a new security group of type (FACILITY) to access all the screens under Facility module. How can i create and add the security group to the user. Please help to do this. Thanks and Regards, Naveen Chanda -- View this message in context: http://www.nabble.com/Creation-of-new-Security-group-%28Facility-module%29-tp25676226p25676226.html Sent from the OFBiz - User mailing list archive at Nabble.com.
How to use @loopSubContent
Hello, I try to use the @loopSubContent tag in the CMS part, but quite unsuccessfully for the moment. To keep it simple : I have a node content that is a freemarker template with subcontents that are images (all having the mapKey imageItem). In the node content if I write the following code : <#list thisContent.subcontent_all as imageItem> ${imageItem} it renders a list of images, but if i have other things than image it renders them also How can I do the same with the @loopSubContent syntax in order to just keep the subcontent with the mapKey=imageItem ? I tried <@loopSubContent contentId=thisContent.fields.contentId mapKey="imageItem"> ${content} Whatever parameters I put in the @loopSubContent tag I get a java null lang pointer exception thrown by FreeMarkerWorker.saveValues that is called by LoopSubContentTransform.getWriter. Thank you in advance