Re: Disable HTML Encoding Output
Could you be more specific? Which file, or at least type of file, are you looking at? What is the behavior you want, and what is actually happening? -David On Apr 22, 2009, at 9:59 AM, masionas wrote: HI Guys, How can I disable html encoding on output which was brought with new security implementation? Is there a way to do it in request map or screen definition? Thank you. -- View this message in context: http://www.nabble.com/Disable-HTML-Encoding-Output-tp23175536p23175536.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: building OFBiz from the svn trunk
On Apr 21, 2009, at 1:37 PM, Tamer Sezgin wrote: Hi, I'm very new to OFBiz, and trying to learn more about it.. I downloaded and run release 4.0 (on Linux/Sun Java 1.6) successfully. Now, I tried to build and use the svn trunk copy, but I could not succeed. Although I did not get any error during build and startup, when I try to access ecommerce application I get a lot of error messages. Am I missing something very basic? You may be. Can I normally expect trunk copy run without major problems? Yes. What instructions did you follow to do this? What sorts of error messages are you seeing (direct quotes are best)? As a really rough guess... you may not have loaded the seed and demo data (ie ant run-install). -David
Re: Freshmeat.net Profile
BTW, I have access to many of these resources (not some, like wikipedia) and will be updating them soon. Thanks for the reminder! As for time zones... people usually talk in terms of their own time zone which can be confusing because (for example) not everyone knows that Jacques is in France... or maybe Jacques is traveling For me personally good luck! I try to move from one time zone to another at least 3-4 times each month, and sometimes many more (like when I had the great opportunity to come visit you Sam... and I bet no one could guess which time zone Sam is in... ;) ). -David On Apr 21, 2009, at 6:49 PM, Sam Hamilton wrote: Thanks guys! When you lot talk time you are talking which time zone? Sam On 22/04/2009 07:17, Tim Ruppert tim.rupp...@hotwaxmedia.com wrote: Jacques, docs is being updated as we speak and the fixes for FF should be resolved now - or at least before midnight. Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595 - Tim Ruppert tim.rupp...@hotwaxmedia.com wrote: We've almost got a fix for it already - it's on the staging server and should go live today. We've noticed that it wasn't quite perfect either :) Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595 - Jacques Le Roux jacques.le.r...@les7arts.com wrote: Done at http://docs.ofbiz.org/display/OFBADMIN/OFBiz+on+other+sites Just waiting good wills now... I think we should take care of the table issue we have currently with Firefox, FF is now a wide part of the market, and it would be easier for contributor who are using FF as default Jacques From: Jacques Le Roux jacques.le.r...@les7arts.com Hi Tim, I will tonight; something rough in a 1st pass though Jacques From: Tim Ruppert tim.rupp...@hotwaxmedia.com Jacques, do you mind putting together a page like this real quickly? I can do it if you get slammed - so just let me know. Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595 - Jacques Le Roux jacques.le.r...@les7arts.com wrote: Thanks Sam, If someone follows Tim's idea, he/she would also have to add https://www.ohloh.net/p/162 I updated yesterday In Wikipedia there are also http://es.wikipedia.org/wiki/Apache_OFBiz http://fr.wikipedia.org/wiki/Apache_OFBiz La rançon de la gloire Jacques From: Sam Hamilton sam.hamil...@virtualvillage.com From that list: http://en.wikipedia.org/wiki/Apache_OFBiz - needs version, branch and logo update https://sourceforge.net/projects/ofbiz - perhaps the news section could be updated just so the project does not look dead there https://ofbiz.dev.java.net/ - there is no info there just a link to the OFBiz website so perhaps that's enough??? http://freshmeat.net/projects/OFBiz - need many updates, like download points to a hotwax server, release info needs the branch adding On 21/04/2009 10:13, BJ Freeman bjf...@free-man.net wrote: Ofbiz was quite a few places, if I remember. David did most of the updates. http://en.wikipedia.org/wiki/Apache_OFBiz https://sourceforge.net/projects/ofbiz https://ofbiz.dev.java.net/ and freshmeat are the ones I remember. Tim Ruppert sent the following on 4/20/2009 6:47 PM: Thanks Sam! I'm not sure who's maintaining that, but it might be a good idea for us to have a page on confluence where we have all of these types of groups / profiles in order to ensure that everything stays up to date. Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595 - Sam Hamilton sam.hamil...@virtualvillage.com wrote: Hi List, I spotted today that freshmeat.net profile page for OFBiz has not yet been updated with the branch info - http://freshmeat.net/projects/OFBiz Cheers Sam Sam Hamilton CTO Virtual Village Tel: +86 (21) 6271 3051 Fax: +86 (21) 5228 8539 Mobile: +86 (135) 2451 4480 E-mail: sam.hamil...@virtualvillage.com
Re: Adding components to an instance of OFBiz
The best way to do this is just put it in the hot-deploy directory. When OFBiz starts up it will look in that directory for sub- directories that have a ofbiz-component.xml file which it will read to load resources for that component. -David P.S. It's good to see you around again Ruth! On Apr 19, 2009, at 10:31 AM, Ruth Hoffman wrote: Hello All: I'm a big fan of OFBiz - nice job on the Apache site, BTW. Congratulations - it is World class! I've been using OFBiz off and on for a few years now for a number of different projects. Recently, I had a requirement to add a custom component to the application section of the framework. After a brief search of the mailing lists (I have been away from the OFBiz collaborative tools for sometime) and documentation I have the following question: Is there an automatic way to add a component to the framework - or is this still a manual process? I don't see any obvious webtool or other mechanism for doing this through OFBiz. Regards, Ruth Hoffman
Re: PortalData load errors on update
It looks like your data loading problem is further up than that. Keep in mind that if a file fails early on then other files that depend on it will fail too. I just tried this with the latest trunk with a clean database and the data files are loading fine. The best thing to do is look up a little ways further in the log and see which is the first file to fail and why, and then fix that, and then try again and repeat as necessary. -David On Apr 18, 2009, at 11:48 AM, farouk alhassan wrote: hi, I have just updated my copy of OFBiz from SVN and run ant clean and ant run-install. At the end of the installation I had the following messages on the console. How do I resolve these as they seem to be database errors with regard to the myportal application [EntityDataLoadContainer.java:280:INFO ] The following errors occured in the data load: 2009-04-18 19:42:39,984 (main) [EntityDataLoadContainer.java: 282:INFO ] [install.loadData]: Error loading XML Resource file:/C:/ home/projects/antonov/hector/applications/accounting/data/ AccountingPortletData.xml; Error was: A transaction error occurred reading data 2009-04-18 19:42:39,984 (main) [EntityDataLoadContainer.java: 282:INFO ] [install.loadData]: Error loading XML Resource file:/C:/ home/projects/antonov/hector/applications/order/data/ OrderPortletData.xml; Error was: A transaction error occurred reading data 2009-04-18 19:42:39,984 (main) [EntityDataLoadContainer.java: 282:INFO ] [install.loadData]: Error loading XML Resource file:/C:/ home/projects/antonov/hector/specialpurpose/projectmgr/data/ ProjectMgrPortletData.xml; Error was: A transaction error occurred reading data 2009-04-18 19:42:39,984 (main) [EntityDataLoadContainer.java: 282:INFO ] [install.loadData]: Error loading XML Resource file:/C:/ home/projects/antonov/hector/specialpurpose/myportal/data/ MyPortalTypeData.xml; Error was: A transaction error occurred reading data
Re: PortalData load errors on update
Which revision of OFBiz are you using? This must have already been fixed in SVN... -David On Apr 18, 2009, at 12:31 PM, farouk alhassan wrote: Hi David, You were right. the following exception was thrown high up in the logs which i failed to catch. After that all portlet data stuff seem to fall over. Is it a column width issue or its a problem with the code doing the truncation? Looks like the description field is set to 20 chars. I am using MySQL and my revision is 766301 [java] exception report -- [java] Failure in create operation for entity [PortletCategory]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:PortletCategory][createdStamp,2009-04-18 19:41:52.937(java.sql.Timestamp)][createdTxStamp,2009-04-18 19:41:52.921(java.sql.Timestamp)][description,Accounting related data(java.lang.String)][lastUpdatedStamp,2009-04-18 19:41:52.937(java.sql.Timestamp)][lastUpdatedTxStamp,2009-04-18 19:41:52.921(java.sql.Timestamp)] [portletCategoryId,ACCOUNTING(java.lang.String)] (SQL Exception while executing the following:INSERT INTO OFBIZ.PORTLET_CATEGORY (PORTLET_CATEGORY_ID, DESCRIPTION, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?) (A truncation error was encountered trying to shrink VARCHAR 'Accounting related data' to length 20.)). Rolling back transaction. [java] Exception: org.ofbiz.entity.GenericEntityException [java] Message: Error while inserting: [GenericEntity:PortletCategory][createdStamp,2009-04-18 19:41:52.937(java.sql.Timestamp)][createdTxStamp,2009-04-18 19:41:52.921(java.sql.Timestamp)][description,Accounting related data(java.lang.String)][lastUpdatedStamp,2009-04-18 19:41:52.937(java.sql.Timestamp)][lastUpdatedTxStamp,2009-04-18 19:41:52.921(java.sql.Timestamp)] [portletCategoryId,ACCOUNTING(java.lang.String)] (SQL Exception while executing the following:INSERT INTO OFBIZ.PORTLET_CATEGORY (PORTLET_CATEGORY_ID, DESCRIPTION, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?) (A truncation error was encountered trying to shrink VARCHAR 'Accounting related data' to length 20.)) [java] cause - [java] Exception: org.ofbiz.entity.GenericDataSourceException [java] Message: SQL Exception while executing the following:INSERT INTO OFBIZ.PORTLET_CATEGORY (PORTLET_CATEGORY_ID, DESCRIPTION, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?) (A truncation error was encountered trying to shrink VARCHAR 'Accounting related data' to length 20.) [java] cause - [java] Exception: java.sql.SQLDataException [java] Message: A truncation error was encountered trying to shrink VARCHAR 'Accounting related data' to length 20. [java] cause - [java] Exception: org.apache.derby.impl.jdbc.EmbedSQLException [java] Message: A truncation error was encountered trying to shrink VARCHAR 'Accounting related data' to length 20. [java] cause - --- On Sat, 4/18/09, David E Jones david.jo...@hotwaxmedia.com wrote: From: David E Jones david.jo...@hotwaxmedia.com Subject: Re: PortalData load errors on update To: user@ofbiz.apache.org Date: Saturday, April 18, 2009, 10:58 AM It looks like your data loading problem is further up than that. Keep in mind that if a file fails early on then other files that depend on it will fail too. I just tried this with the latest trunk with a clean database and the data files are loading fine. The best thing to do is look up a little ways further in the log and see which is the first file to fail and why, and then fix that, and then try again and repeat as necessary. -David On Apr 18, 2009, at 11:48 AM, farouk alhassan wrote: hi, I have just updated my copy of OFBiz from SVN and run ant clean and ant run-install. At the end of the installation I had the following messages on the console. How do I resolve these as they seem to be database errors with regard to the myportal application [EntityDataLoadContainer.java:280:INFO ] The following errors occured in the data load: 2009-04-18 19:42:39,984 (main) [EntityDataLoadContainer.java: 282:INFO ] [install.loadData]: Error loading XML Resource file:/C:/ home/projects/antonov/hector/applications/accounting/data/ AccountingPortletData.xml; Error was: A transaction error occurred reading data 2009-04-18 19:42:39,984 (main) [EntityDataLoadContainer.java: 282:INFO ] [install.loadData]: Error loading XML Resource file:/C:/ home/projects/antonov
Re: PortalData load errors on update
The release09.04 branch is not even 2 days old yet, so it isn't necessarily more bug-free than the trunk (which is different from stable...), and unless a sub-community gathers around the release branch it will be stable but not bug-free. For more details please see the OFBiz Release Plan: http://docs.ofbiz.org/display/OFBADMIN/Release+Plan -David On Apr 18, 2009, at 3:39 PM, farouk alhassan wrote: I am using revision 766301. I just saw the release of 9.04 branch on the downloads page so i will go for that one. Hopefully, I will not have any issues with that since it has been tested more than the main trunk. --- On Sat, 4/18/09, David E Jones david.jo...@hotwaxmedia.com wrote: From: David E Jones david.jo...@hotwaxmedia.com Subject: Re: PortalData load errors on update To: user@ofbiz.apache.org Date: Saturday, April 18, 2009, 2:32 PM Which revision of OFBiz are you using? This must have already been fixed in SVN... -David On Apr 18, 2009, at 12:31 PM, farouk alhassan wrote: Hi David, You were right. the following exception was thrown high up in the logs which i failed to catch. After that all portlet data stuff seem to fall over. Is it a column width issue or its a problem with the code doing the truncation? Looks like the description field is set to 20 chars. I am using MySQL and my revision is 766301 [java] exception report -- [java] Failure in create operation for entity [PortletCategory]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:PortletCategory][createdStamp, 2009-04-18 19:41:52.937(java.sql.Timestamp)][createdTxStamp, 2009-04-18 19:41:52.921(java.sql.Timestamp)][description,Accounting related data(java.lang.String)][lastUpdatedStamp,2009-04-18 19:41:52.937(java.sql.Timestamp)][lastUpdatedTxStamp,2009-04-18 19:41:52.921(java.sql.Timestamp)] [portletCategoryId,ACCOUNTING(java.lang.String)] (SQL Exception while executing the following:INSERT INTO OFBIZ.PORTLET_CATEGORY (PORTLET_CATEGORY_ID, DESCRIPTION, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?) (A truncation error was encountered trying to shrink VARCHAR 'Accounting related data' to length 20.)). Rolling back transaction. [java] Exception: org.ofbiz.entity.GenericEntityException [java] Message: Error while inserting: [GenericEntity:PortletCategory][createdStamp,2009-04-18 19:41:52.937(java.sql.Timestamp)][createdTxStamp,2009-04-18 19:41:52.921(java.sql.Timestamp)][description,Accounting related data(java.lang.String)][lastUpdatedStamp,2009-04-18 19:41:52.937(java.sql.Timestamp)][lastUpdatedTxStamp,2009-04-18 19:41:52.921(java.sql.Timestamp)] [portletCategoryId,ACCOUNTING(java.lang.String)] (SQL Exception while executing the following:INSERT INTO OFBIZ.PORTLET_CATEGORY (PORTLET_CATEGORY_ID, DESCRIPTION, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?) (A truncation error was encountered trying to shrink VARCHAR 'Accounting related data' to length 20.)) [java] cause - [java] Exception: org.ofbiz.entity.GenericDataSourceException [java] Message: SQL Exception while executing the following:INSERT INTO OFBIZ.PORTLET_CATEGORY (PORTLET_CATEGORY_ID, DESCRIPTION, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?) (A truncation error was encountered trying to shrink VARCHAR 'Accounting related data' to length 20.) [java] cause - [java] Exception: java.sql.SQLDataException [java] Message: A truncation error was encountered trying to shrink VARCHAR 'Accounting related data' to length 20. [java] cause - [java] Exception: org.apache.derby.impl.jdbc.EmbedSQLException [java] Message: A truncation error was encountered trying to shrink VARCHAR 'Accounting related data' to length 20. [java] cause - --- On Sat, 4/18/09, David E Jones david.jo...@hotwaxmedia.com wrote: From: David E Jones david.jo...@hotwaxmedia.com Subject: Re: PortalData load errors on update To: user@ofbiz.apache.org Date: Saturday, April 18, 2009, 10:58 AM It looks like your data loading problem is further up than that. Keep in mind that if a file fails early on then other files that depend on it will fail too. I just tried this with the latest trunk with a clean database and the data files are loading fine. The best thing to do is look up a little ways further in the log and see which is the first file to fail and why, and then fix that, and then try again
Re: About OFBiz logo being ownership of ASF
Jacques, While I appreciate your concern the proper place to discuss things of a sensitive nature like this is on the PMC mailing list, and NOT out in public like this... especially on both the dev and user mailing lists at the same time (making a conversation even more cumbersome), and also not putting something like you did on the home page. If you look around I'm sure you'll notice that no other project has anything like that around. This may need further discussion (on the private mailing list only please), but IMO your interpretation is incorrect of what Ted Husted wrote and what the Apache license says. As an example of why a more public forum is not the place to discuss this, note that Tim also misunderstood what you wrote and it exploded into an unfortunate, distracting, and off-putting discussion. To those reading in: please don't worry about this for now. If you need more information on the topic, look at what is written in official places on the apache.org site. -David On Apr 18, 2009, at 8:41 AM, Jacques Le Roux wrote: HI All, This is an *important message* to remind you that if you make available to public a mirror of Apache OFBiz web site (http://ofbiz.apache.org/ ) or an instance of Apache OFBiz, you should never use the original ofbiz.ico, ofbiz.gif and ofbiz_logo.jpg files (any version of these files, old or present). These are strict ASF proprietary and should never be used by site publicly available ouf of proper ASF infrastructure (the Contegix servers used by Apache OFBiz for that are parts of ASF infra). PMC members, I put a message at bottom of site main page, please check and if any problems chime in. Thanks for your attention Jacques
Re: theme errors at r766336
Doing a clean install shouldn't be required for this (but would definitely take care of it!), just reloading seed data should be enough (ie ant run-install-seed). -David On Apr 18, 2009, at 10:09 PM, Ashish Vijaywargiya wrote: I was getting the same error before 3 days or so. I dropped the database and did clean installation. (ant clean ant run-install) Working fine for me now :-) -- Ashish On Sat, Apr 18, 2009 at 8:52 PM, aswath narayana aswath.satras...@gmail.com wrote: Hello, I am at r766336. All my screens give the following Error rendering included template at location [component://common/webcommon/includes/header.ftl]: java.lang.IllegalArgumentException: FreeMarker file not found at location: component://common/webcommon/includes/header.ftl Error rendering included template at location [component://common/webcommon/includes/ appbar.ftl]: java.lang.IllegalArgumentException: FreeMarker file not found at location: component://common/webcommon/includes/appbar.ftl -Aswwath
Re: theme errors at r766336
On a production server or even some staging servers that isn't really an option... For those running into this I'd recommend an ant run-install-seed and then if there are issues track down and remove the offending data (like the old VisualTheme and VisualThemeResource records with visualThemeId=DEFAULT). A nice tool to help with this is to compare data in the database with data in readers, specifically the seed reader in this case. This can be done on the XML Data Import Readers page in Webtools by checking the box labeled Check Data Only (nothing changed in database) -David On Apr 18, 2009, at 10:50 PM, Adrian Crum wrote: There is a good chance there will be a problem if you don't do a clean first. Some of the themes have been moved around. If you don't do a clean, the the themes that were moved will have entities pointing to BOTH theme locations - which may generate these types of errors. -Adrian --- On Sat, 4/18/09, David E Jones david.jo...@hotwaxmedia.com wrote: From: David E Jones david.jo...@hotwaxmedia.com Subject: Re: theme errors at r766336 To: user@ofbiz.apache.org Cc: aswath.satras...@gmail.com Date: Saturday, April 18, 2009, 9:20 PM Doing a clean install shouldn't be required for this (but would definitely take care of it!), just reloading seed data should be enough (ie ant run-install-seed). -David On Apr 18, 2009, at 10:09 PM, Ashish Vijaywargiya wrote: I was getting the same error before 3 days or so. I dropped the database and did clean installation. (ant clean ant run-install) Working fine for me now :-) -- Ashish On Sat, Apr 18, 2009 at 8:52 PM, aswath narayana aswath.satras...@gmail.com wrote: Hello, I am at r766336. All my screens give the following Error rendering included template at location [component://common/webcommon/includes/header.ftl]: java.lang.IllegalArgumentException: FreeMarker file not found at location: component://common/webcommon/includes/header.ftl Error rendering included template at location [component://common/webcommon/includes/appbar.ftl]: java.lang.IllegalArgumentException: FreeMarker file not found at location: component://common/webcommon/includes/appbar.ftl -Aswwath
Re: transaction consistency in ofbiz
It sounds like you're digging pretty deep, and I'd recommend a peek at the TransactionUtil.java file. It's really quite simple code. The begin() method returns false if there is already a transaction in place, and along with it the rollback(beganTransaction) method will only do the actually rollback if beganTransaction is true, otherwise it will set the rollbackOnly flag. Why does it do this? The basic idea is that a code block should never commit or rollback a transaction it didn't begin (ie that's a fundamental rule for transaction management code). I HIGHLY recommend you find a good book on transaction management because there are lots of things you need to know about to write proper transaction demarcation code, either that or use the Service Engine's transaction handling features (that's what they are there for...). -David On Apr 17, 2009, at 4:27 AM, Jack Liu wrote: I want to know Why TransactionUtil.begin() return false not true. It doesn't support transaction? -Original Message- From: Jack Liu [mailto:jack@aicent.com] Sent: 2009年4月17日 16:42 To: user@ofbiz.apache.org Subject: RE: transaction consistency in ofbiz Yes,I am sure because I debug step by step. GenericEntity.set() throws IllegalArgumentException ; I use OFBiz trunk version From: Scott Gray [mailto:scott.g...@hotwaxmedia.com] Sent: 2009年4月17日 16:28 To: user@ofbiz.apache.org Subject: Re: transaction consistency in ofbiz Are you sure that a transaction rollback is actually invoked? GenericEntity.setFields() calls GenericEntity.set() which has a statement in it that logs an exception but doesn't actually throw one. Regards Scott HotWax Media http://www.hotwaxmedia.com http://www.hotwaxmedia.com/ On 17/04/2009, at 7:41 PM, Jack Liu wrote: Hi, All In OFBiz, there is a class named TransactionUtil which helps with some common transaction tasks I want to know how to use it, so I wrote some code below public static Map processCustomerApprove(DispatchContext dctx, Map context) { Map result = ServiceUtil.returnSuccess(); GenericDelegator delegator = dctx.getDelegator(); boolean beganTransaction = false; try { beganTransaction = TransactionUtil.begin(); Workflow workflow = WorkFlowFactory.getWorkFlow(UserUtil .getUserName()); Long wfid = (Long) context.get(wfid); int actionNum = Integer.parseInt((String) context.get(action)); Debug.logInfo(workflow= + wfid + ,actionnumber= + actionNum, module); String opinion = (String) context.get(opinion); String conclusion = (String) context.get(conclusion); Debug.logInfo(Conclusion= + conclusion + \nopinion= + opinion, module); Long id = new Long(delegator.getNextSeqId(Opinion)); Debug.logInfo(id = + id, module); GenericValue opinionValue = delegator.makeValue(Opinion, UtilMisc .toMap(id, id)); opinionValue.set(wfid, wfid); opinionValue.set(approver, UserUtil.getUserName()); opinionValue.set(conclusion, conclusion); opinionValue.set(opinion, opinion); delegator.create(opinionValue); Map inputs = new HashMap(); inputs.put(conclusion, conclusion); workflow.doAction(wfid, actionNum, inputs); Debug.logInfo(workflow enters next step, module); if (Agree.equals(conclusion) actionNum == 2) { // EntityCondition wfidCondition = EntityCondition.makeCondition( wfid, EntityOperator.EQUALS, wfid); List customerInfoHistoryList = delegator.findList( CustomerinfoHistory, wfidCondition, null, UtilMisc .toList(id DESC), null, false); GenericValue value = EntityUtil.getFirst(customerInfoHistoryList); //copy customer info from table customerinfohistory to customerinfo //value.remove(wfid); value.remove(id); Long customerid = CcbUtils.getNextSeqId(delegator, customerinfo); Debug.logInfo(id = + customerid, module); GenericValue customerInfo = delegator.makeValue(Customerinfo, UtilMisc.toMap(id, id)); customerInfo.setFields(value); delegator.create(customerInfo); }
Re: ftl form question
On Apr 17, 2009, at 11:44 AM, Jacek Wagner wrote: All, In all ftl forms I found when method=post action always points to a desire service. Is it possible to call direct url instead. Example: instead action=@ofbizUrlsearchorders/ @ofbizUrl*** do something like this ***action=@ofbizUrlhttp://orderpagetest.ic3.com/hop/ orderform.jsp/@ofbizUrl*** Yes, but leave you the @ofbizUrl tags, they are only needed to write URLs internally. -David
OFBiz Symposium at ApacheCon USA Redux 2009
The ApacheCon USA 2009 conference committee has contacted the OFBiz PMC (and other pmcs) about conference involvement. There is some interest among PMC members in participating in the conference, and last year most of the speakers were not on the PMC, so I wanted to open this discussion to the community at large. In short it look like we have an opportunity to do something like we did last year. I suppose if we wanted to do another 2 full days we could, but I'm thinking that going for 1 full day (6 presentations, plus possibly 2 evening BOF sessions) will be a more reasonable goal. We already have volunteers for at least 3 presentations, so I think we can at least do this. On the other hand... I won't be upset if I get such a response from this message that we have to ask them for 2 full days! Anyway, right now they are not looking for a schedule or for people to commit to a presentation, but rather a general interest level and a proposal from the PMC for what we think we can do. For more information about the conference please see http:// www.us.apachecon.com/ (though it seems to down at the minute). If you are interested in presenting, please reply here to the mailing list or email the PMC privately (priv...@ofbiz.apache.org). Thank you! I'm looking forward to another great gathering of minds on Oakland, CA in November! -David BTW: it looks like ApacheCon in general will be a bigger deal this year as the foundation is celebrating its 10 year anniversary and they want to do some big stuff for that!
Re: How about individual service provider pages on docs.ofbiz.org?
My main thought is that one way or other we want an index, like the page we have now. In addition to that it is a wiki space there, so anyone can add their own page and link to it and such. I think that's all we need for this... a fairly simple thing. -David On Apr 16, 2009, at 9:04 AM, Tim Ruppert wrote: Alright, looking to see if people are interested in this - if so, I'll start getting a template together and putting our page together shortly. Thoughts? +1's? Lemme know. Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595 - Tim Ruppert tim.rupp...@hotwaxmedia.com wrote: Just different - definitely not better - there's something to be said for keeping things up in different places - you gotta remember all of them :) Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595 - Adrian Crum adrian.c...@yahoo.com wrote: I Thank YOU! Now I understand your viewpoint. I admit it: I'm lazy. I create one web page everyone can go to, and I link to it from all of my 'peripheral' sites. *Feels shamed, bows to Tim* -Adrian --- On Wed, 4/15/09, Tim Ruppert tim.rupp...@hotwaxmedia.com wrote: From: Tim Ruppert tim.rupp...@hotwaxmedia.com Subject: Re: How about individual service provider pages on docs.ofbiz.org? To: user@ofbiz.apache.org Date: Wednesday, April 15, 2009, 12:38 AM yeah - I think we've found the common ground - we both just handle ourselves differently when it comes to that. I like to have personalized content to the type of feed - MySpace, LinkedIn, Facebook, OFBiz docs, whatever - instead of expecting my slightly larger than most sites to help everyone find their info. Anyways, thanks again - glad that I understand it more clearly now - and people can decide for themselves how they use those types of tools and whether or not this is important or just another thing they'd want to maintain :) Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595 - Adrian Crum adrian.c...@yahoo.com wrote: Understood. I have profiles on many blogging sites, and they all point to one home page where people can find out more about me. That's what motivated my reply. -Adrian --- On Tue, 4/14/09, Tim Ruppert tim.rupp...@hotwaxmedia.com wrote: From: Tim Ruppert tim.rupp...@hotwaxmedia.com Subject: Re: How about individual service provider pages on docs.ofbiz.org? To: user@ofbiz.apache.org Date: Tuesday, April 14, 2009, 8:39 PM At a fundamental level - yes. This would just be another place - easy to link to in the community - where people could put up a profile where they could show off their stuff. Tons of companies / consultants, utilize different medium like MySpace, Facebook, LinkedIn, etc to show information about themselves. This wouldn't be all that different except it would be focused on OFBiz - and specifically what you've done in there. Potentially a different audience. This also seemed like a good way to get more information about installations that are out there. I received a number of front end screenshots from sites that I didn't know existed - which kinda led to the idea. Anyways, thanks for the feedback - I hope this better explained my motivations . Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595 - Adrian Crum adrian.c...@yahoo.com wrote: Isn't that what they do already with the links to their websites? -Adrian --- On Tue, 4/14/09, Tim Ruppert tim.rupp...@hotwaxmedia.com wrote: From: Tim Ruppert tim.rupp...@hotwaxmedia.com Subject: How about individual service provider pages on docs.ofbiz.org? To: user user@ofbiz.apache.org Date: Tuesday, April 14, 2009, 8:14 PM Anybody think that if we break up some of the information on this page here: http://docs.ofbiz.org/x/JAM Into each service provider (that wants to obviously) could have their own page on the wiki that they maintain? This would allow people to post screenshots about their sites and get into more detail than we can in that table. It's just a thought, but I'd be happy to put sometime into getting some templates (or structure) setup to make that easier for people to do. Interested in hearing your thoughts whenever. Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595
Re: Java and tomcat version for ofbiz
Thanks for the answer BJ. Succinct, but I think it hits most of the points. Mustansar: let us know if you have other questions about this. The documents BJ pointed out are have great introductory material that should help you get a general understanding of how things fit together. -David On Apr 16, 2009, at 7:15 PM, BJ Freeman wrote: http://docs.ofbiz.org/display/OFBADMIN/Apache+OFBiz+Getting+Started release 4.0 ver 1.4 tomcat 5 trunk ver 1.5 tomcat 6 http://docs.ofbiz.org/display/OFBTECH/Framework+Introduction+Videos+and+Diagrams Mustansar Mehmood sent the following on 4/16/2009 5:54 PM: Hi, What is the latest version of Java and tomcat supported for apache ofbiz? It will be nice to know the application architecture as well in case some one needs to build on top of it. And what MVC frameworks and or ORM technologies are being used/ supported Regards, Mustansar
Re: Java and tomcat version for ofbiz
OFBiz will run fine on Java 6, but that is not well supported on all platforms and has various backward compatibility problems, so for now we've decided not to require it. After the upcoming release branch (should happen tonight actually...) we may very well decide to require Java 6 or later. BTW, one small comments about the Java 5 EOL: Sun has run into significant issues with Java 7 because they have tried to make it look more community driven (with open source, the JCP, etc) and many people trying to help with Java are frustrated by Sun still doing whatever they want, and so are blocking progress on Java 7. It appears that part of the reason for the sooner than expected EOL of Java 5 is that Sun wants to do what they can to push back. -David On Apr 16, 2009, at 9:32 PM, Mustansar Mehmood wrote: Just curious as a Java 1.5 End Of Life (EOL )is right around the corner. David E Jones wrote: Thanks for the answer BJ. Succinct, but I think it hits most of the points. Mustansar: let us know if you have other questions about this. The documents BJ pointed out are have great introductory material that should help you get a general understanding of how things fit together. -David On Apr 16, 2009, at 7:15 PM, BJ Freeman wrote: http://docs.ofbiz.org/display/OFBADMIN/Apache+OFBiz+Getting+Started release 4.0 ver 1.4 tomcat 5 trunk ver 1.5 tomcat 6 http://docs.ofbiz.org/display/OFBTECH/Framework+Introduction+Videos+and+Diagrams Mustansar Mehmood sent the following on 4/16/2009 5:54 PM: Hi, What is the latest version of Java and tomcat supported for apache ofbiz? It will be nice to know the application architecture as well in case some one needs to build on top of it. And what MVC frameworks and or ORM technologies are being used/ supported Regards, Mustansar
Re: best web framework
On Apr 15, 2009, at 1:09 PM, Vince Clark wrote: Thanks for the voice of reason David. When you say turn off the other webapps, what do you mean? Is it as simple as taking them out of the ofbiz-component.xml files? Yes, basically just comment out the webapp elements in the ofbiz- component.xml files (if you're deploying in the OOTB container, if in another app server just don't setup the webapps there). This is probably best done with a patch the is run only on the ecommerce server. Also, I would still need to set different prefixes in entityengine.xml, correct? You shouldn't need to do this. They are using the same database so they'll be sharing the sequencing table and they won't need a special prefix. Basically this scenario is just like having multiple app servers in general all sharing the same database. It doesn't really matter which webapps are deployed on each server. Doing a different prefix per system is mainly for systems where you have different databases that are synchronized over time and therefore have different sequencing tables. -David - Original Message - From: David E Jones david.jo...@hotwaxmedia.com To: user@ofbiz.apache.org Sent: Wednesday, April 15, 2009 12:57:04 PM GMT -07:00 US/Canada Mountain Subject: Re: best web framework Depending on what the more specific requirements are the usual (and by FAR the easiest) way to do this is to use the same software on the ecommerce and back-end servers, but have configuration differences so that only the ecommerce webapp is available on ecommerce sever (ie turn off the other webapps), and only the non-ecommerce applications are enabled on the back-end servers (unless you want to use them for ecommerce staging as well, then you can certainly leave that on, but that server is generally ONLY accessible internally of course). In this scenario all app servers are communicating with the database server and coordinate that way. There is no need for communication between the servers except for the Entity Engine distributed cache clearing. If you use a pattern of a webapp server that talks to an app server that talks to a database you have an extra level of remote communications and that will significantly slow down your response times... as well as add the need for LOTS of coding! There is only one reason I know of for doing such things: a very stubborn person with his hands on the purse strings. That's it, there is NO good technical or business reason for such things. Some claim greater scalability, but real-world testing proves otherwise. -David On Apr 15, 2009, at 11:14 AM, Vince Clark wrote: Our client has a requirement to deploy their ecommerce storefront on a physically separate server from the back office apps. We have been experimenting with other frameworks and integrating via web services for some time, and this requirement pushes up the urgency. Options we are considering: • Use OFBiz MVC framework to build the ecommerce site and deploy it on a separate server. Use RMI to communicate between two OFBiz instances. • Tapestry - Java based, so maybe RMI is still an option. But not sure if that really makes it any easier than using web services. • Symfony - we have prototyped this and exposed things like user login and shopping cart via web services on the OFBiz side. Have tested this with Axis2 and Mule. • DJango - Just looking into this. Our primary motivation for going with Symfony or DJango is to keep the web tier as light weight as possible. It would be all about presentation, and would consume all functionality from OFBiz. Looking forward to feedback from the community on this topic.
Re: best web framework
That sounds like a different scenario. Naturally if you change the requirements the solution should be different! In that case you'd have the front-end running on the client talking to the ecommerce webapp server, which would probably be best just talking to the database. That's different from have the main HTML generation using mostly OOTB stuff talking via RMI to yet another app server that then talks to the database. On a side note, I'd recommend being careful introducing too many technologies! From experience people often don't know them as well as they say thy do and that's the main reason for choosing them. The net result is that you can't reuse existing artifacts and have to write lots more from scratch, and in addition you'll still have some UI using the standard OFBiz tools and it means people maintaining it going forward will have to know or learn about a larger set of tools. -David On Apr 15, 2009, at 1:20 PM, Cimballi wrote: Hi David ! I would not be so stubborn and there can be several reasons why to not use OFBiz on the client side. Imagine you want to provide a web2.0 flashy site to the customer, and you have a killer PHP or JSP developer in your team who can do all the UI stuff. Then, it can be interesting to let him doing his job and then call OFBiz services via RMI or WS. I would not ask to the UI developer to learn OFBiz way to develop UIs, and, even more, OFBiz offers the possibility to call its services remotly. In a project, there are technical reasons, business reasons, and human reasons. The best solution is the best mix of these 3. Don't you think it can be a good alternative ? Cimballi On Wed, Apr 15, 2009 at 1:57 PM, David E Jones david.jo...@hotwaxmedia.comwrote: Depending on what the more specific requirements are the usual (and by FAR the easiest) way to do this is to use the same software on the ecommerce and back-end servers, but have configuration differences so that only the ecommerce webapp is available on ecommerce sever (ie turn off the other webapps), and only the non-ecommerce applications are enabled on the back-end servers (unless you want to use them for ecommerce staging as well, then you can certainly leave that on, but that server is generally ONLY accessible internally of course). In this scenario all app servers are communicating with the database server and coordinate that way. There is no need for communication between the servers except for the Entity Engine distributed cache clearing. If you use a pattern of a webapp server that talks to an app server that talks to a database you have an extra level of remote communications and that will significantly slow down your response times... as well as add the need for LOTS of coding! There is only one reason I know of for doing such things: a very stubborn person with his hands on the purse strings. That's it, there is NO good technical or business reason for such things. Some claim greater scalability, but real-world testing proves otherwise. -David On Apr 15, 2009, at 11:14 AM, Vince Clark wrote: Our client has a requirement to deploy their ecommerce storefront on a physically separate server from the back office apps. We have been experimenting with other frameworks and integrating via web services for some time, and this requirement pushes up the urgency. Options we are considering: • Use OFBiz MVC framework to build the ecommerce site and deploy it on a separate server. Use RMI to communicate between two OFBiz instances. • Tapestry - Java based, so maybe RMI is still an option. But not sure if that really makes it any easier than using web services. • Symfony - we have prototyped this and exposed things like user login and shopping cart via web services on the OFBiz side. Have tested this with Axis2 and Mule. • DJango - Just looking into this. Our primary motivation for going with Symfony or DJango is to keep the web tier as light weight as possible. It would be all about presentation, and would consume all functionality from OFBiz. Looking forward to feedback from the community on this topic.
Re: best web framework
If you can share your experiences with that it would be great! Whatever the case, I hope your use of OFBiz is working well for you, and feedback (or contribution... ;) ) of things to improve in the project to make how you are using it easier is always welcome. -David On Apr 15, 2009, at 1:44 PM, Cimballi wrote: Ok, thanks for your comments. As I said before, here we are developing a site this way (using RMI), so when it will be ready, I will post a feedback on the list. Cimballi On Wed, Apr 15, 2009 at 2:32 PM, David E Jones david.jo...@hotwaxmedia.comwrote: That sounds like a different scenario. Naturally if you change the requirements the solution should be different! In that case you'd have the front-end running on the client talking to the ecommerce webapp server, which would probably be best just talking to the database. That's different from have the main HTML generation using mostly OOTB stuff talking via RMI to yet another app server that then talks to the database. On a side note, I'd recommend being careful introducing too many technologies! From experience people often don't know them as well as they say thy do and that's the main reason for choosing them. The net result is that you can't reuse existing artifacts and have to write lots more from scratch, and in addition you'll still have some UI using the standard OFBiz tools and it means people maintaining it going forward will have to know or learn about a larger set of tools. -David On Apr 15, 2009, at 1:20 PM, Cimballi wrote: Hi David ! I would not be so stubborn and there can be several reasons why to not use OFBiz on the client side. Imagine you want to provide a web2.0 flashy site to the customer, and you have a killer PHP or JSP developer in your team who can do all the UI stuff. Then, it can be interesting to let him doing his job and then call OFBiz services via RMI or WS. I would not ask to the UI developer to learn OFBiz way to develop UIs, and, even more, OFBiz offers the possibility to call its services remotly. In a project, there are technical reasons, business reasons, and human reasons. The best solution is the best mix of these 3. Don't you think it can be a good alternative ? Cimballi On Wed, Apr 15, 2009 at 1:57 PM, David E Jones david.jo...@hotwaxmedia.comwrote: Depending on what the more specific requirements are the usual (and by FAR the easiest) way to do this is to use the same software on the ecommerce and back-end servers, but have configuration differences so that only the ecommerce webapp is available on ecommerce sever (ie turn off the other webapps), and only the non-ecommerce applications are enabled on the back-end servers (unless you want to use them for ecommerce staging as well, then you can certainly leave that on, but that server is generally ONLY accessible internally of course). In this scenario all app servers are communicating with the database server and coordinate that way. There is no need for communication between the servers except for the Entity Engine distributed cache clearing. If you use a pattern of a webapp server that talks to an app server that talks to a database you have an extra level of remote communications and that will significantly slow down your response times... as well as add the need for LOTS of coding! There is only one reason I know of for doing such things: a very stubborn person with his hands on the purse strings. That's it, there is NO good technical or business reason for such things. Some claim greater scalability, but real-world testing proves otherwise. -David On Apr 15, 2009, at 11:14 AM, Vince Clark wrote: Our client has a requirement to deploy their ecommerce storefront on a physically separate server from the back office apps. We have been experimenting with other frameworks and integrating via web services for some time, and this requirement pushes up the urgency. Options we are considering: • Use OFBiz MVC framework to build the ecommerce site and deploy it on a separate server. Use RMI to communicate between two OFBiz instances. • Tapestry - Java based, so maybe RMI is still an option. But not sure if that really makes it any easier than using web services. • Symfony - we have prototyped this and exposed things like user login and shopping cart via web services on the OFBiz side. Have tested this with Axis2 and Mule. • DJango - Just looking into this. Our primary motivation for going with Symfony or DJango is to keep the web tier as light weight as possible. It would be all about presentation, and would consume all functionality from OFBiz. Looking forward to feedback from the community on this topic.
Re: processorder + transaction boundires
In general each event in a request chain runs in its own transaction and is responsible for returning a status according to its result, and then in the request response definitions you can decide how to have the request chain flow based on those responses. If you want it to be part of the transaction, then looking at the underlying service called and using an SECA rule to trigger your service is the better way to go. -David On Apr 14, 2009, at 5:40 AM, Grant Edwards wrote: Hi, The processorder request is the first in a long chain of requests that form the order pipe-line, which terminates with the ordercomplete view. What is not clear to me is where if any are the transaction boundries. For example if the storeOrder service were to fail would work done by all requests in the order pipe-line be rolled back? Further to this, I have inserted a custom request into the order pipe-line that does the following: 1) Processes booking related info on a 3rd party system. 2) Logs status information to the ofbiz database in a custom table. Here again would a rollback undo work done by point 2, and any ideas about how best to intercept the rollback so that an undo method can be affected on the 3rd parth system. Kind regards Grant
Re: Apache OFBiz Community Building Tour - Mid-western USA, April 2009
On Apr 13, 2009, at 5:19 PM, Adrian Crum wrote: David E Jones wrote: I am planning to do this in other areas in the near future, but don't have firm plans yet. The next likely area will be the north- western USA in July (around the time and place of OSCON which I'll be speaking at on July 23rd in San Jose, CA). It would be cool if you could swing down to SoCal. Los Angeles is about a six hour drive from San Jose. Thanks Adrian, I'd love to visit SoCal again in the near future... it's a beautiful area pretty much year-round. I was in that area a couple of months ago and had I not been so busy I would have gone for some visits like this. Chances are I will again soon in the not too distant future, and I'll let you know as it would be great to visit with you again... and perhaps see your corner of the world this time! -David
Re: processorder + transaction boundires
On Apr 14, 2009, at 2:23 PM, Grant Edwards wrote: 2) While a normal transaction rollback would clean-up the database, is it possible to detect / intercept the rollback and make a call to a 3rd party system to clean-up order related data. I would welcome any suggestions in this regard. This can be done using SECA rules as well. Please take a look at the service engine documentation for this. There are options to trigger things after a successful commit, or after a failure and rollback. -David
Apache OFBiz Community Building Tour - Mid-western USA, April 2009
As a follow-on to the April release branch, and to help encourage community growth and participation for Apache OFBiz, I'm planning a tour of the Mid-western United States. As part of this tour I'd like to visit with individuals and organizations who are current and prospective users, contributors, and others involved with or interested in OFBiz. In these visits I will be available to spend 1-3 hours with you and answer questions about Apache OFBiz and how you can use it most effectively. I would be happy to speak with individuals or as many people from your organization as you would like. If you would like to better leverage opportunities to collaborate with others in the community or there are specific things you'd like to see in OFBiz, or be able to do with OFBiz, this is a great time to chat about it. Also if you'd like general business level or technical help with the software I'm happy to go over those sorts of things as well. I am doing this as the PMC Chair of Apache Open For Business with the intent of helping grow the community and not in my role as an officer of Hotwax Media. If you are interested in the services of Hotwax I'll be happy to briefly answer questions and refer you to the Hotwax sales people. Below is the rough schedule I have in mind and the general areas I plan to be in. I'll be changing it as needed to accommodate what people are available for. If you're around these areas and available around these times, please let me know! 17 April (Fri): Omaha NE, Des Moines IA, Kansas City MO 20 April (Mon): St. Louis MO 22 April (Wed): Indianapolis IN, Louisville KY (maybe Chicago IL) 24 April (Fri): Memphis TN, Nashville TN 27 April (Mon): Dallas TX, Oklahoma City OK Please contact me directly by email if you're interested in a visit. If you know of someone else who might be interested in a visit, please make an introduction and if they are interested I'm happy to play along. My schedule is flexible on this trip so morning, lunch and evening visits along with normal business hours are fine. There is no fee for this, but I won't refuse a free meal if offered. I'm traveling in a 40' motorhome, so hints for parking somewhat nearby are also appreciated. I am planning to do this in other areas in the near future, but don't have firm plans yet. The next likely area will be the north-western USA in July (around the time and place of OSCON which I'll be speaking at on July 23rd in San Jose, CA). -David
Re: Apache OFBiz Community Building Tour - Mid-western USA, April 2009
I certainly do know of other services providers, however I do not represent any. I plan to make these visits non-commercial and only mentioned Hotwax because it is a simple fact that it is the company I am affiliated with, and I wanted it to be clear that I won't talk sales unless someone asks. For other service providers who want to market through OFBiz, your best means of doing so (in my opinion anyway) is just public community participation, and I know from talking with various people that they have grown their businesses nicely using that as a primary means of marketing. I hope that clears it up... -David On Apr 13, 2009, at 4:53 PM, BJ Freeman wrote: I hope you will also let them know of other sources for support besides hotwax, as the PMC chair. David E Jones sent the following on 4/13/2009 10:45 AM: As a follow-on to the April release branch, and to help encourage community growth and participation for Apache OFBiz, I'm planning a tour of the Mid-western United States. As part of this tour I'd like to visit with individuals and organizations who are current and prospective users, contributors, and others involved with or interested in OFBiz. In these visits I will be available to spend 1-3 hours with you and answer questions about Apache OFBiz and how you can use it most effectively. I would be happy to speak with individuals or as many people from your organization as you would like. If you would like to better leverage opportunities to collaborate with others in the community or there are specific things you'd like to see in OFBiz, or be able to do with OFBiz, this is a great time to chat about it. Also if you'd like general business level or technical help with the software I'm happy to go over those sorts of things as well. I am doing this as the PMC Chair of Apache Open For Business with the intent of helping grow the community and not in my role as an officer of Hotwax Media. If you are interested in the services of Hotwax I'll be happy to briefly answer questions and refer you to the Hotwax sales people. Below is the rough schedule I have in mind and the general areas I plan to be in. I'll be changing it as needed to accommodate what people are available for. If you're around these areas and available around these times, please let me know! 17 April (Fri): Omaha NE, Des Moines IA, Kansas City MO 20 April (Mon): St. Louis MO 22 April (Wed): Indianapolis IN, Louisville KY (maybe Chicago IL) 24 April (Fri): Memphis TN, Nashville TN 27 April (Mon): Dallas TX, Oklahoma City OK Please contact me directly by email if you're interested in a visit. If you know of someone else who might be interested in a visit, please make an introduction and if they are interested I'm happy to play along. My schedule is flexible on this trip so morning, lunch and evening visits along with normal business hours are fine. There is no fee for this, but I won't refuse a free meal if offered. I'm traveling in a 40' motorhome, so hints for parking somewhat nearby are also appreciated. I am planning to do this in other areas in the near future, but don't have firm plans yet. The next likely area will be the north-western USA in July (around the time and place of OSCON which I'll be speaking at on July 23rd in San Jose, CA). -David
Re: workflow engine
It is pretty easy to mix Service/Entity Engine and Hibernate code and have them participate in the same transaction as they both use JTA... just make sure they are both referring to the same UserTransaction and TransactionManager objects. -David On Apr 9, 2009, at 7:44 AM, Jack Liu wrote: JBPM is a very popular open source workflow engine. But JBPM uses hibernate to implement its persistence, which is different from OFBiz. So how do you manage transaction? Thank you for your response! -Original Message- From: Shi Jinghai [mailto:sh...@langhua.cn] Sent: 2009年4月9日 21:24 To: user@ofbiz.apache.org Subject: Re: workflow engine Perhaps you can try our OFBiz-jBPM component, it's in LGPL. http://www.langhua.cn/download/ofbiz-jbpm.html Good luck, Shi Jinghai/Beijing Langhua Ltd. 在 2009-04-09四的 11:40 +0800,Jack Liu写道: Hi, all What's the recommended workflow engine in OFBiz? Is it Shark? Best Regards, Jack Liu
Re: erro Could not load VFS configuration
The resources on that site are more about opentaps than about OFBiz, and even though opentaps is based on a version of OFBiz from about 2 years ago they have made a lot of changes and it seems like they are moving mostly away from OFBiz anyway. I'd recommend you stick to the resources on docs.ofbiz.org, and there are pages there about running OFBiz in eclipse, and some tutorials about OFBiz framework concepts and doing some basic things with it. -David On Apr 9, 2009, at 1:04 PM, jose junior malheiros barros wrote: i just follow the tutorial: http://www.opensourcestrategies.com/ofbiz/ofbiz_eclipse.php --- Em qui, 9/4/09, BJ Freeman bjf...@free-man.net escreveu: De: BJ Freeman bjf...@free-man.net Assunto: Re: erro Could not load VFS configuration Para: user@ofbiz.apache.org Data: Quinta-feira, 9 de Abril de 2009, 14:34 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ofbiz does not use the bin folder Nor does it use C:\Temp\ This looks like some custom work. if so please disable it to run ofbiz to check out the trunk version you have works. if not please explain what you are doing to got to this point jjmbconquista sent the following on 4/9/2009 6:19 AM: I downloaded OFBiz trunk version. But when I am starting OFBiz, below errors occur: 2009-04-09 10:01:23,562 (main) [ JkMain.java:251:INFO ] Can't find home, jk2.properties not loaded 2009-04-09 10:01:23,562 (main) [ Http11Protocol.java:182:INFO ] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080 2009-04-09 10:01:23,796 (main) [SSLImpl.java:49 :INFO ] SSLImpl loaded; using custom ServerSocketFactory 2009-04-09 10:01:24,265 (main) [ Http11Protocol.java:182:INFO ] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8443 2009-04-09 10:01:24,296 (main) [ContainerLoader.java:96 :INFO ] [Startup] Starting containers... 2009-04-09 10:01:24,406 (main) [ VfsLog.java:122:INFO ] Using C:\Temp\vfs_cache as temporary files store. org.ofbiz.base.start.StartupException: Cannot start() org.ofbiz.commons.vfs.CommonsVfsContainer (Initializing StandardFileSystemManager (Could not load VFS configuration from file:/D:/worspaceofbiz/ofbiz-trunk/bin/META-INF/vfs-providers.xml.)) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java: 103) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263) at org.ofbiz.base.start.Start.startServer(Start.java:312) at org.ofbiz.base.start.Start.start(Start.java:316) at org.ofbiz.base.start.Start.main(Start.java:399) org.ofbiz.base.container.ContainerException: Initializing StandardFileSystemManager (Could not load VFS configuration from file:/D:/worspaceofbiz/ofbiz-trunk/bin/META-INF/vfs-providers.xml.) at org .ofbiz .commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:48) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java: 101) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263) at org.ofbiz.base.start.Start.startServer(Start.java:312) at org.ofbiz.base.start.Start.start(Start.java:316) at org.ofbiz.base.start.Start.main(Start.java:399) Caused by: org.apache.commons.vfs.FileSystemException: Could not load VFS configuration from file:/D:/worspaceofbiz/ofbiz-trunk/bin/META-INF/vfs-providers.xml. at org .apache .commons .vfs .impl .StandardFileSystemManager.configure(StandardFileSystemManager.java: 199) at org .apache .commons .vfs .impl .StandardFileSystemManager .configurePlugins(StandardFileSystemManager.java:156) at org .apache .commons .vfs .impl.StandardFileSystemManager.init(StandardFileSystemManager.java: 129) at org .webslinger .commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:351) at org .webslinger .commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:345) at org .ofbiz .commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:43) ... 5 more Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers registered for URL scheme ofbiz-home. at org .apache .commons .vfs .impl .DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java: 174) at org .apache .commons .vfs .impl .StandardFileSystemManager .addProvider(StandardFileSystemManager.java:362) at org .apache .commons .vfs .impl .StandardFileSystemManager.configure(StandardFileSystemManager.java: 262) at org .apache .commons .vfs .impl .StandardFileSystemManager.configure(StandardFileSystemManager.java: 195) ... 10 more org.ofbiz.base.container.ContainerException: Initializing StandardFileSystemManager (Could not load VFS configuration from file:/D:/worspaceofbiz/ofbiz-trunk/bin/META-INF/vfs-providers.xml.) at org .ofbiz .commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:48) at
Re: Secure URLs end for link, hyperlink and sub-hyperlink
Angelo, This issue should be addressed in SVN rev 763855. Please read the commit log as deploying in this way is not recommended as it opens a security hole. Also, as a general recommendation for future reference so that your feedback and requests are better received: if you find an issue report it in as much detail as possible (including steps to reproduce, what you expected to happen, and what actually happened including EXACT error message quotes, along with whatever you find about it), and do so by creating an issue in Jira. That way you won't have to send the same complaint over and over, and we won't have to guess about what you're seeing and what is happening. Anyway, thanks for reporting this and I hope your experience is overall good with OFBiz! -David On Apr 9, 2009, at 2:33 AM, Angelo Matarazzo wrote: Hi Jacques, I understood the problem. I have looked at RequestHandler.java line 184. At line 179 there is if (!request.isSecure() requestMap.securityHttps). Now with http://localhost:8080; request.isSecure() is false but requestMap.securityHttps depends on ConfigXMLReader.java at line 384 'this.securityHttps = true.equals(securityElement.getAttribute(https));' In your opinion is it good idea change ConfigXMLReader.java in this way? - if (securityElement != null) { - this.securityHttps = true.equals(securityElement.getAttribute(https)); +boolean useHttpsDefault = UtilProperties.propertyValueEqualsIgnoreCase(url.properties, port.https.enabled, Y); +if (securityElement != null) { + if (useHttpsDefault)) this.securityHttps = true.equals(securityElement.getAttribute(https)); + + else { + this.securityHttps = false; + } Thanks, Angelo jacques.le.roux wrote: After the changes recently introduced. The campaign to secure URLs for link, hyperlink and sub-hyperlink is now finished. Please report any related errors you may cross Thanks Jacques -- View this message in context: http://www.nabble.com/Secure-URLs-end-for-link%2C-hyperlink-and-sub-hyperlink-tp22894715p22966638.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Have you ever integrated pentaho with ofbiz
Why would you ever want to have Pentaho run through the Entity Engine? In general stand-alone reporting and BI tools like Crystal Reports, Business Objects, etc, etc are much better when they talk directly to the database. It is true that long ago we did some stuff so that JasperReports could run through the Entity Engine, but honestly I think it made JR _less_ useful instead of more... -David On Apr 8, 2009, at 3:25 AM, BJ Freeman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I shudder every time some one calls ofbiz a database application. it takes a lot of work to integrate something that only deals with a database to work with the entity engine. So if you have a patch that converts pentaho to the entity engine then Please share, I would be interested. Michael Xu (xudong) sent the following on 4/7/2009 10:41 PM: hi Tim, Actually, pentaho technically can integrate with all database applications. But point here is pentaho is ready in opentaps but not in ofbiz. When I consider which one to go with if BI is a must, I still prefer opentaps. No offense. Just list my simple reason here :-) -- Regards, Michael Xu (xudong) www.wizitsoft.com | Office: (8610) 6267 0615 ext 806 | Mobile: (86) 135 0135 9807 | Fax: (8610) 62670096 On Wed, Apr 8, 2009 at 1:12 PM, Tim Ruppert tim.rupp...@hotwaxmedia.com wrote: If I were you, I'd probably talk with others in the community rather than moving to opentaps. There are people who have integrated pentaho into Apache OFBiz successfully too. I think that Marco Risaliti - one of the committers here did - but I can't remember if it was him for sure. Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595 - Michael Xu (xudong) dong...@wizitsoft.com wrote: hi Thuan, You can take a look at opentaps, which is on top of ofbiz. And opentaps supports pentaho. -- Regards, Michael Xu (xudong) www.wizitsoft.com | Office: (8610) 6267 0615 ext 806 | Mobile: (86) 135 0135 9807 | Fax: (8610) 62670096 On Tue, Apr 7, 2009 at 11:45 PM, Vu Hong Thuan thua...@gmail.com wrote: Hi all, I see that the reports in ofbiz is very simple. I want to integrate third-party report into ofbiz. I prefer pentaho. Could you give me some suggestion about the integration. Thanks. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJ3G2UrP3NbaWWqE4RAoNlAJ9VqbH/LGpGHIm/yOiqWRwICAovaQCfRuHS iyCgy1xQ4yI3JvHGkgsb3lk= =vYHb -END PGP SIGNATURE-
Re: OfBiz readiness for multi-tenancy
OFBiz works well OOTB for certain multi-tenant scenarios, but not for others. Could you be more specific about at least the scaling range that you're going for? BTW, one thing to consider is that because OFBiz is community driven if a feature you're looking for doesn't exist, it means that no one has developed and contributed it yet, and that's really all it means. For large-scale multi-tenant functionality, there are not very many companies like NetSuite and SalesForce.com and Yahoo Stores that have investment adequate to implement, market (the big one!), and run such an operation. Even someone did implement something like that because it is such a small group of prospects for it, and any other user might be a competitor, they might just keep that feature to themselves. The unfortunate problem with support for large-scale multi-tenant software is that most companies that try it totally fail and never get a return on what they invest in the large-scale multi-tenant support. There are a lot of us dreamers out there, and we're not always totally realistic about what is necessary to get a return on our investment... ie things like how much will it cost in marketing and sales to sign up the 1,000 tenants with at least 5 users each that we have determined it will require to get a return on our development expenses... and then how many MORE tenants will we need to cover that marketing and sales expense? On a side note: because of the way OFBiz is architected (especially with the entity engine) certain aspects of large-scale multi-tenancy are actually pretty easy... ;) The REAL question is, do you really have the funding to do even the easy stuff, and then move on to do the more expensive and/or harder stuff? -David On Apr 8, 2009, at 2:19 AM, Gopikrishna Gade wrote: Hi, I just started exploring OfBiz for some of our initiatives. I wanted to understand if OfBiz is architected for Multi-Tenancy scenarios. Can someone provide insight? Regards, Gopi Gade
Re: OfBiz readiness for multi-tenancy
For 5-6 tenants separate instances of OFBiz, running the same server pool or on different ones as needed, is probably the best way to go. You'll handle the thousands of users much better that way. Generally multi-tenant functionality with a big/huge/etc single instance is meant for thousands or tens (or hundreds!) of thousands of tenants with only a few users for most of them. -David On Apr 8, 2009, at 4:32 AM, Gopikrishna Gade wrote: I am in the exploration phase to assess the feasibility of multi- tenancy based solution for our offering. Based on my findings, I am going to propose options and look for funding from my management. I understand the complexities of such a solution especially data, security and metadata. I am going to review OfBiz architecture see what it means to support our needs. We are possibly looking at 5 to 6 tenant each having upwards of 2000 users. Gopi -Original Message- From: David E Jones [mailto:david.jo...@hotwaxmedia.com] Sent: Wednesday, April 08, 2009 3:52 AM To: user@ofbiz.apache.org Subject: Re: OfBiz readiness for multi-tenancy OFBiz works well OOTB for certain multi-tenant scenarios, but not for others. Could you be more specific about at least the scaling range that you're going for? BTW, one thing to consider is that because OFBiz is community driven if a feature you're looking for doesn't exist, it means that no one has developed and contributed it yet, and that's really all it means. For large-scale multi-tenant functionality, there are not very many companies like NetSuite and SalesForce.com and Yahoo Stores that have investment adequate to implement, market (the big one!), and run such an operation. Even someone did implement something like that because it is such a small group of prospects for it, and any other user might be a competitor, they might just keep that feature to themselves. The unfortunate problem with support for large-scale multi-tenant software is that most companies that try it totally fail and never get a return on what they invest in the large-scale multi-tenant support. There are a lot of us dreamers out there, and we're not always totally realistic about what is necessary to get a return on our investment... ie things like how much will it cost in marketing and sales to sign up the 1,000 tenants with at least 5 users each that we have determined it will require to get a return on our development expenses... and then how many MORE tenants will we need to cover that marketing and sales expense? On a side note: because of the way OFBiz is architected (especially with the entity engine) certain aspects of large-scale multi-tenancy are actually pretty easy... ;) The REAL question is, do you really have the funding to do even the easy stuff, and then move on to do the more expensive and/or harder stuff? -David On Apr 8, 2009, at 2:19 AM, Gopikrishna Gade wrote: Hi, I just started exploring OfBiz for some of our initiatives. I wanted to understand if OfBiz is architected for Multi-Tenancy scenarios. Can someone provide insight? Regards, Gopi Gade
Re: Have you ever integrated pentaho with ofbiz
Have you looked into what it actually means for Opentaps to include Pentaho? You might be surprised... -David On Apr 7, 2009, at 11:41 PM, Michael Xu (xudong) wrote: hi Tim, Actually, pentaho technically can integrate with all database applications. But point here is pentaho is ready in opentaps but not in ofbiz. When I consider which one to go with if BI is a must, I still prefer opentaps. No offense. Just list my simple reason here :-) -- Regards, Michael Xu (xudong) www.wizitsoft.com | Office: (8610) 6267 0615 ext 806 | Mobile: (86) 135 0135 9807 | Fax: (8610) 62670096 On Wed, Apr 8, 2009 at 1:12 PM, Tim Ruppert tim.rupp...@hotwaxmedia.com wrote: If I were you, I'd probably talk with others in the community rather than moving to opentaps. There are people who have integrated pentaho into Apache OFBiz successfully too. I think that Marco Risaliti - one of the committers here did - but I can't remember if it was him for sure. Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595 - Michael Xu (xudong) dong...@wizitsoft.com wrote: hi Thuan, You can take a look at opentaps, which is on top of ofbiz. And opentaps supports pentaho. -- Regards, Michael Xu (xudong) www.wizitsoft.com | Office: (8610) 6267 0615 ext 806 | Mobile: (86) 135 0135 9807 | Fax: (8610) 62670096 On Tue, Apr 7, 2009 at 11:45 PM, Vu Hong Thuan thua...@gmail.com wrote: Hi all, I see that the reports in ofbiz is very simple. I want to integrate third-party report into ofbiz. I prefer pentaho. Could you give me some suggestion about the integration. Thanks.
Re: New Look and Feel
The new home page is also in place on: http://ofbiz.apache.org I'll be looking at the back-end applications theme (OFBIZ-2263) later this evening (unless someone beats me to it! ;) ). -David On Apr 8, 2009, at 10:30 AM, Tim Ruppert wrote: All, many thanks to those that have contributed to the new look and feel going into place. We have it installed on: 1. docs.ofbiz.org 2. build.ofbiz.org 3. log.ofbiz.org and are only waiting on content review on ofbiz.apache.org and the backend theme before those are committed. Special thanks goes out to Erik Schuessler of Brainfood who's amazing design has pushed OFBiz into the next stage of professionalism. Also, thanks to the design team at HotWax Media for putting in the time to make all of these different things come together - it was no small feat. I would love to get everyone's feedback and thoughts on how they like it (I'm not biased am I?) - we plan on continuing to push the content reorganization in the not too distant future. Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595
Re: New Look and Feel
Or anthropologists... ;) -David On Apr 8, 2009, at 4:23 PM, Adrian Crum wrote: That section is there for archaeologists. -Adrian Jacques Le Roux wrote: Apache OFBiz Related Blogs section looks deprecated ;p Jacques From: Jacques Le Roux jacques.le.r...@les7arts.com Sorry, forget it : Download button in Main menu :/ Jacques From: Jacques Le Roux jacques.le.r...@les7arts.com We have lost the Nightly Builds links from main page, or did I miss it ? Jacques From: Jacques Le Roux jacques.le.r...@les7arts.com I think I will quickly update my own site (before using OFBiz as Hans) to figure as a regular Service Provider on 1st page :p Time of Savoir Faire is off, now is time of Faire Savoir ! Jacques From: David E Jones david.jo...@hotwaxmedia.com The new home page is also in place on: http://ofbiz.apache.org I'll be looking at the back-end applications theme (OFBIZ-2263) later this evening (unless someone beats me to it! ;) ). -David On Apr 8, 2009, at 10:30 AM, Tim Ruppert wrote: All, many thanks to those that have contributed to the new look and feel going into place. We have it installed on: 1. docs.ofbiz.org 2. build.ofbiz.org 3. log.ofbiz.org and are only waiting on content review on ofbiz.apache.org and the backend theme before those are committed. Special thanks goes out to Erik Schuessler of Brainfood who's amazing design has pushed OFBiz into the next stage of professionalism. Also, thanks to the design team at HotWax Media for putting in the time to make all of these different things come together - it was no small feat. I would love to get everyone's feedback and thoughts on how they like it (I'm not biased am I?) - we plan on continuing to push the content reorganization in the not too distant future. Cheers, Tim -- Tim Ruppert HotWax Media http://www.hotwaxmedia.com o:801.649.6594 f:801.649.6595
Re: httpd (proxy) and tomcat java.net.BindException: Address already in use:80
I don't know what OTTB means either, but he may have meant OOTB which means Out-Of-The-Box and is a pretty commonly used acronym 'round here. -David On Apr 8, 2009, at 8:11 PM, Branden Strickland wrote: NEVERMIND!!! I got it working... I still don't know what OTTB means, but I kept things 8080 and 8443 and then had 443 and 80 just proxy over to the 8080 and 8443... It's starting now...which is great... now If I can get my page to be more than a blank screen I'll be on my way! I think I can handle that part though! Thanks BJ!!! You pointed me in the right direction.. I just had to think about what you were saying for a little bit. TATA! On Wed, Apr 8, 2009 at 6:09 PM, BJ Freeman bjf...@free-man.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 if your server is Linux it probably has the apache httpd server running. if you don't plan on using the Apache httpd server then turn it off. or you can use ajp connector and keep the OTTB ports but have them access thru port 80. http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-HTTPD Branden Strickland sent the following on 4/8/2009 2:48 PM: I hope everyone is well!! Any help on this would make me sane for a day! Thanks! I've read quite a bit about this... So I'm hoping I'm not missing something utterly ridiculous! I'm getting the error java.net.BindException: Address already in use:80 when I try to start up ofbiz on my new dedicated server. As background info, I'm running apache not only to use the proxy feature for ofbiz, but I'm running 2 other website apps on this server. (as virtual servers SEE HTTPD BELOW). I've edited url.properties and ofbiz-containers.xml to change the ports from 8080 to 80 and from 8443 to 443. I thought tomcat and java would play nice with http but maybe I have to set a different port number in url.properties, and ofbiz- containers.xml for a port I don't use already? and have the proxy point to it? I don't think there is anything else on the OFBIZ end correct? I'm running the embedded tomcat and the build is from just last week (forgive me I don't have the check out number) I didn't think it mattered, becuase I'm 99.9% certain it's my httpd.conf thats screwing me. I have in my httpd.conf (just posting important information if you'd like more let me know!) *** Listen 80 LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule ssl_module modules/mod_ssl.so ServerName www.buyunum.com:80 DocumentRoot /var/www/html/joomla Directory / Options None Deny from all Order Deny,Allow AllowOverride None /Directory Directory /var/www/html/joomla Options -Includes -ExecCGI -Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all /Directory IfModule mod_proxy.c Proxy * AddDefaultCharset off Order deny,allow Allow from all /Proxy ProxyVia On /IfModule NameVirtualHost *:80 VirtualHost *:80 ServerName www.buyunum.com ServerAlias buyunum.com DocumentRoot /var/www/html/joomla /VirtualHost VirtualHost *:80 ServerName work.buyunum.com DocumentRoot /var/www/html/egroupware Directory /var/www/html/egroupware AllowOverride FileInfo Options Order allow,deny Allow from all /Directory /VirtualHost VirtualHost *:80 ServerName order.buyunum.com DocumentRoot /var/www/html/ofbiz Directory /var/www/html/ofbiz AllowOverride FileInfo Options Order allow,deny Allow from all /Directory ProxyRequests Off ProxyPreserveHost On ProxyPass / ajp://localhost:8009/ RewriteEngine On RewriteRule ^/(images/.+);jsessionid=\w+$ /$1 /VirtualHost I have the ssl stuff as well, but I'm not testing it yet. One elefant at a time! the actual errors I'm getting (just incase): 2009-04-08 21:27:06,871 (main) [ Http11Protocol.java: 178:ERROR] Error initializing endpoint java.net.BindException: Address already in use:80 at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java: 501) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176) at org.apache.catalina.connector.Connector.initialize(Connector.java: 1058) at org .apache .catalina.core.StandardService.initialize(StandardService.java:677) at org .ofbiz .catalina.container.CatalinaContainer.init(CatalinaContainer.java: 214) at org .ofbiz .base.container.ContainerLoader.loadContainer(ContainerLoader.java: 190) at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java: 66) at org.ofbiz.base.start.Start.initStartLoaders(Start.java:250) at org.ofbiz.base.start.Start.init(Start.java:89)
Re: httpd (proxy) and tomcat java.net.BindException: Address already in use:80
Please read the Technical Production Setup Guide for information about settings ports, especially for the url.properties and WebSite fields which don't do the same thing as the app server mount points (they represent the _external_ ports, not the local ones). Anyway, the document references above explains all of this. -David On Apr 8, 2009, at 9:45 PM, Todd Burdeinei wrote: Heres what I learned: I set up a port redirect in the hosts file and did use 8080 and 8443 for production. This way I didnt have to run ofbiz as root (ports that low have to be run by root on RH server). Another thing- the port settings are in the config files you mentioned, but are also set in the content- websites webapp. On Wed, Apr 8, 2009 at 8:12 PM, BJ Freeman bjf...@free-man.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 yup that is what I meant Now I know the pattern i will probably type it correct. thanks. David E Jones sent the following on 4/8/2009 7:32 PM: I don't know what OTTB means either, but he may have meant OOTB which means Out-Of-The-Box and is a pretty commonly used acronym 'round here. -David On Apr 8, 2009, at 8:11 PM, Branden Strickland wrote: NEVERMIND!!! I got it working... I still don't know what OTTB means, but I kept things 8080 and 8443 and then had 443 and 80 just proxy over to the 8080 and 8443... It's starting now...which is great... now If I can get my page to be more than a blank screen I'll be on my way! I think I can handle that part though! Thanks BJ!!! You pointed me in the right direction.. I just had to think about what you were saying for a little bit. TATA! On Wed, Apr 8, 2009 at 6:09 PM, BJ Freeman bjf...@free-man.net wrote: if your server is Linux it probably has the apache httpd server running. if you don't plan on using the Apache httpd server then turn it off. or you can use ajp connector and keep the OTTB ports but have them access thru port 80. http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-HTTPD Branden Strickland sent the following on 4/8/2009 2:48 PM: I hope everyone is well!! Any help on this would make me sane for a day! Thanks! I've read quite a bit about this... So I'm hoping I'm not missing something utterly ridiculous! I'm getting the error java.net.BindException: Address already in use:80 when I try to start up ofbiz on my new dedicated server. As background info, I'm running apache not only to use the proxy feature for ofbiz, but I'm running 2 other website apps on this server. (as virtual servers SEE HTTPD BELOW). I've edited url.properties and ofbiz-containers.xml to change the ports from 8080 to 80 and from 8443 to 443. I thought tomcat and java would play nice with http but maybe I have to set a different port number in url.properties, and ofbiz- containers.xml for a port I don't use already? and have the proxy point to it? I don't think there is anything else on the OFBIZ end correct? I'm running the embedded tomcat and the build is from just last week (forgive me I don't have the check out number) I didn't think it mattered, becuase I'm 99.9% certain it's my httpd.conf thats screwing me. I have in my httpd.conf (just posting important information if you'd like more let me know!) *** Listen 80 LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule ssl_module modules/mod_ssl.so ServerName www.buyunum.com:80 DocumentRoot /var/www/html/joomla Directory / Options None Deny from all Order Deny,Allow AllowOverride None /Directory Directory /var/www/html/joomla Options -Includes -ExecCGI -Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all /Directory IfModule mod_proxy.c Proxy * AddDefaultCharset off Order deny,allow Allow from all /Proxy ProxyVia On /IfModule NameVirtualHost *:80 VirtualHost *:80 ServerName www.buyunum.com ServerAlias buyunum.com DocumentRoot /var/www/html/joomla /VirtualHost VirtualHost *:80 ServerName work.buyunum.com DocumentRoot /var/www/html/egroupware Directory /var/www/html/egroupware AllowOverride FileInfo Options Order allow,deny Allow from all /Directory /VirtualHost VirtualHost *:80 ServerName order.buyunum.com DocumentRoot /var/www/html/ofbiz Directory /var/www/html/ofbiz AllowOverride FileInfo Options Order allow,deny Allow from all /Directory ProxyRequests Off ProxyPreserveHost On ProxyPass / ajp://localhost:8009/ RewriteEngine On RewriteRule ^/(images/.+);jsessionid=\w+$ /$1 /VirtualHost I have the ssl stuff as well, but I'm not testing it yet. One
Re: OfBiz 4.0 Release schedule
This document describes the release plan for OFBiz: http://docs.ofbiz.org/display/OFBADMIN/Release+Plan In short: the release4.0 branch is a stabilized branch, and to use it just get the latest from SVN (so you can get bug fixes if there are any more easily, ie as patches/etc), or download a recent build of the branch. As was mentioned there is a new branch coming out soon, planned for next week actually. -David On Apr 6, 2009, at 5:31 PM, Mustansar Mehmood wrote: Deal All , Does any have any iformation when ofbiz 4.0 will be officially released. Best Regards, Mustansar
Re: OFBiz Security Standards.
On Apr 5, 2009, at 3:43 AM, Ritika Agrawal wrote: Hello Users, Is there any list of security standards that OFBiz followed ? If not then can any one please tell me what security standards OFBiz followed ? What is a security standard? Could you be more specific... perhaps with some examples of some security standards you are interested in? -David
Re: Javascript of myportal is blocked
It may be that the form name is not unique, ie there is something else on the page with that same name. If this is in a list of things then something needs to be done (a suffix to the name added) so that each form name is unique. -David On Apr 1, 2009, at 10:30 AM, santosh chouhan wrote: Hello all, When I try to create a new contact address for a portal then javascript is blocked for all buttons on the page, here is code snippet for javascript of form form method=post action=@ofbizUrlcreatePortalPagePortlet/ @ofbizUrl onSubmit=javascript:submitFormDisableSubmits(this) name=createPortalPortlet input name=portalPortletId value=$ {portalPortlet.portalPortletId} type=hidden/ input name=portalPageId value=${parameters.portalPageId} type=hidden/ input name=columnSeqId value=${parameters.columnSeqId} type=hidden/ /form a class=buttontext href=javascript:document.createPortalPortlet.submit()$ {uiLabelMap.CommonAdd}: ${portalPortlet.portletName}/a In the above code javascript:document.createPortalPortlet.submit() is blocked and shows error in firebug with this is not a function. I searched with existing code of other files and found no difference and those codes are working fine. Thanks in advance. Thanks and Regards Santosh Chouhan
Re: Problem with https
I'm not sure if I understand what you're running into. What would be most helpful to make progress on this is if you describe the problem you're having, and then hopefully this proposed solution to the problem would make more sense. In the problem description please include steps to reproduce, and a description of the error or other unexpected behavior you're seeing so that it is possible for someone else to try to reproduce this, and know whether or not they have successfully reproduced it. The problem part is the most important thing, but more details about your proposed changes would be helpful too. For example, there is no ConfigXml.java file, and in your code change snippets there are no line numbers. -David On Apr 1, 2009, at 3:23 AM, Angelo Matarazzo wrote: Hi Adrian, David, for my project at the first I wouldn't use certificate or self- certified certificate. Before security improvement, I only setted https=false in url.properties file and I had no problem about certificates and secure connections. After security improvement, I thought it would be a good idea to include in a .properties(ie securityService.properties) file a property like httpsService=false (default is true ) in order to choose whether use or not SSL and secure URLs. In this way ConfigXml.java is +private String securityService =UtilProperties.getPropertyValue(securityService.properties, httpsService); +if (securityElement != null) { + if (false.equals(securityService)) + this.securityHttps = false; + else { + this.securityHttps = true.equals(securityElement.getAttribute(https)); + } What do you think about this idea? Angelo Matarazzo wrote: Hello, Everyone I have seen the new security improvement, but I would like to know if there is a global property in order to ignore https=true for every request. To ignore https in every controller.xml, I have set https=N in url.properties and I have also modified ConfigXml.java in this way - if (securityElement != null) { - this.securityHttps = true.equals(securityElement.getAttribute(https)); + if (securityElement != null) { + this.securityHttps = false; So I don't use secure URLs. Waht do you think about global property and my solution? Any advice would be greatly appreciated. Thank you -- View this message in context: http://www.nabble.com/Problem-with-https-tp22810404p22822761.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: JVM issues on Godaddy Virtual Server
OFBiz will definitely work on a shared server, I've worked with dozens of clients who have done that. It isn't too hard to fit half a dozen instances on a single low-end (but modern) server, with databases for each too. Of course, shared server approaches are as varied as holidays around the world and there are many variations where OFBiz would not run. Running in 256M would be pretty tight, even for a low-traffic site. Is that the amount of memory available to the OS, or to the JVM? If it is the memory available to the OS, and if there is no database also running on the box (which would definitely make 256M too little), then the -Xmx parameter should be about 2/3 of your memory (the 256M). If that is the amount available to the JVM, then set -Xmx to 256M, and - Xms to the same thing (on a dedicated server no use having Java play with expanding and contracting the memory it uses). -David On Mar 31, 2009, at 1:44 PM, BJ Freeman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 as the startofbiz.sh says. 128megs minimum. Xms128M -Xmx512M Ofbiz will not work on a shared server. there are times it will use 70-90% of the CPU time. Branden Strickland sent the following on 3/31/2009 9:10 AM: All, It's been a while since I've worked with OFBIZ but the time has come to resume working with it. I know the answer to my question (sort of) but need some guidance from some good JAVA guys... (YOU!) Overview: Godaddy's virtual dedicated servers are setup with virtuoso, they alocate only the needed memory up to what you have for max (me = 256mb) This should be fine as I've gotten a test box with that to run OFBIZ. I have everything setup; Ant, JDK1.6,ofbiz svn exported. Centos 5 When I go to do an ant run-install-seed I get: Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. I've inserted an alias into my /etc/profile.d/java.sh (same as bashrc but cleaner for CENT/RHEL products) so that I have: export JAVA_HOME=/opt/jdk1.6.0_13/jre PATH=$PATH:$JAVA_HOME/bin alias java='java -Xms2m -Xmx16m' I'm told the Xms and Xmx will help lower the memory hogging that java wants to do, but I'm having little success. I'm fine with java -version and javac -version. So JVM itself is working, but I think it's trying to grab too much memory that the virtual server core won't grant me at one time. Has anyone worked this this type of thing? Thanks!! -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJ0nKfrP3NbaWWqE4RAn/bAKCgX81EJBVnO5xj515lr6mdrnR1PQCbBuee 8yBUSeEP1mZ3CFJ7F+NLQRY= =slH8 -END PGP SIGNATURE-
Re: Problem with https
On Mar 31, 2009, at 2:07 PM, Angelo Matarazzo wrote: Hello, Everyone I have seen the new security improvement, but I would like to know if there is a global property in order to ignore https=true for every request. To ignore https in every controller.xml, I have set https=N in url.properties and I have also modified ConfigXml.java in this way - if (securityElement != null) { - this.securityHttps = true.equals(securityElement.getAttribute(https)); + if (securityElement != null) { + this.securityHttps = false; Wouldn't this change make the https attribute of the security element in the controller.xml file always ignored, ie never used? You could certainly do this in a local patch (though I wouldn't recommend it...), but no we would not want to make sure changes in the project. -David So I don't use secure URLs. Waht do you think about global property and my solution? Any advice would be greatly appreciated. Thank you -- View this message in context: http://www.nabble.com/Problem-with-https-tp22810404p22810404.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: UserLogin seeding and passwords
I personally just use OFBiz itself for this (preferably a local instance as it is more secure, but it can be done on the demo server too). Just create a new user, with the password you want, and then look in the database (can be done with the WebTools Entity Data Maintenance screens) to get the hashed value for the password. -David On Mar 31, 2009, at 2:47 PM, Stephen Rufle wrote: How would I generate the hash values for currentPassword on the UserLogin entity. I was trying to create a user login but set currentPassword to a plaintext value. When I then tried login I get Password incorrect., I think this is because I did not hash the password. Is there an external utility that I could use to get the hashed value for the password?
Re: JVM issues on Godaddy Virtual Server
What does peak CPU have to do with it? All programs use significant CPU time every now and then... but usually not for long periods of time. App servers typically don't use much CPU time unless they are under heavy load... and if you have sites frequently under heavy load then chances are a shared server isn't a good idea anyway. So, what's the point? -David On Mar 31, 2009, at 4:13 PM, BJ Freeman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 sounds like you got it working on shared server, based on my experience when seems lot less than yours, I don't see how more than one instance can share when another instance is running 70-90% cpu, at peak times. I would guess it is like a bare-bones system with out many threads, or activity. David E Jones sent the following on 3/31/2009 1:34 PM: OFBiz will definitely work on a shared server, I've worked with dozens of clients who have done that. It isn't too hard to fit half a dozen instances on a single low-end (but modern) server, with databases for each too. Of course, shared server approaches are as varied as holidays around the world and there are many variations where OFBiz would not run. Running in 256M would be pretty tight, even for a low-traffic site. Is that the amount of memory available to the OS, or to the JVM? If it is the memory available to the OS, and if there is no database also running on the box (which would definitely make 256M too little), then the - Xmx parameter should be about 2/3 of your memory (the 256M). If that is the amount available to the JVM, then set -Xmx to 256M, and -Xms to the same thing (on a dedicated server no use having Java play with expanding and contracting the memory it uses). -David On Mar 31, 2009, at 1:44 PM, BJ Freeman wrote: as the startofbiz.sh says. 128megs minimum. Xms128M -Xmx512M Ofbiz will not work on a shared server. there are times it will use 70-90% of the CPU time. Branden Strickland sent the following on 3/31/2009 9:10 AM: All, It's been a while since I've worked with OFBIZ but the time has come to resume working with it. I know the answer to my question (sort of) but need some guidance from some good JAVA guys... (YOU!) Overview: Godaddy's virtual dedicated servers are setup with virtuoso, they alocate only the needed memory up to what you have for max (me = 256mb) This should be fine as I've gotten a test box with that to run OFBIZ. I have everything setup; Ant, JDK1.6,ofbiz svn exported. Centos 5 When I go to do an ant run-install-seed I get: Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. I've inserted an alias into my /etc/profile.d/java.sh (same as bashrc but cleaner for CENT/RHEL products) so that I have: export JAVA_HOME=/opt/jdk1.6.0_13/jre PATH=$PATH:$JAVA_HOME/bin alias java='java -Xms2m -Xmx16m' I'm told the Xms and Xmx will help lower the memory hogging that java wants to do, but I'm having little success. I'm fine with java -version and javac -version. So JVM itself is working, but I think it's trying to grab too much memory that the virtual server core won't grant me at one time. Has anyone worked this this type of thing? Thanks!! -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJ0pV3rP3NbaWWqE4RAglbAJ91a3IA+rmEqnlaS/d+eYTQi7QrawCeK6gC EDdYUdiLskTdptnqyvygfiQ= =c8Z0 -END PGP SIGNATURE-
Re: OFBiz's jdbc driver
This looks like the problem with the new webslinger stuff running on Java 5. Adam has fixed this a few days ago, so an update is a good idea. If that doesn't fix it... please reply with the OFBiz revision number you're using, and the version of Java you're running in. -David On Mar 30, 2009, at 12:32 AM, Jack Liu wrote: I downloaded OFBiz trunk version. But when I am starting OFBiz, below errors occur: org.ofbiz.base.start.StartupException: Cannot start() org.ofbiz.commons.vfs.CommonsVfsContainer (Initializing StandardFileSystemManager (Could not load VFS configuration from file:/C:/workspace/ofbiz/bin/META-INF/vfs-providers.xml.)) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java: 103) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263) at org.ofbiz.base.start.Start.startServer(Start.java:312) at org.ofbiz.base.start.Start.start(Start.java:316) at org.ofbiz.base.start.Start.main(Start.java:399) org.ofbiz.base.container.ContainerException: Initializing StandardFileSystemManager (Could not load VFS configuration from file:/C:/workspace/ofbiz/bin/META-INF/vfs-providers.xml.) at org .ofbiz .commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:48) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java: 101) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263) at org.ofbiz.base.start.Start.startServer(Start.java:312) at org.ofbiz.base.start.Start.start(Start.java:316) at org.ofbiz.base.start.Start.main(Start.java:399) Caused by: org.apache.commons.vfs.FileSystemException: Could not load VFS configuration from file:/C:/workspace/ofbiz/bin/META-INF/ vfs-providers.xml. at org .apache .commons .vfs .impl .StandardFileSystemManager.configure(StandardFileSystemManager.java: 199) at org .apache .commons .vfs .impl .StandardFileSystemManager .configurePlugins(StandardFileSystemManager.java:156) at org .apache .commons .vfs .impl.StandardFileSystemManager.init(StandardFileSystemManager.java: 129) at org .webslinger .commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:351) at org .webslinger .commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:345) at org .ofbiz .commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:43) ... 5 more Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers registered for URL scheme ofbiz-home. at org .apache .commons .vfs .impl .DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java: 174) at org .apache .commons .vfs .impl .StandardFileSystemManager .addProvider(StandardFileSystemManager.java:362) at org .apache .commons .vfs .impl .StandardFileSystemManager.configure(StandardFileSystemManager.java: 262) at org .apache .commons .vfs .impl .StandardFileSystemManager.configure(StandardFileSystemManager.java: 195) ... 10 more org.ofbiz.base.container.ContainerException: Initializing StandardFileSystemManager (Could not load VFS configuration from file:/C:/workspace/ofbiz/bin/META-INF/vfs-providers.xml.) at org .ofbiz .commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:48) at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java: 101) at org.ofbiz.base.start.Start.startStartLoaders(Start.java:263) at org.ofbiz.base.start.Start.startServer(Start.java:312) at org.ofbiz.base.start.Start.start(Start.java:316) at org.ofbiz.base.start.Start.main(Start.java:399) Caused by: org.apache.commons.vfs.FileSystemException: Could not load VFS configuration from file:/C:/workspace/ofbiz/bin/META-INF/ vfs-providers.xml. at org .apache .commons .vfs .impl .StandardFileSystemManager.configure(StandardFileSystemManager.java: 199) at org .apache .commons .vfs .impl .StandardFileSystemManager .configurePlugins(StandardFileSystemManager.java:156) at org .apache .commons .vfs .impl.StandardFileSystemManager.init(StandardFileSystemManager.java: 129) at org .webslinger .commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:351) at org .webslinger .commons.vfs.VFSUtil.createStandardFileSystemManager(VFSUtil.java:345) at org .ofbiz .commons.vfs.CommonsVfsContainer.start(CommonsVfsContainer.java:43) ... 5 more Caused by: org.apache.commons.vfs.FileSystemException: Multiple providers registered for URL scheme ofbiz-home. at org .apache .commons .vfs .impl .DefaultFileSystemManager.addProvider(DefaultFileSystemManager.java: 174) at org .apache .commons .vfs .impl .StandardFileSystemManager .addProvider(StandardFileSystemManager.java:362) at org .apache .commons .vfs .impl .StandardFileSystemManager.configure(StandardFileSystemManager.java: 262) at org .apache .commons .vfs .impl
Re: About OFBiz and RMI
For an easier solution try letting the Service Engine take care of it all. For details see the ExampleRemoteService.java file, which has comments about which libraries you need from OFBiz, and then you can call the OFBiz services remotely and communicate pretty easily that way. Anyway, that's the way remote communication with other Java programs that know about OFBiz is meant to be done. -David On Mar 28, 2009, at 9:58 AM, Cimballi wrote: Hi, I'm trying to use OFBiz and RMI. I configured it using the SUN RMI implementation to not have to deal with certificates stuff. My connection is working but I have a problem when I retrieve data. I'm using the performFindList method, and the problem is, when I iterate over the returned objects and I call a getXxx method, I have this stack trace : java.lang.IllegalStateException: [GenericEntity.getDelegator] could not find delegator with name default ... The thing that looks strange to me is that, as returned entities are of type GenericEntity, it needs all the framework environment to use them. If there something I do wrong in my RMI call, or is there a way to get simple beans as return entities, to not have to deal with the framework stuff ? For the same reason I have to embed ofbiz-base.jar, ofbiz-entity.jar and ofbiz-service.jar in my client. Thanks, Cimballi
Re: Prices showing in USD after customisation
1. please don't hijack threads with new questions, create a new message to the mailing list instead of replying to an existing message 2. it sounds like this may be a problem with custom code, ie you have something that isn't using this setting (through a widget, or the ofbizCurrenty transform in FTL, or whatever) -David On Mar 28, 2009, at 4:23 PM, farouk alhassan wrote: hi All, I am setting up a UK Shop. I have changed the uom currency id in general.properties to currency.uom.id.default=GBP but the store prices still show in USD. When I create a product in GBP, it shows as Your Price: US$0.00 How can I fix this. Thank you --- On Sat, 3/28/09, David E Jones david.jo...@hotwaxmedia.com wrote: From: David E Jones david.jo...@hotwaxmedia.com Subject: Re: About OFBiz and RMI To: user@ofbiz.apache.org Date: Saturday, March 28, 2009, 2:50 PM For an easier solution try letting the Service Engine take care of it all. For details see the ExampleRemoteService.java file, which has comments about which libraries you need from OFBiz, and then you can call the OFBiz services remotely and communicate pretty easily that way. Anyway, that's the way remote communication with other Java programs that know about OFBiz is meant to be done. -David On Mar 28, 2009, at 9:58 AM, Cimballi wrote: Hi, I'm trying to use OFBiz and RMI. I configured it using the SUN RMI implementation to not have to deal with certificates stuff. My connection is working but I have a problem when I retrieve data. I'm using the performFindList method, and the problem is, when I iterate over the returned objects and I call a getXxx method, I have this stack trace : java.lang.IllegalStateException: [GenericEntity.getDelegator] could not find delegator with name default ... The thing that looks strange to me is that, as returned entities are of type GenericEntity, it needs all the framework environment to use them. If there something I do wrong in my RMI call, or is there a way to get simple beans as return entities, to not have to deal with the framework stuff ? For the same reason I have to embed ofbiz-base.jar, ofbiz- entity.jar and ofbiz-service.jar in my client. Thanks, Cimballi
Re: Unit tests
It sounds like you're looking for the Apache Open For Business All Unit Tested Project and not this one. -David On Mar 27, 2009, at 8:03 AM, varun store wrote: Hello,There are no unit-tests written for many commits. What kind of of unit-tests are written. Can someone explain the unit-tests practices for ofbiz. The software will be more healthy and reliable if unittests are written at all layers -Varun.
Re: To locate productstores on the basis of the postalcode given
Vikas, You really need to take a peek at the data model. I think this is to the point where the general information I've offered is enough to take the next step, but instead of trying that yourself you seem to want to ask questions here. There is nothing bad about that, but in general the better researched your question is, and the more detail you offer, the more likely someone will be able to help you. You may have noticed that this back-and-forth between us could go on for a LONG time with me guessing at questions one at a time based on your answers. On the ProductStore there is a facilityId that is used when the ProductStore represents a physical store, and physical locations are represented in OFBiz using the Facility entity (that's a basic data model thing, see The Data Model Resource Book, Revised Edition, Volume 1 for more info about this concept). With that and what I wrote before about the Facility you should have all you need to go from the ProductStore to a ContactMech. -David On Mar 26, 2009, at 11:32 AM, Vikas Gupta wrote: Hello David, Yes, the physical stores using OFBiz for their POS system. But how I can locate these productstores on the basis of the postalcode given. Regards -- Vikas David E Jones wrote: Are the physical stores using OFBiz for their POS system? If so then it makes sense to have a ProductStore record for each, otherwise it doesn't really make any sense at all... they would just be Facility records. If you have a Facility record for each location you can just use the FacilityContactMech to go directly from the Facility to its address. -David On Mar 25, 2009, at 12:05 AM, Vikas Gupta wrote: Hello David, Thanks for considering my problem. Yes Sure, I am talking about physical retail stores. A facility can have different physical productstores (retailers) which are locating at different places. My case is this, there are many retailers over different places and having their respective owners. These retail stores should be searched on the basis of postal code given of that area, like how many retail stores (belonging to a particular facility) are available corresponding to given postal code. But I could not find any attribute in ProductStore entity to serve my purpose. So, please tell me how I can associate ProductStores with their different owners or postal address. Regards, -- Vikas Gupta David E Jones wrote: There are certainly structures in place for this sort of thing, but the detail here is not sufficient to select one. To start out... Are you talking about physical stores (like a physical retail store), or are you talking about different ecommerce stores that serve different parts of the world? The main point is, you have to have the business case really solid before you start doing any sort of design or gap analysis with existing software. Without that, it's like a casual conversation over dinner and you can't expect any rubber to hit the road. -David On Mar 24, 2009, at 8:31 AM, Vikas Gupta wrote: Hello All, Facility entity has its ownerPartyId. A facility can have many ProductStores. I need to get postal address of the ProductStore. I think Postal address can be got through ContactMech, but that again would require PartyId. Is it possible that different ProductStores have different ownerPartyIds, so that I could have respective PostalAddresses for these productstores. Productstore entity has payToPartyId and not any ownerPartyId. Please suggest me, I want to locate productstores on the basis of the postalcode given. Thanks, -- Vikas Gupta
Re: Team collaboration
On Mar 26, 2009, at 12:36 PM, Mansour Al Akeel wrote: David, thank you for your reply. I have been trying to get into the webtool and become confortable with it. No manaual You haven't looked hard enough then... there is quite a bit related to this on docs.ofbiz.org. -David I will keep on looking to see what I can do. Thank you again. On Tue Mar 24,2009 09:39 pm, David E Jones wrote: Look in the Content Manager and the eCommerce templates. If you are familiar with the OFBiz framework enough to use the ArtifactInfo pages (in the WebTools webapp), start with the Content entity and look at related artifacts. -David On Mar 24, 2009, at 9:33 PM, Mansour Al Akeel wrote: Hello all: I have been evaluating ofbiz for one of our project, and it looks great up to this point. I am expecting a long way to master it. Usually in an enterprise, one of the requirements is to have an internal wiki, news, document management, blogs ... etc. If this is supported in ofbiz, under which component I can find this? Any docs, tutorials ?
Re: Getting The data should be encrypted by making it part of the request body instead of the request URL. errors in Back Office
That's great, CJay, thanks for submitting those. Either here or on the dev mailing list is fine, and the format you've used below is fine as well. -David On Mar 26, 2009, at 1:01 PM, CJay Horton wrote: David, What you said makes perfect sense and is a very reasonable request. I will try and think more along these lines when I make posts like this. Since there could be quite a few of these, is there a preferred place/ method to post them? I went ahead and listed the ones I found in the Manufacturing Component below. I hope this format is sufficient. If there is a more recommended way to list these please let me know. Or if I should post them elsewhere please let me know. Page:(Show and Edit yield same issue) https://localhost:8443/manufacturing/control/ShowProductionRun?productionRunId=1 https://localhost:8443/manufacturing/control/EditProductionRun?productionRunId=1 Links: https://localhost:8443/manufacturing/control/scheduleProductionRun?productionRunId=1statusId=PRUN_SCHEDULED https://localhost:8443/manufacturing/control/changeProductionRunStatusToPrinted?productionRunId=1 https://localhost:8443/manufacturing/control/quickChangeProductionRunStatus?productionRunId=1statusId=PRUN_COMPLETED https://localhost:8443/manufacturing/control/quickChangeProductionRunStatus?productionRunId=1statusId=PRUN_CLOSED https://localhost:8443/manufacturing/control/cancelProductionRun?productionRunId=1 Page: https://localhost:8443/manufacturing/control/ProductionRunTasks?productionRunId=1 Links: https://localhost:8443/manufacturing/control/deleteProductionRunRoutingTask?workEffortId=10001productionRunId=1 Page: https://localhost:8443/manufacturing/control/ProductionRunComponents?productionRunId=1 Links: https://localhost:8443/manufacturing/control/deleteProductionRunComponent?workEffortId=10001fromDate=2009-03-25%2018:17:52.023productId=ETH_BRANDworkEffortGoodStdTypeId=PRUNT_PROD_NEEDEDproductionRunId=1 Page: https://localhost:8443/manufacturing/control/ProductionRunFixedAssets?productionRunId=1 Links: https://localhost:8443/manufacturing/control/removeWorkEffortFixedAssetAssign?workEffortId=10001fixedAssetId=DEMO_MACHINE_GROUPfromDate=2009-03-25%2018:17:50.858productionRunId=1 Page: https://localhost:8443/manufacturing/control/EditRoutingTaskAssoc?workEffortId=10010 Links: https://localhost:8443/manufacturing/control/RemoveRoutingTaskAssoc?workEffortId=10010workEffortIdFrom=10010workEffortIdTo=TASK01fromDate=2009-03-26%2013:55:55.447workEffortAssocTypeId=ROUTING_COMPONENT Page: https://localhost:8443/manufacturing/control/EditRoutingProductLink?workEffortId=10010 Links: https://localhost:8443/manufacturing/control/removeRoutingProductLink?workEffortId=10010productId=PC001fromDate=2009-03-26%2013:55:27.000workEffortGoodStdTypeId=ROU_PROD_TEMPLATE Page: https://localhost:8443/manufacturing/control/FindCalendar Links: https://localhost:8443/manufacturing/control/RemoveCalendar?calendarId=DEFAULT Page: https://localhost:8443/manufacturing/control/ListCalendarWeek Links: https://localhost:8443/manufacturing/control/RemoveCalendarWeek?calendarWeekId=DEFAULT Page: https://localhost:8443/manufacturing/control/EditCostCalcs Links: https://localhost:8443/manufacturing/control/removeCostComponentCalc?costComponentCalcId=EXAMPLE_COST
Re: Smart search
It sounds like you want to search for people, and Person is a type of Party, so you're looking for a Party search. There is Party search functionality in the Party Manager, it's actually the main page there (or click on the Find menu button near the top). The current functionality does support non-case-sensitive searches, but does not replace special characters with ASCII characters. You could somewhat easily modify the findParty service (which is what the Party Manager Find screen uses) to do that. -David On Mar 26, 2009, at 3:48 PM, Valentina Sirkova wrote: Hi, I need to implement smart search which should not take into account spanish special characters, but their ascii equivalent instead, examples are á, í and so on. For instance we might have entered as a person last name into the db García, but when searching we would like to find this last name no matter if we write Garcia or García. Do we have such functionality in OFBiz and if not could you give me some suggestions/tips for starting such implementation. Thanks : Valentina
Re: Smart search
This isn't a problem unique to internationalization... it happens in all sorts of different situations. For example, consider the case of case-insensitive searches. If you tried to expand the inputs to include all possible combinations of letter cases you would get 2 to the X combinations where X is the number of letters in the search string. So yes, that is not the normal way to do it. I hate to say that this is kind of a computer science 101 type of thing, but I guess it is like those puzzles where the solution isn't obvious until you know the answer. In this case the common answer is to normalize both sides of the comparison. In case-insensitive searches that means upper- or lower-casing both the search string and the string in the database. That's the concept, now applying it is a little more difficult if the database doesn't have a function for normalizing to ASCII characters. There are certainly ways though, like keeping both an original and a normalized string in the database... -David On Mar 26, 2009, at 6:11 PM, Valentina Sirkova wrote: Thanks David, Yes, I will probably make use of findParty service. However the search algorithm might be really hard becuse we might get huge number of combinations of possible substitutions of the special characters depending on the size of the string...One simple example: We have in the db García. But we search by Garcia - then according to the mapping table we get the following combinations: García Gárciá Gárcíá These algorithm might get even more complicated when we try to enable such smart search for more languages. I would be grateful if someone from the community(maybe french people also have such problematics) has some tips about this or knows about some good implementation of this issue. Thanks : Valentina On Mar 27, 2009, at 12:35 AM, David E Jones wrote: It sounds like you want to search for people, and Person is a type of Party, so you're looking for a Party search. There is Party search functionality in the Party Manager, it's actually the main page there (or click on the Find menu button near the top). The current functionality does support non-case-sensitive searches, but does not replace special characters with ASCII characters. You could somewhat easily modify the findParty service (which is what the Party Manager Find screen uses) to do that. -David On Mar 26, 2009, at 3:48 PM, Valentina Sirkova wrote: Hi, I need to implement smart search which should not take into account spanish special characters, but their ascii equivalent instead, examples are á, í and so on. For instance we might have entered as a person last name into the db García, but when searching we would like to find this last name no matter if we write Garcia or García. Do we have such functionality in OFBiz and if not could you give me some suggestions/tips for starting such implementation. Thanks : Valentina
Re: How do I use this
That document is just an outline for training, not a complete document or meant as an index of anything. BJ sent a link to the business setup guide, and here is the technical setup guide (they link to eachother too): http://docs.ofbiz.org/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide -David On Mar 25, 2009, at 1:31 AM, farouk alhassan wrote: I found this documentation page http://docs.ofbiz.org/display/OFBTECH/Configuration%2C+Deployment+and+Maintenance on the ofbiz documentation site, but there is no link to any of the subsections to read. So how do I use it? Thank you
Re: Automatic DB Update
On Mar 25, 2009, at 7:30 AM, Sanders, Brian wrote: From what I've been reading, OFBiz is supposed to automatically update your database if you modify an entity. For some reason, I cannot get mine to update. I've tried using the Update Tool to no avail. Can anyone tell me why I'm having issues? Thanks. Here is an index of older documentation, that has unfortunately been mostly buried as people like to write new stuff more than maintain old stuff: http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Documentation+Index For this question the Entity Engine Configuration Guide has helpful info: http://ofbiz.apache.org/docs/entityconfig.html -David
Re: To locate productstores on the basis of the postalcode given
Are the physical stores using OFBiz for their POS system? If so then it makes sense to have a ProductStore record for each, otherwise it doesn't really make any sense at all... they would just be Facility records. If you have a Facility record for each location you can just use the FacilityContactMech to go directly from the Facility to its address. -David On Mar 25, 2009, at 12:05 AM, Vikas Gupta wrote: Hello David, Thanks for considering my problem. Yes Sure, I am talking about physical retail stores. A facility can have different physical productstores (retailers) which are locating at different places. My case is this, there are many retailers over different places and having their respective owners. These retail stores should be searched on the basis of postal code given of that area, like how many retail stores (belonging to a particular facility) are available corresponding to given postal code. But I could not find any attribute in ProductStore entity to serve my purpose. So, please tell me how I can associate ProductStores with their different owners or postal address. Regards, -- Vikas Gupta David E Jones wrote: There are certainly structures in place for this sort of thing, but the detail here is not sufficient to select one. To start out... Are you talking about physical stores (like a physical retail store), or are you talking about different ecommerce stores that serve different parts of the world? The main point is, you have to have the business case really solid before you start doing any sort of design or gap analysis with existing software. Without that, it's like a casual conversation over dinner and you can't expect any rubber to hit the road. -David On Mar 24, 2009, at 8:31 AM, Vikas Gupta wrote: Hello All, Facility entity has its ownerPartyId. A facility can have many ProductStores. I need to get postal address of the ProductStore. I think Postal address can be got through ContactMech, but that again would require PartyId. Is it possible that different ProductStores have different ownerPartyIds, so that I could have respective PostalAddresses for these productstores. Productstore entity has payToPartyId and not any ownerPartyId. Please suggest me, I want to locate productstores on the basis of the postalcode given. Thanks, -- Vikas Gupta
Re: Exchanges
What does it do if the new product costs more or less than the old? -David On Mar 24, 2009, at 11:51 AM, Sanders, Brian wrote: So, here's the idea I want to try out: 1. I made an Exchange ReturnType 2. I made an Exchange OrderType 3. I added a referenceProductId relation to ReturnItem 4. I will probably add a referenceQuantity field to ReturnItem as well In the return screen, if you select Exchange, then the user will be asked for the product/quantity of the replacement item. Accepting the return will function just like a replace, except the item/quantity will be pulled from the new fields. I just wanted to get some feedback as to whether or not this seems like a good design. I feel that the logic is ok, but I'm unsure if adding the reference fields to ReturnItem is the proper way to add the feature. I just don't want to paint myself (or anyone else) into this corner where you have to add fields to entity to add a similar feature. Thanks. -Original Message- From: David E Jones [mailto:david.jo...@hotwaxmedia.com] Sent: Thursday, March 19, 2009 3:52 PM To: user@ofbiz.apache.org Subject: Re: Exchanges OFBiz does support various things that could be called an Exchange. Usually this is done as a return for in-store credit, and then the customer can place whatever order they would like. A CSR could also do this on behalf of a customer without the customer having to place the actual order. Typically the return for replacement is for the same item and not exchanging for a different item, but with a little playing it could easily be used way... it's just more complicated since an exchange for a different item usually results in a credit to, or balance due from, the customer. -David On Mar 19, 2009, at 9:29 AM, Sanders, Brian wrote: I haven't fully looked into it yet myself, but I'm told that OFBiz does not have exchange functionality. However, my understanding is that you can do replacements. I will look into it in the meantime, but if OFBiz does support exchanges, can someone point me in the right direction (docs, ML, etc...)? Thanks.
Re: OFBiz Requirements and Designs
Anyone who is interested in this should read the introduction document: http://docs.ofbiz.org/display/OFBREQDES/UBPL+Introduction If anyone has questions, please feel free to send them to me. Aside from fleshing out the stories one step coming up right away is to do a gap analysis between these stories and OFBiz itself. This serves 2 purposes: documenting how to do things that exist, and identifying opportunities for improvement in OFBiz where things don't exist. -David On Mar 24, 2009, at 11:56 AM, BJ Freeman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 sort of hidden away thought others might be interested http://docs.ofbiz.org/pages/listpages-alphaview.action?key=OFBREQDES -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJyR7qrP3NbaWWqE4RAjaRAJ9sCyQ98yfqocwMzZsG3Z82dNXBlQCggNyq VfpbEH5S7EKWXxO4akJb8d0= =iJF8 -END PGP SIGNATURE-
Re: To locate productstores on the basis of the postalcode given
There are certainly structures in place for this sort of thing, but the detail here is not sufficient to select one. To start out... Are you talking about physical stores (like a physical retail store), or are you talking about different ecommerce stores that serve different parts of the world? The main point is, you have to have the business case really solid before you start doing any sort of design or gap analysis with existing software. Without that, it's like a casual conversation over dinner and you can't expect any rubber to hit the road. -David On Mar 24, 2009, at 8:31 AM, Vikas Gupta wrote: Hello All, Facility entity has its ownerPartyId. A facility can have many ProductStores. I need to get postal address of the ProductStore. I think Postal address can be got through ContactMech, but that again would require PartyId. Is it possible that different ProductStores have different ownerPartyIds, so that I could have respective PostalAddresses for these productstores. Productstore entity has payToPartyId and not any ownerPartyId. Please suggest me, I want to locate productstores on the basis of the postalcode given. Thanks, -- Vikas Gupta
Re: Team collaboration
Look in the Content Manager and the eCommerce templates. If you are familiar with the OFBiz framework enough to use the ArtifactInfo pages (in the WebTools webapp), start with the Content entity and look at related artifacts. -David On Mar 24, 2009, at 9:33 PM, Mansour Al Akeel wrote: Hello all: I have been evaluating ofbiz for one of our project, and it looks great up to this point. I am expecting a long way to master it. Usually in an enterprise, one of the requirements is to have an internal wiki, news, document management, blogs ... etc. If this is supported in ofbiz, under which component I can find this? Any docs, tutorials ?
Re: Two accounting transaction for each payment
On Mar 24, 2009, at 9:38 PM, Muhammad Aamir wrote: I noticed that whenever I make and outgoing payment, it creates two duplicate accounting transactions. Is it a bug or I am doing something wrong? Note: I am using trunk release. Unless someone has seen the same thing recently and happens to know what you are talking about you'll probably have to be more specific. Steps to reproduce are a good place to start... -David
Re: Problem while performing Quick Ship Entire Order
Yes, I did expect questions about this, but not so much from developers... To fix this the link needs to be changed into a form so that the parameters are encrypted (more secure from snooping, spoofing, etc). There has been significant discussion around this point, and changes made in various places to fix this, so there are quite a few examples. Is that something you are working on? -David On Mar 23, 2009, at 12:37 AM, Deepesh Kapoor wrote: Hello All, I am working on latest OFBiz rev. After creating Sales order when i try to Quick Ship Entire Order in order to proceed further and create Return an Error occurs in ServiceEventHandler.java Found URL parameter [orderId] passed to secure (https) request-map with uri [quickShipOrder] with an event that calls service [quickShipEntireOrder]; this is not allowed for security reasons! The data should be encrypted by making it part of the request body instead of the request URL. There has been a recent commit in ServiceEventHandler.java and David is expecting questions/comments after this, so here is my bit :-) Thanks Regards - - Deepesh
Re: user interface
On Mar 23, 2009, at 2:39 AM, lahmar wrote: Hi, So how can i modify user interface with NeogiaOfbiz? There is quite a bit of good introductory documentation for OFBiz, and some of it will apply to Neogia (your mileage will vary, as the saying goes). This is a good page to start with: http://docs.ofbiz.org/display/OFBADMIN/Apache+OFBiz+Getting+Started Some links from that page that will help you understand how pieces fit together include these: http://docs.ofbiz.org/display/OFBTECH/Framework+Introduction+Videos+and+Diagrams http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginners+Development+Guide+Using+Practice+Application+%28helloworld%29 -David
Re: Setting up a warehouse
On Mar 23, 2009, at 1:08 PM, madppiper wrote: Ah, so in an overly-simplified manner: we'll simply exchange xml files as defined in the dtds directory using the oagis-services, correct? And any exchange will then be listed on the UI, right? Well, if that's it, than you are perfectly right: it is exactly what I was looking for :) Yeah, that's pretty much the idea. A follow-up though: can I edit the dtds in a way that is more fitting to our logistics partner, or is the whole idea of OAGIS a standardized concept that has been agreed upon from the OAGIS Group? If you look at the specs you'll see elements designed specifically for extending the standard elements. Just be careful when you use those... make SURE there is nothing in the standard elements that meets your needs (this is a very common problem with such standards, ie people make stuff up instead of learning how the standard elements are meant to be used). Anyway, there are a few examples of using those in the OFBiz OAGIS message send/receive code. -David
Re: New field: desiredDeliveryDate
On Mar 19, 2009, at 11:00 PM, Divesh Dutta wrote: Hello All, As I started this discussion on Dev mailing list because I proposed new field desiredDeliveryDate to be introduce in OFBiz. But after getting BJ's comment I am redirecting it to User maililng list. BJ was clearly wrong about this, it belongs on the dev list. I've replied to you off of this mailing list to establish where this comes from as I think it has something to do with a client request, but I'm not sure. Once the driving requirements are more clear it will be a lot easier to comment on this. -David
Re: delegator.finlist method doesn't work in ftl
Why are you calling it in the FTL file and not in an action in the screen definition (the normal place to do data preparation, FTL is just for layout of prepared data). -David On Mar 20, 2009, at 12:17 AM, Arun Patidar wrote: Hello all, When I try to access this request https://localhost:8443/projectmgr/control/EditProjectSkills , getting error. IMO this is because we can not use delegator.findList method in ftl. This has been used like this: #assign skillTypes = delegator.findList(SkillType, null, null, null, null, false) If I use it like #assign skillTypes = delegator.findList(SkillType, NULL, NULL, NULL, NULL, false) then it works fine. Do we need to change something at framework level. Here is the log: Method public java.util.List org .ofbiz .entity .GenericDelegator .findList (java .lang .String ,org .ofbiz .entity .condition .EntityCondition ,java .util .Set,java.util.List,org.ofbiz.entity.util.EntityFindOptions,boolean) throws org.ofbiz.entity.GenericEntityException threw an exception when invoked on org.ofbiz.entity.genericdelega...@10b51f4 The problematic instruction: -- == assignment: skillTypes=delegator.findList(SkillType, null, null, null, null, false) [on line 36, column 13 in component://projectmgr/webapp/ projectmgr/project/editProjectskills.ftl] -- Java backtrace for programmers: -- freemarker.template.TemplateModelException: Method public java.util.List org .ofbiz .entity .GenericDelegator .findList (java .lang .String ,org .ofbiz .entity .condition .EntityCondition ,java .util .Set,java.util.List,org.ofbiz.entity.util.EntityFindOptions,boolean) throws org.ofbiz.entity.GenericEntityException threw an exception when invoked on org.ofbiz.entity.genericdelega...@10b51f4 at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java: 130) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) 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.Environment.process(Environment.java:189) at Please correct me if I am wrong. Thanks Regards -- Arun Patidar
Re: Exchanges
OFBiz does support various things that could be called an Exchange. Usually this is done as a return for in-store credit, and then the customer can place whatever order they would like. A CSR could also do this on behalf of a customer without the customer having to place the actual order. Typically the return for replacement is for the same item and not exchanging for a different item, but with a little playing it could easily be used way... it's just more complicated since an exchange for a different item usually results in a credit to, or balance due from, the customer. -David On Mar 19, 2009, at 9:29 AM, Sanders, Brian wrote: I haven't fully looked into it yet myself, but I'm told that OFBiz does not have exchange functionality. However, my understanding is that you can do replacements. I will look into it in the meantime, but if OFBiz does support exchanges, can someone point me in the right direction (docs, ML, etc...)? Thanks.
Re: combined and sequential order and return numbers
On Mar 19, 2009, at 3:58 PM, mayo wrote: OFBiz is great. A few lines of code and returns are now pulling from the order number sequence. For the solution I added a useOrderIdForReturns indicator, modified the admin form, and programmed a return to look at useOrderIdForReturns and call getNextOrderId if needed. Thanks again David for the pointer. You saved me a bunch of time. That's great, I'm glad it worked out for you. I apologize for not getting to your follow up email faster... it's a mixed blessing but there has just been a ton of activity lately! Is this something you would be willing to share? To do this just create a Jira issue and attach your patch (if you don't think it's perfect, feel free to attach it anyway and just mention that you want to sure but you're not sure if it's really ready to be committed into the project). Based on what you've described the approach looks great though. -David
Re: don't want promotion for some items
If you don't want to exclude the product from all promotions, but instead exclude it only from a particular promotion, you can associate the product with the promotions using the exclude type of application. This can be done for a promo in general, or even for a particular condition or action. Take a look at the demo promotions as there are some examples of including and excluding categories and products. -David On Mar 18, 2009, at 1:11 AM, Mukesh Marathe wrote: Yes, you can exclude the particular product from promotion to achieve this you need to set one field 'include in promotions' to 'N' on product edit page. Regards, Mukesh Marathe Amicon Technologies Pvt.Ltd Mumbai(India) -Original Message- From: Narayan Patil [mailto:nmpati...@gmail.com] Sent: Wednesday, March 18, 2009 12:23 PM To: user@ofbiz.apache.org Subject: don't want promotion for some items Hi friends, Is there any way to exclude the particular product from promotion? I don't want the promotion for particular product. Please suggest if any solution for this problem. Thanks in advance. Thanks and Regards Narayan Patil. nara...@avibha.com
Re: Problem in anonOnePageCheckout request
That error means that the field specified for the userLogin object was not a GenericValue object, but instead is a FastMap object. This operation requires a GenericValue object. -David On Mar 18, 2009, at 2:33 AM, Vikas Gupta wrote: Hi All After installing my data, I take anonOnePageCheckout for my product, in step2(ajax request createUpdateShippingAddress) it generate error on console and on screen, also not proceed for step3. The error is following- 2009-03-18 11:06:38,376 (http-0.0.0.0-8443-1) [ ServiceDispatcher.java:578:INFO ] Sync service [ecommerce/ createUpdatePerson] finished in [330] milliseconds 2009-03-18 11:06:38,382 (http-0.0.0.0-8443-1) [ SimpleMethod.java:926:ERROR] runtime exception report -- Error in simple-method operation [set-current-user-login/]: java.lang.ClassCastException: javolution.util.FastMap Exception: java.lang.ClassCastException Message: javolution.util.FastMap stack trace --- java.lang.ClassCastException: javolution.util.FastMap org .ofbiz .minilang .method.entityops.SetCurrentUserLogin.exec(SetCurrentUserLogin.java: 53) org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921) Am I making mistake in my data, if yes where it can be. Please help me in sort out my problem and provide suggestion. Thanks in advance Vikas Gupta wrote: Hi All, I am facing problem in the anonOnePageCheckout. After adding varient product into cart and as I submit shipping information in step2(ajax request createUpdateShippingAddress) of onePageCheckout, it generate error on console and let it continue to step3 for checkout. On clicking button continue to step3 of Step2, it call ajax request createUpdateShippingAddress, that is not working properly and making error. This case is not happening for configurable products. The error on console is [ControlEventListener.java:63 :INFO ] Creating session: A9145B683D5C783B594CCB90527E4A12.jvm1 2009-03-17 18:24:27,069 (http-0.0.0.0-8080-1) [ UspsMockApiServlet.java:69 :ERROR] Unsupported API [RateV2] 2009-03-17 18:24:27,100 (http-0.0.0.0-8443-3) [ UspsServices.java:1368:INFO ] USPS response: 2009-03-17 18:24:27,100 (http-0.0.0.0-8443-3) [ ServiceDispatcher.java:522:ERROR] Error in Service [uspsRateInquire]: No rate available at this time 2009-03-17 18:24:27,101 (http-0.0.0.0-8443-3) [TransactionUtil.java:275:ERROR] exception report -- [TransactionUtil.rollback] Exception: java.lang.Exception Message: Stack Trace stack trace --- java.lang.Exception: Stack Trace org .ofbiz .entity.transaction.TransactionUtil.rollback(TransactionUtil.java: 274) org .ofbiz .entity.transaction.TransactionUtil.rollback(TransactionUtil.java: 256) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java: 526) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java: 213) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java: 162) These infomation are properly get stored corresponding entities.
Re: How to generate a war of OFBiz?
The WAR file specification is not sufficient for something like OFBiz. The main reason is that OFBiz consists of more than one webapp (actually around 20). There is also a lot of infrastructure (framework tools and such) that are shared among multiple webapps. The EAR specification gets closer, but to handle classpath entries and such proprietary extensions are usually needed. Why do you want to deploy in an external Tomcat instead of using the embedded version? -David On Mar 18, 2009, at 2:42 PM, jjmbconquista wrote: How to generate a war of OFBiz and to deploy in external tomcat? -- View this message in context: http://www.nabble.com/How-to-generate-a-war-of-OFBiz--tp22587986p22587986.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: GLAccountGroup* entities
On Mar 17, 2009, at 1:12 PM, Jacques Le Roux wrote: As a side note, also GlAccountClass and GlAccountType (though less to the point) are also used for grouping acounts (maybe not in the way you are looking for) Best answer about that so far http://markmail.org/message/hrbdnxoazvcfdpdb They are used to classify accounts, but the main way of grouping accounts is through the account hierarchy using the parent account ID on GlAccount itself (ie implements an hierarchy, not a graph). Also here is an old explanation, for GlAccountClass usage, by Si who is the original author of that http://lists.ofbiz.org/pipermail/svn/2006-March/003542.html You mean Si is the original author of that comment? Well... maybe... But I have no ideas for GLAccountGroup usage, maybe yes, for what you are looking for... The basic idea behind GlAccountGroup is to have a structure where an account can be in more than one group (as opposed to the main account hierarchy where an account can only be under one other account). However, there is the restriction that an account can only be in one group per group type (which is why the PK is setup as-is). In cases like this sometimes the demo data is the most useful way to see how it works. The demo data I put together for that, and part of the reason I created those entities, is in the UsTaxAccountGroups.xml file. That use of groups allow you to configure different accounts for different tax form fields and then the totals of those different accounts for each field (group) can be summed up for the tax reporting. -David From: Rashko Rejmer rrej...@iguanait.com Hi all, Is someone using these entities? GLAccountGroup GlAccountGroupType GLAccountGroupMember I have to implement special Gl accounts grouping and I intended to use these entities for this purpose, but I got confused of their structure. GlAccountGroup entity has glAccountGroupTypeId field and GlAccountGroupMember entity also has this field that is part of the pk. I tried to find any information about these entities but they was introduced 4 years ago and couldn't find anything related. Thanks in advance! Rashko Rejmer
Re: combined and sequential order and return numbers
The answer you seek is in the PartyAcctgPreference entity. It sounds like you're comfortable with code, so the fastest way (well, IMO) is to search across the project for that and you'll find the entity definition, demo data, UI for changing it, and even code that uses the settings (if your curiosity extends to all of that). Short answer is yes, most of that is implemented. -David On Mar 17, 2009, at 2:36 PM, mayo wrote: I haven't looked deep into the code yet. I wanted to ask some of you seasoned OFBiz developers first. I am in a situation where I need to have the return numbers pull from the order's sequence pool so that both order and return numbers are sequential without skipping numbers. I looked around the settings but I couldn't find one. Before I waste time developing and testing this, does anyone know that this couldn't work without major changes or will it be a simple code change to the logic that gets return numbers? I am using OFBiz 4.0. -- View this message in context: http://www.nabble.com/combined-and-sequential-order-and-return-numbers-tp22567307p22567307.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Error Message trying to Close an unused Time Period
Okay, in rev 755032 it is technically fixed. The error is still not turned on, but this will avoid the log warning message, and handle it in the future when the strict error is turned back on. -David On Mar 11, 2009, at 11:14 AM, David E Jones wrote: Technically it's not fixed, but the framework now only logs a warning instead of completely disallowing it. Once we have more time to correct a bunch of these issues this constraint will be going back in, and this link (along with many others) will need to be changed to a form so the parameters are protected. -David On Mar 11, 2009, at 3:30 AM, Jacques Le Roux wrote: Hi Sharan, Could you retry with an updated version please. This should have been fixed since r752399 Thanks Jacques From: Sharan-F sharan.f...@gmail.com Hi I've been doing some testing on the latest Hotwax Demo in Accounting and have just come across this error message: The Following Errors Occurred: Error calling event: org.ofbiz.webapp.event.EventHandlerException: Found URL parameter [customTimePeriodId] passed to secure (https) request- map with uri [closeFinancialTimePeriod] with an event that calls service [closeFinancialTimePeriod]; this is not allowed for security reasons! Steps to re-create the message is as follows: 1. Login as admin 2. Go to Accounting / General Ledger 3. Then select 'Setup 'for Company 4. Then Select Time Period 5. I then pressed the 'Close' button for time period 6001 (which is demo data and relates to 2007) and this error message appears. I did check to see and there were no existing accounting transactions at all that were related to any of the time periods. Does anyone know if something has changed in the security setup that now disallows this type of process? Thanks Sharan -- View this message in context: http://www.nabble.com/Error-Message-trying-to-Close-an-unused-Time-Period-tp22448514p22448514.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Closing an accounting period
Yes, this does seem like something that should be in the demo data along with the rest of the demo chart of accounts. Actually... I'm a bit surprised it isn't there. :) -David On Mar 15, 2009, at 8:46 PM, Hans Bakker wrote: shouldn't we add this to the demo data? On Sun, 2009-03-15 at 18:15 -0700, Sharan-F wrote: Hi Rees I'm doing some documentation on accounting on the OFBiz Wiki and have come across this problem. Here's the link to the time periods bit. http://docs.ofbiz.org/display/OFBIZ/05+Time+Period http://docs.ofbiz.org/display/OFBIZ/05+Time+Period I would say that in general when you close a financial year you would want to move the profit into retained earnings etc (or if you pay a dividend or bonus or whatever) What OFBiz seems to do is that it does this movement transaction from PL to Balance sheet whenever you do a period closing even if it's not at the end of the financial year. Personally I would have expected a period close only to stop you from posting to that closed period but technically speaking I dont think what OFBiz is doing is wrong. To solve your problem - I think it's a matter of mappings. The demo data doesnt come with GL Account Default mapping for Profit Loss (but it does have one for Retained Earnings). Here's how to fix it using an example from Hotwax Demo: 1. In Accounting Manager / General Ledger / Setup for Company 2. Select Chart of Accounts and Create an assignment to 801000 Income / Loss from Business Net of Expenses (if its already there it was me that added it in to perform the test!) 3. In Accounting Manager / General Ledger / Setup for Company / GL Account defaults 4. Go to GL Account Type Defaults (which is the first one) and add a mapping for 'Profit Loss' to the account 801000 If you now try to close a time period – it should post with one side of the journal going to Retained Earnings and the other to the Profit Loss Mapping. Hope this helps. Thanks Sharan Rees Watkins wrote: Hi I am attempting to understand the closing of accounting periods in Ofbiz In order to close an accounting period the system needs to make an entry into Retained Income and a contra entry in a Profit and Loss account. The code seems to require an Account Type Id of PROFIT_LOSS_ACCOUNT However there does not appear to be an GlAccount of that type in the system and so an entry is make into the Error Journal. Does anyone have know if this is an error and what I can do to resolve it. Thank you Rees -- Antwebsystems.com: Quality OFBiz services for competitive rates
Re: Why cant we have free shipping in promos?
On Mar 12, 2009, at 9:19 AM, Todd Burdeinei wrote: This seems like functionality that would be handy to have. From what I found the commitors think it should be excluded. What makes you think that? As far as I know, it simply isn't true. It's just a simple matter of no one wanting it enough to develop and contribute it. Actually, it's worse than that... it was part of the original promo functionality and then broken by later commits and no one has bothered to fix it. If no one cares, it doesn't happen... In this case I'm guessing that's because was 99% of people really need is handled by the shipping rules, but clear they are not as flexible. Why is this? I am aware that there are several ways to get free shipping out of ofbiz, but it seems promos is really the best place for it, since you have specific control on conditions- unlike the on/off switch on the product config. Also- using price rules or promo discount $ to handle it isn't right since it wouldnt accomodate carriers with online rate estimates. From the aspect of managing business rules- why would you want to have free shipping managed any other way than under promos? Maybe I'm missing something here? Just resources. Are you saying you want to contribute? -David
Re: Multiple logins needed
On Mar 13, 2009, at 3:58 AM, Bilgin Ibryam wrote: 2. Clickin on lookup button. 3. Ajax events which render screens (like ajax pagiantion and ajax drop downs). Have you actually observed either of these? If there are issues like this anywhere it is because of bad coding. Lookup windows and ajax requests should always be in the same webapp, and can participate in the existing session. The externalLoginKey is only for situations where you are jumping to different webapps, and there is no reason to do that for lookups and AJAX stuff (especially since you can generally add about 2 lines of XML to the controller.xml file to reuse resources even if they are defined in another component). -David For solving 2 and 3 I guess two ways: Mark some of the requrest (actually better the views in controller)so they don't generate new externalLoginKeys. Or add a request parameter to every request which should not generate new externalLoginKey. WDYT? Other proposals? Bilgin On Mar 12, 2009, at 7:19 AM, David E Jones wrote: On Mar 11, 2009, at 5:16 PM, Bilgin Ibryam wrote: Quoting David E Jones david.jo...@hotwaxmedia.com: You may be describing a well known issue, and one that is part of the way the externalLoginKey works (so it is not likely to change). The externalLoginKey allows you to automatically login to another webapp without a username/password. In order to do this a new login key is generated with EVERY request to the server in order to keep it's life cycle pretty short. As long as it is on a secure/https page when it goes to the browser it is pretty safe, but it generally comes back to the server in a URL and so needs to be invalidated immediately so that it cannot be used again, as that is pretty easy to snoop. So, to make it not work is easy: just have a page open in your browser that has a stale externalLoginKey in its URLS. 1. load a page where you are authenticated in tab/window A 2. right click on a link within the webapp and open it in tab/ window B 3. go back to tab/window A and click on any link that goes to a webapp that you are not already logged into and that has an externalLoginKey parameter The externalLoginKey will be stale, so that auto-login will fail and you will be presented with the login form. I was wondering why externalLoginKey is not a cookie? Probably because of security reasons, but if it was a cookie, it would have a short life cycle as JSESSIONID cookie (the cookie value will be updated on every request) and working on many browser tabs at the same time wouldn't require multiple logins. That's a good idea. In theory even if the externalLoginKey were updated with every request the cookie in the browser (if there is only one cookie) then it would be updated and even other tabs and windows should use that with their request. There is a still a chance that 2 requests could end up in a race condition where one gets in and causes the server-side key to update even though the other request is on its way out and gets there after the server key is updated, but still using the old key from the client cookie. Anyway, this is a good idea and the only reason I can think of to not do it is the one you mentioned, ie the security of cookies. It is very easy to spoof cookie domain names and get cookies from other sites... it's a feature of cookies that causes problems. There may be ways to protect a cookie better, like encrypting it, but even if the key is secret on the server a fast attacker, or one that finds a session that has been idle for a while, then it can still get the encrypted value and the server wouldn't know if it came from a valid client or a forged one. Sorry, was thinking out loud... I'm not sure if there is a good enough way to protect the cookie... and considering that this would be substitution for the username and password, I'm not sure I like it (I even have reservations about the current externalLoginKey... but a better alternative is tricky...). -David
Re: Demo Error: Cannot login a user with new Security Group
I'd say that is a subjective matter. Personally I prefer just looking straight at the code, it's a lot less information to go through. BTW, I don't think I've ever seen 300 commits a day... I think 300 per month is more like it right now. -David On Mar 12, 2009, at 12:57 AM, cjhorton wrote: Please excuse the naiveness of the following question... What is the recommended procedure for trying to figure out what is causing something like this? It looks like the repository is getting 300+(very rough estimate) commits a day which is a bit overwhelming to me. Do you start by just digging through the code and working until you find an issue or do you start with the repository and find an instance where this didn't occur and work your way from there? Or a combination of these or none of the above? heh Jay David E Jones-3 wrote: Interesting... that's different! This sounds like the same internationalization problem that has been reported in other cases. I don't know if anyone is looking at it yet though... -David On Mar 11, 2009, at 4:45 PM, CJay Horton wrote: David, thank you for the good advise. I logged in to the party manager as admin on the https://demo.hotwaxmedia.com/partymgr. I added a user to the 'FULLADMIN' (also tried with the ORDERADMIN and a couple others) security group. I expected that when I logged in as this user I would be able to access the ordermgr webapp. Instead, when I attempted to log in as the user I get the following error: The Following Errors Occurred: Error calling event: org.ofbiz.webapp.event.EventHandlerException: Problems processing event: java.lang.IllegalArgumentException: Could not find resource bundle [SecurityextUiLabels] in the locale [en] (Could not find resource bundle [SecurityextUiLabels] in the locale [en]) Thanks, CJ On Wed, Mar 11, 2009 at 3:56 PM, David E Jones david.jo...@hotwaxmedia.comwrote: While there is never a guarantee that someone will help you fix the problem you find, your chances are much better if you report with adequate detail, and these guidelines usually help: 1. what did you do (full steps to reproduce)? 2. what did you expect to happen? 3. what actually happened? -David On Mar 11, 2009, at 3:53 PM, cjhorton wrote: A user is given security group privileges, but is then unable to log to view the privileged pages. -- View this message in context: http://www.nabble.com/Demo-Error%3A-Cannot-login-a-user-with-new-Security-Group-tp22465393p22465393.html Sent from the OFBiz - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Demo-Error%3A-Cannot-login-a-user-with-new-Security-Group-tp22465393p22470810.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Wrong Assumption?
If you look at the way the roles are structured there are certain roles that are only for organizations and other roles that are only for individuals, and others that are for any. However, because there are situations where users don't want to restrict this it is not enforced by default. -David On Mar 11, 2009, at 1:14 PM, Muhammad Aamir wrote: Hi Adrian, Don't get me wrong, I didn't say multiple roles doesn't make sense. What doesn't make sense (at least to me) that a Person can play a role of Organizational Unit, Department or Internal Organization along with an Employee role. (See the data model of Party, two subtype of Party are Person and Organization (or PersonGroup), meaning a Party cannot be a Person as well as Organization simultaneously). Regards Muhammad Aamir On Wed, Mar 11, 2009 at 5:57 PM, Adrian Crum adri...@hlmksw.com wrote: Muhammad Aamir wrote: - For example in Party module, a Person, who already has a role Employee, can have additional roles of Organization Unit, Internal Organization and in fact any other role (which of course doesn't make any sense). Why wouldn't multiple roles for a person make sense? Where I work, an employee could also be a supplier (the employee does work on the side for the company on a contract basis). We also have a person who is not an employee, but has the dual roles of dealer and outside sales rep. What you perceive as a lack of business rules is actually an accurate model of the real world. -Adrian
Re: http://docs.ofbiz.org/display/OFBADMIN/Apache+OFBiz+Getting+Started
On Mar 11, 2009, at 2:17 PM, BJ Freeman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I believe #3 is misleading. Not really: I'm happy to offer feedback, but I really need something that will work well now and well into the future so we can get things going in our organization This says to me that ofbiz is ready to be used as is. yet in both the branch version as well as the trunk there are portions that either have not be updated, or was only a skeleton. I refer to the payment services, in this case. All of this release stuff is about stability, not functionality. Realistically releases have little to do with functionality, and in fact the whole point of a release branch is to prioritize stability over functionality. The goal is to not have the expectation that it is like a program you buy off the self. That's not necessarily true. The primary focus is on creating software that is easy to customize, but that doesn't mean we can't have apps that are meant to be used OOTB. In fact, the point of the specialpurpose components is to provide those sorts of apps. Different people contribute different things according to what they want. Most _contributors_ want OFBiz to be a basis for a custom solution, but some want apps to use OOTB. The more contributions in the 2nd category the more OFBiz will move in that direction. It's all up to us. so i propose something that indicates that portion may not function properly and will need the help of a consultant, if they don't have the resources. Or when they find a problem to submit a jira, though that has been frowned on from what I have picked up in discussion about Jiras. That is certainly NOT true. OR I realize this is a community effort application and May need extra work to have it work the way I want. That is the case for all enterprise software. No package does everything a business needs unless it is customized. Larger companies usually spend for the customization (or try to, and all too often fail due to bad requirements gathering, designing, and to some extend planning and management). Smaller companies do things manually or use generic software like a spreadsheet to manage things semi-manually. It's not something special about OFBiz, it's the nature of business and the current state of software that helps businesses automate. -David -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJuBxwrP3NbaWWqE4RAmAjAJwIUY0wvaEPbWyrDXZVSKjv7xndEACglmy2 lKqJiMA0QXA1GalW9oyoH1Q= =3zZ8 -END PGP SIGNATURE-
Re: RV: basket of products
On Mar 11, 2009, at 2:08 PM, Uniflor S.A. C.I. - Carlos Andrés Arias wrote: _ De: Uniflor S.A. C.I. - Carlos Andrés Arias [mailto:carlosar...@uniflor.com.co] Enviado el: Wednesday, March 11, 2009 2:05 PM Para: 'user-i...@ofbiz.apache.org' Asunto: basket of products Hi, I need to configure my products so it could be packed into boxes; we sell boxes of flowers, but the box could contain several different products: roses, pomps, carnation, sunflower; the quantities may vary very much for each situation: we could sell a box with 10 roses, 7 carnations and 3 sunflower. And sell another box with 5 roses, 10 carnations and 5 sunflowers. Both boxes represent a box called “box of 20 assorted”. The difference is the amounts of the varieties. We could have thousand of combinations. I’m wondering about the best way to achieve this. The options I've seen used for this include customizing the code for configurable products (to add extra constraints) or to use the cart item groups with custom product pages and cart checking events (ie intercept the additem (add to cart) event). -David
Re: Multiple logins needed
On Mar 11, 2009, at 5:16 PM, Bilgin Ibryam wrote: Quoting David E Jones david.jo...@hotwaxmedia.com: You may be describing a well known issue, and one that is part of the way the externalLoginKey works (so it is not likely to change). The externalLoginKey allows you to automatically login to another webapp without a username/password. In order to do this a new login key is generated with EVERY request to the server in order to keep it's life cycle pretty short. As long as it is on a secure/https page when it goes to the browser it is pretty safe, but it generally comes back to the server in a URL and so needs to be invalidated immediately so that it cannot be used again, as that is pretty easy to snoop. So, to make it not work is easy: just have a page open in your browser that has a stale externalLoginKey in its URLS. 1. load a page where you are authenticated in tab/window A 2. right click on a link within the webapp and open it in tab/ window B 3. go back to tab/window A and click on any link that goes to a webapp that you are not already logged into and that has an externalLoginKey parameter The externalLoginKey will be stale, so that auto-login will fail and you will be presented with the login form. I was wondering why externalLoginKey is not a cookie? Probably because of security reasons, but if it was a cookie, it would have a short life cycle as JSESSIONID cookie (the cookie value will be updated on every request) and working on many browser tabs at the same time wouldn't require multiple logins. That's a good idea. In theory even if the externalLoginKey were updated with every request the cookie in the browser (if there is only one cookie) then it would be updated and even other tabs and windows should use that with their request. There is a still a chance that 2 requests could end up in a race condition where one gets in and causes the server-side key to update even though the other request is on its way out and gets there after the server key is updated, but still using the old key from the client cookie. Anyway, this is a good idea and the only reason I can think of to not do it is the one you mentioned, ie the security of cookies. It is very easy to spoof cookie domain names and get cookies from other sites... it's a feature of cookies that causes problems. There may be ways to protect a cookie better, like encrypting it, but even if the key is secret on the server a fast attacker, or one that finds a session that has been idle for a while, then it can still get the encrypted value and the server wouldn't know if it came from a valid client or a forged one. Sorry, was thinking out loud... I'm not sure if there is a good enough way to protect the cookie... and considering that this would be substitution for the username and password, I'm not sure I like it (I even have reservations about the current externalLoginKey... but a better alternative is tricky...). -David
Re: Demo Error: Cannot login a user with new Security Group
Interesting... that's different! This sounds like the same internationalization problem that has been reported in other cases. I don't know if anyone is looking at it yet though... -David On Mar 11, 2009, at 4:45 PM, CJay Horton wrote: David, thank you for the good advise. I logged in to the party manager as admin on the https://demo.hotwaxmedia.com/partymgr. I added a user to the 'FULLADMIN' (also tried with the ORDERADMIN and a couple others) security group. I expected that when I logged in as this user I would be able to access the ordermgr webapp. Instead, when I attempted to log in as the user I get the following error: The Following Errors Occurred: Error calling event: org.ofbiz.webapp.event.EventHandlerException: Problems processing event: java.lang.IllegalArgumentException: Could not find resource bundle [SecurityextUiLabels] in the locale [en] (Could not find resource bundle [SecurityextUiLabels] in the locale [en]) Thanks, CJ On Wed, Mar 11, 2009 at 3:56 PM, David E Jones david.jo...@hotwaxmedia.comwrote: While there is never a guarantee that someone will help you fix the problem you find, your chances are much better if you report with adequate detail, and these guidelines usually help: 1. what did you do (full steps to reproduce)? 2. what did you expect to happen? 3. what actually happened? -David On Mar 11, 2009, at 3:53 PM, cjhorton wrote: A user is given security group privileges, but is then unable to log to view the privileged pages. -- View this message in context: http://www.nabble.com/Demo-Error%3A-Cannot-login-a-user-with-new-Security-Group-tp22465393p22465393.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: depreciate fields
Aside from it being easier to find the data when they are in these entity fields (which are always there, don't require a join/view or additional find, etc), not all of the data is available in the *Role entity. The fields on the CommunicationEvent entity have 3 bits of information for each party: 1. the fact that it is the from or to party 2. the ID of the from or to party 3. the role (like customer, employee, whatever) of the from or to party -David On Mar 10, 2009, at 12:56 AM, Hans Bakker wrote: As I said all that data is duplicated in the roles entity... the role tells where it comes from, it can more than one destination and can have many more participants in various other roles. In the case of the communication event it even contains the contactMech used and status per participant.vary important in an email communication event. The partyIdTo is even confusing if it was an email send to several persons i also do not say it is applicable to other entities, only for communication event... Everywhere the entity Communicationevent is used it needs to it replaced by the CommunicationEventAndRole view to have the same info. anybody else any opinions? Regards, Hans On Tue, 2009-03-10 at 00:38 -0600, David E Jones wrote: What about all the other places where this pattern is used, ie where there are partyId and/or roleTypeId fields along with a *Role entity? There are probably dozens of them... The main idea of these is to have the most common, and often necessary, roles represented on the main entity. Also, if we remove these fields how would we know which is the from and to, along with allowing various different roles for the from and to parties? -David On Mar 10, 2009, at 12:11 AM, Hans Bakker wrote: I would like to propose to depreciate the fields partyIdFrom and PartyIdTo and related roles and contact mech in the communication event. All these fields fields are duplicated in the communicationEventRoles. if no objections i will slowly phase them out...first in the entity reference and then in forms and screens. -- http://www.antwebsystems.com : Quality OFBiz support for competitive rates -- Antwebsystems.com: Quality OFBiz services for competitive rates
Re: depreciate fields
On Mar 10, 2009, at 1:42 AM, Hans Bakker wrote: see below... On Tue, 2009-03-10 at 01:15 -0600, David E Jones wrote: Aside from it being easier to find the data when they are in these entity fields (which are always there, don't require a join/view or additional find, etc), not all of the data is available in the *Role entity. The fields on the CommunicationEvent entity have 3 bits of information for each party: 1. the fact that it is the from or to party 2. the ID of the from or to party 3. the role (like customer, employee, whatever) of the from or to party that is the exact info in the communicationEventRole How would you model #1 and #3 in CommunicationEventRole? You could use a role that specifies from/to (which is a bit of a hack, ie that isn't technically a role), or you could specify a role that describes their actual role. Doing both would require 2 records with no way to match them up other than through the partyId... and what if other there are other roleTypeIds for that party, etc? In other words, the structures are NOT equivalent. The biggest issue that I have is that for these fields which are common things to query by, display, etc it is nice not to have to do a view/join or additional query to get the data... And yes, it would be nice if other's voiced their opinions. BTW, the data in these structures should not be duplicated and introduce redundancy. If the partyIdFrom/roleTypeIdFrom fields are populated the same data should not be in CommunicationEventRole records. -David On Mar 10, 2009, at 12:56 AM, Hans Bakker wrote: As I said all that data is duplicated in the roles entity... the role tells where it comes from, it can more than one destination and can have many more participants in various other roles. In the case of the communication event it even contains the contactMech used and status per participant.vary important in an email communication event. The partyIdTo is even confusing if it was an email send to several persons i also do not say it is applicable to other entities, only for communication event... Everywhere the entity Communicationevent is used it needs to it replaced by the CommunicationEventAndRole view to have the same info. anybody else any opinions? Regards, Hans On Tue, 2009-03-10 at 00:38 -0600, David E Jones wrote: What about all the other places where this pattern is used, ie where there are partyId and/or roleTypeId fields along with a *Role entity? There are probably dozens of them... The main idea of these is to have the most common, and often necessary, roles represented on the main entity. Also, if we remove these fields how would we know which is the from and to, along with allowing various different roles for the from and to parties? -David On Mar 10, 2009, at 12:11 AM, Hans Bakker wrote: I would like to propose to depreciate the fields partyIdFrom and PartyIdTo and related roles and contact mech in the communication event. All these fields fields are duplicated in the communicationEventRoles. if no objections i will slowly phase them out...first in the entity reference and then in forms and screens. -- http://www.antwebsystems.com : Quality OFBiz support for competitive rates -- Antwebsystems.com: Quality OFBiz services for competitive rates -- Antwebsystems.com: Quality OFBiz services for competitive rates
Re: Product Overview?
On Mar 10, 2009, at 2:24 AM, Sam Hamilton wrote: We are currently building up a few OFBiz websites and I was wondering if I had missed a feature or if we will need to build it. We use 10 different catalogs for each of the 10 different sites we run but in a few exceptions we are not able to sell a product into a market place due to local laws. Is there a screen I am missing somewhere that will show me which catalogs a single product is active in? The normal place to restrict where certain products can be purchased or shipped is in the Catalog Manager Product - Geos tab, ie like: https://demo.hotwaxmedia.com/catalog/control/EditProductGeos?productId=WG- More generally it would be nice to be able to see all of the catalogs a product is in and/or active in... but AFAIK this does not exist. It is easy to see all of the categories a product is in, but manually tracing back to the catalogs would be next to impossible for any sort of complex setup. Such a screen could certainly be built that traces back through nested categories and any catalogs they might be associated with. One way this could be simplified is to create an allow category for each catalog and associate it with the catalog as a Purchase Allow, View Allow, etc category. Then you could look and see which of these allow categories a product is in and have your list of catalogs it is in (as long as ALL catalogs have such a category associated with them). -David
Re: depreciate fields
On Mar 10, 2009, at 2:53 AM, Hans Bakker wrote: Hi David, thanks for the time to provide an extensive answer. The problem i have with these fields is actually mostly showing when the communication event is used as an email but also in the other commEvent types. What you describe below is theoretically completely true, however the reality is different. That there's what I like to call a logic trap. On an email, the roles of the participants as you describe them, are normally not entered and that is why we have roles like originator recipient and carbon copy. If we were to model this information literally I wouldn't recommend using the CommunicationEventRole entity, as it means something different. What you are describing here is the addresses on the email, and perhaps the Party for each (if there is a Party for the given address in the system). In that case an email address (a contactMechId) would be required and part of the PK but the partyId would be optional, and not part of the PK. That doesn't sound like a CommunicationEventRole to me... Do you state that you are a 'customer' when you write an email to your webshop if you are perhaps also employed by them? Even more the need for identifying the role for that particular communication. It can be helpful to know that a party that is both a customer and an employee is acting as a customer or employee for a particular communication. I even doubt when the communication event is a phonecall or actually any other event type, even then the 'real' roles are not used That is why i said that the info is in the communicationEventRoles. So what do we do, keeping the system OK in theory or do we make it practically working? Yeah, back to the logic trap. The implied assumption is that using the CommunicationEventRole entity is the only practical solution. If you start from there chances are you'll end up there, hence the term logic trap. It's helpful to talk about specific data you want to model, as you started to above and that I tried to communicate back to you and expand a bit there. If that isn't what you're trying to model, we should maybe start with establishing what it is that you're trying to model and then come up with the best structure for it, perhaps an existing one and perhaps not. -David On Tue, 2009-03-10 at 01:57 -0600, David E Jones wrote: On Mar 10, 2009, at 1:42 AM, Hans Bakker wrote: see below... On Tue, 2009-03-10 at 01:15 -0600, David E Jones wrote: Aside from it being easier to find the data when they are in these entity fields (which are always there, don't require a join/view or additional find, etc), not all of the data is available in the *Role entity. The fields on the CommunicationEvent entity have 3 bits of information for each party: 1. the fact that it is the from or to party 2. the ID of the from or to party 3. the role (like customer, employee, whatever) of the from or to party that is the exact info in the communicationEventRole How would you model #1 and #3 in CommunicationEventRole? You could use a role that specifies from/to (which is a bit of a hack, ie that isn't technically a role), or you could specify a role that describes their actual role. Doing both would require 2 records with no way to match them up other than through the partyId... and what if other there are other roleTypeIds for that party, etc? In other words, the structures are NOT equivalent. The biggest issue that I have is that for these fields which are common things to query by, display, etc it is nice not to have to do a view/join or additional query to get the data... And yes, it would be nice if other's voiced their opinions. BTW, the data in these structures should not be duplicated and introduce redundancy. If the partyIdFrom/roleTypeIdFrom fields are populated the same data should not be in CommunicationEventRole records. -David On Mar 10, 2009, at 12:56 AM, Hans Bakker wrote: As I said all that data is duplicated in the roles entity... the role tells where it comes from, it can more than one destination and can have many more participants in various other roles. In the case of the communication event it even contains the contactMech used and status per participant.vary important in an email communication event. The partyIdTo is even confusing if it was an email send to several persons i also do not say it is applicable to other entities, only for communication event... Everywhere the entity Communicationevent is used it needs to it replaced by the CommunicationEventAndRole view to have the same info. anybody else any opinions? Regards, Hans On Tue, 2009-03-10 at 00:38 -0600, David E Jones wrote: What about all the other places where this pattern is used, ie where there are partyId and/or roleTypeId fields along with a *Role entity? There are probably dozens of them... The main idea of these is to have the most
Re: keepAlive
At runtime OFBiz always uses local XSD files for validation, and you should do the same in your XML editor. The one on ofbiz.apache.org (if it says www.ofbiz.org it's a very old revision, at least 2-3 years old) is updated regularly to keep up with the trunk. So yeah, the solution is to use local copies of the files (which is the general practice for the code, and a recommended practice for development). -David On Mar 10, 2009, at 12:12 PM, Sanders, Brian wrote: I'm not sure what trunk revision of OFBiz I'm on, but it seems that OFBiz and the XSD file (http://www.ofbiz.org/dtds/simple-methods.xsd) are in disagreement as to what attributes should go with certain elements. For example, OFBiz is looking for the value-name attribute in make-value/, while the XSD says that the attribute should be named value-field. Is this because the XSD is for another version, or because something is wrong? -Original Message- From: Sanders, Brian [mailto:bsand...@connextions.com] Sent: Tuesday, March 10, 2009 1:53 PM To: user@ofbiz.apache.org Subject: RE: keepAlive I think I found some leads. The log file indicates that some of the elements are wrong (ie. Error message: cvc-complex-type.3.2.2: Attribute 'value-field' is not allowed to appear in element 'make-value'.) However, that's not what the XSD says. -Original Message- From: Sanders, Brian [mailto:bsand...@connextions.com] Sent: Tuesday, March 10, 2009 1:34 PM To: user@ofbiz.apache.org Subject: keepAlive I'm trying to implement the keepAlive workaround per http://docs.ofbiz.org/pages/viewpage.action?pageId=1021 http://docs.ofbiz.org/pages/viewpage.action?pageId=1021 When I try to run the service, it says: Column 'GEO_TYPE_ID' cannot be null Not sure what I'm doing wrong or how I could go about debugging the code to see what I need to do. If anyone can suggest either somewhere to set a breakpoint, or what I can do with the XML, it would be much appreciated. Thanks.
Re: restful web services
Yes, the term REST and it's cousin REST-ful are some of my least favorite these days. They were watered down and misinterpreted from day 1. The concept of them has been around for years, but people started applying it to everything that isn't SOAP, which is just silly. The thing to keep in mind with REST that most tools ignore is the separation of verbs and nouns. The nouns are addressable resources and verbs are used to interact with the nouns... with various verbs mapped to the exist HTTP request type (ie GET, POST, etc). I like the idea of separation of verbs and nouns (which OAGIS does a decent job of, and with a set of nouns that is much more business friendly), but most of the REST ideas are rather... limiting. They are fine for CrUD types of operations, but not much more given the limited set of available verbs. Still, the theory is somewhat irrelevant since the common usage of the term REST has been reduced to near meaningless. Sometimes it seems that people like to seem fancy, but all too often can live up to the fanciness they created for themselves. Anyway, for OFBiz the main concept from REST and OAGIS that we might consider implementing is support in the service engine for a separation of verbs and nouns. We have common service naming patterns that we use in a de-facto sort of way, like the service createProduct which has the noun Product and the verb create. It would be cool if the service definition supported this sort of 2-part naming, and with a way to associate nouns to entities when applicable (and of course nouns could be things other than entities, like XML schemas or whatever). I'm not sure that is helpful commentary, but there are some thoughts on the issue anyway (which I've been following with agonized fascination for a while). -David On Mar 10, 2009, at 12:41 PM, Vince M. Clark wrote: This blog is arguing that Axis2 doesn't do true RESTful web services. I'm interested in thoughts and comments from the community. http://atmanes.blogspot.com/2007/06/how-not-to-do-restful-web-services.html
Re: restful web services
OAGIS message are just XML files, and can be sent over whatever transport protocol. The code in OFBiz sends them via HTTPS, which is the most common form of synchronous transfer. They are written to get asynchronous responses though, so doing it via a message broker would work well too. In general they are not SOAP, but you could call them REST using the lame/common meaning of it. Really they are more of the POX style, ie Plain Old XML. This sort of thing makes a lot more business sense, IMO, than something that tries to do object mapping and such like SOAP is mostly meant for (and really hard to use without those sorts of tools). In OFBiz we just make the messages with a template (using FTL to generate XML, just like we use it to generate HTML), and then have Java code to consume the XML coming in (though I'd like to extend simple methods to do that). So, there is nothing to build for this... ie the tools are already in place and examples of them in various places, especially the oagis component. Stepping back a little bit... when you're talking about integration it mostly depends on the constraints of the other system. If there are no constraints then I'd recommend focusing on message format standards (like OAGIS or UBL) instead of transport protocol and formatting standards like SOAP, REST, etc. You can write stuff that conforms to those lower level standards all you want, but significant work will still be required to use those messages with other systems that use the same technologies because the data structures, ie message format, are totally different (and possibly not reconcilable without encumbering and limiting the business). -David On Mar 10, 2009, at 1:40 PM, Vince M. Clark wrote: Very helpful, thank you. As you may have noticed from recent threads we have been working with Axis. To date we have only used SOAP. Our client just informed us that they want to standardize on REST, which seems easy enough to do with Axis. As we started down this path we came across the blog post I referenced claiming How NOT to do RESTful web services which raised some concerns. Interesting that you mentioned OAGIS, as our client also stated that they want to standardize on this for transporting documents across systems. So I guess the question is, what is our best path? Continue with Axis, or make/fund/wait for changes to the OFBiz service engine. Either way I intend to leverage what has already been established in the OAGIS component. - Original Message - From: David E Jones david.jo...@hotwaxmedia.com To: user@ofbiz.apache.org Sent: Tuesday, March 10, 2009 2:27:44 PM (GMT-0600) America/Chicago Subject: Re: restful web services Yes, the term REST and it's cousin REST-ful are some of my least favorite these days. They were watered down and misinterpreted from day 1. The concept of them has been around for years, but people started applying it to everything that isn't SOAP, which is just silly. The thing to keep in mind with REST that most tools ignore is the separation of verbs and nouns. The nouns are addressable resources and verbs are used to interact with the nouns... with various verbs mapped to the exist HTTP request type (ie GET, POST, etc). I like the idea of separation of verbs and nouns (which OAGIS does a decent job of, and with a set of nouns that is much more business friendly), but most of the REST ideas are rather... limiting. They are fine for CrUD types of operations, but not much more given the limited set of available verbs. Still, the theory is somewhat irrelevant since the common usage of the term REST has been reduced to near meaningless. Sometimes it seems that people like to seem fancy, but all too often can live up to the fanciness they created for themselves. Anyway, for OFBiz the main concept from REST and OAGIS that we might consider implementing is support in the service engine for a separation of verbs and nouns. We have common service naming patterns that we use in a de-facto sort of way, like the service createProduct which has the noun Product and the verb create. It would be cool if the service definition supported this sort of 2-part naming, and with a way to associate nouns to entities when applicable (and of course nouns could be things other than entities, like XML schemas or whatever). I'm not sure that is helpful commentary, but there are some thoughts on the issue anyway (which I've been following with agonized fascination for a while). -David On Mar 10, 2009, at 12:41 PM, Vince M. Clark wrote: This blog is arguing that Axis2 doesn't do true RESTful web services. I'm interested in thoughts and comments from the community. http://atmanes.blogspot.com/2007/06/how-not-to-do-restful-web-services.html
Re: Wrong Assumption?
It sounds like you're starting to scratch the surface. Best wishes on a more thorough and deep review. -David On Mar 10, 2009, at 10:22 PM, Muhammad Aamir wrote: I am new to ofbiz ERP and trying to understand how it works. I've just read Party and Accounting chapters from Data Model Resource Book Vol 1. After a quick glance on the modules (Party and Accounting) of ofbiz, following is my first impression I would like to share with you and request you to correct if I am assuming anything wrong: - The data model presented in Data Model Resource book captures the static model of the system and doesn't focus on the business rules that validate, generate, drive or process that data. - ofbiz might be a beautiful implementation of data models presented in the book, however it is merely a collection of ugly screens that ignores significant business rules and just provide data entry mechanism for the tables that implement the models mentioned in the book. - For example in Party module, a Person, who already has a role Employee, can have additional roles of Organization Unit, Internal Organization and in fact any other role (which of course doesn't make any sense). - According to the Data Model Resource book, Internal Accounting Transactions are not associated with any party and when doing External Transactions we usually need to refer party(ies). However, I was able to do a GL transaction for asset depreciation and also referred Party and in fact any other detail. Numerous examples like above can be easily given. Is it really like this that ofbiz is only a mechanism to quickly populate the tables that implement the models presented in that book and may be in some other book(s)? Regards Muhammad Aamir
Re: Consolidating code
Did I say or imply that? Now we're getting into trolling... so unless you want to talk about something specific... -David On Mar 9, 2009, at 10:17 AM, BJ Freeman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 and from your response you don't agree. interesting. David E Jones sent the following on 3/9/2009 8:27 AM: Ranting without any details is not constructive or actionable. Hire a shrink. -David On Mar 9, 2009, at 5:54 AM, BJ Freeman wrote: I have been going through the code, and finding a frustration. it seems that a lot of people are finding what i call short cuts for their particular part of the code with out looking at the whole picture. My frustration is the effort to maintain such code. Yes I know I am making a general statement with no examples. I believe anyone that is looking at maintain this code would discover the same thing. So I ask all those that are creating patches, or adding new code, please look at the whole system before you make changes and see how we can reuse instead re-create the wheel over and over with just minor changes. End of rant. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJtUETrP3NbaWWqE4RAqLuAJ4yWB8y2FY3KUoTl056/EYqv9ORxQCgleOY xqPRKIv1x/vbdeobrLsg8Ys= =fftF -END PGP SIGNATURE-
Re: Consolidating code
On Mar 9, 2009, at 10:45 AM, BJ Freeman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 actually David I was not looking for Validation. Nor was I looking for anyone to chime in. Nor did I want to start a discussion. Mailing lists are for discussion... in fact isn't that all they're for? Communities are all about collaboration, which requires communication among a large number of people, and that's what we use the mailing lists for. Just bring up an awareness. In that scope, bringing up a specific case only focuses on that problem not the general point. Is this your general point, something about: short cuts for their particular part of the code with out looking at the whole picture? That doesn't increase my awareness of anything, nor could I even comment on that... it doesn't mean anything to me... it seems to describes human nature and nothing about the code in the project... but I really don't know. If those coding don't understand, then there is no way I am going to change them. Try communicating in terms that people can understand, and also try avoiding an attack on people you wish to influence. You've burned a lot of bridges in the past and you seem to be trying to burn more... what are your intentions here? I believe the way I said is valid and will stand by that. I couldn't say if it is valid or not, I really don't know. I have no idea what you're trying to express because there is nothing in your comment, not even a description of a general pattern that you find to be a problem. Please try to look at things from other people's point of view. Have you ever noticed that what you call one thing someone else will describe using very different words? Have you ever noticed that people have different opinions of the same things? If you just talk about your opinion, and no one knows what it is an opinion of, how can they possibly communicate with you about it? If you're looking for a definition of troll, this is it! And here I am feeding the troll. Do you understand why that is? Trolls attack people using comments about things that cannot be discussed, leading only to general bad feelings and wasting people's time and energy. I'd say that well describes this thread... Be clear and try to communicate with others in a friendly way, or what's the point? -David David E Jones sent the following on 3/9/2009 9:27 AM: Did I say or imply that? Now we're getting into trolling... so unless you want to talk about something specific... -David On Mar 9, 2009, at 10:17 AM, BJ Freeman wrote: and from your response you don't agree. interesting. David E Jones sent the following on 3/9/2009 8:27 AM: Ranting without any details is not constructive or actionable. Hire a shrink. -David On Mar 9, 2009, at 5:54 AM, BJ Freeman wrote: I have been going through the code, and finding a frustration. it seems that a lot of people are finding what i call short cuts for their particular part of the code with out looking at the whole picture. My frustration is the effort to maintain such code. Yes I know I am making a general statement with no examples. I believe anyone that is looking at maintain this code would discover the same thing. So I ask all those that are creating patches, or adding new code, please look at the whole system before you make changes and see how we can reuse instead re-create the wheel over and over with just minor changes. End of rant. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJtUeorP3NbaWWqE4RAhQhAKDFnL7Hu9whgNXEV8YrhWLstI9q/QCgqByC 3a/TiHvS5u32qOZsbkdQuYM= =s+nB -END PGP SIGNATURE-
Re: Problem in trunk: admin missing visual themes and others
You may need to update your seed data. In ofbiz seed data is (or should) always be pure seed data maintained with code and is meant to be updated whenever you update the code. Run: ant run-install-seed -David On Mar 9, 2009, at 12:48, Todd Burdeinei tburdei...@gmail.com wrote: I just loaded a fresh checkout from trunk, and ran Ant, then startofbiz.sh Navigated to localhost:8443/catalog/control/main The page displays: The Following Errors Occurred: Visual Theme resources not found. And view source reveals Expression layoutSettings.companyName is undefined on line 32, column 14 in component://common/webcommon/includes/header.ftl. The problematic instruction: -- == ${layoutSettings.companyName} [on line 32, column 12 in component://common/webcommon/includes/header.ftl] -- Java backtrace for programmers: -- freemarker.core.InvalidReferenceException: Expression layoutSettings.companyName is undefined on line 32, column 14 in component://common/webcommon/includes/header.ftl. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124) at freemarker.core.Expression.getStringValue(Expression.java:118) at freemarker.core.Expression.getStringValue(Expression.java:93) at freemarker.core.DollarVariable.accept(DollarVariable.java:76) 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:201) at org.ofbiz.widget.screen.HtmlWidget $HtmlTemplate.renderWidgetString(HtmlWidget.java:245) at org. ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:107) at org.ofbiz.widget.screen.ModelScreenWidget $PlatformSpecific.renderWidgetString(ModelScreenWidget.java:993) at org. ofbiz. widget. screen. ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:137) at org.ofbiz.widget.screen.ModelScreenWidget $Section.renderWidgetString(ModelScreenWidget.java:224) at org. ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java: 393) at org.ofbiz.widget.screen.ModelScreenWidget $IncludeScreen.renderWidgetString(ModelScreenWidget.java:553) at org. ofbiz. widget. screen. ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:137) at org.ofbiz.widget.screen.ModelScreenWidget $Section.renderWidgetString(ModelScreenWidget.java:224) at org. ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java: 393) at org.ofbiz.widget.screen.ModelScreenWidget $IncludeScreen.renderWidgetString(ModelScreenWidget.java:553) at org. ofbiz. widget. screen. ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:137) at org.ofbiz.widget.screen.ModelScreenWidget $Section.renderWidgetString(ModelScreenWidget.java:224) at org. ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java: 393) at org.ofbiz.widget.screen.ModelScreenWidget $DecoratorScreen.renderWidgetString(ModelScreenWidget.java:648) at org. ofbiz. widget. screen. ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:137) at org.ofbiz.widget.screen.ModelScreenWidget $Section.renderWidgetString(ModelScreenWidget.java:224) at org. ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java: 393) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:129) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:92) at org. ofbiz. widget. screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:98) at org. ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java: 721) at org. ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:504) at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201) at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org. apache. catalina. core. ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 290) at org. apache. catalina. core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java: 259) at org. apache. catalina. core. ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org. apache. catalina. core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org. apache. catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 233) at org. apache.
Re: subscriptions
It sounds like you're misunderstanding the meaning of various entities: Subscription: keeps track of entitlement to SubscriptionResource for a certain period of time (ie history of what was purchased/etc, used to check permission to access, etc) SubscriptionResource: you would have one of these records for each resource, such as a file or a set of files, or a publication, or whatever ProductSubscriptionResource: this is where you specify how much time and to what resources the customer is entitled to when they purchase the Product; the system automatically creates a Subscription record for each of these when the Product is purchased If you want a customer to pay for a long period up front, you would just configure a Product for that. If you want the customer to pay monthly, but sign up for a longer period of time (like a year) then you would have a Product setup for 1 month of access, and create a ShoppingList for a recurring Order to happen once a month for 12 months. -David On Mar 9, 2009, at 4:38 PM, Vince M. Clark wrote: I am looking to use the existing subscriptions functionality as a starting point for handling magazine orders and need some clarity in two areas: 1) Duration of subscriptions. The example product, GZ-NEWS-1MO suggests that the product itself has something to do with the duration of the subscription. Is this correct? The subscription record has a start and end date and I would expect this to control the duration. 2) Recurrence. I have seen posts on the ML about using re-order shopping lists to create a new order for each issue of a subscription. How would this work if it were paid upfront? Would you accept a customer payment for the full amount and then apply it each time an order was generated? I make the assumption here that an order is not created for the entire duration. One order would be generated for each issue until the subscription period ended.
Re: Which release/revision of ofbiz would you recommend
This page is a good place to start, and has information that directly addresses this question: http://docs.ofbiz.org/display/OFBADMIN/Apache+OFBiz+Getting+Started On a somewhat subjective note... all of the best OFBiz service providers work straight from the trunk and value community participation highly (and generally have clients that value this highly, though not always of course). -David On Mar 9, 2009, at 11:31 PM, farouk alhassan wrote: I am starting a new project and would want to know which version of ofbiz i should checkout. Since ofbiz is community based, a lot of people make contributions and I hope to make some as well, but their changes may be break somethings while they themselves may not be aware as someone just found out with the Geolocation issue. however the latest stable release is a bit old and a lot of things have been changed and/or removed which means upgrading may be an issue. So I would want to know if its alrite to still use the current trunk head or if someone has particular revision of the current trunk which they consider relatively stable so i could go for it. Thanx
Re: Multiple logins needed
You may be describing a well known issue, and one that is part of the way the externalLoginKey works (so it is not likely to change). The externalLoginKey allows you to automatically login to another webapp without a username/password. In order to do this a new login key is generated with EVERY request to the server in order to keep it's life cycle pretty short. As long as it is on a secure/https page when it goes to the browser it is pretty safe, but it generally comes back to the server in a URL and so needs to be invalidated immediately so that it cannot be used again, as that is pretty easy to snoop. So, to make it not work is easy: just have a page open in your browser that has a stale externalLoginKey in its URLS. 1. load a page where you are authenticated in tab/window A 2. right click on a link within the webapp and open it in tab/window B 3. go back to tab/window A and click on any link that goes to a webapp that you are not already logged into and that has an externalLoginKey parameter The externalLoginKey will be stale, so that auto-login will fail and you will be presented with the login form. -David On Mar 8, 2009, at 1:30 PM, Vince M. Clark wrote: Here is the only thing I have seen come up in the log so far. I was in the CMS application and clicked on the Party tab. I got a login screen instead of being logged into PartyMgr automatically. The URL had the external login key. Here is the only line I found in the log that seems related: 2009-03-08 13:48:19,806 (http-0.0.0.0-8443-3) [ LoginWorker.java: 828:WARN ] Could not find userLogin for external login key: EL339616443508 - Original Message - From: BJ Freeman bjf...@free-man.net To: user@ofbiz.apache.org Sent: Saturday, March 7, 2009 6:38:23 PM (GMT-0700) America/Denver Subject: Re: Multiple logins needed -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 to track this done take a look in the URL for something like externalLoginKey=EL82824678935 if so then should login if not then need to track back were someone was when they clicked to go to the place where the login happend. Just a thought Jacques Le Roux sent the following on 3/7/2009 8:51 AM: Thanks to both for confirmation. Hans reported it some time ago, and I saw it too. That's why I tested but I did not reproduce. It's a random bug I guess, hard to trace... We will see anyway... Jacques From: Scott. sc...@anglolimited.com I'm glad its real because I was starting to think I was nuts. I have tried many times to track it down but never seems to be the same way twice. Tried different browsers but thats not it. Had the same issue with Vista, XP Pro and 2003. Every now and then it just asks me for user/pass. It can be 5 minutes of no use or 5 seconds. That said, I dont always get the error. This is something fairly new and I am a user not a developer so I really dont know what it means. Scott. wrote: Hello all, I was seeing what we thought was strange behavior in our ofbiz that kept making us login over and over without any real reason. I have had the same thing using FF3 and IE7 on an XP pro sp2 workstation. It never seems to be the same apps that require you to re-enter so I always put it down to something in our version. Then I decided to try it in on the trunk demo and I got the same result. I logged in originally to the catalogue then work effort, project and then I clicked on order manager. I then got a login screen and I entered admin/ofbiz and got the following; The Following Errors Occurred: Error calling event: org.ofbiz.webapp.event.EventHandlerException: Problems processing event: java.lang.IllegalArgumentException: Could not find resource bundle [SecurityextUiLabels] in the locale [en_US] (Could not find resource bundle [SecurityextUiLabels] in the locale [en_US]) I then logged in again with eh same admin/ofbiz combo and was back in the app. Anyone know why this is happening? Thanks. -- View this message in context: http://www.nabble.com/Multiple-logins-needed- tp22374485p22389286.html Sent from the OFBiz - User mailing list archive at Nabble.com. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJsxbyrP3NbaWWqE4RAnhpAKDGpCyXdcC5eJIM1LrG1T8i7rdRmwCgqCPx YA62kbCmOjrjThBlWNdV28g= =js4M -END PGP SIGNATURE-
Re: widget-form external url
Just use the hyperlink field type. There is an attribute to tell it that it is an external link. -David On Mar 6, 2009, at 8:59 AM, Jacek Wagner wrote: I try to avoid to call external URL through the controller. This should be as simple as lookup:whitepages.com from the orderview BJ Freeman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 as along as the receiving URL knows how to get the maps out of the http request. you can send through the controller and use the URI redirect, would be the simplest way. Jacek Wagner sent the following on 3/5/2009 3:55 PM: All, Is it possible to call external url form the widget-form? Note: it is pretty straightforward from the free marker form. Jacek -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJsHVkrP3NbaWWqE4RAqryAKDSF78zB4XqsyN8sX+KbD2L+RlUyQCeL9KV 064bGa277Qz5N3nk35LptLw= =aYEm -END PGP SIGNATURE-
Re: How to add company name on OFBiz service providers list?
Which list are you referring to? The main one is a wiki page, so anyone can edit it: http://docs.ofbiz.org/display/OFBIZ/Apache+OFBiz+Service+Providers You do need to have an account on the Confluence server there, and there is a handy link right on the page to do so. -David On Mar 5, 2009, at 9:53 AM, Ritika Agrawal wrote: Hello Everyone, We are providing ERP solution on OFBiz from the last one year.I've a question, my question is that how can I add the name of my Company in Apache OFBiz Service Providers list. Any pointer will be helpful. Thanks Ritika.
Re: widget-form external url
Most email clients are not PGP aware, it usually requires a plugin and not very many people use it. Do you mean to say that in these replies you don't see the -BEGIN PGP SIGNED MESSAGE- lines? They are at the beginning of each message you send, and they are in the reply too. -David On Mar 5, 2009, at 8:49 PM, BJ Freeman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 it is way to verify it is me? email clients that are pgp aware filter this out. guo weizhan sent the following on 3/5/2009 7:25 PM: Hi BJ, Why you email contain those message:-BEGIN PGP SIGNED MESSAGE- What's doing for? just curious.:) 2009/3/6 BJ Freeman bjf...@free-man.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 as along as the receiving URL knows how to get the maps out of the http request. you can send through the controller and use the URI redirect, would be the simplest way. Jacek Wagner sent the following on 3/5/2009 3:55 PM: All, Is it possible to call external url form the widget-form? Note: it is pretty straightforward from the free marker form. Jacek -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJsHVkrP3NbaWWqE4RAqryAKDSF78zB4XqsyN8sX+KbD2L+RlUyQCeL9KV 064bGa277Qz5N3nk35LptLw= =aYEm -END PGP SIGNATURE- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJsJ1LrP3NbaWWqE4RAt79AKCt5HmL5/3TPiZ+LJezj3fvPmlnZQCcDWF3 CC/ODX8iBzXcOFKYT17eWp8= =DasC -END PGP SIGNATURE-
Re: Javascript is parsed to HTML (Freemarker ?)
There is a solution to this already in place, and it is used in a few places. Take a look at the promotiondetails.ftl file, especially the expression: ${StringUtil.wrapString(productPromo.promoText?if_exists)} BTW, this should ONLY be used for very trusted fields, ie fields that never have information that come from a non-trusted user. As for the uiLabelMap expressions, I like the fact that all possible HTML characters are encoded before sending it to the browser... it encourages the best practice and at the same time avoids issues where things come out in an unexpected way. -David On Mar 4, 2009, at 1:15 PM, Jacques Le Roux wrote: 1st thing : OFBiz trunk no longer uses .properties files but .xml files 2d thing : we don't allow HTML in labels (actually there are still some, but it should not at term apart some special cases like the famous CommonEmpty) I think you will have to create a specific worker for that, ie no longer render your strings as ${uiXXXLabelMap.CUSTOMER_ORDER_NUMBER} but using something like Static[org.ofbiz.LabelWorker].renderUiLabelMap($ {uiXXXLabelMap.CUSTOMER_ORDER_NUMBER}) where renderUiLabelMap returns a stringBuilder embedding the original String I can see any other means maybe there are and someone will suggest you something easier. Jacques From: Stephen Rufle sru...@salmonllc.com In the ftl I use ${uiXXXLabelMap.CUSTOMER_ORDER_NUMBER} Does this process get passed through some class that I can change and send a patch for? Then all properties could embed HTML Jacques Le Roux wrote: As David explains below you have to embed the String you create (I suppose reading the property) into a StringBuilder Jacques From: Stephen Rufle sru...@salmonllc.com I think I have a related issue to this. I have .properties files with table headings in them. I used to be able to put a br tag br in the content of my labels to break two words. ex. Cust.brOrder# would turn into Cust. Order# on my display, now it sends it literally. How do I get the old behavior back? David E Jones wrote: Have you been following the discussion on the mailing lists about the XSS/etc prevention efforts? As a general practice when you run into things like this you can usually find your answer pretty quickly by looking at commit logs, and by looking at code in OOTB OFBiz that does something similar to what you are trying to do. In this case, for example looking at the productdetail screen and the groovy and ftl files that it uses will give you an example of how to handle this now. The important thing to know is that now all String objects are automatically HTML encoded (using the OWASP ESAPI library). To avoid it, just use anything other than a String object. The normal way to do this is to create your script dynamically using a StringBuilder, and then just leave it as a StringBuilder instead of calling toString() on it before putting it in the context. Then it won't get HTML encoded... On a side note, I know that the OOTB code isn't the best example of this, but usually it is best to generate your JavaScript in the FTL file. If you are dynamically generating any sort of text a template file is usually the best tool to use and results in the cleanest and easiest to maintain code. And as a bonus, you'll avoid this encoding issue too. In fact, part of the decision to do this general encoding is to encourage the practice of using templates for what they are meant to be used for. Best of luck, -David On Feb 16, 2009, at 11:06 AM, Eric DE MAULDE wrote: A precision : *** Error comes from Groovy Because I have the problem only with generated Javascript script with Groovy. An idea ? Thanks Eric - Original Message - From: Eric DE MAULDE eric...@free.fr To: user@ofbiz.apache.org Sent: Monday, February 16, 2009 6:24 PM Subject: Javascript is parsed to HTML (Freemarker ?) Hi, I updated my working copy *** Now all javascript are parsed to HTML (and appear in screen, just for my own application, Ecommerce is OK) Script tags are ok. Ex. in source : lt;script language#61;quot;JavaScriptquot; type#61;quot;text#47;javascriptquot;gt;lt;#33;-- Do you know where I can configure Freemarker ? In HTML head tag, some chars are parsed too. Eric -- Stephen P Rufle sru...@salmonllc.com H1:480-626-8022 H2:480-802-7173 Yahoo IM: stephen_rufle AOL IM: stephen1rufle -- Stephen P Rufle sru...@salmonllc.com H1:480-626-8022 H2:480-802-7173 Yahoo IM: stephen_rufle AOL IM: stephen1rufle