Re: Point-Of-Sale client

2009-04-01 Thread Vince M. Clark
Yes. 
http://docs.ofbiz.org/display/OFBIZ/Sync+Setup+Notes+and+Example 

Vince Clark 
vcl...@globalera.com 
(303) 493-6723 

- Original Message - 
From: "Jacek Wagner"  
To: user@ofbiz.apache.org 
Sent: Wednesday, April 1, 2009 2:25:44 PM (GMT-0600) America/Chicago 
Subject: Point-Of-Sale client 

Can POS client be run from different machine then ofbiz server? -- Jacek 


ldap

2009-03-29 Thread Vince M. Clark
It appears as though the ldap integration expects username/pw entries in the 
directory are created through an ldap client, not OFBiz. If this is correct 
that means you would have to 

1. create a username/pw in the ldap directory. 
2. create the exact same user login in OFBiz. 
3. Upon first login the pw in the directory would over write the pw in 
OFBiz. 

Do I understand this correctly? 

I would like to have any user login that is added in OFBiz to be created in the 
directory. Also when a user changes their pw in OFBiz it would be updated in 
the directory. As far as I can tell the current implementation doesn't support 
that. 

If not, can anyone recommend a web based ldap client that gives users the 
ability to change a pw? I don't want them to have the ability to administer the 
directory, just manage their own pw, and maybe other profile information. 


Re: restful web services

2009-03-11 Thread Vince M. Clark
I'm getting close to clarity. Thanks for all the input so far. 

Here are the three options I think we are discussing: 
1) Use OFBiz service engine as is 
2) Use Axis 
3) Use ServiceMix 

To be clear, I am referring to these options only for the purpose of 
communicating with OFBiz. There will be a separate ESB for enterprise services. 
Here is the fundamental premise behind this, please challenge it if I am wrong. 

We need to connect to OFBiz via WS, then call OFBiz services for things like 
shopping cart, checkout, CRUD operations, etc. So I am looking at this from the 
perspective that I need a WS technology running "in container" rather than 
trying to consume EVERY OFBiz service as a web service. 

- Original Message - 
From: "Jacques Le Roux"  
To: user@ofbiz.apache.org 
Sent: Wednesday, March 11, 2009 8:38:10 AM (GMT-0600) America/Chicago 
Subject: Re: restful web services 

From: "Vince M. Clark"  
> There will be an ESB, probably ServiceMix in our enterprise architecture. 
> That will be used to communicate with backend 
> applications like Oracle Financials, a warehouse system, etc. 

Yes, sounds like the most desirable solution nowadays 

> We are using OFBiz and a couple of other applications that handle e-commerce, 
> then PHP at the web tier for presentation. Each of 
> our ecommerce applications must be accessible via restful web services. Each 
> has their own way of doing it, for example one of the 
> apps is .NET. 
> 
> We have prototyped Axis with OFBiz. I would be fine with using the service 
> engine directly, but from everything I have read in the 
> documentation and ML there are limitations. And since Axis was a documented 
> alternative that is the approach we took. 

Yes, it may be simpler than using an ESB if you have only a couple, or say a 
dozen, of services to link. As you will using an ESB 
for other purposes you should be able to see if it's not a good solution also 
with OFBiz in your case. The reason is that OFBiz has 
a SOA and EDA architecture internally and an ESB extends this architecture 
outside of OFBiz. I don't say an ESB is an universal 
solution, but it's a step... 

> So the architecture is like this: 
> Web - PHP 
> E-Commerce - OFBiz, .NET, Endeca, a few other custom apps. 
> Backend - Oracle, warehouse system, retail system, etc. 

It seems that you have already your architecture. And I will not question it. 

> We are using lighter weight web service technologies between PHP and the 
> e-commerce apps. With OFBiz we need to do more than pass 
> around documents. We will be conducting transactions. For example the web 
> tier will call OFBiz to create a shopping cart and take 
> a customer through checkout, see order history, manage profile, etc. So I 
> question the statement that " all you really need is 
> already in OFBiz." 

Héhé, don't forget context : "in most cases" and "Notably, but not only, when 
you need to speak between OFBiz instances". Also this 
does not mean that OFBiz is the ultimate soltution for all Enterprise level 
problems, but it's a good brick, isn'it ? OFBiz has 
still to go, as David suggested below using OAGIS or UBL for instance. Using an 
ESB you can focus on this level forgetting protocols 
level. 

One point with ServiceMix is that it is JBI compliant (actually it's a complete 
JBI implementation). JBI defines a normalised bus 
for messages exchange (NMR : Normalized Message Router). All there is XML. I 
believe it simplifies things, that's all... 

If you are interested by JBI you may found all what you need here 
http://servicemix.apache.org/articles.html 

Jacques 

> From: "Jacques Le Roux"  
> To: user@ofbiz.apache.org 
> Sent: Wednesday, March 11, 2009 2:51:35 AM (GMT-0600) America/Chicago 
> Subject: Re: restful web services 
> 
> This is also why I spoke about ESB, particularly ServiceMix (which happends 
> to be an Apache project ;o). 
> But in most cases, as David explained, all you need is already in OFBiz. 
> Notably, but not only, when you need to speak between 
> OFBiz 
> instances. 
> On the other hand if you regularly need to speak with other applications, 
> then, IMO, you should really care about ESBs... 
> A good book I'd recommend http://www.manning.com/rademakers/. There are also 
> a lot of free informations at ServiceMix site... 
> 
> Jacques 
> 
> From: "David E Jones"  
>> 
>> 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 gen

Re: restful web services

2009-03-11 Thread Vince M. Clark
There will be an ESB, probably ServiceMix in our enterprise architecture. That 
will be used to communicate with backend applications like Oracle Financials, a 
warehouse system, etc. 

We are using OFBiz and a couple of other applications that handle e-commerce, 
then PHP at the web tier for presentation. Each of our ecommerce applications 
must be accessible via restful web services. Each has their own way of doing 
it, for example one of the apps is .NET. 

We have prototyped Axis with OFBiz. I would be fine with using the service 
engine directly, but from everything I have read in the documentation and ML 
there are limitations. And since Axis was a documented alternative that is the 
approach we took. 

So the architecture is like this: 
Web - PHP 
E-Commerce - OFBiz, .NET, Endeca, a few other custom apps. 
Backend - Oracle, warehouse system, retail system, etc. 

We are using lighter weight web service technologies between PHP and the 
e-commerce apps. With OFBiz we need to do more than pass around documents. We 
will be conducting transactions. For example the web tier will call OFBiz to 
create a shopping cart and take a customer through checkout, see order history, 
manage profile, etc. So I question the statement that " all you really need is 
already in OFBiz." 

- Original Message - 
From: "Jacques Le Roux"  
To: user@ofbiz.apache.org 
Sent: Wednesday, March 11, 2009 2:51:35 AM (GMT-0600) America/Chicago 
Subject: Re: restful web services 

This is also why I spoke about ESB, particularly ServiceMix (which happends to 
be an Apache project ;o). 
But in most cases, as David explained, all you need is already in OFBiz. 
Notably, but not only, when you need to speak between OFBiz 
instances. 
On the other hand if you regularly need to speak with other applications, then, 
IMO, you should really care about ESBs... 
A good book I'd recommend http://www.manning.com/rademakers/. There are also a 
lot of free informations at ServiceMix site... 

Jacques 

From: "David E Jones"  
> 
> 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. 
>> 
&

Re: restful web services

2009-03-10 Thread Vince M. Clark

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"  
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 



restful web services

2009-03-10 Thread Vince M. Clark
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: subscriptions

2009-03-09 Thread Vince M. Clark
Thanks David. 

I was using the term "subscription" too loosely. I understand the difference in 
the various entities. 

Based on the ProductSubscriptionResource it appears as though a different 
product must be configured for different durations. For example if I sell a 
magazine and have the option to get a 1, 2, or 3 year subscription I would have 
to setup separate products. Is this correct? 

Can you elaborate on your statement about upfront payment. You said : 
"If you want a customer to pay for a long period up front, you would 
just configure a Product for that." 

Do you mean I would set the price for the full amount of the subscription? That 
is fine for accepting payment, but how would I handle fulfillment? Your other 
scenario for paying monthly by generating an order from a shopping list would 
deal with fulfillment by default, because an order would be generated for each 
issue. 

Now another twist... 
What I really want to do is also introduce the idea of volume and issue to 
better represent the real world of the publishing industry. Each issue of a 
magazine gets a different ISBN code. 
I'm thinking Product Features and virtual/variant products could be used. So I 
could have a virtual product representing the magazine title. Then product 
features could be applied to the variants to define volume and issue (year and 
month.) 

Some customization would be in order at this point to allow a virtual product 
to be placed on an order, or at least a shopping list. Then some intelligence 
to figure out the month and year so we know what issue to send out first. 

Still not sure how I would handle payment and fulfillment. 

- Original Message - 
From: "David E Jones"  
To: user@ofbiz.apache.org 
Sent: Monday, March 9, 2009 6:58:23 PM (GMT-0600) America/Chicago 
Subject: 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. 



subscriptions

2009-03-09 Thread Vince M. Clark
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: Multiple logins needed

2009-03-08 Thread Vince M. Clark
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"  
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."  
>> 
>> 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: adding an extra payment method

2009-03-07 Thread Vince M. Clark
Heidi - I think in the version you are using payment methods during checkout 
were hardcoded in an ftl file. 

- Original Message - 
From: "Heidi Dehaes"  
To: user@ofbiz.apache.org 
Sent: Saturday, March 7, 2009 2:30:04 PM (GMT-0700) America/Denver 
Subject: Fwd: adding an extra payment method 

Ok i tried to send you copyscreens but they are too big. 

but: 
I set the payment method to "DEXIA" which is not in the list you showed 
me. 
I have to write myself a kind of dexia_event.java file to do the work. 
But before i do that i don't see the option when i try to buy something at 
my own website. 


regards, 
Heidi 

2009/3/7 Heidi Dehaes  

Hello, 
> 
> Yes i am working with ofbiz release 4. 
> My PayPal works fine after i did a modification in the java file 6 months 
> ago. 
> 
> But if i copy the same for a new payment method xyz, i don't see the option 
> when i try to buy a product. 
> 
> regards, 
> Heidi 
> 
> 2009/3/7 BJ Freeman  
> 
> -BEGIN PGP SIGNED MESSAGE- 
>> Hash: SHA1 
>> 
>> I am assuming you are still with ver 4.0. always good to remind since 
>> most will respond using the trunk. 
>> first the paypal example is not complete and needs work. 
>> so if you copied it you may find you payment does not work. 
>> so what did you set this to: 
>> 
>> https://demo40.hotwaxmedia.com/catalog/control/EditProductStorePaySetup?productStoreId=9000
>>  
>> for CC payments 
>> 
>> Heidi Dehaes sent the following on 3/7/2009 8:59 AM: 
>> > Hello, 
>> > 
>> > I added an extra payment method , a little bit the same way as "PayPal" 
>> but 
>> > let's say "xyz". 
>> > Payment Method: xyz 
>> > Service Type: External Payment (no service) 
>> > Payment Props: payment.properties 
>> > Apply to All: Y 
>> > 
>> > I inserted in the file payment.properties (C:\ 
>> > ... \applications\accounting\config\payment.properties 
>> > the same properties as for PayPal but i changed the name of "Paypal" 
>> > anywhere in "xyz". 
>> > 
>> > I will write later on a similar java file like PayPalEvents.java but 
>> then 
>> > for xyz (C:\ ... 
>> > \applications\accounting\src\org\ofbiz\accounting\thirdparty\paypal). 
>> > 
>> > But when i try to pay a command in the ecommerce website, i get showed 
>> as 
>> > payment possiblities only "PayPal" and never "xyz" also. 
>> > 
>> > Can anyone tell me what i forgot to modify in order that xyz is also 
>> shown 
>> > as payment possibilities? 
>> > 
>> > thanks, 
>> > Heidi 
>> > 
>> -BEGIN PGP SIGNATURE- 
>> Version: GnuPG v1.4.6 (MingW32) 
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org 
>> 
>> iD8DBQFJsrcArP3NbaWWqE4RAraXAJ95pslpf7JVxxFo7tV4qLr5+EmhLACfcP97 
>> sNdkahBZIftaqnmKtW8y7y0= 
>> =jX9X 
>> -END PGP SIGNATURE- 
>> 
> 
> 


Re: Multiple logins needed

2009-03-07 Thread Vince M. Clark
This problem has been reported many times. It is mysterious, but definitely 
real. 

- Original Message - 
From: "Jacques Le Roux"  
To: user@ofbiz.apache.org 
Sent: Saturday, March 7, 2009 3:41:36 AM (GMT-0700) America/Denver 
Subject: Re: Multiple logins needed 

I tried on alternate server and got any problems (Release.revision : 
trunk.751084) 

Jacques 

From: "Scott."  
> 
> 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-tp22374485p22374485.html 
> Sent from the OFBiz - User mailing list archive at Nabble.com. 
> 



Re: error on payment application

2009-03-02 Thread Vince M. Clark
I'm looking for help. I will try an svn update. If that doesn't work I'll list 
the steps that produced the error. 

- Original Message - 
From: "David E Jones"  
To: user@ofbiz.apache.org 
Sent: Monday, March 2, 2009 4:17:52 PM (GMT-0700) America/Denver 
Subject: Re: error on payment application 


Is this something you are planning on fixing, or are you looking for 
help? 

I ask because there are no steps to reproduce (with specific request 
URIs, or full URLs for different pages you visit), so it would be 
tough for anything to verify they had fixed it even if they were able 
to based on the error message you include here. 

I apologize for the repetition (as these are mentioned a lot), but in 
order to help people look into issues the following information is 
helpful: 

1. what did you do (complete information, ie sufficient to reproduce 
the error) 
2. what did you expect to happen 
3. what actually happened 

-David 


On Mar 2, 2009, at 3:33 PM, Vince M. Clark wrote: 

> This seems to only be happening on the AR side, not AP. I get the 
> error in two scenarios: 
> From an existing sales invoice I click on "Applications." 
> 
> From the Customer Payment I click on "Applications." 
> 
> However when I enter a vendor invoice both scenarios work fine. I 
> can click on the "Applications" tab from either the vendor invoice 
> or the payment. 
> 
> - Original Message - 
> From: "Vince M. Clark"  
> To: "user"  
> Sent: Monday, March 2, 2009 2:50:02 PM (GMT-0700) America/Denver 
> Subject: error on payment application 
> 
> I am trying to apply a payment to an invoice and get the following 
> error: 
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering 
> screen [component://accounting/widget/ 
> PaymentScreens.xml#EditPaymentApplications]: 
> java.lang.NullPointerException: Cannot invoke method setScale() on 
> null object (Cannot invoke method setScale() on null object) 
> 
> Here is the stack trace. I am using revision 748884 
> 
> 
> 2009-03-02 13:24:19,542 (TP-Processor11) [ ControlServlet.java: 
> 204:ERROR]  exception report 
> -- Error in 
> request handler: Exception: 
> org.ofbiz.widget.screen.ScreenRenderException Message: Error 
> rendering screen [component://accounting/widget/ 
> InvoiceScreens.xml#EditInvoiceApplications]: 
> java.lang.NullPointerException: Cannot invoke method setScale() on 
> null object (Cannot invoke method setScale() on null object)  
> cause 
> - 
> Exception 
> : java.lang.NullPointerException Message: Cannot invoke method 
> setScale() on null object  stack trace 
> --- 
> java.lang.NullPointerException: Cannot invoke method setScale() on 
> null object 
> org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java: 
> 77) 
> org 
> .codehaus 
> .groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java: 
> 784) 
> org 
> .codehaus 
> .groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:758) 
> org 
> .codehaus 
> .groovy 
> .runtime 
> .ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170) 
> ListNotAppliedPayments 
> $_getPayments_closure1.doCall(ListNotAppliedPayments.groovy:71) 
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25) 
> java.lang.reflect.Method.invoke(Method.java:585) 
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java: 
> 86) groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) 
> org 
> .codehaus 
> .groovy 
> .runtime 
> .metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:248) 
> groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756) 
> groovy.lang.Closure.call(Closure.java:292) 
> groovy.lang.Closure.call(Closure.java:305) 
> org 
> .codehaus 
> .groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java: 
> 1079) 
> org 
> .codehaus 
> .groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java: 
> 1056) sun.reflect.GeneratedMethodAccessor100.invoke(Unknown Source) 
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25) 
> java.lang.reflect.Method.invoke(Method.java:585) 
> org 
> .codehaus 
> .groovy 
> .runtime 
> .metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:51) 
> org 
> .codehaus 
> .groovy 
&

Re: error on payment application

2009-03-02 Thread Vince M. Clark
This seems to only be happening on the AR side, not AP. I get the error in two 
scenarios: 
>From an existing sales invoice I click on "Applications." 

>From the Customer Payment I click on "Applications." 

However when I enter a vendor invoice both scenarios work fine. I can click on 
the "Applications" tab from either the vendor invoice or the payment. 

- Original Message - 
From: "Vince M. Clark"  
To: "user"  
Sent: Monday, March 2, 2009 2:50:02 PM (GMT-0700) America/Denver 
Subject: error on payment application 

I am trying to apply a payment to an invoice and get the following error: 
org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
[component://accounting/widget/PaymentScreens.xml#EditPaymentApplications]: 
java.lang.NullPointerException: Cannot invoke method setScale() on null object 
(Cannot invoke method setScale() on null object) 

Here is the stack trace. I am using revision 748884 


2009-03-02 13:24:19,542 (TP-Processor11) [ ControlServlet.java:204:ERROR]  
exception report -- 
Error in request handler: Exception: 
org.ofbiz.widget.screen.ScreenRenderException Message: Error rendering screen 
[component://accounting/widget/InvoiceScreens.xml#EditInvoiceApplications]: 
java.lang.NullPointerException: Cannot invoke method setScale() on null object 
(Cannot invoke method setScale() on null object)  cause 
- 
Exception: java.lang.NullPointerException Message: Cannot invoke method 
setScale() on null object  stack trace 
--- 
java.lang.NullPointerException: Cannot invoke method setScale() on null object 
org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77) 
org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:784)
 org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:758) 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
 
ListNotAppliedPayments$_getPayments_closure1.doCall(ListNotAppliedPayments.groovy:71)
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 java.lang.reflect.Method.invoke(Method.java:585) 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) 
groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) 
org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:248)
 groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756) 
groovy.lang.Closure.call(Closure.java:292) 
groovy.lang.Closure.call(Closure.java:305) 
org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1079)
 
org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1056)
 sun.reflect.GeneratedMethodAccessor100.invoke(Unknown Source) 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 java.lang.reflect.Method.invoke(Method.java:585) 
org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:51)
 
org.codehaus.groovy.runtime.metaclass.NewInstanceMetaMethod.invoke(NewInstanceMetaMethod.java:54)
 groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) 
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912) 
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756) 
org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:766)
 org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:754) 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
 ListNotAppliedPayments.getPayments(ListNotAppliedPayments.groovy:65) 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 java.lang.reflect.Method.invoke(Method.java:585) 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) 
groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) 
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912) 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
 ListNotAppliedPayments.run(ListNotAppliedPayments.groovy:57) 
org.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:78) 
org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:402)
 
org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:118)
 
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:218)

error on payment application

2009-03-02 Thread Vince M. Clark
I am trying to apply a payment to an invoice and get the following error: 
org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
[component://accounting/widget/PaymentScreens.xml#EditPaymentApplications]: 
java.lang.NullPointerException: Cannot invoke method setScale() on null object 
(Cannot invoke method setScale() on null object) 

Here is the stack trace. I am using revision 748884 


2009-03-02 13:24:19,542 (TP-Processor11) [ ControlServlet.java:204:ERROR]  
exception report -- 
Error in request handler: Exception: 
org.ofbiz.widget.screen.ScreenRenderException Message: Error rendering screen 
[component://accounting/widget/InvoiceScreens.xml#EditInvoiceApplications]: 
java.lang.NullPointerException: Cannot invoke method setScale() on null object 
(Cannot invoke method setScale() on null object)  cause 
- 
Exception: java.lang.NullPointerException Message: Cannot invoke method 
setScale() on null object  stack trace 
--- 
java.lang.NullPointerException: Cannot invoke method setScale() on null object 
org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77) 
org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:784)
 org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:758) 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
 
ListNotAppliedPayments$_getPayments_closure1.doCall(ListNotAppliedPayments.groovy:71)
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 java.lang.reflect.Method.invoke(Method.java:585) 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) 
groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) 
org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:248)
 groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756) 
groovy.lang.Closure.call(Closure.java:292) 
groovy.lang.Closure.call(Closure.java:305) 
org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1079)
 
org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1056)
 sun.reflect.GeneratedMethodAccessor100.invoke(Unknown Source) 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 java.lang.reflect.Method.invoke(Method.java:585) 
org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:51)
 
org.codehaus.groovy.runtime.metaclass.NewInstanceMetaMethod.invoke(NewInstanceMetaMethod.java:54)
 groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) 
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912) 
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756) 
org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:766)
 org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:754) 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
 ListNotAppliedPayments.getPayments(ListNotAppliedPayments.groovy:65) 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 java.lang.reflect.Method.invoke(Method.java:585) 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) 
groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) 
groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912) 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
 ListNotAppliedPayments.run(ListNotAppliedPayments.groovy:57) 
org.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:78) 
org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:402)
 
org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:118)
 
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:218)
 org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) 
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:129) 
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:92) 
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:98)
 org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:677) 
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:490) 
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:690) 
javax.ser

Re: How to expose Web Service of OFBiz ?

2009-03-01 Thread Vince M. Clark
Consider it ignored. I believe you understand what we are using Axis for. 

- Original Message - 
From: "BJ Freeman"  
To: user@ofbiz.apache.org 
Sent: Sunday, March 1, 2009 5:05:44 PM (GMT-0700) America/Denver 
Subject: Re: How to expose Web Service of OFBiz ? 

-BEGIN PGP SIGNED MESSAGE- 
Hash: SHA1 

now that I woke up please ignore the last sentence. 

BJ Freeman sent the following on 3/1/2009 2:57 PM: 
> Ok my perspective is from the way ofbiz does things. 
> so there are no objects only models and entities. 
> true in the java code using 1.5 there are objects defined but these are 
> java type objects not ofbiz objects. 
> The is no one entity that is the shopping cart. 
> Shopping cart perse is a group of order Entities. 
> For instance if you change or add items there is and ECAS that updates 
> the grand total in the orderheader entity. 
> if you look at the application/ordermgr/servicedef/secas.xml you will 
> see all of them that effect the "shopping Cart" or order entities. 
> Now there are a group of services that deal with those entities in the 
> application/ordermgr/servicedef/services_cart.xml 
> this group of services are define 
> org.ofbiz.order.shoppingcart.ShoppingCartServices 
> 
> so it would seem to me the best integration is to replace the Axis 
> services with the services.ofbiz to call the services and events. 
> 
> 
> 
> Vince M. Clark sent the following on 3/1/2009 12:21 PM: 
>> What service? There are no services defined for ShoppingCart. There are 
>> services for ShoppingList and we are using them. 
> 
>> Are you saying we should use ShoppingCartEvents instead of manipulating 
>> ShoppingCart directly? 
> 
>> - Original Message - 
>> From: "BJ Freeman"  
>> To: user@ofbiz.apache.org 
>> Sent: Saturday, February 28, 2009 12:18:20 PM (GMT-0700) America/Denver 
>> Subject: Re: How to expose Web Service of OFBiz ? 
> 
>> I am curious since you are not calling the service how all the SCAS and 
>> ECAS are being compensated for. 
> 
>> Vince M. Clark sent the following on 2/28/2009 9:42 AM: 
>>> Thanks for all the feedback on this. The ShoppingCart object is what we 
>>> have been working with that originally raised the question. As we have 
>>> progressed thru our learning curve of creating web services using Axis, 
>>> Anthony (my coworker) figured out how to use the ShoppingCart without it 
>>> being defined as a service in OFBiz. So our web service just creates a 
>>> ShoppingCart object and if we need to persist it then we use ShoppingList 
>>> services. 
>>> - Original Message - 
>>> From: "BJ Freeman"  
>>> To: user@ofbiz.apache.org 
>>> Sent: Saturday, February 28, 2009 10:43:55 AM (GMT-0700) America/Denver 
>>> Subject: Re: How to expose Web Service of OFBiz ? 
>>> to add to this 
>>> and event has unstructured data, where you can seed data not in the 
>>> entities to be processed. 
>>> where a service has structured input and output with input validation. 
>>> Jacques Le Roux sent the following on 2/28/2009 9:27 AM: 
>>>> As I see it, a (java or simple-method mostly) event is a simple response 
>>>> to a request which does not need further processing. 
>>>> A service allows you to use Service Engine power : chain other services 
>>>> using SECA, etc. 
>>>> Jacques 
>>>> From: "Vince M. Clark"  
>>>>> Thank you Jacques. Your suggestion raises something that I was 
>>>>> confused about. What is different about "events" and "services?" I 
>>>>> wasn't sure if we could just define a service as you put it, a "cover" 
>>>>> service. Why was the event not defined as a service in the 
>>>>> first place? 
>>>>> 
>>>>> I'll look thru the docs but any clarification you can provide would be 
>>>>> appreciated. 
>>>>> 
>>>>> - Original Message - From: "Jacques Le Roux" 
>>>>>  
>>>>> To: user@ofbiz.apache.org 
>>>>> Sent: Wednesday, February 25, 2009 12:59:29 PM (GMT-0600) America/Chicago 
>>>>> Subject: Re: How to expose Web Service of OFBiz ? 
>>>>> 
>>>>> Why not create cover services around events if it's your problem ? 
>>>>> (Not sure someone did not already suggest this to you, was half 
>>>>> somewhere else those last days...) 
>>>>> 
>>>>> Jacques 
>>>>&g

Re: How to expose Web Service of OFBiz ?

2009-03-01 Thread Vince M. Clark
You are correct, there are some services related to carts. But not any to 
create a cart if one doesn't exist. 

We are using ShoppingCartEvents just like the OFBiz ecommerce controller does. 
But these are not services, and it is the way OFBiz does it, so I do not 
understand the issue you are raising about using java objects instead of 
services in this isolated case. I would agree that whenever there is an 
available service it should be used, not circumvented. 

 
 
 

And in the addToCart method: 
ShoppingCart cart = getCartObject(request); 
This method checks for an existing cart and if it doesn't exist creates a new 
one. 

So it seems to me this is the entry point for creating a new shopping cart (not 
one you are creating from an existing order or shopping list.) 

I do not understand the term "Shopping Cart perse" and cannot find any 
reference to the word in the code base. I think I understand what you are 
getting at regarding order services and ecas. But orders are persisted, 
shopping carts are not. They are not the same thing. 

This is a very interesting dialog and quite a learning experience. For clarify 
I would like to go back to the original problem. 

Create a new shopping cart object, add items to it, and go through a checkout 
process using web services. Why? Because we are not using OFBiz to generate the 
UI. We are using web frameworks like Symfony. 

We are using Axis and have the first two parts working. Haven't tried to go 
thru checkout yet but everything we've done so far seems to be working. 

So two final questions. 
1) Is it correct to create the shopping cart using ShoppingCartEvents? 
2) What is the difference in an event and a service. Or said another way, why 
are all events not defined as services? 

- Original Message - 
From: "BJ Freeman"  What service? There are no services defined for ShoppingCart. There are 
> services for ShoppingList and we are using them. 
> 
> Are you saying we should use ShoppingCartEvents instead of manipulating 
> ShoppingCart directly? 
> 
> - Original Message - 
> From: "BJ Freeman"  
> To: user@ofbiz.apache.org 
> Sent: Saturday, February 28, 2009 12:18:20 PM (GMT-0700) America/Denver 
> Subject: Re: How to expose Web Service of OFBiz ? 
> 
> I am curious since you are not calling the service how all the SCAS and 
> ECAS are being compensated for. 
> 
> Vince M. Clark sent the following on 2/28/2009 9:42 AM: 
>> Thanks for all the feedback on this. The ShoppingCart object is what we have 
>> been working with that originally raised the question. As we have progressed 
>> thru our learning curve of creating web services using Axis, Anthony (my 
>> coworker) figured out how to use the ShoppingCart without it being defined 
>> as a service in OFBiz. So our web service just creates a ShoppingCart object 
>> and if we need to persist it then we use ShoppingList services. 
> 
>> - Original Message - 
>> From: "BJ Freeman"  
>> To: user@ofbiz.apache.org 
>> Sent: Saturday, February 28, 2009 10:43:55 AM (GMT-0700) America/Denver 
>> Subject: Re: How to expose Web Service of OFBiz ? 
> 
>> to add to this 
>> and event has unstructured data, where you can seed data not in the 
>> entities to be processed. 
>> where a service has structured input and output with input validation. 
> 
>> Jacques Le Roux sent the following on 2/28/2009 9:27 AM: 
>>> As I see it, a (java or simple-method mostly) event is a simple response 
>>> to a request which does not need further processing. 
>>> A service allows you to use Service Engine power : chain other services 
>>> using SECA, etc. 
>>> Jacques 
>>> From: "Vince M. Clark"  
>>>> Thank you Jacques. Your suggestion raises something that I was 
>>>> confused about. What is different about "events" and "services?" I 
>>>> wasn't sure if we could just define a service as you put it, a "cover" 
>>>> service. Why was the event not defined as a service in the 
>>>> first place? 
>>>> 
>>>> I'll look thru the docs but any clarification you can provide would be 
>>>> appreciated. 
>>>> 
>>>> - Original Message - From: "Jacques Le Roux" 
>>>>  
>>>> To: user@ofbiz.apache.org 
>>>> Sent: Wednesday, February 25, 2009 12:59:29 PM (GMT-0600) America/Chicago 
>>>> Subject: Re: How to expose Web Service of OFBiz ? 
>>>> 
>>>> Why not create cover services around events if it's your problem ? 
>>>> (Not sure someone did not already suggest this to you, was half 
>>

Re: How to expose Web Service of OFBiz ?

2009-03-01 Thread Vince M. Clark
What service? There are no services defined for ShoppingCart. There are 
services for ShoppingList and we are using them. 

Are you saying we should use ShoppingCartEvents instead of manipulating 
ShoppingCart directly? 

- Original Message - 
From: "BJ Freeman"  
To: user@ofbiz.apache.org 
Sent: Saturday, February 28, 2009 12:18:20 PM (GMT-0700) America/Denver 
Subject: Re: How to expose Web Service of OFBiz ? 

-BEGIN PGP SIGNED MESSAGE- 
Hash: SHA1 

I am curious since you are not calling the service how all the SCAS and 
ECAS are being compensated for. 

Vince M. Clark sent the following on 2/28/2009 9:42 AM: 
> Thanks for all the feedback on this. The ShoppingCart object is what we have 
> been working with that originally raised the question. As we have progressed 
> thru our learning curve of creating web services using Axis, Anthony (my 
> coworker) figured out how to use the ShoppingCart without it being defined as 
> a service in OFBiz. So our web service just creates a ShoppingCart object and 
> if we need to persist it then we use ShoppingList services. 
> 
> - Original Message - 
> From: "BJ Freeman"  
> To: user@ofbiz.apache.org 
> Sent: Saturday, February 28, 2009 10:43:55 AM (GMT-0700) America/Denver 
> Subject: Re: How to expose Web Service of OFBiz ? 
> 
> to add to this 
> and event has unstructured data, where you can seed data not in the 
> entities to be processed. 
> where a service has structured input and output with input validation. 
> 
> Jacques Le Roux sent the following on 2/28/2009 9:27 AM: 
>> As I see it, a (java or simple-method mostly) event is a simple response 
>> to a request which does not need further processing. 
>> A service allows you to use Service Engine power : chain other services 
>> using SECA, etc. 
> 
>> Jacques 
> 
>> From: "Vince M. Clark"  
>>> Thank you Jacques. Your suggestion raises something that I was 
>>> confused about. What is different about "events" and "services?" I 
>>> wasn't sure if we could just define a service as you put it, a "cover" 
>>> service. Why was the event not defined as a service in the 
>>> first place? 
>>> 
>>> I'll look thru the docs but any clarification you can provide would be 
>>> appreciated. 
>>> 
>>> - Original Message - From: "Jacques Le Roux" 
>>>  
>>> To: user@ofbiz.apache.org 
>>> Sent: Wednesday, February 25, 2009 12:59:29 PM (GMT-0600) America/Chicago 
>>> Subject: Re: How to expose Web Service of OFBiz ? 
>>> 
>>> Why not create cover services around events if it's your problem ? 
>>> (Not sure someone did not already suggest this to you, was half 
>>> somewhere else those last days...) 
>>> 
>>> Jacques 
>>> 
>>> From: "Vince M. Clark"  
>>>> This helps, thank you. Your example goes further than the one in the 
>>>> how to. 
>>>> 
>>>> Could you shed some light on this scenario? We want to use all the 
>>>> shopping cart functionality and are struggling with how to put 
>>>> all the pieces together. 
>>>> If I use OFBiz ecommerce as a guide and trace thru the code I see 
>>>> that from the ecommerce site if I click "add to cart" it calls 
>>>> a 
>>>> request map called "additem" in the controller. 
>>>> That request map calls the following event: 
>>>> >>> path="org.ofbiz.order.shoppingcart.ShoppingCartEvents" 
>>>> invoke="addToCart"/> 
>>>> which is not defined as a service. So we are a bit confused as to how 
>>>> we can mimick the shopping cart functionality thru web 
>>>> services. 
>>>> Should we call ShoppingCartEvents.addToCart() directly from our java 
>>>> class in Axis, and then use other methods defined as 
>>>> services, such as ShoppingCartServices.getShoppingCartData() to 
>>>> return up the stack? 
>>>> 
>>>> - Original Message - From: "Alfredo Rueda" 
>>>>  
>>>> To: user@ofbiz.apache.org 
>>>> Sent: Monday, February 23, 2009 8:50:22 AM (GMT-0700) America/Denver 
>>>> Subject: Re: How to expose Web Service of OFBiz ? 
>>>> 
>>>> 
>>>> OK, I will be glad to help you, but please could you suggest me which 
>>>> Ofbiz 
>>>> service you want to export? 
>>>> I'm working with OpenTaps, so I don't know If OpenTaps will a

Re: How to expose Web Service of OFBiz ?

2009-02-28 Thread Vince M. Clark
Thanks for all the feedback on this. The ShoppingCart object is what we have 
been working with that originally raised the question. As we have progressed 
thru our learning curve of creating web services using Axis, Anthony (my 
coworker) figured out how to use the ShoppingCart without it being defined as a 
service in OFBiz. So our web service just creates a ShoppingCart object and if 
we need to persist it then we use ShoppingList services. 

- Original Message - 
From: "BJ Freeman"  
To: user@ofbiz.apache.org 
Sent: Saturday, February 28, 2009 10:43:55 AM (GMT-0700) America/Denver 
Subject: Re: How to expose Web Service of OFBiz ? 

-BEGIN PGP SIGNED MESSAGE- 
Hash: SHA1 

to add to this 
and event has unstructured data, where you can seed data not in the 
entities to be processed. 
where a service has structured input and output with input validation. 

Jacques Le Roux sent the following on 2/28/2009 9:27 AM: 
> As I see it, a (java or simple-method mostly) event is a simple response 
> to a request which does not need further processing. 
> A service allows you to use Service Engine power : chain other services 
> using SECA, etc. 
> 
> Jacques 
> 
> From: "Vince M. Clark"  
>> Thank you Jacques. Your suggestion raises something that I was 
>> confused about. What is different about "events" and "services?" I 
>> wasn't sure if we could just define a service as you put it, a "cover" 
>> service. Why was the event not defined as a service in the 
>> first place? 
>> 
>> I'll look thru the docs but any clarification you can provide would be 
>> appreciated. 
>> 
>> - Original Message - From: "Jacques Le Roux" 
>>  
>> To: user@ofbiz.apache.org 
>> Sent: Wednesday, February 25, 2009 12:59:29 PM (GMT-0600) America/Chicago 
>> Subject: Re: How to expose Web Service of OFBiz ? 
>> 
>> Why not create cover services around events if it's your problem ? 
>> (Not sure someone did not already suggest this to you, was half 
>> somewhere else those last days...) 
>> 
>> Jacques 
>> 
>> From: "Vince M. Clark"  
>>> This helps, thank you. Your example goes further than the one in the 
>>> how to. 
>>> 
>>> Could you shed some light on this scenario? We want to use all the 
>>> shopping cart functionality and are struggling with how to put 
>>> all the pieces together. 
>>> If I use OFBiz ecommerce as a guide and trace thru the code I see 
>>> that from the ecommerce site if I click "add to cart" it calls 
>>> a 
>>> request map called "additem" in the controller. 
>>> That request map calls the following event: 
>>> >> path="org.ofbiz.order.shoppingcart.ShoppingCartEvents" 
>>> invoke="addToCart"/> 
>>> which is not defined as a service. So we are a bit confused as to how 
>>> we can mimick the shopping cart functionality thru web 
>>> services. 
>>> Should we call ShoppingCartEvents.addToCart() directly from our java 
>>> class in Axis, and then use other methods defined as 
>>> services, such as ShoppingCartServices.getShoppingCartData() to 
>>> return up the stack? 
>>> 
>>> - Original Message - From: "Alfredo Rueda" 
>>>  
>>> To: user@ofbiz.apache.org 
>>> Sent: Monday, February 23, 2009 8:50:22 AM (GMT-0700) America/Denver 
>>> Subject: Re: How to expose Web Service of OFBiz ? 
>>> 
>>> 
>>> OK, I will be glad to help you, but please could you suggest me which 
>>> Ofbiz 
>>> service you want to export? 
>>> I'm working with OpenTaps, so I don't know If OpenTaps will also have 
>>> your 
>>> web service included in their distro (OpenTaps is built upon Ofbiz??) 
>>> 
>>> Some example: 
>>> 
>>> GenericDelegator delegator = 
>>> GenericDelegator.getGenericDelegator("default"); 
>>> LocalDispatcher dispatcher = 
>>> GenericDispatcher.getLocalDispatcher("default",delegator); 
>>> GenericValue admin = null; 
>>> try { 
>>> admin = delegator.findByPrimaryKey("UserLogin", 
>>> UtilMisc.toMap("userLoginId", "admin")); 
>>> } catch (GenericEntityException e1) { 
>>> e1.printStackTrace(); 
>>> } 
>>> 
>>> Map result = null; 
>>> 
>>> Object[] params = { 
>>> "login.username", un_username, 
>>> "login.password", un_password, 
>>&g

Re: How to expose Web Service of OFBiz ?

2009-02-25 Thread Vince M. Clark
Thank you Jacques. Your suggestion raises something that I was confused about. 
What is different about "events" and "services?" I wasn't sure if we could just 
define a service as you put it, a "cover" service. Why was the event not 
defined as a service in the first place? 

I'll look thru the docs but any clarification you can provide would be 
appreciated. 

- Original Message - 
From: "Jacques Le Roux"  
To: user@ofbiz.apache.org 
Sent: Wednesday, February 25, 2009 12:59:29 PM (GMT-0600) America/Chicago 
Subject: Re: How to expose Web Service of OFBiz ? 

Why not create cover services around events if it's your problem ? (Not sure 
someone did not already suggest this to you, was half 
somewhere else those last days...) 

Jacques 

From: "Vince M. Clark"  
> This helps, thank you. Your example goes further than the one in the how to. 
> 
> Could you shed some light on this scenario? We want to use all the shopping 
> cart functionality and are struggling with how to put 
> all the pieces together. 
> If I use OFBiz ecommerce as a guide and trace thru the code I see that from 
> the ecommerce site if I click "add to cart" it calls a 
> request map called "additem" in the controller. 
> That request map calls the following event: 
>  invoke="addToCart"/> 
> which is not defined as a service. So we are a bit confused as to how we can 
> mimick the shopping cart functionality thru web 
> services. 
> Should we call ShoppingCartEvents.addToCart() directly from our java class in 
> Axis, and then use other methods defined as 
> services, such as ShoppingCartServices.getShoppingCartData() to return up the 
> stack? 
> 
> - Original Message - 
> From: "Alfredo Rueda"  
> To: user@ofbiz.apache.org 
> Sent: Monday, February 23, 2009 8:50:22 AM (GMT-0700) America/Denver 
> Subject: Re: How to expose Web Service of OFBiz ? 
> 
> 
> OK, I will be glad to help you, but please could you suggest me which Ofbiz 
> service you want to export? 
> I'm working with OpenTaps, so I don't know If OpenTaps will also have your 
> web service included in their distro (OpenTaps is built upon Ofbiz??) 
> 
> Some example: 
> 
> GenericDelegator delegator = 
> GenericDelegator.getGenericDelegator("default"); 
> LocalDispatcher dispatcher = 
> GenericDispatcher.getLocalDispatcher("default",delegator); 
> GenericValue admin = null; 
> try { 
> admin = delegator.findByPrimaryKey("UserLogin", 
> UtilMisc.toMap("userLoginId", "admin")); 
> } catch (GenericEntityException e1) { 
> e1.printStackTrace(); 
> } 
> 
> Map result = null; 
> 
> Object[] params = { 
> "login.username", un_username, 
> "login.password", un_password, 
> "domini", un_domini, 
>  (more params) 
> 
> "estat", un_estat, 
> "ip", una_ip, 
> "userLogin", admin 
> }; 
> 
> try { 
> result = dispatcher.runSync("put here the name of your ofbiz service", 
> UtilMisc.toMap(params)); 
> } catch (GenericServiceException e) { 
> e.printStackTrace(); 
> } 
> 
> // Now get the result using result variable 
> 
> 
> Hope that helps! 
> 
> 
> 
> Vince Clark wrote: 
>> 
>> OK that makes sense. Yes I agree it would not make sense to publish custom 
>> services you have written for a customer. But examples of OFBiz standard 
>> services being exported would be very helpful, along with the directory 
>> structure, supporting files, etc. for deploying as an OFBiz component. For 
>> example, did you deploy the entire binary distribution, or just axis2.war? 
>> 
>> A jira issue that explains your solution along with a patch would be 
>> fantastic! Before doing that, would you mind just replying to this thread 
>> with a code sample showing the call to a standard OFBiz service and how 
>> you are dealing with the results? It would be very timely as we are 
>> struggling with this very thing right now. 
>> 
>> - Original Message - 
>> From: "Alfredo Rueda"  
>> To: user@ofbiz.apache.org 
>> Sent: Monday, February 23, 2009 8:23:39 AM (GMT-0700) America/Denver 
>> Subject: Re: How to expose Web Service of OFBiz ? 
>> 
>> 
>> Hello Vince, 
>> 
>> Yes, I have deployed Axis2 as its own OFBiz component. 
>> 
>> "The example code 
>> will be a java file that exports two Ofbiz Services that come with Ofbiz 
>> Distribution (now I'm exporting customer specific Ofbiz Services, that is 
>> why it's nonsense to publish this java file.)&

Re: How to expose Web Service of OFBiz ?

2009-02-23 Thread Vince M. Clark
This helps, thank you. Your example goes further than the one in the how to. 

Could you shed some light on this scenario? We want to use all the shopping 
cart functionality and are struggling with how to put all the pieces together. 
If I use OFBiz ecommerce as a guide and trace thru the code I see that from the 
ecommerce site if I click "add to cart" it calls a request map called "additem" 
in the controller. 
That request map calls the following event: 
 
which is not defined as a service. So we are a bit confused as to how we can 
mimick the shopping cart functionality thru web services. 
Should we call ShoppingCartEvents.addToCart() directly from our java class in 
Axis, and then use other methods defined as services, such as 
ShoppingCartServices.getShoppingCartData() to return up the stack? 

- Original Message - 
From: "Alfredo Rueda"  
To: user@ofbiz.apache.org 
Sent: Monday, February 23, 2009 8:50:22 AM (GMT-0700) America/Denver 
Subject: Re: How to expose Web Service of OFBiz ? 


OK, I will be glad to help you, but please could you suggest me which Ofbiz 
service you want to export? 
I'm working with OpenTaps, so I don't know If OpenTaps will also have your 
web service included in their distro (OpenTaps is built upon Ofbiz??) 

Some example: 

GenericDelegator delegator = 
GenericDelegator.getGenericDelegator("default"); 
LocalDispatcher dispatcher = 
GenericDispatcher.getLocalDispatcher("default",delegator); 
GenericValue admin = null; 
try { 
admin = delegator.findByPrimaryKey("UserLogin", 
UtilMisc.toMap("userLoginId", "admin")); 
} catch (GenericEntityException e1) { 
e1.printStackTrace(); 
} 

Map result = null; 

Object[] params = { 
"login.username", un_username, 
"login.password", un_password, 
"domini", un_domini, 
 (more params) 

"estat", un_estat, 
"ip", una_ip, 
"userLogin", admin 
}; 

try { 
result = dispatcher.runSync("put here the name of your ofbiz service", 
UtilMisc.toMap(params)); 
} catch (GenericServiceException e) { 
e.printStackTrace(); 
} 

// Now get the result using result variable 


Hope that helps! 



Vince Clark wrote: 
> 
> OK that makes sense. Yes I agree it would not make sense to publish custom 
> services you have written for a customer. But examples of OFBiz standard 
> services being exported would be very helpful, along with the directory 
> structure, supporting files, etc. for deploying as an OFBiz component. For 
> example, did you deploy the entire binary distribution, or just axis2.war? 
> 
> A jira issue that explains your solution along with a patch would be 
> fantastic! Before doing that, would you mind just replying to this thread 
> with a code sample showing the call to a standard OFBiz service and how 
> you are dealing with the results? It would be very timely as we are 
> struggling with this very thing right now. 
> 
> - Original Message - 
> From: "Alfredo Rueda"  
> To: user@ofbiz.apache.org 
> Sent: Monday, February 23, 2009 8:23:39 AM (GMT-0700) America/Denver 
> Subject: Re: How to expose Web Service of OFBiz ? 
> 
> 
> Hello Vince, 
> 
> Yes, I have deployed Axis2 as its own OFBiz component. 
> 
> "The example code 
> will be a java file that exports two Ofbiz Services that come with Ofbiz 
> Distribution (now I'm exporting customer specific Ofbiz Services, that is 
> why it's nonsense to publish this java file.)" 
> 
> I meant that it's nonsense to publish an example in which I export 
> customer 
> specific ofbiz services, because I have to provide also a lot of code that 
> the customer specific ofbiz service relies on, for instance, ofbiz service 
> minilang implementation, lot of subservices, views entities, etc, etc, 
> etc. 
> 
> The purpose is just to show how to export ofbiz services that use complex 
> type parameters, so why not use as an example standard ofbiz services that 
> comes with Ofbiz Distribution? This was the only thing I tried to explain 
> before :-) 
> 
> Regards, 
> 
> Alfredo 
> 
> 
> 
> 
> 
> Vince Clark wrote: 
>> 
>> Alfredo 
>> 
>> So to be clear, you have deployed Axis2 as its own OFBiz component? Or 
>> are 
>> you still using the approach of deploying the war file under an existing 
>> webapp directory in another component? 
>> 
>> A patch would be very helpful. Not sure why you think it is "nonsense." 
>> Working examples are extremely helpful to the community. Especially in 
>> new 
>> areas like this. 
>> 
>> To submit a patch you must create an account on Jira, then create an 
>> issue 
>> and attach the patch file. 
>> 
>> Looking forward to seeing what you have done! 
>> 
>> - Original Message - 
>> From: "Alfredo Rueda"  
>> To: user@ofbiz.apache.org 
>> Sent: Monday, February 23, 2009 5:17:53 AM (GMT-0700) America/Denver 
>> Subject: Re: How to expose Web Service of OFBiz ? 
>> 
>> 
>> Hello Jacques! 
>> 
>> The Axis2 Ofbiz Component is simply an Ofbiz Component that has: 
>> 
>> 1. Axis2 1.4 Distribution stored in a subdirectory. 
>> 2. The Ofbiz build system

Re: How to expose Web Service of OFBiz ?

2009-02-23 Thread Vince M. Clark
OK that makes sense. Yes I agree it would not make sense to publish custom 
services you have written for a customer. But examples of OFBiz standard 
services being exported would be very helpful, along with the directory 
structure, supporting files, etc. for deploying as an OFBiz component. For 
example, did you deploy the entire binary distribution, or just axis2.war? 

A jira issue that explains your solution along with a patch would be fantastic! 
Before doing that, would you mind just replying to this thread with a code 
sample showing the call to a standard OFBiz service and how you are dealing 
with the results? It would be very timely as we are struggling with this very 
thing right now. 

- Original Message - 
From: "Alfredo Rueda"  
To: user@ofbiz.apache.org 
Sent: Monday, February 23, 2009 8:23:39 AM (GMT-0700) America/Denver 
Subject: Re: How to expose Web Service of OFBiz ? 


Hello Vince, 

Yes, I have deployed Axis2 as its own OFBiz component. 

"The example code 
will be a java file that exports two Ofbiz Services that come with Ofbiz 
Distribution (now I'm exporting customer specific Ofbiz Services, that is 
why it's nonsense to publish this java file.)" 

I meant that it's nonsense to publish an example in which I export customer 
specific ofbiz services, because I have to provide also a lot of code that 
the customer specific ofbiz service relies on, for instance, ofbiz service 
minilang implementation, lot of subservices, views entities, etc, etc, etc. 

The purpose is just to show how to export ofbiz services that use complex 
type parameters, so why not use as an example standard ofbiz services that 
comes with Ofbiz Distribution? This was the only thing I tried to explain 
before :-) 

Regards, 

Alfredo 





Vince Clark wrote: 
> 
> Alfredo 
> 
> So to be clear, you have deployed Axis2 as its own OFBiz component? Or are 
> you still using the approach of deploying the war file under an existing 
> webapp directory in another component? 
> 
> A patch would be very helpful. Not sure why you think it is "nonsense." 
> Working examples are extremely helpful to the community. Especially in new 
> areas like this. 
> 
> To submit a patch you must create an account on Jira, then create an issue 
> and attach the patch file. 
> 
> Looking forward to seeing what you have done! 
> 
> - Original Message - 
> From: "Alfredo Rueda"  
> To: user@ofbiz.apache.org 
> Sent: Monday, February 23, 2009 5:17:53 AM (GMT-0700) America/Denver 
> Subject: Re: How to expose Web Service of OFBiz ? 
> 
> 
> Hello Jacques! 
> 
> The Axis2 Ofbiz Component is simply an Ofbiz Component that has: 
> 
> 1. Axis2 1.4 Distribution stored in a subdirectory. 
> 2. The Ofbiz build system is connected to Axis2 build system via an Ant 
> build.xml file 
> 3. A java file that is a Web Services Facade to Ofbiz Services that want 
> to 
> be exported. 
> 
> So, the only code that need to be published is: 
> 1. The java file that is a Web Services Facade to Ofbiz Services that want 
> to be exported. 
> This file contains simply a Java Class that has 1 wrapper method for 
> each Ofbiz Service that want to be exported. Axis2 does the job of 
> exporting 
> java methods as WebServices. It's amazing! 
> 2. The build.xml of the component that builds the java file and puts the 
> class file in an specific Axis2 directory 
> 
> The Ofbiz community may consider to include this ready to use Axis2 Ofbiz 
> component that includes Axis2 Distribution and some Ofbiz Services 
> exported 
> via SOAP as an example of use. 
> 
> So, in this case the JIRA issue could be an idea more than code changes of 
> existing Ofbiz code? 
> How can I publish this idea as a JIRA issue? 
> If the community thinks that is a good idea, then I will be glad to 
> provide 
> an example code (for instance 2 Ofbiz services that use complex types 
> exported via SOAP), the build.xml and the documentation. The example code 
> will be a java file that exports two Ofbiz Services that come with Ofbiz 
> Distribution (now I'm exporting customer specific Ofbiz Services, that is 
> why It's nonsense to publish this java file.) 
> 
> Regards, 
> 
> Alfredo 
> 
> 
> 
> 
> 
> 
> 
> jacques.le.roux wrote: 
>> 
>> Hello Alfredo, 
>> 
>> Did you create a such Axis2 component ? If yes couls you think about 
>> creating a Jira issue and submit a patch ? 
>> 
>> Thanks 
>> 
>> Jacques 
>> 
>> From: "Alfredo Rueda"  
>>> 
>>> Hello Dhruv! 
>>> 
>>> A collection of Ofbiz services have been exposed as Web Services using 
>>> this 
>>> solution: 
>>> 
>>> http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP
>>>  
>>> 
>>> These Web Services have been deployed in a production environment and 
>>> are 
>>> working perfectly fine. 
>>> 
>>> I suggest you to follow the steps, and I will be glad to help you if you 
>>> run 
>>> into trouble at some point in the process. 
>>> 
>>> Once you finish you can create your own Axis

Re: How to expose Web Service of OFBiz ?

2009-02-23 Thread Vince M. Clark
Alfredo 

So to be clear, you have deployed Axis2 as its own OFBiz component? Or are you 
still using the approach of deploying the war file under an existing webapp 
directory in another component? 

A patch would be very helpful. Not sure why you think it is "nonsense." Working 
examples are extremely helpful to the community. Especially in new areas like 
this. 

To submit a patch you must create an account on Jira, then create an issue and 
attach the patch file. 

Looking forward to seeing what you have done! 

- Original Message - 
From: "Alfredo Rueda"  
To: user@ofbiz.apache.org 
Sent: Monday, February 23, 2009 5:17:53 AM (GMT-0700) America/Denver 
Subject: Re: How to expose Web Service of OFBiz ? 


Hello Jacques! 

The Axis2 Ofbiz Component is simply an Ofbiz Component that has: 

1. Axis2 1.4 Distribution stored in a subdirectory. 
2. The Ofbiz build system is connected to Axis2 build system via an Ant 
build.xml file 
3. A java file that is a Web Services Facade to Ofbiz Services that want to 
be exported. 

So, the only code that need to be published is: 
1. The java file that is a Web Services Facade to Ofbiz Services that want 
to be exported. 
This file contains simply a Java Class that has 1 wrapper method for 
each Ofbiz Service that want to be exported. Axis2 does the job of exporting 
java methods as WebServices. It's amazing! 
2. The build.xml of the component that builds the java file and puts the 
class file in an specific Axis2 directory 

The Ofbiz community may consider to include this ready to use Axis2 Ofbiz 
component that includes Axis2 Distribution and some Ofbiz Services exported 
via SOAP as an example of use. 

So, in this case the JIRA issue could be an idea more than code changes of 
existing Ofbiz code? 
How can I publish this idea as a JIRA issue? 
If the community thinks that is a good idea, then I will be glad to provide 
an example code (for instance 2 Ofbiz services that use complex types 
exported via SOAP), the build.xml and the documentation. The example code 
will be a java file that exports two Ofbiz Services that come with Ofbiz 
Distribution (now I'm exporting customer specific Ofbiz Services, that is 
why It's nonsense to publish this java file.) 

Regards, 

Alfredo 







jacques.le.roux wrote: 
> 
> Hello Alfredo, 
> 
> Did you create a such Axis2 component ? If yes couls you think about 
> creating a Jira issue and submit a patch ? 
> 
> Thanks 
> 
> Jacques 
> 
> From: "Alfredo Rueda"  
>> 
>> Hello Dhruv! 
>> 
>> A collection of Ofbiz services have been exposed as Web Services using 
>> this 
>> solution: 
>> 
>> http://docs.ofbiz.org/display/OFBIZ/Export+Ofbiz+Services+that+use+complex+type+parameters+via+SOAP
>>  
>> 
>> These Web Services have been deployed in a production environment and are 
>> working perfectly fine. 
>> 
>> I suggest you to follow the steps, and I will be glad to help you if you 
>> run 
>> into trouble at some point in the process. 
>> 
>> Once you finish you can create your own Axis2 Ofbiz Component to provide 
>> a 
>> cleaner solution. This Axis2 Ofbiz Component will serve as a Web Service 
>> Facade to comunicate Ofbiz with other systems. 
>> 
>> Regards, 
>> 
>> Alfredo Rueda 
>> 
>> 
>> Dhruv Datta wrote: 
>>> 
>>> Hi Frns, 
>>> 
>>> I am using "wsimport" tool to read an existing WSDL file of OFBiz 
>>> framework and want to generate artifacts. I need these because I am 
>>> doing load testing on Web Service and retrieve data like the average 
>>> time requierd to obtain the reponse from a webservice. 
>>> 
>>> So I've following questions: 
>>> 
>>> 1) How to expose the existing WebServices of the OFBiz ? 
>>> 2) What meaningful data will these services provide? 
>>> 
>>> I am trying to expose a Web Service by using following syntax: 
>>> 
>>> E:\WSDL>wsimport -d . 
>>> http://localhost:8080/webtools/control/SOAPService/cancelScheduledJob?WSDL 
>>> 
>>> And I am getting following error : 
>>> 
>>> warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not 
>>> allowed in doc/lit for soapbind:body: "cancelScheduledJob" 
>>> warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not 
>>> allowed in doc/lit for soapbind:body: "cancelScheduledJob" 
>>> error: Invalid wsdl:operation "cancelScheduledJob": its a 
>>> document-literal operation, message part must refer to a schema 
>>> element declaration 
>>> 
>>> 
>>> Any help would be greatly appreciated. 
>>> 
>>> Thanks in Advance. 
>>> 
>>> Dhruv. 
>>> 
>>> 
>> 
>> -- 
>> View this message in context: 
>> http://www.nabble.com/How-to-expose-Web-Service-of-OFBiz---tp22077891p22158082.html
>>  
>> Sent from the OFBiz - User mailing list archive at Nabble.com. 
>> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-expose-Web-Service-of-OFBiz---tp22077891p22160487.html
 
Sent from the OFBiz - User mailing list archive at Nabble.com. 



Re: Using Axis w/ OFBiz

2009-02-23 Thread Vince M. Clark
Yes we have read the how to. The examples in it stop short of actually calling 
an OFBiz service. We have been able to call simple services in OFBiz like 
getOrderStatus and return a string. 

Why are you suggesting ServiceMix? We would certainly consider it if we needed 
an ESB. But for what we are trying to accomplish I think we would have the same 
difficulties as we are having now. If you think differently please advise. 

- Original Message - 
From: "Jacques Le Roux"  
To: user@ofbiz.apache.org 
Sent: Monday, February 23, 2009 12:58:30 AM (GMT-0700) America/Denver 
Subject: Re: Using Axis w/ OFBiz 

Did you have a look at 
http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Soap
 
Else why not ServiceMix ? 

Jacques 

From: "Vince M. Clark"  
David - we are running Axis within the OFBiz container to have access natively 
to OFBiz services. We are not using OFBiz to render 
the UI. Basically we want to consume all the ecommerce functionality, but do it 
thru web services so we can build our interface 
using PHP. 

- Original Message - 
From: "David E Jones"  
To: user@ofbiz.apache.org 
Sent: Sunday, February 22, 2009 4:51:16 PM (GMT-0700) America/Denver 
Subject: Re: Using Axis w/ OFBiz 


If you're running in-container, why use web services? 

As for the ShoppingCartEvents.getCartObject() method... is the request 
you are passing to it in the web session of the user? No, it is in the 
web session of the SOAP service... 

-David 


On Feb 22, 2009, at 12:36 PM, atoner wrote: 

> 
> Hi. 
> 
> I am trying to expose services in OFBiz through Axis2 deployed in 
> the same 
> container. Basically I am trying to use a Symfony front-end to make 
> SOAP 
> calls to perform functions such as adding an item to a shopping cart 
> or 
> retrieving shopping cart contents. I am doing this by writing a few 
> (what I 
> thought would be) simple SOAP services in Axis to accomplish this. 
> 
> But I am having a lot of problems and haven’t found much in the 
> mailing list 
> archives or on the forums which helps. 
> 
> I am able to call the SOAP services, the problem is using the OFBiz 
> internals within the services. For instance, calling 
> ShoppingCartEvents.getCartObject() always returns a null pointer. 
> Perhaps I 
> am just looking in the wrong place. 
> 
> Could anyone steer me in the direction of how I would go about 
> creating and 
> then adding a product/item to a shopping cart and getting its 
> contents? 
> This is the current code I have: 
> 
> public String addItemToCart( String productId ) 
> { 
> MessageContext msgCtx = MessageContext.getCurrentMessageContext(); 
> HttpServletRequest request = (HttpServletRequest) 
> msgCtx.getProperty( 
> "transport.http.servletRequest" ); 
> 
> Locale locale = UtilHttp.getLocale(request); 
> 
> ShoppingCart shoppingCart = 
> ShoppingCartEvents.getCartObject( request, 
> locale, "USD" ); 
> 
> return (String) shoppingCart.getOrderType(); 
> } 
> 
> Thanks! 
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Using-Axis-w--OFBiz-tp22150583p22150583.html 
> Sent from the OFBiz - User mailing list archive at Nabble.com. 
> 





Re: Using Axis w/ OFBiz

2009-02-22 Thread Vince M. Clark
David - we are running Axis within the OFBiz container to have access natively 
to OFBiz services. We are not using OFBiz to render the UI. Basically we want 
to consume all the ecommerce functionality, but do it thru web services so we 
can build our interface using PHP. 

- Original Message - 
From: "David E Jones"  
To: user@ofbiz.apache.org 
Sent: Sunday, February 22, 2009 4:51:16 PM (GMT-0700) America/Denver 
Subject: Re: Using Axis w/ OFBiz 


If you're running in-container, why use web services? 

As for the ShoppingCartEvents.getCartObject() method... is the request 
you are passing to it in the web session of the user? No, it is in the 
web session of the SOAP service... 

-David 


On Feb 22, 2009, at 12:36 PM, atoner wrote: 

> 
> Hi. 
> 
> I am trying to expose services in OFBiz through Axis2 deployed in 
> the same 
> container. Basically I am trying to use a Symfony front-end to make 
> SOAP 
> calls to perform functions such as adding an item to a shopping cart 
> or 
> retrieving shopping cart contents. I am doing this by writing a few 
> (what I 
> thought would be) simple SOAP services in Axis to accomplish this. 
> 
> But I am having a lot of problems and haven’t found much in the 
> mailing list 
> archives or on the forums which helps. 
> 
> I am able to call the SOAP services, the problem is using the OFBiz 
> internals within the services. For instance, calling 
> ShoppingCartEvents.getCartObject() always returns a null pointer. 
> Perhaps I 
> am just looking in the wrong place. 
> 
> Could anyone steer me in the direction of how I would go about 
> creating and 
> then adding a product/item to a shopping cart and getting its 
> contents? 
> This is the current code I have: 
> 
> public String addItemToCart( String productId ) 
> { 
> MessageContext msgCtx = MessageContext.getCurrentMessageContext(); 
> HttpServletRequest request = (HttpServletRequest) 
> msgCtx.getProperty( 
> "transport.http.servletRequest" ); 
> 
> Locale locale = UtilHttp.getLocale(request); 
> 
> ShoppingCart shoppingCart = 
> ShoppingCartEvents.getCartObject( request, 
> locale, "USD" ); 
> 
> return (String) shoppingCart.getOrderType(); 
> } 
> 
> Thanks! 
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Using-Axis-w--OFBiz-tp22150583p22150583.html 
> Sent from the OFBiz - User mailing list archive at Nabble.com. 
> 



Re: Service Interaction Question

2009-02-22 Thread Vince M. Clark
Brian 

You can define a request map in the controller that calls an event. Here is an 
example of how I use this. 
We have a form on our website that is static html (it is not rendered by OFiz.) 
But the form action calls an OFBiz URL, for example: 
http://www.globalera.com/ge/control/webFormSubmit 
The controller in our custom component calls an event, which we have created as 
a service. Our service is mostly a wrapper that calls the createLead service. 
Upon success the controller just redirects back to a thank you page on our 
website. So OFBiz never handles the view, just accepts the request, calls a 
service, and redirects. 

Hope this helps. 

- Original Message - 
From: "Brian Sanders"  
To: user@ofbiz.apache.org 
Sent: Thursday, February 12, 2009 2:40:38 PM (GMT-0700) America/Denver 
Subject: Service Interaction Question 

Is it possible to make it so that I can post data to a service without 
having to encapsulate the body in a SOAP envelope? I know that the .Net 
framework supports it, so it's obviously feasible. Thanks. 



Brian Sanders 

Application Support Analyst 



Re: average cost calculation in price rule

2009-02-19 Thread Vince M. Clark
I do not understand this part: 
"profit margin based on related categories of this product" 

- Original Message - 
From: "Hansen Wang"  
To: user@ofbiz.apache.org 
Sent: Thursday, February 19, 2009 1:47:15 PM (GMT-0600) America/Chicago 
Subject: Re: average cost calculation in price rule 

Or is that right, that the "average cost" from price rule action means the 
"average cost" price of the product which is set explicitly from the prices 
tab of a product? 

Secondly, does it sound reasonable solution that we use a nightly job to 
update the "average cost" price of the product using the inventory costs of 
all the inventory items for this product? 

What we really want is a price structure based on the average cost of based 
on inventory items for a product and a profit margin based on related 
categories of this product. 

On Thu, Feb 19, 2009 at 10:27 AM, Hansen Wang  wrote: 

> I have a product whose list price and default price are both set to 5. 
> These are the only explicit prices set for this product. There is also no 
> cost component set for this product. This product has only one inventory 
> item whose cost is 3. I set up a price rule for this product to add 30% of 
> average cost to the list price. When I try to add one of this product in the 
> cart, the price is shown 6.5, instead of 5.9. The reason is that the price 
> rule use the list price as the average cost. Is there any way (out of box) 
> the price rule will use inventory cost? 
> 


Project Accounting

2009-02-14 Thread Vince M. Clark
Two areas I am investigating: 

1) Billing for projects other than by the hour. Right now I am mostly concerned 
with daily or weekly rates and am not addressing other types of billing such as 
fixed price, milestone/progress billing, etc. 
I've gone thru the services in Project Manager related to generating invoices 
and the associated services called in the accounting component to get rates. 
The periodType entity already has values defined for weekly, monthly, and 
quarterly, but not daily. I added a RATE_DAY periodType and was about to try 
and use it, when I realized that the rate screen under party manager and 
project manager (rate for a resource) has this field hard coded to RATE_HOUR. 
Upon further investigation I see that when defining rates for a workeffort you 
are able to set the periodType. So I guess I'm looking for some guidance on 
what else needs to be done in project manager to take advantage of this. 

2) Capturing different rates for customers and contractors. Customer rates 
would be used when generating AR invoices, contractor rates would be used when 
generating AP invoices. 
Very early in my investigation on this one. My initial guess is that you would: 
Create an agreement between company and customer 
Create an agreement between company and contractor 

>From here I'm stuck. Two possible paths: 
Agreement Work Effort Appls 
Agreement Items 

Work Effort Appls seems like the logical choice, as it allows you to reference 
a specific work effort (project) for the agreement. But this would not get down 
to the resource level. For example we may charge different rates for different 
resources. This also would not deal with two different rates (customer and 
contractor) since with workeffort doesn't capture the rates that way. It just 
captures a single rate for a resource. So as far as I can tell rates on 
projects are implicitly intended to be used as a customer rate. 

If you think about this from a pricing perspective I just need a way to capture 
a "purchase" price and "sale" price, and use the correct price for a resource 
on AR and AP invoices. Again, looking for some guidance. 


Re: Accounting setup

2009-01-29 Thread Vince M. Clark
Did you load demo data, or just seed? The following command loads demo data: 
./ant run-install 
to just load seed data: 
./ant run-install-seed 

If you loaded demo data an organization is setup called "Company" and the demo 
accounting data uses that as the internal org. If you are wanting to setup 
accounting in a real environment you need to do a build that only loads seed, 
then login and create a Party as your internal org. 

Then look in the accounting/data directory for all demo data files. There will 
be a chart of accounts and a mapping of the accounts to an org. Replace all 
occurrences of "Company" with your new partyId. 

Not sure where to set to FIFO, but I know I've seen it. 

Regarding time periods, there is also xml in the demo data to create your 
initial time periods. Check this before loading it as I believe it also refers 
to the internal org so you will need to change that partyId before loading time 
periods. 

I highly recommend you involve someone that understands accounting and OfBiz to 
use the accounting capabilities. 

- Original Message - 
From: "Scott."  
To: user@ofbiz.apache.org 
Sent: Thursday, January 29, 2009 2:28:53 PM (GMT-0700) America/Denver 
Subject: Accounting setup 


I have a few questions regarding accounting and I’m wondering if someone 
could point me in the right direction please? Here they are; 

Accounting Preferences: 
(/accounting/control/AdminMain?organizationPartyId=Company) 
Where can I make changes to this screen? Must it be done in the seed data? 
There is an update button but no edit button. Where can I set the inventory 
accounting method to FIFO? 

Time Period For: 
(/accounting/control/TimePeriods?organizationPartyId=Company) 
I’ve setup time periods in accounting. Fiscal Year 1 and 4 fiscal quarters 
having the fiscal year as the Parent Period ID. Do I have to do this for 
next year (2010) and the year after (2011), etc or once set, will ofbiz 
continue to add? 

Thanks in advance for the help. 

-- 
View this message in context: 
http://www.nabble.com/Accounting-setup-tp21736258p21736258.html 
Sent from the OFBiz - User mailing list archive at Nabble.com. 



Re: Content Service

2009-01-24 Thread Vince M. Clark
I posed the question yesterday about integrating with Lenya. I've done more 
research since then and realized that apparently Lenya does not yet implement 
any standards such as JCR, which was really the point of my question. 

So I want to raise a larger issue. It is my opinion that certain things should 
not be built from scratch within OfBiz. CMS is one of them, Portal was another. 
When the portal topic came up I made a similar suggestion that we consider 
integration with other portal technologies rather than building our own. 
Standards exist for portals as well. 

So my research led me to Jackrabbit. Another Apache project that implements JCR 
1.0. 
http://jackrabbit.apache.org/ 

It seems to be just an API, so OfBiz security, persistence, UI, etc. would 
still apply. Taking this approach would make integration easier for people 
using other CMS's, right? 

Looking forward to your responses... 

- Original Message - 
From: "BJ Freeman"  
To: user@ofbiz.apache.org 
Sent: Saturday, January 24, 2009 3:07:16 AM (GMT-0700) America/Denver 
Subject: Re: Content Service 

-BEGIN PGP SIGNED MESSAGE- 
Hash: SHA1 

Actually the SEAS of ofbiz allows you the flexibility of doing what you 
describe in Drupal. 
You have security for Services and UI, so I don't see what Drupal has in 
that regard that is any better. 

Sounds like you comparing ofbiz and drupal from a Database perspective 
instead of a functional level. 

Milind Parikh sent the following on 1/23/2009 9:30 PM: 
> First of all, I agree that anyone attempting to rewrite the content 
> management system within OfBiz should look the current implementation. It is 
> pretty robust and maintains a lot of data and the meta data required to 
> manage the content. For example, it has the concept of revision built in. 
> 
> However, competing with Drupal can be tough and hard; in the CMS space. 
> Since Drupal has the unusual structure of workflow in calling different 
> functions in a module at predetermined points, modules can themselves add 
> different tables, change display and change basic functions in a drastic 
> way; but very simply. For example, a module can prevent access to specific 
> fields in specific content; depending upon the role of the person logging 
> in. Certainly drupal development has reached a very furious pace; because of 
> the manner in which individuals can contribute through modules. 
> 
> Having said that, there is no substitute for the rigor of standardized 
> database structures; especially in the business world. Following best 
> practices in data modeling is key for success to any complex implementation. 
> Also having standardized APIs that enable integration to the rest of the 
> world is very important as well. 
> 
> Just my two cents... 
> 
> On Fri, Jan 23, 2009 at 8:28 PM, David E Jones 
> wrote: 
> 
>> Not that I think we should do that, but why would it be hard? It's just 
>> tables in a database, screens that read from and write to the data... 
>> 
>> On the other hand, if anyone wants to research that I'd recommend 
>> researching the OFBiz stuff first so you can understand what it is like and 
>> what it supports. No sense replacing something that already takes care of 
>> your needs, even if you didn't know it. 
>> 
>> -David 
>> 
>> 
>> 
>> On Jan 23, 2009, at 5:49 PM, BJ Freeman wrote: 
>> 
>> -BEGIN PGP SIGNED MESSAGE- 
>>> Hash: SHA1 
>>> 
>>> Yup. The hard part is to work with in the confines of ofbiz framework. 
>>> takes a lot of time to chart the flow of drupal then apply it to ofbiz. 
>>> 
>>> Milind Parikh sent the following on 1/23/2009 4:05 PM: 
>>> 
 I did not mean integration with an PHP based application. Just the design 
 philosophy of the data structures and the concept of modules in drupal 
 (of 
 course, this is easier in a dynamically typed language like php). 
 
 Regards 
 - Milind 
 
 
 On Fri, Jan 23, 2009 at 3:45 PM, BJ Freeman  wrote: 
 
 the problem with integration of a PHP based application is it is a 
 completely separate application and coding style. 
 
 Milind Parikh sent the following on 1/22/2009 12:34 PM: 
 
> There is a lot of interest in CMS. I would suggest also looking at 
>> Drupal's 
> way of doing CMS (drupal,org) as I believe that it is very interesting 
>> and 
> flexible. However it is more suited to the web (as opposed to enterprise 
>>> content management). 
>>> 
>>> -- Milind 
>>> 
>>> 
>>> On Thu, Jan 22, 2009 at 12:27 PM, Bruno Busco  
>>> 
>> wrote: 
> Hi Al, 
 I do not want to hijack the thread but I think there is more interest 
 in 
 CMS 
 than you could believe. 
 
 There were also discussions on using OFBiz CMS to host the OFBiz Web 
 
>>> site 
> itself. 
 This would be great and, may be, now that it seems you are back 
 on-line, 

Re: Remove(Mask) Control Servlet URI

2009-01-24 Thread Vince M. Clark
Can "/control" be removed/changed in this section of a web.xml file? 

 
ControlServlet 
ControlServlet 
Main Control Servlet 
org.ofbiz.webapp.control.ControlServlet 
1 
 
 
ControlServlet 
/control/* 
 

- Original Message - 
From: "BJ Freeman"  
To: user@ofbiz.apache.org 
Sent: Friday, January 23, 2009 3:58:23 AM (GMT-0700) America/Denver 
Subject: Re: Remove(Mask) Control Servlet URI 

-BEGIN PGP SIGNED MESSAGE- 
Hash: SHA1 

The link i gave has an example in it. 

euronymous sent the following on 1/23/2009 2:52 AM: 
> Thank you Jaques and BJ to have replied to my question... 
> 
> but I still don't understand how to solve my problem. 
> 
> We're already using in production proxy_ajp with tomcat, to run ofbiz behind 
> apache and manage SSL on apache. I tried a lot to understand mod_rewrite, 
> and how it works, but without success...Well I was able to remove "control" 
> from the incoming request, but clearly ofbiz add it if by default if it 
> cannot find it in the request. 
> 
> I was more confortable with urlrewrite... 
> So please post an example solution to my problem (mod_rewrite or 
> urlrewrite), if you already got a chance to analyze it. 
> 
> Using urlrewrite I was able to remove "control" filtering the outgoing 
> requestsbut how can I automatically add it in incoming requests? 
> 
> Thanks for your support 
> 
> Michele 
> 
> 
> 
> jacques.le.roux wrote: 
>> Thanks BJ, 
>> 
>> That's also what I suggested on dev ML 
>> So +2 for Apache mod_rewrite so far ;o) 
>> 
>> Jacques 
>> 
>> From: "BJ Freeman"  
> I have not done this, but just some thoughts. 
> 1) you need to start at 
> ^/applicationname/control/ if your using any of the application that 
> come with ofbiz, since there is a a control.xml for each application. 
> and then direct to the application. 
> so even if you removed the /control 
> you still need the /applicationname in the URL 
> I did attempt at one time to put all the applications thru one 
> control.xml but ran into integration problems. 
> 
> lets say you have only one application and you are not calling any other 
> of the built-in screens. 
> another approach is to use an apache front end and ajp 
> http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-HTTPD
>  
> 
> you can use rewrite rules 
> 
> 
> euronymous sent the following on 1/22/2009 11:26 AM: 
> Hi list... 
> Jaques correctly pointed to post my question here, instead of Dev: here 
> it 
> is...Hope someone is gonna help us ;) Thanks 
> 
> Hi list 
> 
> we were looking around possibilities to remove the Control Servlet from 
> a 
> customized application, in a way that the frontend will not contain in 
> the 
> URL /control/. 
> 
> Is there a way to do that directly in the application web.xml 
> descriptor? 
> That's just a strange request of one of our customers...for us it is 
> definitely ok to leave it ;) But you all know that customer request must 
> be 
> satisfied (as much as we can)... 
> 
> We tried urlrewrite, without totally success. Using a rule like the 
> following one, we were able to filter the content generated from 
> response.encodeURL: 
> 
>  
>  
> When response.encodeURL is called (RequestHandler.encodeURL) 
> the url /control/something will be rewritten to /something. 
> 
> The above rule and this outbound-rule means that end users 
> should never see the 
> url /control/something /something both in thier location bar 
> and 
> in hyperlinks 
> in your pages. 
>  
> ^/control/(.*)$ 
> /$1 
>  
> 
> Anyway we need also another rule to filter input...something like this 
> (not 
> working): 
> 
>  
>  
> Requests without /control/ will be silently rewritten. 
>  
> 
> ^/(.+)$ 
> /control/$1 
>  
> 
> I've read that months ago Jaques was speaking on urlrewrite... 
> Is there someone that had our same necessity before? 
> 
> Thanks list, thanks Ofbiz developers 
> 
> Michele Orrù 
>>> 
>> 
>> 

-BEGIN PGP SIGNATURE- 
Version: GnuPG v1.4.6 (MingW32) 
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org 

iD8DBQFJeaLPrP3NbaWWqE4RAhwOAJ9sRiHl49Zcro/05o0GeRpQi2vTZQCePzLW 
moboY0T3Sjc7MzSYVKMgkHk= 
=829H 
-END PGP SIGNATURE- 


Re: Improper PULL synchronization from MCS

2009-01-24 Thread Vince M. Clark
Correct. After updating timestamps the records pulled correctly. Of course you 
need to make sure you aren't doing a PUSH in the other direction that 
overwrites the records that did not pull correctly. 

Changing the timestamps is just a tool to help you isolate your problem, not a 
solution. The timestamps I changed were the ones on the records that did not 
pull correctly, NOT the runtime entities or job. 

It has been quite a while since I did this, but here are the steps I think you 
should take: 
1) Initiate your PULL with a recurrence of about 5 minutes (do not setup any 
PUSH processes yet). 
2) Locate a record known to not PULL correctly and verify that it did not pull 
this time. 
3) Update the timestamp on the MCS for that record. Have the xml ready to load 
thru web tools before starting the PULL process. The key here is to just make 
sure the date and time is set to something later than when the job ran. 
4) Let the PULL run again and check the record on the POS client to see if it 
updated properly this time. 

If this test doesn't work, check your time settings on both machines. As I 
stated previously, I suggest setting both servers to the same time and time 
zone, Do this at least during testing to eliminate possible variables. 

I found it easier while troubleshooting this problem to start clean with every 
test. That means dropping and recreating the database on the POS client a lot. 

- Original Message - 
From: "Pradeep Kumar"  
To: user@ofbiz.apache.org 
Sent: Saturday, January 24, 2009 4:16:01 AM (GMT-0700) America/Denver 
Subject: Re: Improper PULL synchronization from MCS 

Hi Vince, 
As per you, you did the initial PULL, then updated the timestamps on the 
records and they got pulled properly the next time. Can you pls put some 
help here that how can we update the timestamps on the records we need for 
PULL? Is it something different than what happened always before the PULL 
call becuause before that it updates the next runtime and entitties too? 
Need help. 

regards, 
Pradeep 

On Sat, Jan 24, 2009 at 5:19 AM, Vince M. Clark wrote: 

> Agreed, they could still use the web POS interface but run local instances. 
> You would still have sync to deal with but OfBiz could focus on a single POS 
> UI rather than maintaining two. 
> 
> - Original Message - 
> From: "Jacques Le Roux"  
> To: user@ofbiz.apache.org 
> Sent: Friday, January 23, 2009 4:47:28 PM (GMT-0700) America/Denver 
> Subject: Re: Improper PULL synchronization from MCS 
> 
> From: "David E Jones"  
> > 
> > On Jan 23, 2009, at 3:06 PM, Jacques Le Roux wrote: 
> > 
> >> Yes, I agree. I think I will definitively put some effort on this 
> >> side (WebPos I mean). This for this reason and the others being that 
> >> XUI is no longer supported and we have issues with it. 
> >> So it's not yet sure but I'm more an more thinking that the POS 
> >> component will be legacy on day ... 
> > 
> > I doubt the current POS will ever be "legacy" or be abandoned, 
> > although it depends on how many choose to use it. 
> > 
> > Typically organizations want easier deployment, so a web-based 
> > application is great for them. 
> > 
> > In some cases things are very "mission critical", like getting money 
> > from customers in physical retail locations. In those cases redundancy 
> > and minimizing single points of failure is important. If the internet 
> > goes down or even the network in the store, they want each cash 
> > register to be able to run independently. For all but the smallest 
> > retailers that's a mandatory requirement. 
> 
> They could use the same mechanims with WebPos isn'it (a local DB 
> synchronized) ? 
> 
> Jacques 
> 
> > -David 
> > 
> 



-- 
With regards, 
S K Pradeep kumar 


Re: Content Service

2009-01-23 Thread Vince M. Clark
How about integrating with Lenya? I've never used it so this is not an 
endorsement but it is an Apache project. 

- Original Message - 
From: "BJ Freeman"  
To: user@ofbiz.apache.org 
Sent: Friday, January 23, 2009 5:49:25 PM (GMT-0700) America/Denver 
Subject: Re: Content Service 

-BEGIN PGP SIGNED MESSAGE- 
Hash: SHA1 

Yup. The hard part is to work with in the confines of ofbiz framework. 
takes a lot of time to chart the flow of drupal then apply it to ofbiz. 

Milind Parikh sent the following on 1/23/2009 4:05 PM: 
> I did not mean integration with an PHP based application. Just the design 
> philosophy of the data structures and the concept of modules in drupal (of 
> course, this is easier in a dynamically typed language like php). 
> 
> Regards 
> - Milind 
> 
> 
> On Fri, Jan 23, 2009 at 3:45 PM, BJ Freeman  wrote: 
> 
> the problem with integration of a PHP based application is it is a 
> completely separate application and coding style. 
> 
> Milind Parikh sent the following on 1/22/2009 12:34 PM: 
 There is a lot of interest in CMS. I would suggest also looking at 
> Drupal's 
 way of doing CMS (drupal,org) as I believe that it is very interesting 
> and 
 flexible. However it is more suited to the web (as opposed to enterprise 
 content management). 
 
 -- Milind 
 
 
 On Thu, Jan 22, 2009 at 12:27 PM, Bruno Busco  
> wrote: 
> Hi Al, 
> I do not want to hijack the thread but I think there is more interest in 
> CMS 
> than you could believe. 
> 
> There were also discussions on using OFBiz CMS to host the OFBiz Web 
> site 
> itself. 
> This would be great and, may be, now that it seems you are back on-line, 
> we 
> could have better chance. 
> 
> Thank you, 
> Bruno 
> 
> 
> 
> 2009/1/22 Al Byers  
> 
>> Angelo, 
>> 
>> I implemented the CMS years ago per David's design. At the time, I 
> thought 
>> it would be wise to have a single service, persistContentAndAssoc, 
> which 
>> did 
>> everything - creating and updating, all types of media and all possible 
>> repositories (ie. database, filesystem, etc). I am not convinced that 
> it 
>> would not be nice to have such a tool, even though it tends to go 
> against 
>> the "OFBiz way" (I claim that for a T-shirt). I don't think 
>> persistContentAndAssoc is that tool, though I would love someone to 
> improve 
>> on it or simplify it. 
>> 
>> Not having a clear API for working with the CMS is its greatest 
> drawback, 
> I 
>> think. Saner heads than mine have broken the persist process into 
> multiple 
>> steps. I drew from what they have done and here is how I recently did a 
>> simple text persist: 
>> ... 
>> String localeString = (String)entry.getKey(); 
>> String textData = (String)entry.getValue(); 
>> // Create new content 
>> mapIn = new HashMap(); 
>> mapIn.put("localeString", localeString); 
>> mapIn.put("objectInfo", textData); 
>> mapIn.put("userLogin", userLogin); 
>> mapIn.put("dataResourceTypeId", "SHORT_TEXT"); 
>> mapIn.put("mimeTypeId", "text/plain"); 
>> result = dispatcher.runSync("createDataResource", 
> mapIn); 
>> String dataResourceId = 
>> (String)result.get("dataResourceId"); 
>> 
>> mapIn = new HashMap(); 
>> mapIn.put("localeString", localeString); 
>> mapIn.put("textData", textData); 
>> mapIn.put("description", description); 
>> mapIn.put("userLogin", userLogin); 
>> mapIn.put("dataResourceId", dataResourceId); 
>> result = dispatcher.runSync("createContent", mapIn); 
>> String contentId = (String)result.get("contentId"); 
>> 
>> 
>> // Create assoc to SurveyQuestionOption 
>> // Angelo, note that this is not the ContentAssoc entity 
>> that you would use. 
>> // I think you would just use the createContentAssoc 
> service 
>> here instead 
>> // And I would use FastMaps because that is the OFBiz 
> way. 
>> mapIn = new HashMap(); 
>> mapIn.put("localeString", localeString); 
>> mapIn.put("contentId", contentId); 
>> mapIn.put("surveyAnswerOptionId", surveyAnswerOptionId); 
>> mapIn.put("userLogin", userLogin); 
>> Map result2 = 
>> dispatcher.runSync("createSurveyAnswerOptionContentAssoc", mapIn); 
>> 
>> In my mind, that is still a lot of code, when there are only a few 
> pieces 
>> of 
>> data, but you might want to stick to something like this for now. 
>> 
>> Sorry I can't be of more help, but I have forgotten much of what I did 
>> before. With Hans taking an interest in CMS, maybe things will get 
>> improved. 
>> 
>> -Al 
>> 
>> On Thu, Jan 22, 2009 at 12:00 PM, Angelo Matarazzo < 
>> matarazzoang...@gmail.com> wrote: 
>> 
>>> Hi, 
>>> I am following the debate between Hans and David about 

Re: Improper PULL synchronization from MCS

2009-01-23 Thread Vince M. Clark
Agreed, they could still use the web POS interface but run local instances. You 
would still have sync to deal with but OfBiz could focus on a single POS UI 
rather than maintaining two. 

- Original Message - 
From: "Jacques Le Roux"  
To: user@ofbiz.apache.org 
Sent: Friday, January 23, 2009 4:47:28 PM (GMT-0700) America/Denver 
Subject: Re: Improper PULL synchronization from MCS 

From: "David E Jones"  
> 
> On Jan 23, 2009, at 3:06 PM, Jacques Le Roux wrote: 
> 
>> Yes, I agree. I think I will definitively put some effort on this 
>> side (WebPos I mean). This for this reason and the others being that 
>> XUI is no longer supported and we have issues with it. 
>> So it's not yet sure but I'm more an more thinking that the POS 
>> component will be legacy on day ... 
> 
> I doubt the current POS will ever be "legacy" or be abandoned, 
> although it depends on how many choose to use it. 
> 
> Typically organizations want easier deployment, so a web-based 
> application is great for them. 
> 
> In some cases things are very "mission critical", like getting money 
> from customers in physical retail locations. In those cases redundancy 
> and minimizing single points of failure is important. If the internet 
> goes down or even the network in the store, they want each cash 
> register to be able to run independently. For all but the smallest 
> retailers that's a mandatory requirement. 

They could use the same mechanims with WebPos isn'it (a local DB synchronized) 
? 

Jacques 

> -David 
> 


Re: Improper PULL synchronization from MCS

2009-01-23 Thread Vince M. Clark
I had the same problem a long time ago. promotions and facilities are two 
groups that I remember consistently having issues with. I would do the initial 
PULL, then I would update the timestamps on the records and they would get 
pulled properly the next time. 

There is a recent thread on this topic, probably in the past week or so. I 
suggest searching Nabble. 

One thing that helped us with sync in general was to make sure all systems were 
set to the same time and time zone. I used GMT/UDT and then just changed the 
user locale within OfBiz to get the right local time. I do not recall whether 
or not this helped with incomplete data transfers or not. 

Entity sync seems to be very tricky to get right. If all you are using it for 
is to deploy POS and you can count on a reliable data connection you might want 
to consider just using the new web POS. It still needs some work but might be 
worth the effort to avoid having to use synchronization. 

- Original Message - 
From: "Pradeep Kumar"  
To: user@ofbiz.apache.org 
Sent: Friday, January 23, 2009 12:35:29 PM (GMT-0700) America/Denver 
Subject: Improper PULL synchronization from MCS 

Hi, 

I'm getting incomplete data from my MCS while PULL *synchronization*. Some 
of the entity groups are *synchronized* properly, there are: 
org.ofbiz.entity.group 
org.ofbiz.party.party 
org.ofbiz.accounting.tax 
org.ofbiz.security.login 
org.ofbiz.security.securitygroup 
org.ofbiz.party.contact 

But I'm getting issues while pull *synchronization* of there entity groups: 
org.ofbiz.product.product 
org.ofbiz.product.price 
org.ofbiz.product.promo 
org.ofbiz.product.category 
org.ofbiz.pos.PosTerminal 


I've kept the concept of only Central Server (MCS) and POS Terminals. The 
PosSyncSetting.xml for my application is given below: 

*** 
*** 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 

 
 
 
 

 
 
 
 

 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
*** 
*** 

Anyways, PUSH is working fine for me. Any kind of help is highly 
appreciated. 

-- 
With regards, 
S K Pradeep kumar 


Re: I have an error preparing a report with JasperReport

2009-01-21 Thread Vince M. Clark
I'm going to hi-jack this thread and throw out a related question: 

Has anyone integrated a reporting engine like Jasper or Pentaho and used the 
services and entity engine as the source of data rather than using jdbc and 
writing queries? For example, I know Jasper Server can use sources like java 
beans and web services. 

- Original Message - 
From: "Rafael Rondon"  
To: user@ofbiz.apache.org 
Sent: Wednesday, January 21, 2009 12:56:48 PM (GMT-0700) America/Denver 
Subject: Re: Fwd: I have an error preparing a report with JasperReport 

BJ thank you very much for your help, and I will study hard you sent me the 
link, but in fact I buy, and finished reading the book "Apache OFBIz 
Development - The Beginner's Tutorial." And I began to implement the 
accounting module. In fact I was able to enter new accounts and to create 
the period, the beginning balance checking, closed the first period, I 
recorded the transactions and posting them. But I do not have many reports 
in OFBIz and those who have can only be viewed on screen, besides that they 
have no filters, formats and / or the needs required. 

I would greatly appreciate if you could give me a light where to start and 
what tools are best to make the reports and that both are integrated with 
OFBIz, much better than no license problem. I do not know what to believe 
that Pentaho has MPL v1.1 license and is compatible with the Apache 2 
license, but I do not know where to get information to integrate with OFBIz. 

Greetings, 



On Wed, Jan 21, 2009 at 4:16 AM, BJ Freeman  wrote: 

> -BEGIN PGP SIGNED MESSAGE- 
> Hash: SHA1 
> 
> It is best you understand Ofbiz and how it works before attempting a 
> Jasper report. 
> The code for jasper reports has been removed since we went to Apache, 
> since the libraries are not Apache compatible. 
> you can read the 
> OPTIONAL_LIBRARIES 
> in the root of ofbiz. 
> to get familiar with ofbiz I suggest you start here 
> 
> http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application
>  
> 
> Rafael Rondon sent the following on 1/20/2009 6:46 PM: 
> > Try to prove that brings the two examples in this ordermgr in 
> controller.xml 
> > and presents this error: 
> > 
> > java.lang.NullPointerException 
> > 
> > And fire this request: https: / / localhost: 
> > 8443/ordermgr/control/orderreportjasper.pdf 
> > 
> > 
> > 
> > -- Forwarded message -- 
> > From: Rafael Rondon  
> > Date: Tue, Jan 20, 2009 at 10:11 PM 
> > Subject: I have an error preparing a report with JasperReport 
> > To: user@ofbiz.apache.org 
> > 
> > 
> > All, 
> > 
> > I am using OFBIz, and I perform in JasperReport reports, but I get the 
> > following error after you add the libraries and compile the program 
> > "JasperReportsPdfViewHandler.java" 
> > 
> > HTTP Status 500 - 
> > -- 
> > 
> > *type* Exception report 
> > 
> > *message* 
> > 
> > *description* *The server encountered an internal error () that prevented 
> it 
> > from fulfilling this request.* 
> > 
> > *exception* 
> > 
> > javax.servlet.ServletException: Servlet.init() for servlet 
> > ControlServlet threw exception 
> > 
> >  
> > 
> > 
> > *root cause* 
> > 
> > java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/JRDataSource 
> > . 
> > 
> > *note* *The full stack trace of the root cause is available in the Apache 
> > Tomcat/6.0.16 logs.* 
> > -- 
> > Apache Tomcat/6.0.16 
> > 
> > 
> > 
> > 
> > Please help me or tell me which designer is best to report them, and if 
> > there is a license that is compatible with Apache 2 is that it can be 
> > distributed with the system. Try BIRT with but is very complicated to put 
> > into operation and the worst is to add the program within OFBIz. 
> > 
> > 
> > 
> > Greetings, 
> > 
> -BEGIN PGP SIGNATURE- 
> Version: GnuPG v1.4.6 (MingW32) 
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org 
> 
> iD8DBQFJdtnkrP3NbaWWqE4RAuj5AKC6X9PfyWjnbLe3C2gAxG8l0SGpPQCeM+eW 
> CnVn269PJgZWOtEV+lFC5bQ= 
> =XPMS 
> -END PGP SIGNATURE- 
> 



-- 
Rafael Rondón Montás 
Software Developer 
Dominican Republic 
Cel:. 809-862-2839 
email: raron...@gmail.com 


Re: Security Group login error.

2009-01-15 Thread Vince M. Clark
I just went through the exercise of creating my own security group. In this 
case it was for the Marketing component. I added OFBTOOLS and MARKETING_ADMIN 
permissions to the group. I did not try it with only OFBTOOLS, but my guess is 
that while OFBTOOLS permission is required for any component, you must also add 
another permission related to an OfBiz component so the system knows what tabs 
to make available to you. 

- Original Message - 
From: "ChristopherJ"  
To: user@ofbiz.apache.org 
Sent: Thursday, January 15, 2009 8:21:27 AM (GMT-0700) America/Denver 
Subject: Security Group login error. 


Hi all 

I have a question, what permissions are required to login to ofbiz 
besides OFBTOOLS. I have tried to setup my own Security Groups 
for tasks users will be preforming and have added OFBTOOLS to 
the security groups that I have created, but at login I acquire the 
following 
error in ofbiz ¨the following error has occurred¨ with nothing else 
explaining 
what error occurred. 
In the terminal running ofbiz the following error is displayed 

Request login caused an error with the following message: 
2009-01-15 16:45:21,603 (http-0.0.0.0-8443-1) [ 
RequestHandler.java:370:WARN ] Found special _PREVIOUS_REQUEST_ of 
[/logout], setting to null to avoid problems, not running request again 

The only way to avoid it and login successfully is to add PARTYMGR_VIEW 
to the security group in question. 

Is Party MGR that important to login or am I just missing the plot. 

Thanks for the help in advance. 
-- 
View this message in context: 
http://www.nabble.com/Security-Group-login-error.-tp21479784p21479784.html 
Sent from the OFBiz - User mailing list archive at Nabble.com. 



Re: locale error in simple method

2009-01-14 Thread Vince M. Clark
Upgrading to latest trunk seemed to do the trick. No missing locale error and 
lead was created correctly. Note that this was done on a totally separate 
instance with only seed data installed. 

- Original Message - 
From: "Bruno Busco"  
To: d...@ofbiz.apache.org 
Sent: Wednesday, January 14, 2009 3:28:43 AM (GMT-0700) America/Denver 
Subject: Fwd: locale error in simple method 

oops, 
sorry to have posted this to the USER ML, I apologize, it was 
intended, of course, as a DEV discussion. 

-Bruno 


-- Forwarded message -- 
From: Bruno Busco  
Date: 2009/1/14 
Subject: Re: locale error in simple method 
To: user@ofbiz.apache.org 


I think that Vince's situation is very common. 

Whenever you get your ofbiz put in production (or a sort of) you get 
really "apprensive" and try to not update your working box. 
This makes hard also to get bug fixes only from the trunk. 

Could we think to try to have a new release branch? 
I mean a branch where only bug fix are merged from the trunk? 
I know that this has been discussed many times but we should give it a 
try. The framework-only release could be still something in the agenda 
and should not be affected by the existence of the new complete 
release branch. 

The last release branch (4.0) seems now too far from the trunk head 
and we often suggest not to use it any more. This is fine because we 
want people on the "living edge" of the code but then we will get them 
in the "should I update or not?" situation. 

Having a new release branch we will have most people living there and 
contributing back bug-fix patch or bug reports that will still be used 
in the trunk. 

I see many new features coming into the trunk and this is really great 
but, may be, many more would come if who is going to commit them knows 
that the community could always rely on an unaffetced "stable" branch. 

-Bruno 


2009/1/14 Vince M. Clark : 
> I don't waste my time with 4.0. 
> 
> Preaching doesn't bother me. I'm used to it and have done a bit myself. 
> 
> But to be clear, I'm very collaborative, and am not holding anything back 
> from the community. This particular instance I have not upgraded because it 
> is production (sort of) and I have had difficulty upgrading other instances 
> recently because of some seed data issues, and possibly other reasons. 
> Basically related to some of the new stuff like visual themes. 
> 
> I will try my custom service against a current download of trunk to verify 
> that it isn't just a version issue. 
> 
> - Original Message - 
> From: "David E Jones"  
> To: user@ofbiz.apache.org 
> Sent: Tuesday, January 13, 2009 6:06:06 PM (GMT-0700) America/Denver 
> Subject: Re: locale error in simple method 
> 
> 
> Is that the trunk rev or in the release4.0 branch? 
> 
> Either way it's a few months old (looks like 23 Jul 2008)... it would 
> take a fair amount of time for someone to go back and try to reproduce 
> the error on that revision. Have you considered updating to a newer 
> version of OFBiz? 
> 
> Just as an FYI, I usually recommend that people working from the trunk 
> really collaborate with the community, an that usually means needing 
> to update at least once per day (or at the _very_ least a couple of 
> times per week) until the development part of each cycle is done (ie 
> before doing integration or business level testing, if that means 
> anything for your process). 
> 
> There are lots of reasons for this, and what you're running into is 
> perhaps the most important: by sticking with that revision you're 
> basically going it alone and choosing not to collaborate with the 
> community, which makes it hard for others in the community to 
> collaborate with you. The same is true for the practice of changing 
> things in the OFBiz framework or core parts of different applications 
> and not contributing it back to the project. The project suffers a 
> little, but the project will do fine as there are LOTS of people 
> contributing back. Who really suffers is the end-user organization 
> that has to foot the bill of maintaining these things instead of 
> sharing that with the community. 
> 
> Sorry for the preaching, but on the other hand thanks for the soap box 
> to stand on for a little sermon. 
> 
> -David 
> 
> 
> On Jan 13, 2009, at 4:34 PM, Vince M. Clark wrote: 
> 
>> Thanks David. Rev is 679168 
>> 
>> - Original Message - 
>> From: "David E Jones"  
>> To: user@ofbiz.apache.org 
>> Sent: Tuesday, January 13, 2009 5:36:35 PM (GMT-0700) America/Denver 
>> Subject: Re: locale error in simple method 
>> 
>> 
>> Stepping back even more... which ver

Re: new SecurityGroup, cannot login

2009-01-14 Thread Vince M. Clark
Thanks to those that looked into this issue for me. Unfortunately I have to 
admit user error here. I created the SecurityGroup and added the correct 
permissions, but forgot to assign the SecurityGroup to the userLogin. 

- Original Message - 
From: "Vince M. Clark"  
To: user@ofbiz.apache.org 
Sent: Tuesday, January 13, 2009 9:10:55 AM (GMT-0700) America/Denver 
Subject: Re: new SecurityGroup, cannot login 

Here is the log. I included several lines before and after the relevant error. 
You can see that all is being reported is "required permissions missing." No 
other information is in the log. 


2009-01-13 08:31:54,487 (TP-Processor3) [ ControlServlet.java:93 :INFO ] The 
character encoding of the request is: [null]. The character encoding we will 
use for the request and response is: [UTF-8] 
2009-01-13 08:31:54,488 (TP-Processor3) [ ControlServlet.java:131:INFO ] 
[[[login] Servlet Starting, doing setup- total:0.0,since last(Begin):0.0]] 
2009-01-13 08:31:54,488 (TP-Processor3) [ ControlServlet.java:190:INFO ] 
[[[login] Setup done, doing Event(s) and View(s)- total:0.0,since last([login] 
Servlet S...):0.0]] 
2009-01-13 08:31:54,494 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0060s: jndi:/0.0.0.0/sfa/WEB-INF/controller.xml 
2009-01-13 08:31:54,500 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0050s: 
file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
2009-01-13 08:31:54,500 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] 
ConfigMap Created: (4) records in 0.0050s 
2009-01-13 08:31:54,512 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.011s: 
file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
 
2009-01-13 08:31:54,518 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0040s: 
file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
2009-01-13 08:31:54,519 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] 
ConfigMap Created: (4) records in 0.0060s 
2009-01-13 08:31:54,520 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] 
ConfigMap Created: (4) records in 0.019s 
2009-01-13 08:31:54,521 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] 
ConfigMap Created: (4) records in 0.026s 
2009-01-13 08:31:54,526 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0050s: 
file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
2009-01-13 08:31:54,526 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] 
HandlerMap Created: (6) view handlers and (9) request/event handlers in 0.0050s 
2009-01-13 08:31:54,538 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.011s: 
file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
 
2009-01-13 08:31:54,544 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0050s: 
file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
2009-01-13 08:31:54,545 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] 
HandlerMap Created: (6) view handlers and (9) request/event handlers in 0.0060s 
2009-01-13 08:31:54,545 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] 
HandlerMap Created: (7) view handlers and (9) request/event handlers in 0.018s 
2009-01-13 08:31:54,545 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] 
HandlerMap Created: (7) view handlers and (9) request/event handlers in 0.024s 
2009-01-13 08:31:54,551 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0050s: 
file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
2009-01-13 08:31:54,552 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] 
RequestMap Created: (10) records in 0.0060s 
2009-01-13 08:31:54,564 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.011s: 
file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
 
2009-01-13 08:31:54,571 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0040s: 
file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
2009-01-13 08:31:54,572 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] 
RequestMap Created: (10) records in 0.0060s 
2009-01-13 08:31:54,582 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] 
RequestMap Created: (237) records in 0.029s 
2009-01-13 08:31:54,585 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] 
RequestMap Created: (277) records in 0.039s 
2009-01-13 08:31:54,590 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0050s: 
file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
2009-01-13 08:31:54,590 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] 
ViewMap Created: (8) records in 0.0050s 
2009-01-13 08:31:54,602 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.011s: 
file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
 
2009-01-13 08:31:54,608 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0040s: 
file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
2009-01

Re: locale error in simple method

2009-01-13 Thread Vince M. Clark
I don't waste my time with 4.0. 

Preaching doesn't bother me. I'm used to it and have done a bit myself. 

But to be clear, I'm very collaborative, and am not holding anything back from 
the community. This particular instance I have not upgraded because it is 
production (sort of) and I have had difficulty upgrading other instances 
recently because of some seed data issues, and possibly other reasons. 
Basically related to some of the new stuff like visual themes. 

I will try my custom service against a current download of trunk to verify that 
it isn't just a version issue. 

- Original Message - 
From: "David E Jones"  
To: user@ofbiz.apache.org 
Sent: Tuesday, January 13, 2009 6:06:06 PM (GMT-0700) America/Denver 
Subject: Re: locale error in simple method 


Is that the trunk rev or in the release4.0 branch? 

Either way it's a few months old (looks like 23 Jul 2008)... it would 
take a fair amount of time for someone to go back and try to reproduce 
the error on that revision. Have you considered updating to a newer 
version of OFBiz? 

Just as an FYI, I usually recommend that people working from the trunk 
really collaborate with the community, an that usually means needing 
to update at least once per day (or at the _very_ least a couple of 
times per week) until the development part of each cycle is done (ie 
before doing integration or business level testing, if that means 
anything for your process). 

There are lots of reasons for this, and what you're running into is 
perhaps the most important: by sticking with that revision you're 
basically going it alone and choosing not to collaborate with the 
community, which makes it hard for others in the community to 
collaborate with you. The same is true for the practice of changing 
things in the OFBiz framework or core parts of different applications 
and not contributing it back to the project. The project suffers a 
little, but the project will do fine as there are LOTS of people 
contributing back. Who really suffers is the end-user organization 
that has to foot the bill of maintaining these things instead of 
sharing that with the community. 

Sorry for the preaching, but on the other hand thanks for the soap box 
to stand on for a little sermon. 

-David 


On Jan 13, 2009, at 4:34 PM, Vince M. Clark wrote: 

> Thanks David. Rev is 679168 
> 
> - Original Message - 
> From: "David E Jones"  
> To: user@ofbiz.apache.org 
> Sent: Tuesday, January 13, 2009 5:36:35 PM (GMT-0700) America/Denver 
> Subject: Re: locale error in simple method 
> 
> 
> Stepping back even more... which version/revision of OFBiz are you 
> using? 
> 
> Based on what you wrote, with the browser submitting a form to the 
> OFBiz web server, as long as it is going through the ControlServlet 
> and you are calling the service you described through a request-map -> 
> event tag, then it should work the same way as anything else in OFBiz. 
> 
> Unless something is broken somewhere then OFBiz should be getting a 
> locale no matter what, even if it is the system default locale. It 
> looks like somehow that isn't making it into the service call (you 
> could verify that by adding a log tag in your simple-method to print 
> the ${locale} string). That's part of the reason I'm about the 
> revision you are using... it could be a real issue that most of us 
> aren't seeing if you're not using a recent trunk revision. 
> 
> Of, if the assumptions in the 2nd paragraph above are not correct (ie 
> you are calling things differently) then there could be issues there 
> as well. 
> 
> -David 
> 
> 
> On Jan 13, 2009, at 3:59 PM, Vince M. Clark wrote: 
> 
>> 
>> First a disclaimer (plea for mercy). I am an ERP person, not a web 
>> or UI person. So all this http, session, context stuff is rather 
>> confusing to me. 
>> 
>> I've been digging on this issue and want to make sure something is 
>> very clear because I think it may have something to do with the 
>> problem. 
>> 
>> OfBiz is NOT rendering any screens for me. I'm using it as kind of a 
>> "cheap" web service. I have a static html web form served by Apache 
>> web server. The form action calls OfBiz, and then I redirect back to 
>> a static html page. So OfBiz just accepts the request, processes it, 
>> and redirects. No screen rendering whatsoever by OfBiz. 
>> 
>> I'm pointing this out because of one of the comments I found in a 
>> java class (which of course I cannot find now) that said something 
>> about if locale was not in the context then the browser (or maybe 
>> session) default would be used. 
>> 
>> So to simplify (or maybe over simplify) my ques

Re: locale error in simple method

2009-01-13 Thread Vince M. Clark
Thanks David. Rev is 679168 

- Original Message - 
From: "David E Jones"  
To: user@ofbiz.apache.org 
Sent: Tuesday, January 13, 2009 5:36:35 PM (GMT-0700) America/Denver 
Subject: Re: locale error in simple method 


Stepping back even more... which version/revision of OFBiz are you 
using? 

Based on what you wrote, with the browser submitting a form to the 
OFBiz web server, as long as it is going through the ControlServlet 
and you are calling the service you described through a request-map -> 
event tag, then it should work the same way as anything else in OFBiz. 

Unless something is broken somewhere then OFBiz should be getting a 
locale no matter what, even if it is the system default locale. It 
looks like somehow that isn't making it into the service call (you 
could verify that by adding a log tag in your simple-method to print 
the ${locale} string). That's part of the reason I'm about the 
revision you are using... it could be a real issue that most of us 
aren't seeing if you're not using a recent trunk revision. 

Of, if the assumptions in the 2nd paragraph above are not correct (ie 
you are calling things differently) then there could be issues there 
as well. 

-David 


On Jan 13, 2009, at 3:59 PM, Vince M. Clark wrote: 

> 
> First a disclaimer (plea for mercy). I am an ERP person, not a web 
> or UI person. So all this http, session, context stuff is rather 
> confusing to me. 
> 
> I've been digging on this issue and want to make sure something is 
> very clear because I think it may have something to do with the 
> problem. 
> 
> OfBiz is NOT rendering any screens for me. I'm using it as kind of a 
> "cheap" web service. I have a static html web form served by Apache 
> web server. The form action calls OfBiz, and then I redirect back to 
> a static html page. So OfBiz just accepts the request, processes it, 
> and redirects. No screen rendering whatsoever by OfBiz. 
> 
> I'm pointing this out because of one of the comments I found in a 
> java class (which of course I cannot find now) that said something 
> about if locale was not in the context then the browser (or maybe 
> session) default would be used. 
> 
> So to simplify (or maybe over simplify) my question, is there 
> something I should be doing in my simple method to put locale in the 
> context before I call createLead. Also, can someone give me a tip on 
> how to iterate through whatever is in the context and write it out 
> to the log so I can see it. 
> 
> - Original Message - 
> From: "Vince M. Clark"  
> To: user@ofbiz.apache.org 
> Sent: Tuesday, January 13, 2009 9:17:40 AM (GMT-0700) America/Denver 
> Subject: Re: locale error in simple method 
> 
> Here is the service definition and the simple method. Thank you for 
> your help. 
> 
>  location="org/ofbiz/ge/PartyServices.xml" 
> invoke="createLeadFromWebForm" auth="false"> 
> Add a New Lead from a Web Form 
>  
>  
>  
>  
>  optional="false"/> 
>  
>  optional="true"/> 
>  
>  
>  optional="true"/> 
>  optional="true"/> 
>  
>  
> 
>  description="Create Lead from Web Form" login-required="false"> 
>  
>  
>  
>  
>  
>  
>  
>  field="parameters.emailAddress"/> 
>  field="parameters.contactNumber"/> 
>  
>  field="parameters.countryGeoId"/> 
>  
>  field="parameters.stateProvinceGeoId"/> 
>  
>  
>  
>  
>  
>  
> 
> - Original Message - 
> From: "Adrian Crum"  
> To: user@ofbiz.apache.org 
> Sent: Tuesday, January 13, 2009 9:22:57 AM (GMT-0700) America/Denver 
> Subject: Re: locale error in simple method 
> 
> If you attach the service definition, I can take a look at it. 
> 
> -Adrian 
> 
> Vince M. Clark wrote: 
>> When is that usually set? When a user logs in? My service just sets 
>> the userLogin to system. Could that be a source of the problem? 
>> 
>> ----- Original Message - 
>> From: "Adrian Crum"  
>> To: user@ofbiz.apache.org 
>> Sent: Tuesday, January 13, 2009 9:05:01 AM (GMT-0700) America/Denver 
>> Subject: Re: locale error in simple method 
>> 
>> Vince, 
>> 
>> I checked to see if something changed in the framework that would 
>> cause 
>> this error, but I didn't find anything. There must be a problem with 
>> the service definition - which is preventing the locale parameter 
>> from 
>> being included in the service context. 
>> 
>> -Adrian 
>> 
>> Vince M. Clark wrote: 
>>> Here i

Re: locale error in simple method

2009-01-13 Thread Vince M. Clark

First a disclaimer (plea for mercy). I am an ERP person, not a web or UI 
person. So all this http, session, context stuff is rather confusing to me. 

I've been digging on this issue and want to make sure something is very clear 
because I think it may have something to do with the problem. 

OfBiz is NOT rendering any screens for me. I'm using it as kind of a "cheap" 
web service. I have a static html web form served by Apache web server. The 
form action calls OfBiz, and then I redirect back to a static html page. So 
OfBiz just accepts the request, processes it, and redirects. No screen 
rendering whatsoever by OfBiz. 

I'm pointing this out because of one of the comments I found in a java class 
(which of course I cannot find now) that said something about if locale was not 
in the context then the browser (or maybe session) default would be used. 

So to simplify (or maybe over simplify) my question, is there something I 
should be doing in my simple method to put locale in the context before I call 
createLead. Also, can someone give me a tip on how to iterate through whatever 
is in the context and write it out to the log so I can see it. 

- Original Message ----- 
From: "Vince M. Clark"  
To: user@ofbiz.apache.org 
Sent: Tuesday, January 13, 2009 9:17:40 AM (GMT-0700) America/Denver 
Subject: Re: locale error in simple method 

Here is the service definition and the simple method. Thank you for your help. 

 
Add a New Lead from a Web Form 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

- Original Message - 
From: "Adrian Crum"  
To: user@ofbiz.apache.org 
Sent: Tuesday, January 13, 2009 9:22:57 AM (GMT-0700) America/Denver 
Subject: Re: locale error in simple method 

If you attach the service definition, I can take a look at it. 

-Adrian 

Vince M. Clark wrote: 
> When is that usually set? When a user logs in? My service just sets the 
> userLogin to system. Could that be a source of the problem? 
> 
> - Original Message - 
> From: "Adrian Crum"  
> To: user@ofbiz.apache.org 
> Sent: Tuesday, January 13, 2009 9:05:01 AM (GMT-0700) America/Denver 
> Subject: Re: locale error in simple method 
> 
> Vince, 
> 
> I checked to see if something changed in the framework that would cause 
> this error, but I didn't find anything. There must be a problem with 
> the service definition - which is preventing the locale parameter from 
> being included in the service context. 
> 
> -Adrian 
> 
> Vince M. Clark wrote: 
>> Here is the entire trace. Note that the first few lines are just xml 
>> validation errors. 
>> 
>> 
>> 2009-01-12 20:28:07,054 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] 
>> XmlFileLoader: File 
>> file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml 
>> process error. Line: 88. Error message: cvc-complex-type.3.2.2: Attribute 
>> 'field-name' is not allowed to appear in element 'if-empty'. 
>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] 
>> XmlFileLoader: File 
>> file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml 
>> process error. Line: 88. Error message: cvc-complex-type.4: Attribute 
>> 'field' must appear on element 'if-empty'. 
>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] 
>> XmlFileLoader: File 
>> file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml 
>> process error. Line: 122. Error message: cvc-complex-type.3.2.2: Attribute 
>> 'field' is not allowed to appear in element 'result-to-field'. 
>> 2009-01-12 20:28:07,056 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML 
>> Read 0.026s: 
>> file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml 
>> 2009-01-12 20:28:07,059 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] locale 
>> is en_US // here is where I set a locale variable and outputted it in the 
>> log 
>> 
>> 2009-01-12 20:28:07,087 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML 
>> Read 0.027s: 
>> file:/home/ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
>>  
>> 2009-01-12 20:28:07,125 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML 
>> Read 0.028s: 
>> file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml
>>  
>> 2009-01-12 20:28:07,129 (http-0.0.0.0-8080-1) [ 
>> SimpleMethod.java:1109:ERROR]  runtime exception report 
>> -- Error in simple-method 
>> operation [ ]: java.lang.IllegalArgumentException: loca

Re: locale error in simple method

2009-01-13 Thread Vince M. Clark
Here is the service definition and the simple method. Thank you for your help. 

 
Add a New Lead from a Web Form 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

- Original Message - 
From: "Adrian Crum"  
To: user@ofbiz.apache.org 
Sent: Tuesday, January 13, 2009 9:22:57 AM (GMT-0700) America/Denver 
Subject: Re: locale error in simple method 

If you attach the service definition, I can take a look at it. 

-Adrian 

Vince M. Clark wrote: 
> When is that usually set? When a user logs in? My service just sets the 
> userLogin to system. Could that be a source of the problem? 
> 
> - Original Message - 
> From: "Adrian Crum"  
> To: user@ofbiz.apache.org 
> Sent: Tuesday, January 13, 2009 9:05:01 AM (GMT-0700) America/Denver 
> Subject: Re: locale error in simple method 
> 
> Vince, 
> 
> I checked to see if something changed in the framework that would cause 
> this error, but I didn't find anything. There must be a problem with 
> the service definition - which is preventing the locale parameter from 
> being included in the service context. 
> 
> -Adrian 
> 
> Vince M. Clark wrote: 
>> Here is the entire trace. Note that the first few lines are just xml 
>> validation errors. 
>> 
>> 
>> 2009-01-12 20:28:07,054 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] 
>> XmlFileLoader: File 
>> file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml 
>> process error. Line: 88. Error message: cvc-complex-type.3.2.2: Attribute 
>> 'field-name' is not allowed to appear in element 'if-empty'. 
>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] 
>> XmlFileLoader: File 
>> file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml 
>> process error. Line: 88. Error message: cvc-complex-type.4: Attribute 
>> 'field' must appear on element 'if-empty'. 
>> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] 
>> XmlFileLoader: File 
>> file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml 
>> process error. Line: 122. Error message: cvc-complex-type.3.2.2: Attribute 
>> 'field' is not allowed to appear in element 'result-to-field'. 
>> 2009-01-12 20:28:07,056 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML 
>> Read 0.026s: 
>> file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml 
>> 2009-01-12 20:28:07,059 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] locale 
>> is en_US // here is where I set a locale variable and outputted it in the 
>> log 
>> 
>> 2009-01-12 20:28:07,087 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML 
>> Read 0.027s: 
>> file:/home/ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
>>  
>> 2009-01-12 20:28:07,125 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML 
>> Read 0.028s: 
>> file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml
>>  
>> 2009-01-12 20:28:07,129 (http-0.0.0.0-8080-1) [ 
>> SimpleMethod.java:1109:ERROR]  runtime exception report 
>> -- Error in simple-method 
>> operation [ ]: java.lang.IllegalArgumentException: locale cannot be null 
>> Exception: java.lang.IllegalArgumentException Message: locale cannot be null 
>>  stack trace 
>> --- 
>> java.lang.IllegalArgumentException: locale cannot be null 
>> org.ofbiz.base.util.UtilProperties.getResourceBundle(UtilProperties.java:480)
>>  org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:385) 
>> org.ofbiz.minilang.operation.SimpleMapOperation.addMessage(SimpleMapOperation.java:62)
>>  org.ofbiz.minilang.operation.ValidateMethod.exec(ValidateMethod.java:100) 
>> org.ofbiz.minilang.operation.SimpleMapProcess.exec(SimpleMapProcess.java:51) 
>> org.ofbiz.minilang.operation.MapProcessor.exec(MapProcessor.java:80) 
>> org.ofbiz.minilang.method.callops.CallSimpleMapProcessor.ex 
e 
> c(CallSimpleMapProcessor.java:91) 
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) 
> org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) 
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) 
> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) 
> org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75)
>  org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) 
> org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCo

Re: new SecurityGroup, cannot login

2009-01-13 Thread Vince M. Clark
Here is the log. I included several lines before and after the relevant error. 
You can see that all is being reported is "required permissions missing." No 
other information is in the log. 


2009-01-13 08:31:54,487 (TP-Processor3) [ ControlServlet.java:93 :INFO ] The 
character encoding of the request is: [null]. The character encoding we will 
use for the request and response is: [UTF-8] 
2009-01-13 08:31:54,488 (TP-Processor3) [ ControlServlet.java:131:INFO ] 
[[[login] Servlet Starting, doing setup- total:0.0,since last(Begin):0.0]] 
2009-01-13 08:31:54,488 (TP-Processor3) [ ControlServlet.java:190:INFO ] 
[[[login] Setup done, doing Event(s) and View(s)- total:0.0,since last([login] 
Servlet S...):0.0]] 
2009-01-13 08:31:54,494 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0060s: jndi:/0.0.0.0/sfa/WEB-INF/controller.xml 
2009-01-13 08:31:54,500 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0050s: 
file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
2009-01-13 08:31:54,500 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] 
ConfigMap Created: (4) records in 0.0050s 
2009-01-13 08:31:54,512 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.011s: 
file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
 
2009-01-13 08:31:54,518 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0040s: 
file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
2009-01-13 08:31:54,519 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] 
ConfigMap Created: (4) records in 0.0060s 
2009-01-13 08:31:54,520 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] 
ConfigMap Created: (4) records in 0.019s 
2009-01-13 08:31:54,521 (TP-Processor3) [ ConfigXMLReader.java:653:INFO ] 
ConfigMap Created: (4) records in 0.026s 
2009-01-13 08:31:54,526 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0050s: 
file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
2009-01-13 08:31:54,526 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] 
HandlerMap Created: (6) view handlers and (9) request/event handlers in 0.0050s 
2009-01-13 08:31:54,538 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.011s: 
file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
 
2009-01-13 08:31:54,544 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0050s: 
file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
2009-01-13 08:31:54,545 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] 
HandlerMap Created: (6) view handlers and (9) request/event handlers in 0.0060s 
2009-01-13 08:31:54,545 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] 
HandlerMap Created: (7) view handlers and (9) request/event handlers in 0.018s 
2009-01-13 08:31:54,545 (TP-Processor3) [ ConfigXMLReader.java:811:INFO ] 
HandlerMap Created: (7) view handlers and (9) request/event handlers in 0.024s 
2009-01-13 08:31:54,551 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0050s: 
file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
2009-01-13 08:31:54,552 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] 
RequestMap Created: (10) records in 0.0060s 
2009-01-13 08:31:54,564 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.011s: 
file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
 
2009-01-13 08:31:54,571 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0040s: 
file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
2009-01-13 08:31:54,572 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] 
RequestMap Created: (10) records in 0.0060s 
2009-01-13 08:31:54,582 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] 
RequestMap Created: (237) records in 0.029s 
2009-01-13 08:31:54,585 (TP-Processor3) [ ConfigXMLReader.java:386:INFO ] 
RequestMap Created: (277) records in 0.039s 
2009-01-13 08:31:54,590 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0050s: 
file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
2009-01-13 08:31:54,590 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] 
ViewMap Created: (8) records in 0.0050s 
2009-01-13 08:31:54,602 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.011s: 
file:/home/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
 
2009-01-13 08:31:54,608 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0040s: 
file:/home/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml 
2009-01-13 08:31:54,609 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] 
ViewMap Created: (8) records in 0.0050s 
2009-01-13 08:31:54,611 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] 
ViewMap Created: (97) records in 0.02s 
2009-01-13 08:31:54,612 (TP-Processor3) [ ConfigXMLReader.java:480:INFO ] 
ViewMap Created: (118) records in 0.027s 
2009-01-13 08:31:54,617 (TP-Processor3) [ UtilXml.java:241:INFO ] XML Read 
0.0050s: 
file:/home/ofbiz/trun

Re: locale error in simple method

2009-01-13 Thread Vince M. Clark
When is that usually set? When a user logs in? My service just sets the 
userLogin to system. Could that be a source of the problem? 

- Original Message - 
From: "Adrian Crum"  
To: user@ofbiz.apache.org 
Sent: Tuesday, January 13, 2009 9:05:01 AM (GMT-0700) America/Denver 
Subject: Re: locale error in simple method 

Vince, 

I checked to see if something changed in the framework that would cause 
this error, but I didn't find anything. There must be a problem with 
the service definition - which is preventing the locale parameter from 
being included in the service context. 

-Adrian 

Vince M. Clark wrote: 
> Here is the entire trace. Note that the first few lines are just xml 
> validation errors. 
> 
> 
> 2009-01-12 20:28:07,054 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] 
> XmlFileLoader: File 
> file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml 
> process error. Line: 88. Error message: cvc-complex-type.3.2.2: Attribute 
> 'field-name' is not allowed to appear in element 'if-empty'. 
> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] 
> XmlFileLoader: File 
> file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml 
> process error. Line: 88. Error message: cvc-complex-type.4: Attribute 'field' 
> must appear on element 'if-empty'. 
> 2009-01-12 20:28:07,055 (http-0.0.0.0-8080-1) [ UtilXml.java:660:ERROR] 
> XmlFileLoader: File 
> file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml 
> process error. Line: 122. Error message: cvc-complex-type.3.2.2: Attribute 
> 'field' is not allowed to appear in element 'result-to-field'. 
> 2009-01-12 20:28:07,056 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML 
> Read 0.026s: 
> file:/home/ofbiz/trunk/hot-deploy/ge/script/org/ofbiz/ge/PartyServices.xml 
> 2009-01-12 20:28:07,059 (http-0.0.0.0-8080-1) [ Log.java:94 :INFO ] locale is 
> en_US // here is where I set a locale variable and outputted it in the log 
> 
> 2009-01-12 20:28:07,087 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML 
> Read 0.027s: 
> file:/home/ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml
>  
> 2009-01-12 20:28:07,125 (http-0.0.0.0-8080-1) [ UtilXml.java:241:INFO ] XML 
> Read 0.028s: 
> file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml
>  
> 2009-01-12 20:28:07,129 (http-0.0.0.0-8080-1) [ SimpleMethod.java:1109:ERROR] 
>  runtime exception report 
> -- Error in simple-method 
> operation [ ]: java.lang.IllegalArgumentException: locale cannot be null 
> Exception: java.lang.IllegalArgumentException Message: locale cannot be null 
>  stack trace 
> --- 
> java.lang.IllegalArgumentException: locale cannot be null 
> org.ofbiz.base.util.UtilProperties.getResourceBundle(UtilProperties.java:480) 
> org.ofbiz.base.util.UtilProperties.getMessage(UtilProperties.java:385) 
> org.ofbiz.minilang.operation.SimpleMapOperation.addMessage(SimpleMapOperation.java:62)
>  org.ofbiz.minilang.operation.ValidateMethod.exec(ValidateMethod.java:100) 
> org.ofbiz.minilang.operation.SimpleMapProcess.exec(SimpleMapProcess.java:51) 
> org.ofbiz.minilang.operation.MapProcessor.exec(MapProcessor.java:80) 
> org.ofbiz.minilang.method.callops.CallSimpleMapProcessor.exe 
c(CallSimpleMapProcessor.java:91) 
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) 
org.ofbiz.minilang.method.ifops.IfNotEmpty.exec(IfNotEmpty.java:91) 
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) 
org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) 
org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:75)
 org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) 
org.ofbiz.minilang.method.ifops.IfCompare.exec(IfCompare.java:123) 
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) 
org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744) 
org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134) 
org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:116) 
org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
 org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDi
  
spatcher.java:384) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) 
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) 
org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:246) 
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104) 
org.ofbiz.minilang.SimpleMethod.exec(Sim

Re: new SecurityGroup, cannot login

2009-01-13 Thread Vince M. Clark
I tried clearing the cache and restarting. No luck. 

It is my understanding that the only thing controlling whether or not a 
permission can be used for login is the base permission setting in 
ofbiz-component.xml. Is this correct, or is there another setting somewhere 
else? 

- Original Message - 
From: "masionas"  
To: user@ofbiz.apache.org 
Sent: Tuesday, January 13, 2009 7:53:09 AM (GMT-0700) America/Denver 
Subject: Re: new SecurityGroup, cannot login 


I Permissions are cached, including no permissions status. So you have either 
to restart ofbiz to get the new permissions in effect or decrease cache time 
in props file to a couple of seconds. 


Vince Clark wrote: 
> 
> I created a new security group called MKTGADMIN and added the following 
> permissions: 
> OFBTOOLS_VIEW 
> MARKETING_ADMIN 
> The two base permissions in ofbiz-component.xml in the Marketing component 
> are "OFBTOOLS,MARKETING" (for both the marketing and sfa webapps) 
> 
> I assigned the new SecurityGroup to a UserLogin but when I try to login I 
> get an error saying "required permissions are missing." 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/new-SecurityGroup%2C-cannot-login-tp21436938p21437261.html
 
Sent from the OFBiz - User mailing list archive at Nabble.com. 



Re: new SecurityGroup, cannot login

2009-01-13 Thread Vince M. Clark
Just tried it. Still cannot login. 

- Original Message - 
From: "ian tabangay"  
To: user@ofbiz.apache.org 
Sent: Tuesday, January 13, 2009 7:50:37 AM (GMT-0700) America/Denver 
Subject: Re: new SecurityGroup, cannot login 

You will need to clear ofbiz's cache for the new permissions to take effect. 
Clicking "Clear All Caches" under Cache Maintenace of Webtools will suffice. 

~ ian 

On Tue, Jan 13, 2009 at 10:18 PM, Vince M. Clark wrote: 

> I created a new security group called MKTGADMIN and added the following 
> permissions: 
> OFBTOOLS_VIEW 
> MARKETING_ADMIN 
> The two base permissions in ofbiz-component.xml in the Marketing component 
> are "OFBTOOLS,MARKETING" (for both the marketing and sfa webapps) 
> 
> I assigned the new SecurityGroup to a UserLogin but when I try to login I 
> get an error saying "required permissions are missing." 
> 
> 


new SecurityGroup, cannot login

2009-01-13 Thread Vince M. Clark
I created a new security group called MKTGADMIN and added the following 
permissions: 
OFBTOOLS_VIEW 
MARKETING_ADMIN 
The two base permissions in ofbiz-component.xml in the Marketing component are 
"OFBTOOLS,MARKETING" (for both the marketing and sfa webapps) 

I assigned the new SecurityGroup to a UserLogin but when I try to login I get 
an error saying "required permissions are missing." 



Re: locale error in simple method

2009-01-12 Thread Vince M. Clark
service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) 
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) 
org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:334) 
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:454) 
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:281) 
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:198) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:690) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803) 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:255) 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) 
java.lang.Thread.run(Thread.java:595) 

 
2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ TransactionUtil.java:285:INFO ] 
[TransactionUtil.rollback] transaction rolled back 
2009-01-12 20:28:07,255 (http-0.0.0.0-8080-1) [ ServiceDispatcher.java:578:INFO 
] Sync service [ecommerce/createLeadFromWebForm] finished in [236] milliseconds 
2009-01-12 20:28:07,327 (http-0.0.0.0-8080-1) [ RequestHandler.java:314:ERROR] 
Request webFormSubmit caused an error with the following message: 
Error:Error:Error trying to begin transaction, could not process method: The 
current transaction is marked for rollback, not beginning a new transaction and 
aborting current operation; the rollbackOnly was caused by: Error in 
simple-method [Creates a person, role and contactMechs 
[file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]:
 Error running the simple-method: Error in simple-method operation [ ]: 
java.lang.RuntimeException: Error in simple-method operation [ ]: 
java.lang.IllegalArgumentException: locale cannot be null 
null calling service createPartyRole in createLead calling service createLead 
in createLeadFromWebForm 
2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1) [ RequestHandler.java:412:INFO ] 
[RequestHandler.doRequest]: Response is a URL redirect. 
sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1 
2009-01-12 20:28:07,328 (http-0.0.0.0-8080-1) [ RequestHandler.java:539:INFO ] 
[Sending redirect]: http://www.globalera.com 
sessionId=BBA68197213FF2F01514F97BB85687A6.jvm1 
2009-01-12 20:28:07,376 (http-0.0.0.0-8080-1) [ ControlServlet.java:299:INFO ] 
[[[webFormSubmit] Done rendering page, Servlet Finished- total:0.64,since 
last([webFormSubmit] S...):0.638]] 

- Original Message - 
From: "Adrian Crum"  
To: user@ofbiz.apache.org 
Sent: Monday, January 12, 2009 8:31:07 AM (GMT-0700) America/Denver 
Subject: Re: locale error in simple method 

Vince, 

We will need a complete log to track this down. To be specific, I need 
to see the entire Java stack trace. 

-Adrian 

Vince M. Clark wrote: 
> I created a custom simple method to respond to a request from a web form. 
> Getting a locale error and cannot figure out where locale is required. 
> 
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  from-field="parameters.stateProvinceGeoId"/> 
>  
>  
>  
>  
>  
>  
> 
> The simple method that I am calling "createLead" calls other simple methods. 
> One of them is createPersonRoleAndContactMechs, which throws the following 
> exception: 
> 2009-01-11 18:43:36,887 (http-0.0.0.0-8080-1) [ 
> RequestHandler.java:314:ERROR] Request webFormSubmit caused an error with the 
> following message: Error:Error:Error trying to begin transaction, could not 
> process method: The current transaction is marked for rollback, not beginning 
> a new transaction and aborting current operation; the rollbackOnly was caused 
> by: Error in simple-method [Creates a person, role and contactMechs

Re: Login often needed in Catalog

2009-01-12 Thread Vince M. Clark
I really don't think this is a cookies issue. I get it frequently as well when 
switching from one application to another. 

- Original Message - 
From: "BJ Freeman"  
To: user@ofbiz.apache.org 
Sent: Monday, January 12, 2009 5:47:33 PM (GMT-0700) America/Denver 
Subject: Re: Login often needed in Catalog 

-BEGIN PGP SIGNED MESSAGE- 
Hash: SHA1 

sounds like cookies are not enabled. 

masionas sent the following on 1/12/2009 2:56 PM: 
> Hey, 
> 
> Any idea why this is happenening? "externalLoginKey" param is passed but it 
> requires to re-login anyway. 
> Thanks in adance. 
> 
> 
> masionas wrote: 
>> Hi, 
>> I have the similiar issue from time to time and not only in Catalog. Even 
>> if the externalLoginKey is passed to url it still requires re-login at 
>> some places through an app. How could I fix it? Revision I use is r722010. 
>> 
>> Thanks for any hints. 
>> 
> 
-BEGIN PGP SIGNATURE- 
Version: GnuPG v1.4.6 (MingW32) 
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org 

iD8DBQFJa+SlrP3NbaWWqE4RAuULAJ9BcLPNxU1b9cHqvhcoDTS6rzokTACdGGAn 
VpodwsYfEF5tqoErW2We3K8= 
=ZmMI 
-END PGP SIGNATURE- 


locale error in simple method

2009-01-11 Thread Vince M. Clark
I created a custom simple method to respond to a request from a web form. 
Getting a locale error and cannot figure out where locale is required. 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

The simple method that I am calling "createLead" calls other simple methods. 
One of them is createPersonRoleAndContactMechs, which throws the following 
exception: 
2009-01-11 18:43:36,887 (http-0.0.0.0-8080-1) [ RequestHandler.java:314:ERROR] 
Request webFormSubmit caused an error with the following message: 
Error:Error:Error trying to begin transaction, could not process method: The 
current transaction is marked for rollback, not beginning a new transaction and 
aborting current operation; the rollbackOnly was caused by: Error in 
simple-method [Creates a person, role and contactMechs 
[file:/home/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml#createPersonRoleAndContactMechs]]:
 Error running the simple-method: Error in simple-method operation [ ]: 
java.lang.RuntimeException: Error in simple-method operation [ ]: 
java.lang.IllegalArgumentException: locale cannot be null 
null calling service createPartyRole in createLead calling service createLead 
in createLeadFromWebForm 





Re: Entity Sync Overwriting Data with Nothing

2009-01-11 Thread Vince M. Clark
It has been a while since I used entity sync but I do remember that we 
definitely had issues with systems in different time zones where the system 
clocks were set to the local time. We solved it by setting all clocks to the 
same value and time zone, like GMT/UDT. 

- Original Message - 
From: "David E Jones"  
To: user@ofbiz.apache.org 
Sent: Saturday, January 10, 2009 11:54:38 PM (GMT-0700) America/Denver 
Subject: Re: Entity Sync Overwriting Data with Nothing 


Sounds like another fun issue... source repos messed up are a pain! 

Anyway, my guess is that what you described really IS an issue and 
I've changed some things in SVN rev 733423 that are more correct/ 
accurate in general and should fix this issue. 

-David 


On Jan 8, 2009, at 11:40 PM, Sam Hamilton wrote: 

> It seems that our local SVN server is corrupted and making a total 
> mess of OFBiz so please ignore this thread. 
> If we still get the same problem later with a proper copy I will 
> repost - thanks David! 
> 
> Sam 
> 
> 
> On 09/01/2009 08:46, "David Jones"  
> wrote: 
> 
> 
> 
> You have the same records being sync'ed in two directions? Hmmm... I 
> hope this is the only issue you run into. 
> 
> Here's my guess about why this is happening: 
> 
> 1. during the first data move the record is not in place when it is 
> referred to, so a dummy empty record is created 
> 2. the dummy empty record has the current data/time stamped on it 
> 3. in the second data move, opposite direction, that record is 
> included as a new record with the timestamp when it was inserted which 
> will be later than the timestamp of the original record, so when it 
> goes in the other direction it will be considered the newer record and 
> will therefore be used to overwrite the original record 
> 
> I'll look in the code and see if this can be fixed in step #2 by using 
> the timestamp of the referring record as the timestamp on the new/ 
> dummy record. That should work, and if it doesn't then we'll just use 
> that time minus something to make sure it is in the past. That 
> shouldn't be necessary since this is happening because the record in 
> question has a later timestamp so shows up later in the sorted 
> records. 
> 
> -David 
> 
> 
> On Jan 8, 2009, at 2:53 AM, Sam Hamilton wrote: 
> 
>> We are currently deploying OFBiz in multiple locations (USA, Hong 
>> Kong and China) but when the remote servers try and sync via push 
>> with the master server it looses the shipment receipt info and only 
>> the primary key exist, all other fields are empty. Then when the 
>> pull is invoked from the master to the remote servers empty data is 
>> overwritten into the fields where data was. 
>> 
>> Here are the logs: 
>> The log info: 
>> 2009-01-07 11:08:47,637 (RMI TCP Connection(7)-192.168.3.4) 
>> [ GenericDAO.java:970:INFO ] Count select sql: SELECT 
>> COUNT(1) FROM public.SHIPMENT_RECEIPT WHERE (RECEIPT_ID = ?) 
>> 2009-01-07 11:08:47,639 (RMI TCP Connection(7)-192.168.3.4) 
>> [ GenericValue.java:464:INFO ] Set [receiptId] to - SH26111 
>> 2009-01-07 11:08:47,653 (RMI TCP Connection(7)-192.168.3.4) 
>> [ GenericValue.java:470:INFO ] Creating place holder value : 
>> [GenericEntity:ShipmentReceipt][receiptId,SH26111(java.lang.String)] 
>> 
>> Anyone any ideas how to stop this happening? 
>> 
>> Thanks 
>> Sam 
> 
> 
> 
> Sam Hamilton 
> CTO 
> Virtual Village 
> 
> Tel: +86 (21) 6271 3051 
> Fax: +86 (21) 6271 3021 
> Mobile: +86 (135) 2451 4480 
> E-mail: sam.hamil...@virtualvillage.com 



Re: including of a charting function

2009-01-11 Thread Vince M. Clark
Would it make sense to integrate with the new portal functionality, and then 
build "dashboards" for each component? This gives the end user some control 
over what they see This is the way NetSuite works. 

- Original Message - 
From: "Jacques Le Roux"  
To: user@ofbiz.apache.org 
Sent: Sunday, January 11, 2009 2:53:43 AM (GMT-0700) America/Denver 
Subject: Re: including of a charting function 

Yes, I'd like to have that too : +1 

Jacques 

From: "Hans Bakker"  
> browsing the web I saw that Apache forest has included jchart in their 
> distribution (http://jchart.sourceforge.net/) 
> 
> a possible candidate for ofbiz too? 
> 
> If every component gives an overview of its current data in some chart 
> format on the 'main' page would be a nice addition 
> 
> -- 
> Antwebsystems.com: Quality OFBiz services for competitive prices 
> 


Re: SFA - Create Lead from Web Form - Not Logged In

2009-01-10 Thread Vince M. Clark
Thanks for the tips. Looks like I'm about there but one last problem. I am 
getting a locale error: 

java.lang.IllegalArgumentException: locale cannot be null 
null calling service createPartyRole in createLead calling service createLead 
in createLeadFromWebForm 

- Original Message - 
From: "David E Jones"  
To: user@ofbiz.apache.org 
Sent: Saturday, January 10, 2009 11:27:06 AM (GMT-0700) America/Denver 
Subject: Re: SFA - Create Lead from Web Form - Not Logged In 


1. for an  I'm trying to reuse existing createLead service in Marketing 
> component. I have an HTML web form that when submitted calls a URL 
> that maps to an OFBiz request. But the createLead service and other 
> services that it calls requires a login. 
> 
> Here is what I have in my custom controller.xml file: 
>  
>  
>  invoke="createLead"/> 
> http://www.company.com"/> 
> http://www.company.com"/> 
>  
> 
> I'm trying to accomplish this as easily as possible. So far the only 
> thing I have created in my custom component is this request-map. No 
> custom services. What is the best way to automatically login? Can I 
> do it in the request-map? 



SFA - Create Lead from Web Form - Not Logged In

2009-01-10 Thread Vince M. Clark
I'm trying to reuse existing createLead service in Marketing component. I have 
an HTML web form that when submitted calls a URL that maps to an OFBiz request. 
But the createLead service and other services that it calls requires a login. 

Here is what I have in my custom controller.xml file: 
 
 
 
http://www.company.com"/> 
http://www.company.com"/> 
 

I'm trying to accomplish this as easily as possible. So far the only thing I 
have created in my custom component is this request-map. No custom services. 
What is the best way to automatically login? Can I do it in the request-map? 


Re: Data import into Ofbiz

2009-01-02 Thread Vince M. Clark
Kevin 

For the first case, initial setup, the answer is yes. The easiest approach is 
to import initial data by constructing the xml and then loading it through the 
web interface in webtools. Of course if you are dealing with a high volume of 
data it might be necessary to handle this another way. 

For the ongoing data import I will make two possible suggestions: 
1) Manual process - take the data from the spreadsheet that is generated by the 
legacy system and drop it into a pre-formatted spreadsheet that generates xml. 
I usually do this on another tab. So you would take the raw data and drop it 
into the first tab on the spreadsheet, then have one or more other tabs to 
generate xml for the various entities that you need to import data. 
2) Automated Import Process - This is less error prone than the manual option 
so the effort may be worthwhile if you will be continuing this for a while. 
Also allows for more timely importing since you can schedule the process to run 
as frequently as you want. So the high level scenario would be that you write 
an OfBiz service that polls a directory where the legacy system dumps the data, 
then formats that data for import and loads it. You can set the service up as a 
recurring job and run it as frequently as you like. 

- Original Message - 
From: "Kevin M. Myer"  
To: user@ofbiz.apache.org 
Sent: Friday, January 2, 2009 9:42:50 AM (GMT-0700) America/Denver 
Subject: Data import into Ofbiz 

Hello, 

I am continuing to look at Ofbiz as an option for ERP software for our 
company. I have two cases where I will need to import data into Ofbiz 
and I am curious what the best practice recommendation for how to do 
this would be. 

The first would be during initial setup, when I would be loading our 
product catalog. Would the best method of doing this be to create an 
XML Entity Engine file that I import through the WebTools interface? 
This process would be performed by me, so ease of import is not a 
large issue. 

The second would be to import orders from a legacy database 
application. This would be ongoing, until the point in time that the 
legacy system is completely replaced by the new ERP solution. The 
legacy system generates an Excel spreadsheet with an order number and 
various other data. This process would be performed by end-users, so 
it would either need to be automated, or a very simple step for them 
to import a file containing the data. 

Thanks for any advice or feedback. 

Kevin 


SFA - Sales Opportunities not saving "Initial Account"

2008-12-29 Thread Vince M. Clark
I'm trying to use the SFA application and running into this problem. I entered 
a Lead, converted it, then entered an opportunity and chose the Initial 
Account. This value doesn't seem to be stored anywhere. There is no field for 
it in the SalesOpportunity entity. Please advise. 


Re: Visual Theme resources not found?

2008-12-16 Thread Vince M. Clark
Thanks Ray. 

- Original Message - 
From: "Ray"  
To: user@ofbiz.apache.org 
Sent: Tuesday, December 16, 2008 10:34:21 AM (GMT-0700) America/Denver 
Subject: Re: Visual Theme resources not found? 

Saw some of this on Monday! 

If you have updated from an SVN revision after R712366 then the ant 
install seed wont work unless you manually fix the DB first. 

See the last comment here : http://docs.ofbiz.org/x/XxQ 

Effectively the seed data for the new Visual Themes is in the same file 
CommonTypeData.xml as some UserPrefGroupType entries and because of the 
change in R712366 that file won't load until you fix the DB to remove 
old PK constraints, a vicious circle! 

Trust me the ftl files are OK just fix your DB and get the seed loaded. 

Ray 

PS: We could at least make this easier for people upgrading if we split 
the xml file? 


Vince M. Clark wrote: 
> Not sure if related, but there is an error in the header.ftl file. I copied 
> the following from Eclipse: 
> 
> Error on line 26, column 35, in template header.ftl 
> Found substring, expecting one of: is_collection, keys, interpret, is_macro, 
> matches, sort, html, time, index_of, values, right_pad, xml, date, web_safe, 
> eval, is_transform, string, node_namespace, float, size, cap_first, number, 
> namespace, seq_last_index_of, j_string, seq_index_of, first, default, new, 
> split, sort_by, upper_case, is_number, last_index_of, long, last, 
> is_directive, starts_with, capitalize, datetime, is_boolean, short, 
> is_hash_ex, ends_with, is_enumerable, is_date, byte, trim, is_node, exists, 
> chop_linebreak, double, is_indexable, is_string, ancestors, url, replace, 
> uncap_first, is_hash, seq_contains, is_sequence, contains, left_pad, 
> if_exists, length, has_content, int, is_method, rtf, reverse, groups, 
> lower_case, node_type, js_string, word_list, root, parent, children, 
> node_name ofbiz/framework/common/webcommon/includes header.ftl line 26 
> 1229444656901 87533 
> 
> 
> - Original Message - 
> From: "David E Jones"  
> To: user@ofbiz.apache.org 
> Sent: Tuesday, December 16, 2008 9:18:20 AM (GMT-0700) America/Denver 
> Subject: Re: Visual Theme resources not found? 
> 
> 
> Is that in seed data? 
> 
> If seed data is maintained correctly it should always be safe, and a 
> good idea whenever updating code, to also update the seed data with an 
> "ant run-install-seed". 
> 
> -David 
> 
> 
> On Dec 16, 2008, at 9:10 AM, Adrian Crum wrote: 
> 
>> ant clean-all then ant run-install 
>> 
>> -Adrian 
>> 
>> Vince M. Clark wrote: 
>>> Just updated from trunk and got this error. Please advise. 
> 
> 


Re: Visual Theme resources not found?

2008-12-16 Thread Vince M. Clark
Not sure if related, but there is an error in the header.ftl file. I copied the 
following from Eclipse: 

Error on line 26, column 35, in template header.ftl 
Found substring, expecting one of: is_collection, keys, interpret, is_macro, 
matches, sort, html, time, index_of, values, right_pad, xml, date, web_safe, 
eval, is_transform, string, node_namespace, float, size, cap_first, number, 
namespace, seq_last_index_of, j_string, seq_index_of, first, default, new, 
split, sort_by, upper_case, is_number, last_index_of, long, last, is_directive, 
starts_with, capitalize, datetime, is_boolean, short, is_hash_ex, ends_with, 
is_enumerable, is_date, byte, trim, is_node, exists, chop_linebreak, double, 
is_indexable, is_string, ancestors, url, replace, uncap_first, is_hash, 
seq_contains, is_sequence, contains, left_pad, if_exists, length, has_content, 
int, is_method, rtf, reverse, groups, lower_case, node_type, js_string, 
word_list, root, parent, children, node_name 
ofbiz/framework/common/webcommon/includes header.ftl line 26 1229444656901 
87533 


- Original Message - 
From: "David E Jones"  
To: user@ofbiz.apache.org 
Sent: Tuesday, December 16, 2008 9:18:20 AM (GMT-0700) America/Denver 
Subject: Re: Visual Theme resources not found? 


Is that in seed data? 

If seed data is maintained correctly it should always be safe, and a 
good idea whenever updating code, to also update the seed data with an 
"ant run-install-seed". 

-David 


On Dec 16, 2008, at 9:10 AM, Adrian Crum wrote: 

> ant clean-all then ant run-install 
> 
> -Adrian 
> 
> Vince M. Clark wrote: 
>> Just updated from trunk and got this error. Please advise. 



Re: Visual Theme resources not found?

2008-12-16 Thread Vince M. Clark
When I try to login to partymgr here is the trace I get: 

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) 


- Original Message - 
From: "Vince M. Clark"  
To: "user"  
Sent: Tuesday, December 16, 2008 8:48:50 AM (GMT-0700) America/Denver 
Subject: Visual Theme resources not found? 

Just updated from trunk and got this error. Please advise. 



Visual Theme resources not found?

2008-12-16 Thread Vince M. Clark
Just updated from trunk and got this error. Please advise. 



Re: Problem with stylesheet when I change a webapp to root mount point

2008-12-06 Thread Vince M. Clark
OK the Apache setup for the images is a good tip. However, if you change the 
configuration to be specific to each webapp (/accounting/, etc.) then how would 
OfBiz get requests at the root URL? 

Can I do something like: 
ProxyPass / ajp://localhost:8009/webapp 


- Original Message - 
From: "BJ Freeman" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Saturday, December 6, 2008 2:26:27 PM (GMT-0700) America/Denver 
Subject: Re: Problem with stylesheet when I change a webapp to root mount point 

there are some things mention here that you have not shown. 
http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-HTTPD
 


Vince M. Clark sent the following on 12/6/2008 1:04 PM: 
> I don't see a "context prefix" in the website settings, only "content 
> prefix." 
> 
> I have tried two different approaches to getting my custom app to load at the 
> root: 
> 1) Use Apache proxy_ajp and the following in the VirtualHost config: 
>  
> ProxyPass ajp://localhost:8009/webapp/ 
> ProxyPassReverse ajp://localhost:8009/webapp/ 
>  
> 
> 2) Set the mount point in ofbiz-component.xml to "/" 
> 
> Either one of these approaches makes resources that must be referenced by a 
> URL such as images and style sheets unreachable. 
> Any ideas are appreciated. In the meantime, I am going to create another 
> webapp in my custom component for the sole purpose of storing resources. 
> Something analogous to /images/ in the framework component. 
> 
> However, this then begs the question, why don't I just let Apache serve those 
> resources. I would love to do that, but would still have URL issues because I 
> am currently passing all requests to OfBiz. 
> 
> Any ideas on how to configure Apache so that the root url: 
> www.mydomainname.com is passed to OfBiz but I can still reference other URL's 
> that will be served by Apache like: 
> www.mydomainname.com/images 
> 
> 
> - Original Message - 
> From: "Abhishake Agarwal" <[EMAIL PROTECTED]> 
> To: user@ofbiz.apache.org 
> Sent: Saturday, November 22, 2008 9:56:01 PM (GMT-0700) America/Denver 
> Subject: Re: Problem with stylesheet when I change a webapp to root mount 
> point 
> 
> I think you have to change stylesheet path in store settings and also try 
> changing the context prefix under website in catalog. 
> 
> On Sun, Nov 23, 2008 at 6:40 AM, Vince M. Clark <[EMAIL PROTECTED]>wrote: 
> 
>> In CommonScreens.xml I have the following line: 
>> > value="${productStore.styleSheet}" default-value="/hgl/images/ecommain.css" 
>> global="true"/> 
>> 
>> I have a custom component in hot-deploy called "hgl" 
>> 
>> When I mount the webapp in ofbiz-component.xml as "/hgl" everything works 
>> fine. However, when I change it to mount as the URL root I no longer have a 
>> webapp mounted as "hgl" and the style sheet isn't found. 
>> 
> 


Re: Problem with stylesheet when I change a webapp to root mount point

2008-12-06 Thread Vince M. Clark
I don't see a "context prefix" in the website settings, only "content prefix." 

I have tried two different approaches to getting my custom app to load at the 
root: 
1) Use Apache proxy_ajp and the following in the VirtualHost config: 
 
ProxyPass ajp://localhost:8009/webapp/ 
ProxyPassReverse ajp://localhost:8009/webapp/ 
 

2) Set the mount point in ofbiz-component.xml to "/" 

Either one of these approaches makes resources that must be referenced by a URL 
such as images and style sheets unreachable. 
Any ideas are appreciated. In the meantime, I am going to create another webapp 
in my custom component for the sole purpose of storing resources. Something 
analogous to /images/ in the framework component. 

However, this then begs the question, why don't I just let Apache serve those 
resources. I would love to do that, but would still have URL issues because I 
am currently passing all requests to OfBiz. 

Any ideas on how to configure Apache so that the root url: www.mydomainname.com 
is passed to OfBiz but I can still reference other URL's that will be served by 
Apache like: 
www.mydomainname.com/images 


- Original Message - 
From: "Abhishake Agarwal" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Saturday, November 22, 2008 9:56:01 PM (GMT-0700) America/Denver 
Subject: Re: Problem with stylesheet when I change a webapp to root mount point 

I think you have to change stylesheet path in store settings and also try 
changing the context prefix under website in catalog. 

On Sun, Nov 23, 2008 at 6:40 AM, Vince M. Clark <[EMAIL PROTECTED]>wrote: 

> In CommonScreens.xml I have the following line: 
>  value="${productStore.styleSheet}" default-value="/hgl/images/ecommain.css" 
> global="true"/> 
> 
> I have a custom component in hot-deploy called "hgl" 
> 
> When I mount the webapp in ofbiz-component.xml as "/hgl" everything works 
> fine. However, when I change it to mount as the URL root I no longer have a 
> webapp mounted as "hgl" and the style sheet isn't found. 
> 


Re: webpos - how to over ride price?

2008-12-04 Thread Vince M. Clark
I saw that. The value is for the SKU. I verified that value in the Product ID 
tab. There is definitely a line for SKU with that value. So not sure why it 
isn't finding it. 

- Original Message - 
From: "Scott Gray" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Thursday, December 4, 2008 2:50:35 PM (GMT-0700) America/Denver 
Subject: Re: webpos - how to over ride price? 

If I were you I would focus on the log line directly above it:2008-12-04 
15:12:25,096 (TP-Processor13) [ WebPosTransaction.java:180:INFO ] Item not 
found 67890 
That means that for whatever reason the item isn't being found in the cart 
hence no price modify. 

Regards 
Scott 

2008/12/5 Vince M. Clark <[EMAIL PROTECTED]> 

> I realized after I posted this that it was just a warning. The process 
> seems to complete, but the price is definitely not modified. I'll keep 
> digging. 
> 
> - Original Message - 
> From: "David E Jones" <[EMAIL PROTECTED]> 
> To: user@ofbiz.apache.org 
> Sent: Thursday, December 4, 2008 2:30:30 PM (GMT-0700) America/Denver 
> Subject: Re: webpos - how to over ride price? 
> 
> 
> Are you sure that's causing this problem? That's just a warning 
> message that doesn't stop the code from running (part of the effort to 
> move from Double to BigDecimal, for which there is a branch going 
> right now). 
> 
> -David 
> 
> 
> On Dec 4, 2008, at 2:14 PM, Vince M. Clark wrote: 
> 
> > I found the error causing the Modify Price process to fail in webpos. 
> > 
> > 
> > 2008-12-04 15:12:25,096 (TP-Processor13) [ WebPosTransaction.java: 
> > 175:INFO ] Modify item price 67890/22.0 
> > 2008-12-04 15:12:25,096 (TP-Processor13) [ WebPosTransaction.java: 
> > 180:INFO ] Item not found 67890 2008-12-04 15:12:25,105 (TP- 
> > Processor13) [ EntityExpr.java:267:WARN ]  exception report 
> > -- =-=-=-=-=- 
> > =-=-=-= DATABASE TYPE ERROR in EntityExpr =-=-=-=-=-=-=-=-= In 
> > entity field [TaxAuthorityRateProduct.minItemPrice] set the value 
> > passed in [java.math.BigDecimal] is not compatible with the Java 
> > type of the field [Double] Exception: java.lang.Exception Message: 
> > Location of database type error  stack trace 
> > --- 
> > java.lang.Exception: Location of database type error 
> > org.ofbiz.entity.condition.EntityExpr.checkRhsType(EntityExpr.java: 
> > 267) 
> > org 
> > .ofbiz.entity.condition.EntityExpr.makeWhereString(EntityExpr.java: 
> > 167) 
> > org 
> > .ofbiz 
> > .entity 
> > .condition.EntityJoinOperator.addSqlValue(EntityJoinOperator.java: 
> > 54) 
> > org 
> > .ofbiz.entity.condition.EntityExpr.makeWhereString(EntityExpr.java: 
> > 170) 
> > org 
> > .ofbiz 
> > .entity 
> > .condition.EntityJoinOperator.addSqlValue(EntityJoinOperator.java: 
> > 67) 
> > org 
> > .ofbiz 
> > .entity 
> > .condition 
> > .EntityConditionListBase 
> > .makeWhereString(EntityConditionListBase.java:89) 
> > org 
> > .ofbiz 
> > .entity 
> > .datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java: 
> > 676) 
> > org 
> > .ofbiz 
> > .entity 
> > .datasource 
> > .GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java: 
> > 140) org.ofbiz.entity.GenericDelegator.find(GenericDelegator.java: 
> > 2273) 
> > org.ofbiz.entity.GenericDelegator.findList(GenericDelegator.java: 
> > 2314) 
> > org 
> > .ofbiz 
> > .accounting 
> > .tax 
> > .TaxAuthorityServices.getTaxAdjustments(TaxAuthorityServices.java: 
> > 309) 
> > org 
> > .ofbiz 
> > .accounting 
> > .tax 
> > .TaxAuthorityServices.rateProductTaxCalc(TaxAuthorityServices.java: 
> > 182) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> > sun 
> > .reflect 
> > .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
> > sun 
> > .reflect 
> > .DelegatingMethodAccessorImpl 
> > .invoke(DelegatingMethodAccessorImpl.java:25) 
> > java.lang.reflect.Method.invoke(Method.java:585) 
> > org 
> > .ofbiz 
> > .service 
> > .engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java: 
> > 96) 
> > org 
> > .ofbiz 
> > .service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java: 
> > 54) 
> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java: 
> > 384) 
> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceD

Re: webpos - how to over ride price?

2008-12-04 Thread Vince M. Clark
I realized after I posted this that it was just a warning. The process seems to 
complete, but the price is definitely not modified. I'll keep digging. 

- Original Message - 
From: "David E Jones" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Thursday, December 4, 2008 2:30:30 PM (GMT-0700) America/Denver 
Subject: Re: webpos - how to over ride price? 


Are you sure that's causing this problem? That's just a warning 
message that doesn't stop the code from running (part of the effort to 
move from Double to BigDecimal, for which there is a branch going 
right now). 

-David 


On Dec 4, 2008, at 2:14 PM, Vince M. Clark wrote: 

> I found the error causing the Modify Price process to fail in webpos. 
> 
> 
> 2008-12-04 15:12:25,096 (TP-Processor13) [ WebPosTransaction.java: 
> 175:INFO ] Modify item price 67890/22.0 
> 2008-12-04 15:12:25,096 (TP-Processor13) [ WebPosTransaction.java: 
> 180:INFO ] Item not found 67890 2008-12-04 15:12:25,105 (TP- 
> Processor13) [ EntityExpr.java:267:WARN ]  exception report 
> -- =-=-=-=-=- 
> =-=-=-= DATABASE TYPE ERROR in EntityExpr =-=-=-=-=-=-=-=-= In 
> entity field [TaxAuthorityRateProduct.minItemPrice] set the value 
> passed in [java.math.BigDecimal] is not compatible with the Java 
> type of the field [Double] Exception: java.lang.Exception Message: 
> Location of database type error  stack trace 
> --- 
> java.lang.Exception: Location of database type error 
> org.ofbiz.entity.condition.EntityExpr.checkRhsType(EntityExpr.java: 
> 267) 
> org 
> .ofbiz.entity.condition.EntityExpr.makeWhereString(EntityExpr.java: 
> 167) 
> org 
> .ofbiz 
> .entity 
> .condition.EntityJoinOperator.addSqlValue(EntityJoinOperator.java: 
> 54) 
> org 
> .ofbiz.entity.condition.EntityExpr.makeWhereString(EntityExpr.java: 
> 170) 
> org 
> .ofbiz 
> .entity 
> .condition.EntityJoinOperator.addSqlValue(EntityJoinOperator.java: 
> 67) 
> org 
> .ofbiz 
> .entity 
> .condition 
> .EntityConditionListBase 
> .makeWhereString(EntityConditionListBase.java:89) 
> org 
> .ofbiz 
> .entity 
> .datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java: 
> 676) 
> org 
> .ofbiz 
> .entity 
> .datasource 
> .GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java: 
> 140) org.ofbiz.entity.GenericDelegator.find(GenericDelegator.java: 
> 2273) 
> org.ofbiz.entity.GenericDelegator.findList(GenericDelegator.java: 
> 2314) 
> org 
> .ofbiz 
> .accounting 
> .tax 
> .TaxAuthorityServices.getTaxAdjustments(TaxAuthorityServices.java: 
> 309) 
> org 
> .ofbiz 
> .accounting 
> .tax 
> .TaxAuthorityServices.rateProductTaxCalc(TaxAuthorityServices.java: 
> 182) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25) 
> java.lang.reflect.Method.invoke(Method.java:585) 
> org 
> .ofbiz 
> .service 
> .engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java: 
> 96) 
> org 
> .ofbiz 
> .service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java: 
> 54) 
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java: 
> 384) 
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java: 
> 213) 
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java: 
> 149) 
> org 
> .ofbiz 
> .order 
> .shoppingcart.CheckOutHelper.getTaxAdjustments(CheckOutHelper.java: 
> 859) 
> org 
> .ofbiz 
> .order.shoppingcart.CheckOutHelper.calcAndAddTax(CheckOutHelper.java: 
> 764) 
> 
> - Original Message - 
> From: "Scott Gray" <[EMAIL PROTECTED]> 
> To: user@ofbiz.apache.org 
> Sent: Wednesday, December 3, 2008 7:23:13 PM (GMT-0700) America/Denver 
> Subject: Re: webpos - how to over ride price? 
> 
> oops, I missed the web part and thought we were talking about the 
> standard 
> pos. 
> Sorry, I don't know much about webpos 
> 
> Regards 
> Scott 
> 
> 2008/12/4 Vince M. Clark <[EMAIL PROTECTED]> 
> 
>> Nope. The price field on an item is not editable. If I go to 
>> Manager, then 
>> click on Modify Price I am presented with two fields, SKU and New 
>> Price. 
>> Selecting an item on the order makes no difference. If I enter the 
>> product 
>> code, for example GZ-1001, and a new price, then click Confirm, 
>> nothing 
>> happens. 
>> 
>> Note that I am tryin

Re: webpos - how to over ride price?

2008-12-04 Thread Vince M. Clark
I found the error causing the Modify Price process to fail in webpos. 


2008-12-04 15:12:25,096 (TP-Processor13) [ WebPosTransaction.java:175:INFO ] 
Modify item price 67890/22.0 
2008-12-04 15:12:25,096 (TP-Processor13) [ WebPosTransaction.java:180:INFO ] 
Item not found 67890 2008-12-04 15:12:25,105 (TP-Processor13) [ 
EntityExpr.java:267:WARN ]  exception report 
-- =-=-=-=-=-=-=-=-= 
DATABASE TYPE ERROR in EntityExpr =-=-=-=-=-=-=-=-= In entity field 
[TaxAuthorityRateProduct.minItemPrice] set the value passed in 
[java.math.BigDecimal] is not compatible with the Java type of the field 
[Double] Exception: java.lang.Exception Message: Location of database type 
error  stack trace 
--- 
java.lang.Exception: Location of database type error 
org.ofbiz.entity.condition.EntityExpr.checkRhsType(EntityExpr.java:267) 
org.ofbiz.entity.condition.EntityExpr.makeWhereString(EntityExpr.java:167) 
org.ofbiz.entity.condition.EntityJoinOperator.addSqlValue(EntityJoinOperator.java:54)
 org.ofbiz.entity.condition.EntityExpr.makeWhereString(EntityExpr.java:170) 
org.ofbiz.entity.condition.EntityJoinOperator.addSqlValue(EntityJoinOperator.java:67)
 
org.ofbiz.entity.condition.EntityConditionListBase.makeWhereString(EntityConditionListBase.java:89)
 
org.ofbiz.entity.datasource.GenericDAO.selectListIteratorByCondition(GenericDAO.java:676)
 
org.ofbiz.entity.datasource.GenericHelperDAO.findListIteratorByCondition(GenericHelperDAO.java:140)
 org.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:2273) 
org.ofbiz.entity.GenericDelegator.findList(GenericDelegator.java:2314) 
org.ofbiz.accounting.tax.TaxAuthorityServices.getTaxAdjustments(TaxAuthorityServices.java:309)
 
org.ofbiz.accounting.tax.TaxAuthorityServices.rateProductTaxCalc(TaxAuthorityServices.java:182)
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 java.lang.reflect.Method.invoke(Method.java:585) 
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:96)
 
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213) 
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:149) 
org.ofbiz.order.shoppingcart.CheckOutHelper.getTaxAdjustments(CheckOutHelper.java:859)
 
org.ofbiz.order.shoppingcart.CheckOutHelper.calcAndAddTax(CheckOutHelper.java:764)
 

- Original Message - 
From: "Scott Gray" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Wednesday, December 3, 2008 7:23:13 PM (GMT-0700) America/Denver 
Subject: Re: webpos - how to over ride price? 

oops, I missed the web part and thought we were talking about the standard 
pos. 
Sorry, I don't know much about webpos 

Regards 
Scott 

2008/12/4 Vince M. Clark <[EMAIL PROTECTED]> 

> Nope. The price field on an item is not editable. If I go to Manager, then 
> click on Modify Price I am presented with two fields, SKU and New Price. 
> Selecting an item on the order makes no difference. If I enter the product 
> code, for example GZ-1001, and a new price, then click Confirm, nothing 
> happens. 
> 
> Note that I am trying this on demo.hotwaxmedia.com/webpos. 
> 
> - Original Message - 
> From: "Scott Gray" <[EMAIL PROTECTED]> 
> To: user@ofbiz.apache.org 
> Sent: Wednesday, December 3, 2008 6:37:30 PM (GMT-0700) America/Denver 
> Subject: Re: webpos - how to over ride price? 
> 
> It should work, a quick look at the code says that an item needs to be 
> selected, a new price entered and then modify price pressed. 
> Regards 
> Scott 
> 
> 2008/12/4 Vince M. Clark <[EMAIL PROTECTED]> 
> 
> > I tried going to manager screen and using "Modify Price". Doesn't seem to 
> > do anything. Is there any way to over ride prices on the fly? 
> > 
> 


Re: webpos - how to over ride price?

2008-12-03 Thread Vince M. Clark
Nope. The price field on an item is not editable. If I go to Manager, then 
click on Modify Price I am presented with two fields, SKU and New Price. 
Selecting an item on the order makes no difference. If I enter the product 
code, for example GZ-1001, and a new price, then click Confirm, nothing 
happens. 

Note that I am trying this on demo.hotwaxmedia.com/webpos. 

- Original Message - 
From: "Scott Gray" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Wednesday, December 3, 2008 6:37:30 PM (GMT-0700) America/Denver 
Subject: Re: webpos - how to over ride price? 

It should work, a quick look at the code says that an item needs to be 
selected, a new price entered and then modify price pressed. 
Regards 
Scott 

2008/12/4 Vince M. Clark <[EMAIL PROTECTED]> 

> I tried going to manager screen and using "Modify Price". Doesn't seem to 
> do anything. Is there any way to over ride prices on the fly? 
> 


webpos - how to over ride price?

2008-12-03 Thread Vince M. Clark
I tried going to manager screen and using "Modify Price". Doesn't seem to do 
anything. Is there any way to over ride prices on the fly? 


Problem with stylesheet when I change a webapp to root mount point

2008-11-22 Thread Vince M. Clark
In CommonScreens.xml I have the following line: 
 

I have a custom component in hot-deploy called "hgl" 

When I mount the webapp in ofbiz-component.xml as "/hgl" everything works fine. 
However, when I change it to mount as the URL root I no longer have a webapp 
mounted as "hgl" and the style sheet isn't found. 


Re: OFBiz CMS Tutorial

2008-10-30 Thread Vince M. Clark
If you go to the main OfBiz site: 
http://ofbiz.apache.org/ 
You will find a link on the right to Documentation. 

- Original Message - 
From: "SPEELGOED VOOR KINDEREN / TOYS FOR CHILDREN / JOUETS POUR ENFANTS" 
<[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Thursday, October 30, 2008 9:10:54 AM (GMT-0700) America/Denver 
Subject: Re: OFBiz CMS Tutorial 

Hi, 

What is the URL of the wiki ? 

Heidi 
http://www.olagos.eu 


2008/10/30 Vince M. Clark <[EMAIL PROTECTED]>: 
> There is not such a manual. There are a few pretty detailed threads that you 
> will find if you search Nabble. 
> 
> This is an excellent opportunity for you to contribute to the project. As you 
> go thru CMS document what you discover and add it to the wiki. 
> 
> - Original Message - 
> From: "SPEELGOED VOOR KINDEREN / TOYS FOR CHILDREN / JOUETS POUR ENFANTS" 
> <[EMAIL PROTECTED]> 
> To: user@ofbiz.apache.org 
> Sent: Thursday, October 30, 2008 8:46:25 AM (GMT-0700) America/Denver 
> Subject: Re: OFBiz CMS Tutorial 
> 
> You are right. 
> Me also, i want to see such a user manual because the CMS part into 
> OFBIZ configuration application, is not clear for me at the moment. 
> 
> regards, 
> Heidi 
> 
> 2008/10/30 hbagchi <[EMAIL PROTECTED]>: 
>> 
>> Well, I have already started building applications using OFBiz and found the 
>> info on opensourcestrategies.com pretty useful. Unfortunately, there is no 
>> such tutorial on how to configure OFBiz CMS to build a new website, like how 
>> to add content, add hyperlinks, add images where all these info gets stored 
>> in the OFBiz CMSD database. 
>> 
>> hbagchi 
>> 
>> 
>> 
>> SPEELGOED VOOR KINDEREN / TOYS FOR CHILDREN / JOUETS POUR ENFANTS wrote: 
>>> 
>>> Hi, 
>>> 
>>> You find all documentation on ofbiz.apache.org . 
>>> 
>>> Before you start to create a new website you should learn quite a lot 
>>> of techniques and understand the architecture of the ofbiz. 
>>> From then on it is quite easy to modify the screens and the layout of 
>>> the e-commerce part. 
>>> 
>>> Heidi 
>>> 
>>> 2008/10/30 hbagchi <[EMAIL PROTECTED]>: 
>>>> 
>>>> Is there a tutorial on OFBiz CMS which will provide info on how to create 
>>>> a a 
>>>> new website and add contents to it? 
>>>> 
>>>> Hitesh 
>>>> 
>>>> -- 
>>>> View this message in context: 
>>>> http://www.nabble.com/OFBiz-CMS-Tutorial-tp20245547p20245547.html 
>>>> Sent from the OFBiz - User mailing list archive at Nabble.com. 
>>>> 
>>>> 
>>> 
>>> 
>> 
>> -- 
>> View this message in context: 
>> http://www.nabble.com/OFBiz-CMS-Tutorial-tp20245547p20247940.html 
>> Sent from the OFBiz - User mailing list archive at Nabble.com. 
>> 
>> 
> 


Re: OFBiz CMS Tutorial

2008-10-30 Thread Vince M. Clark
There is not such a manual. There are a few pretty detailed threads that you 
will find if you search Nabble. 

This is an excellent opportunity for you to contribute to the project. As you 
go thru CMS document what you discover and add it to the wiki. 

- Original Message - 
From: "SPEELGOED VOOR KINDEREN / TOYS FOR CHILDREN / JOUETS POUR ENFANTS" 
<[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Thursday, October 30, 2008 8:46:25 AM (GMT-0700) America/Denver 
Subject: Re: OFBiz CMS Tutorial 

You are right. 
Me also, i want to see such a user manual because the CMS part into 
OFBIZ configuration application, is not clear for me at the moment. 

regards, 
Heidi 

2008/10/30 hbagchi <[EMAIL PROTECTED]>: 
> 
> Well, I have already started building applications using OFBiz and found the 
> info on opensourcestrategies.com pretty useful. Unfortunately, there is no 
> such tutorial on how to configure OFBiz CMS to build a new website, like how 
> to add content, add hyperlinks, add images where all these info gets stored 
> in the OFBiz CMSD database. 
> 
> hbagchi 
> 
> 
> 
> SPEELGOED VOOR KINDEREN / TOYS FOR CHILDREN / JOUETS POUR ENFANTS wrote: 
>> 
>> Hi, 
>> 
>> You find all documentation on ofbiz.apache.org . 
>> 
>> Before you start to create a new website you should learn quite a lot 
>> of techniques and understand the architecture of the ofbiz. 
>> From then on it is quite easy to modify the screens and the layout of 
>> the e-commerce part. 
>> 
>> Heidi 
>> 
>> 2008/10/30 hbagchi <[EMAIL PROTECTED]>: 
>>> 
>>> Is there a tutorial on OFBiz CMS which will provide info on how to create 
>>> a a 
>>> new website and add contents to it? 
>>> 
>>> Hitesh 
>>> 
>>> -- 
>>> View this message in context: 
>>> http://www.nabble.com/OFBiz-CMS-Tutorial-tp20245547p20245547.html 
>>> Sent from the OFBiz - User mailing list archive at Nabble.com. 
>>> 
>>> 
>> 
>> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/OFBiz-CMS-Tutorial-tp20245547p20247940.html 
> Sent from the OFBiz - User mailing list archive at Nabble.com. 
> 
> 


Re: Apache OFBiz Committer Available For Work

2008-10-23 Thread Vince M. Clark
Totally appropriate as far as I'm concerned. I will forward your post to anyone 
I know that uses OfBiz contractors from time to time. 

- Original Message - 
From: "Adrian Crum" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org, [EMAIL PROTECTED] 
Sent: Thursday, October 23, 2008 9:06:48 AM (GMT-0700) America/Denver 
Subject: Apache OFBiz Committer Available For Work 

My sincerest apologies to anyone on the lists who might be offended by this 
solicitation. 

My employer - a home manufacturer - has experienced a sharp decline in 
business. As a consequence, I have experienced a sharp decline in income. I 
desperately need additional work. 

I'm available to help with any OFBiz development projects. I work on a flat 
rate basis - tell me what you want done and I will tell you what it will cost. 
I am very reasonable. 

Interested parties can contact me at my Yahoo address - [EMAIL PROTECTED] 

-Adrian 






Re: Advice needed: Integrating an External Webapp with OfBiz Order Application service layer via RMI...

2008-10-16 Thread Vince M. Clark
I would appreciate that very much. Please send to my email address. 

Thanks! 

- Original Message - 
From: "Raj Saini" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Thursday, October 16, 2008 11:41:49 AM (GMT-0700) America/Denver 
Subject: Re: Advice needed: Integrating an External Webapp with OfBiz Order 
Application service layer via RMI... 

Vince, 

This application is not yet in production. However, I can share the test 
system URL with you privately. 

Thanks 

Raj 

Vince M. Clark wrote: 
> Raj - I would love to know more about the Liferay integration. Also would you 
> be willing to share a URL so we can see how it looks? 
> 
> 
> - Original Message - 
> From: "Raj Saini" <[EMAIL PROTECTED]> 
> To: user@ofbiz.apache.org 
> Sent: Thursday, October 16, 2008 4:13:27 AM (GMT-0700) America/Denver 
> Subject: Re: Advice needed: Integrating an External Webapp with OfBiz Order 
> Application service layer via RMI... 
> 
> Hi David, 
> 
> I had the exactly same feeling you have now when I started looking at 
> the OFBiz as e-commerce solution. Immediate thought that came to me why 
> not to have my own store front in the technology of I like for example a 
> JSP, struts etc etc. Looking deep into the system I found it was a 
> unwarranted thought and current framework (widgets, screens, freemarker 
> etc.) are no less than other frameworks. 
> 
> Going back to your question, what exactly you mean by clearly separate 
> store front? To me it looks clearly separate as you can create your own 
> web application and have your e-commerce store front as you want without 
> keeping any thing from the default technologies. 
> 
> If you are looking for network level communication, I think RMI is the 
> way to go if both of the applications are Java based. Recently, I had 
> integrated OFBiz with a Liferay Portal where store front was written as 
> a set of portlets. 
> 
> Thanks, 
> 
> Raj 
> 
> David Legg wrote: 
> 
>> Hi DeAngelo, 
>> 
>> I'm a 'me-too' on this subject. 
>> 
>> It's only in the last week I got round to trying out OfBiz. After the 
>> initial Wow! factor died down I quickly realized that the storefront 
>> looks almost hard-wired to the back-end. In the short time I've been 
>> subscribed to the list I've seen several similar requests for advice 
>> on how to cleanly separate the store front from the backend with no 
>> apparent solution so far. 
>> 
>> 
>>> 2) This app needs an ecommerce solutio. So in this non-ofbiz webapp, a 
>>> user can add a bunch of items to a shopping cart , and click "buy" 
>>> and have 
>>> ofbiz handle the rest. Now, the products may be added to OFBiz using 
>>> one of 
>>> the out-of-the-box applications, but the user should browse the product 
>>> catalog and buy shopping cart items from the external webapp 
>>> 
>> Regards, 
>> David Legg 
>> 
>> 
>> 
> 
> 
> 



Re: Advice needed: Integrating an External Webapp with OfBiz Order Application service layer via RMI...

2008-10-16 Thread Vince M. Clark
Raj - I would love to know more about the Liferay integration. Also would you 
be willing to share a URL so we can see how it looks? 


- Original Message - 
From: "Raj Saini" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Thursday, October 16, 2008 4:13:27 AM (GMT-0700) America/Denver 
Subject: Re: Advice needed: Integrating an External Webapp with OfBiz Order 
Application service layer via RMI... 

Hi David, 

I had the exactly same feeling you have now when I started looking at 
the OFBiz as e-commerce solution. Immediate thought that came to me why 
not to have my own store front in the technology of I like for example a 
JSP, struts etc etc. Looking deep into the system I found it was a 
unwarranted thought and current framework (widgets, screens, freemarker 
etc.) are no less than other frameworks. 

Going back to your question, what exactly you mean by clearly separate 
store front? To me it looks clearly separate as you can create your own 
web application and have your e-commerce store front as you want without 
keeping any thing from the default technologies. 

If you are looking for network level communication, I think RMI is the 
way to go if both of the applications are Java based. Recently, I had 
integrated OFBiz with a Liferay Portal where store front was written as 
a set of portlets. 

Thanks, 

Raj 

David Legg wrote: 
> Hi DeAngelo, 
> 
> I'm a 'me-too' on this subject. 
> 
> It's only in the last week I got round to trying out OfBiz. After the 
> initial Wow! factor died down I quickly realized that the storefront 
> looks almost hard-wired to the back-end. In the short time I've been 
> subscribed to the list I've seen several similar requests for advice 
> on how to cleanly separate the store front from the backend with no 
> apparent solution so far. 
> 
>> 2) This app needs an ecommerce solutio. So in this non-ofbiz webapp, a 
>> user can add a bunch of items to a shopping cart , and click "buy" 
>> and have 
>> ofbiz handle the rest. Now, the products may be added to OFBiz using 
>> one of 
>> the out-of-the-box applications, but the user should browse the product 
>> catalog and buy shopping cart items from the external webapp 
> 
> Regards, 
> David Legg 
> 
> 



mod_ajp proxy and ssl

2008-09-01 Thread Vince M. Clark
Following the documentation on the wiki I was able to get this working. 
http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-HTTPD
 

It works for http. How do I set it up for https? 
Here is my Apache virtual host file: 
 
DocumentRoot "/var/www/company" 
ProxyPreserveHost On 
proxyPass / ajp://localhost:8009/ 
RewriteEngine On RewriteRule ^/(images/.+);jsessionid=\w+$ /$1 
 



Re: FYI marketing ofbiz

2008-08-30 Thread Vince M. Clark
Do you market OfBiz as a desktop app with the default web UI or have you 
written something custom. The UI is often the biggest challenge in selling 
OfBiz. 

- Original Message - 
From: "BJ Freeman" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Saturday, August 30, 2008 10:09:32 AM (GMT-0700) America/Denver 
Subject: FYI marketing ofbiz 


I found if I market ofbiz back-end as a desktop app, with limited 
functions, I am getting a lot of interests. 
Of course their curiosity, then want to do more, as they learn all that 
ofbiz does. 
this also allows the mom and pops, to use ofbiz as they grow they add 
more functions. most already have a ecomerce webstie. 

As a side note, there are those, that use it in Server mode, that want 
to have a local backup, so use the sync to keep an image on the desktop 
of the Server Data. 





Re: POS sync ofbiz

2008-08-29 Thread Vince M. Clark
Please read: 
http://docs.ofbiz.org/display/OFBIZ/Sync+Setup+Notes+and+Example 

- Original Message - 
From: "Pal InfoCom Technologies" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Friday, August 29, 2008 8:55:13 AM (GMT-0700) America/Denver 
Subject: POS sync ofbiz 


I am facing the problem in POS syncing with the MCS database. 
I am running POS in windown XP and run ofbiz on another linux PC with 
different database. 


How can we set the RMIIF variable. 
I am trying to make syncing directly from MCS to POS exclude PSS. 
I am not using PSS . 

serviceengine.xml 

 
 

http://www.w3.org/2001/XMLSchema-instance"; 

xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/service-config.xsd";>
 

 
 
 

 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
http://192.168.11.201:8080/webtools/control/httpService"/> 

 
http://192.168.11.201:8080/webtools/control/httpService"/> 

 
http://192.168.11.201:8080/webtools/control/httpService"/> 

 

 
 

 
 
 
 



The PosSyncSetting.xml 



 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


 
 
 
 

 
 
 
 

 
 

 
 
 
 
 
 
 

 



Please provide us correct information if we are missing any step in store 
setup. 
How can we connect the POS store to the central server databse . I am 
difining it only in one file serviveengine.xml. 
How can we connect the databse of the store to the central server. 



Thanks, 
varun mittal 




-- 
View this message in context: 
http://www.nabble.com/POS-sync-ofbiz-tp19221474p19221474.html 
Sent from the OFBiz - User mailing list archive at Nabble.com. 



Re: General Hello + Content Manager

2008-08-28 Thread Vince M. Clark
BJ - Can you point me in the direction of any info related to the CMS rework 
you mentioned. I spent quite a bit of time learning CMS last year and would 
like to come up to speed on what will be changing. 

- Original Message - 
From: "BJ Freeman" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Thursday, August 28, 2008 9:38:59 AM (GMT-0700) America/Denver 
Subject: Re: General Hello + Content Manager 

a lot of links have been given in the mailing list to very good 
documentation. 
both from an end user and development perspective. 

here is one point you may have missed since it rather obscure. 
ofbiz is the Framework folder. 
Applications have been added using the datamodel books as a guide. 
There are other Application those books that have not be implemented yet. 
However you can take the Framework and build your own applications, 
and not use the current applications. 
using the hot-deploy is one way to add to ofbiz. 
using a folder is another. 

If you do use the applications in ofbiz you can enter the security info 
thru the webtools, similar to the seed and demo data that gets loaded with 
ant run-install 
I suggest you go here and see if you missed any information. 
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Documentation+Index 

Note: CMS is going through a re-work. 


madppiper sent the following on 8/28/2008 5:42 AM: 
> A warm and greatfully overdue "Aloha" @all fellow-developers ;) 
> 
> I've been scrwaling these forums for weeks and been reading up on OFBiz so 
> that I'm finally feeling well-prepared for a first hello. I myself am a 
> developer from Germany who has been working various on eCommerce platforms 
> for quite some time now. (I actually developed a slick new one from scratch 
> myself: www.bazaaria.com - but that's a different story). I am currently in 
> the midst of developing an online-commerce platform for a company and while 
> reading up on all the ones available, fell in love with OFBiz. So I pushed 
> the idea of builing it all around this neat package and got everybody 
> onboard. 
> 
> The only downside so far is that I am having a hard time reading up on the 
> details. I know that there are some well-written tutorials, but those are 
> scattered around the web, so I can't really find the right place to start. I 
> already got everything setup and am now trying to get a hang out of the 
> actual system. To be honest, I am still having dificulties getting 
> everything together, so perhaps there is somebody out there, who could hint 
> me to a solution? 
> 
> As far as I understood it, everything starts with a new package in the 
> hot-deploy folder. From there I can create and edit my new platform, 
> correct? Now, what I'm still not getting is, where the CMS and most 
> difficulty of all PartyManager comes into play. If I am really adding 
> everything by hand in form of XML-Screens in that hot-deploy folder, then 
> what would I need the cms/partymanager for? 
> 
> Is there a documentation available that gives me further insight into that 
> matter? 
> 
> 
> 



Re: Ofbiz usage in trucking companies?

2008-08-15 Thread Vince M. Clark
Kevin 

Glad to see you are considering OfBiz for your project. 

I have done quite a bit of work with open source ERP systems in transportation 
companies, both air and ground. I would be happy to talk about your needs and 
how they might be solved using OfBiz. 

Please email me directly with some times that work for you next week. 

- Original Message - 
From: "Kevin M. Myer" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Friday, August 15, 2008 12:49:02 PM (GMT-0700) America/Denver 
Subject: Ofbiz usage in trucking companies? 

Hello, 

I tested Ofbiz about a year ago, and liked what I saw, from the 
perspective that it's open-source, is built upon a well thought out 
data model, and has the potential to be extended as needed. For our 
business units, we could be viewed as a manufacturer, sales/service 
for the construction industry, and we maintain our own trucking fleet. 
Ofbiz could handle the first two areas, but from what I can see, the 
shipping portions are geared towards using a third-party for shipping. 
Hence, once the order is shipped, the third-party probably has some 
sort of logistics software to handle their portion of the process. 

Since we are the third-party shipper in many cases, I'd be interested 
in hearing about any transport companies that might be using Ofbiz for 
their business. In the absence of any such companies, I'd be 
interested in opinions on the scope of work needed to add some of this 
functionality. A bare minimum set of feature requirements would be to 
have the ability to extend the current sales order workflow to include 
an enhanced shipping module, where routes, bills of lading, etc. could 
all be set or generated, and where constraints, like product weights, 
could be utilized in putting together truck loads. 

I seem to recall a list discussion last year about someone who was 
looking at using Ofbiz for a trucking company, but my memory could be 
faulty, or that research may have never come to fruition. 

Thoughts? 

Thanks, 
Kevin 


Re: Sub-ledgers in Ofbiz ?

2008-08-12 Thread Vince M. Clark
I'm not an accountant but here are my comments. 

The only time I have seen systems actually "double post" is in multi-currency 
situations where transactions are conducted in one currency and reporting needs 
to be in two or more. At the time of transaction the currency conversion takes 
place and the transaction is posted in both currencies. 

Otherwise the concept of a sub-ledger as I understand it is just a subset of 
the GL. Older systems and paper based systems actually maintain separate 
ledgers for different kinds of transactions (AR, AP, etc.) and then 
periodically post summary entries to a GL. 

In OfBiz if you want to see a sub-ledger just run a report that is restricted 
to the kinds of transactions you want to see, such as AR Invoices. 


- Original Message - 
From: "David E Jones" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Tuesday, August 12, 2008 2:18:50 AM (GMT-0700) America/Denver 
Subject: Re: Sub-ledgers in Ofbiz ? 


On Aug 11, 2008, at 1:59 PM, kunal aggarwal wrote: 

> Hi BJ, 
> I have done posting in GL accounts through this child parent 
> relationship 
> but by sub-ledger I mean that one among following should work : 
> 1. two corresponding postings to two GL accounts i.e. one child and 
> its 
> parent. 

This leads to redundant data and is discouraged in general with OFBiz 
data modeling designs. 

> 2. or I should have an summing effect of childs to parent. 

This is how the GL account rollups work in OFBiz. Each account has its 
own total for its own transaction entries, and a grand total that 
includes the totals of all child accounts. 

> To my knowledge both does not happen presently. Please suggest 
> something. 

Where have you seen #2 not happening? That should be supported in 
screens, reports, summary total on-the-fly updating, etc. 

-David 




Re: Problems while PUSH and PULL entity sync process in POS

2008-08-10 Thread Vince M. Clark
Looks fantastic. Thanks. 

- Original Message - 
From: "Jacques Le Roux" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Saturday, August 9, 2008 11:08:21 AM (GMT-0700) America/Denver 
Subject: Re: Problems while PUSH and PULL entity sync process in POS 

I fomatted your work according to Wiki Style. Please could you check it's ok ? 

Thanks for that ! 

Jacques 

From: "Vince M. Clark" <[EMAIL PROTECTED]> 
> Added to wiki with some additional notes for clarity: 
> http://docs.ofbiz.org/display/OFBIZ/Sync+Setup+Notes+and+Example 
> 
> - Original Message - 
> From: "Vince M. Clark" <[EMAIL PROTECTED]> 
> To: user@ofbiz.apache.org, "Jacques Le Roux" <[EMAIL PROTECTED]> 
> Sent: Thursday, August 7, 2008 10:47:57 AM (GMT-0700) America/Denver 
> Subject: Re: Problems while PUSH and PULL entity sync process in POS 
> 
> We could put it on the wiki and just refer to the URL in PosSyncSettings.xml. 
> 
> - Original Message - 
> From: "Jacques Le Roux" <[EMAIL PROTECTED]> 
> To: user@ofbiz.apache.org 
> Sent: Thursday, August 7, 2008 11:21:21 AM (GMT-0700) America/Denver 
> Subject: Re: Problems while PUSH and PULL entity sync process in POS 
> 
> I had no time to review completly yet; but I even wonder if we should not put 
> it in trunk. 
> I will review and let you know. Anyway as a page in Wiki will be good 
> 
> Jacques 
> 
> From: "Jacques Le Roux" <[EMAIL PROTECTED]> 
>> Vince, 
>> 
>> Please put in a new page under the POS page 
>> http://docs.ofbiz.org/display/OFBIZ/POS+System 
>> 
>> Thanks 
>> 
>> Jacques 
>> 
>> From: "Vince M. Clark" <[EMAIL PROTECTED]> 
>>> Sure. Any suggestion on where I should put it? 
>>> 
>>> - Original Message - 
>>> From: "BJ Freeman" <[EMAIL PROTECTED]> 
>>> To: user@ofbiz.apache.org 
>>> Sent: Thursday, August 7, 2008 10:09:06 AM (GMT-0700) America/Denver 
>>> Subject: Re: Problems while PUSH and PULL entity sync process in POS 
>>> 
>>> Vince could you put this in the wiki 
>>> TIA. 
>>> 
>>> 
>>> Vince M. Clark sent the following on 8/7/2008 6:27 AM: 
>>>> Ajey 
>>>> 
>>>> Not sure if it matters but in the serviceengine.xml file I only change the 
>>>> enity-sync-rmi, not the others. 
>>>> 
>>>> Below is a PosSyncSettings.xml file that includes fairly detailed notes on 
>>>> what to load where (POS vs. MCS) and in what order. 
>>>> Hope it helps. When I modified this file it was the same approach you are 
>>>> taking, a POS terminal and MCS with no per store 
>>>> servers. So it should be exactly what you are trying to do. 
>>>> 
>>>> I would also suggest that as you are going thru the learning process use a 
>>>> dev environment that you can wipe clean and start 
>>>> over many times if necessary. You will need to get used to how 
>>>> synchronization is triggered and it helps if you can clean out 
>>>> the sync settings on all machines (POS, PSS, MCS) and start over. 
>>>> 
>>>>  
>>>>  
>>>>  
>>>> 
>>>>  
>>>>  
>>>>  
>>>> >>> entityOrPackage="org.ofbiz.entity.group" applEnumId="ESIA_INCLUDE"/> 
>>>>  
>>>> >>> entityOrPackage="org.ofbiz.product.product" applEnumId="ESIA_INCLUDE"/> 
>>>> >>> entityOrPackage="org.ofbiz.product.price" applEnumId="ESIA_INCLUDE"/> 
>>>> >>> entityOrPackage="org.ofbiz.product.promo" applEnumId="ESIA_INCLUDE"/> 
>>>>  
>>>> >>> entityOrPackage="org.ofbiz.product.category" applEnumId="ESIA_INCLUDE"/> 
>>>>  
>>>> >>> entityOrPackage="org.ofbiz.party.party" applEnumId="ESIA_INCLUDE"/> 
>>>> >>> entityOrPackage="org.ofbiz.pos.PosTerminal" applEnumId="ESIA_INCLUDE"/> 
>>>> >>> entityOrPackage="org.ofbiz.product.storage" applEnumId="ESIA_INCLUDE"/> 
>>>> >>> entityOrPackage="org.ofbiz.product.store" applEnumId="ESIA_INCLUDE"/> 
>>>> >>> entityOrPackage="org.ofbiz.accounting.tax" applEnumId="ESIA_INCLUDE"/> 
>>>> >>> entityOrPackage

Re: Problems while PUSH and PULL entity sync process in POS

2008-08-09 Thread Vince M. Clark
How long did it try to sync before getting the error? Was it immediate or after 
a long time? I've had issues with initial synchronizations taking a long time, 
especially as the database gets larger. 

I have not run into this specific error. 

- Original Message - 
From: "Ajey.bitin" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Friday, August 8, 2008 11:28:42 PM (GMT-0700) America/Denver 
Subject: Re: Problems while PUSH and PULL entity sync process in POS 


Hi Vince, 

just now I was trying with all these settings. I got a long error concerned 
with RMI when I tried to synchronize the Central Server with the following 
setting in serviceengine.xml of POS Terminals: 
 

Let me know if have also faced this during your early setups. 

The exceptions are: 

 exception report 
-- 
Service [remoteStoreEntitySyncDataRmi] threw an unexpected exception/error 
Exception: org.ofbiz.service.GenericServiceException 
Message: RMI Error (error during JRMP connection establishment; nested 
exception is: 
java.io.EOFException) 
 stack trace 
--- 
org.ofbiz.service.GenericServiceException: RMI Error (error during JRMP 
connection establishment; nested exception is: 
java.io.EOFException) 
org.ofbiz.service.rmi.RmiServiceEngine.run(RmiServiceEngine.java:58) 
org.ofbiz.service.rmi.RmiServiceEngine.runSync(RmiServiceEngine.java:41) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:336) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211) 
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136) 
org.ofbiz.entityext.synchronization.EntitySyncContext.runPushSendData(EntitySyncContext.java:1011)
 
org.ofbiz.entityext.synchronization.EntitySyncServices.runEntitySync(EntitySyncServices.java:105)
 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
java.lang.reflect.Method.invoke(Unknown Source) 
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91)
 
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:336) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211) 
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136) 
org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70) 
org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:221) 
java.lang.Thread.run(Unknown Source) 
java.rmi.ConnectIOException: error during JRMP connection establishment; 
nested exception is: 
java.io.EOFException 
sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source) 
sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source) 
sun.rmi.server.UnicastRef.newCall(Unknown Source) 
sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) 
java.rmi.Naming.lookup(Unknown Source) 
org.ofbiz.service.rmi.RmiServiceEngine.run(RmiServiceEngine.java:52) 
org.ofbiz.service.rmi.RmiServiceEngine.runSync(RmiServiceEngine.java:41) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:336) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211) 
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136) 
org.ofbiz.entityext.synchronization.EntitySyncContext.runPushSendData(EntitySyncContext.java:1011)
 
org.ofbiz.entityext.synchronization.EntitySyncServices.runEntitySync(EntitySyncServices.java:105)
 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
java.lang.reflect.Method.invoke(Unknown Source) 
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91)
 
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:336) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211) 
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136) 
org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70) 
org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:221) 
java.lang.Thread.run(Unknown Source) 
Caused by: java.io.EOFException 
java.io.DataInputStream.readByte(Unknown Source) 
... 24 more 

 

2008-07-09 10:49:54,218 (default-invoker-Thread-8) [ 
TransactionUtil.java:292:INFO ] [TransactionUtil.setRollbackOnly] 
transaction rollback only not set, status is STATUS_NO_TRANSACTION 
2008-07-09 10:49:54,359 (default-invoker-Thread-8) 
[GeneralServiceException.java:62 :ERROR] 
 exception report 
-- 
E

Re: Problems while PUSH and PULL entity sync process in POS

2008-08-08 Thread Vince M. Clark
1. Please see notes on documentation wiki. 
http://docs.ofbiz.org/display/OFBIZ/Sync+Setup+Notes+and+Example 
It clearly states what gets loaded where (POS vs. MCS) and why. 

2. This is one thing I left out of my notes that is very important. You must 
create a pos terminal record in the MCS database before starting your pos 
terminal and attempting to sync. The entity is PosTerminal and the easiest way 
to add the record is thru webtools. I will update the wiki page. 

3. Yes. Again please refer to notes on wiki page. If it is unclear just try it 
and you will see. 

4. I don't do windows so I'm not familiar with how to add it to the .bat file. 
Syntax is different on windows for adding env. variables in batch files. I 
think you have to use the word "set" in front of it. You could just add the 
environment variable to your system. 

5. Adding the terminals to PosTerminal on MCS and EntitySync records for each 
terminal is the only "awareness" MCS has to the terminals. This was one area of 
confusion for me when going thru this learning curve. You must trust that it is 
the job of the POS terminal to communicate with the server, not the other way 
around. The direction of the sync (PUSH or PULL) doesn't matter. The POS 
terminal initiates all synchronizations. 

- Original Message - 
From: "Ajey.bitin" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Friday, August 8, 2008 4:00:43 AM (GMT-0700) America/Denver 
Subject: Re: Problems while PUSH and PULL entity sync process in POS 


Hi Vince, 

Your documentation is really helpful a lot. With the help I got able to 
resolve some previous configuration mistakes. Thanks. As per your given 
PosSyncSettings.xml, I'm trying to configure the PUSH and PULL settings. I'm 
having some confusions. 

1. The entitygroup 5501 (PULL) and 5506 (PUSH) will be loaded on both POS 
Terminals and MCS or we have to load 5501 (PULL) on MCS and 5506 (PUSH) on 
POS Terminal? 

2. Where we can spacify the POS Terminal ID, as I know, in demoretail.xml 
the POS Terminal ID is defined, that is the place where we have to define or 
some where else? 

3. EntitySync (PULL) record will be loaded on MCS and EntitySync (PUSH) 
record on POS Terminal? 

4. RMIIF variable is available in startofbiz.sh but not in startofbiz.bat, 
how I can set this variable in startofbiz.bat, should I simply copy and 
paste that line? 

5. As per your PosSyncSettings.xml, how the MCS will be aware of all the POS 
Terminals attached, is there any place for definition? The way I understood 
to configure is correct or not? The PULL setting on MCS are as follows in my 
MCS: 

 
 

 
 

 
 
 
 
 
 
 
=
 

I know, I'm asking too many questions, but this of your file has helped me a 
lot and I think I'll be able to set it up well with your great help. 

Regards, 

Ajey 
-- 
View this message in context: 
http://www.nabble.com/Problems-while-PUSH-and-PULL-entity-sync-process-in-POS-tp16801589p18889161.html
 
Sent from the OFBiz - User mailing list archive at Nabble.com. 



Re: Does latest trunk require Java 1.6?

2008-08-08 Thread Vince M. Clark
I went back and looked at the postgres driver again and sure enough there is a 
difference. I was using a driver labeled JDBC4, which only works with jdk 1.6. 
I switched back to a jdbc3 driver and jdk 1.5 is working now. 

- Original Message - 
From: "Jacques Le Roux" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Friday, August 8, 2008 5:43:57 AM (GMT-0700) America/Denver 
Subject: Re: Does latest trunk require Java 1.6? 

I confirm it runs here with Sun jdk 1.5 (On Windows XpSp2 ands Ubuntu 8.04 LTW) 

Jacques 

From: "Ray" <[EMAIL PROTECTED]> 
> You could have extra class files cached from previous runs. Certainly 
> doesn't look like a postgres jar file problem specifically. 
> 
> Catalina is the favourite for temporary class files so possibly try this 
> first: 
> ant clean-catalina 
> and if you browse through the build.xml file you'll find a few others 
> that get run when using: 
> ant clean-all 
> Be WARNED though "clean-all" is a little more aggressive in that it 
> clears the derby database folder along with lots of other runtime files. 
> Really puts you back to a clean checkout so make sure you've got your 
> data backed up if required, although it won't delete your postgres data :-) 
> 
> Ray 
> 
> 
> Vince M. Clark wrote: 
>> I don't see anything on Postgres jdbc downloads that would make any 
>> difference. The latest driver just says it requires Java 1.4 
>> or later. 
>> - Original Message - 
>> From: "BJ Freeman" <[EMAIL PROTECTED]> 
>> To: user@ofbiz.apache.org 
>> Sent: Thursday, August 7, 2008 5:11:25 PM (GMT-0700) America/Denver 
>> Subject: Re: Does latest trunk require Java 1.6? 
>> 
>> sorry did not see the bottom 
>> did you do a 
>> ant clean 
>> and 
>> then 
>> ant run-install 
>> 
>> Vince M. Clark sent the following on 8/7/2008 2:57 PM: 
>>> Surely this is not the case. But I am trying to start OfBiz using 1.5 and 
>>> getting the following: 
>>> 
>>> 2008-08-07 16:37:22,529 (main) [ GenericDelegator.java:217:INFO ] Delegator 
>>> "default" initializing helper "localpostgres" for 
>>> entity group "org.ofbiz". 
>>> 2008-08-07 16:37:22,538 (main) [ GenericDelegator.java:234:INFO ] Doing 
>>> database check as requested in entityengine.xml with 
>>> addMissing=true 
>>> Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad 
>>> version number in .class file 
>>> at java.lang.ClassLoader.defineClass1(Native Method) 
>>> at java.lang.ClassLoader.defineClass(ClassLoader.java:620) 
>>> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) 
>>> 
>>> 
>>> I was running Java 6 on Ubuntu but it was causing Eclipse fits and crashing 
>>> all the time. So I removed Java 6 and reinstalled 5. 
>>> Now I can't get OfBiz to start. I can build with no errors, but when I try 
>>> to start it gives me the above error. 
>>> 
>> 
>> 
> 



Re: Does latest trunk require Java 1.6?

2008-08-07 Thread Vince M. Clark
I don't see anything on Postgres jdbc downloads that would make any difference. 
The latest driver just says it requires Java 1.4 or later. 
- Original Message - 
From: "BJ Freeman" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Thursday, August 7, 2008 5:11:25 PM (GMT-0700) America/Denver 
Subject: Re: Does latest trunk require Java 1.6? 

sorry did not see the bottom 
did you do a 
ant clean 
and 
then 
ant run-install 

Vince M. Clark sent the following on 8/7/2008 2:57 PM: 
> Surely this is not the case. But I am trying to start OfBiz using 1.5 and 
> getting the following: 
> 
> 2008-08-07 16:37:22,529 (main) [ GenericDelegator.java:217:INFO ] Delegator 
> "default" initializing helper "localpostgres" for entity group "org.ofbiz". 
> 2008-08-07 16:37:22,538 (main) [ GenericDelegator.java:234:INFO ] Doing 
> database check as requested in entityengine.xml with addMissing=true 
> Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad 
> version number in .class file 
> at java.lang.ClassLoader.defineClass1(Native Method) 
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620) 
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) 
> 
> 
> I was running Java 6 on Ubuntu but it was causing Eclipse fits and crashing 
> all the time. So I removed Java 6 and reinstalled 5. Now I can't get OfBiz to 
> start. I can build with no errors, but when I try to start it gives me the 
> above error. 
> 



Re: Does latest trunk require Java 1.6?

2008-08-07 Thread Vince M. Clark
yes I did ant clean. Even downloaded a new checkout from trunk after getting 
rid of Java 6. 

I think the postgres jar file is the more likely culprit. But I don't recall 
downloading a postgres jar file specific to Java 6. Going to look at postgres 
downloads now. 

- Original Message - 
From: "BJ Freeman" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Thursday, August 7, 2008 5:11:25 PM (GMT-0700) America/Denver 
Subject: Re: Does latest trunk require Java 1.6? 

sorry did not see the bottom 
did you do a 
ant clean 
and 
then 
ant run-install 

Vince M. Clark sent the following on 8/7/2008 2:57 PM: 
> Surely this is not the case. But I am trying to start OfBiz using 1.5 and 
> getting the following: 
> 
> 2008-08-07 16:37:22,529 (main) [ GenericDelegator.java:217:INFO ] Delegator 
> "default" initializing helper "localpostgres" for entity group "org.ofbiz". 
> 2008-08-07 16:37:22,538 (main) [ GenericDelegator.java:234:INFO ] Doing 
> database check as requested in entityengine.xml with addMissing=true 
> Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad 
> version number in .class file 
> at java.lang.ClassLoader.defineClass1(Native Method) 
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620) 
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) 
> 
> 
> I was running Java 6 on Ubuntu but it was causing Eclipse fits and crashing 
> all the time. So I removed Java 6 and reinstalled 5. Now I can't get OfBiz to 
> start. I can build with no errors, but when I try to start it gives me the 
> above error. 
> 



Does latest trunk require Java 1.6?

2008-08-07 Thread Vince M. Clark
Surely this is not the case. But I am trying to start OfBiz using 1.5 and 
getting the following: 

2008-08-07 16:37:22,529 (main) [ GenericDelegator.java:217:INFO ] Delegator 
"default" initializing helper "localpostgres" for entity group "org.ofbiz". 
2008-08-07 16:37:22,538 (main) [ GenericDelegator.java:234:INFO ] Doing 
database check as requested in entityengine.xml with addMissing=true 
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version 
number in .class file 
at java.lang.ClassLoader.defineClass1(Native Method) 
at java.lang.ClassLoader.defineClass(ClassLoader.java:620) 
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) 


I was running Java 6 on Ubuntu but it was causing Eclipse fits and crashing all 
the time. So I removed Java 6 and reinstalled 5. Now I can't get OfBiz to 
start. I can build with no errors, but when I try to start it gives me the 
above error. 


Re: Problems while PUSH and PULL entity sync process in POS

2008-08-07 Thread Vince M. Clark
Added to wiki with some additional notes for clarity: 
http://docs.ofbiz.org/display/OFBIZ/Sync+Setup+Notes+and+Example 

- Original Message - 
From: "Vince M. Clark" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org, "Jacques Le Roux" <[EMAIL PROTECTED]> 
Sent: Thursday, August 7, 2008 10:47:57 AM (GMT-0700) America/Denver 
Subject: Re: Problems while PUSH and PULL entity sync process in POS 

We could put it on the wiki and just refer to the URL in PosSyncSettings.xml. 

- Original Message - 
From: "Jacques Le Roux" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Thursday, August 7, 2008 11:21:21 AM (GMT-0700) America/Denver 
Subject: Re: Problems while PUSH and PULL entity sync process in POS 

I had no time to review completly yet; but I even wonder if we should not put 
it in trunk. 
I will review and let you know. Anyway as a page in Wiki will be good 

Jacques 

From: "Jacques Le Roux" <[EMAIL PROTECTED]> 
> Vince, 
> 
> Please put in a new page under the POS page 
> http://docs.ofbiz.org/display/OFBIZ/POS+System 
> 
> Thanks 
> 
> Jacques 
> 
> From: "Vince M. Clark" <[EMAIL PROTECTED]> 
>> Sure. Any suggestion on where I should put it? 
>> 
>> - Original Message - 
>> From: "BJ Freeman" <[EMAIL PROTECTED]> 
>> To: user@ofbiz.apache.org 
>> Sent: Thursday, August 7, 2008 10:09:06 AM (GMT-0700) America/Denver 
>> Subject: Re: Problems while PUSH and PULL entity sync process in POS 
>> 
>> Vince could you put this in the wiki 
>> TIA. 
>> 
>> 
>> Vince M. Clark sent the following on 8/7/2008 6:27 AM: 
>>> Ajey 
>>> 
>>> Not sure if it matters but in the serviceengine.xml file I only change the 
>>> enity-sync-rmi, not the others. 
>>> 
>>> Below is a PosSyncSettings.xml file that includes fairly detailed notes on 
>>> what to load where (POS vs. MCS) and in what order. 
>>> Hope it helps. When I modified this file it was the same approach you are 
>>> taking, a POS terminal and MCS with no per store 
>>> servers. So it should be exactly what you are trying to do. 
>>> 
>>> I would also suggest that as you are going thru the learning process use a 
>>> dev environment that you can wipe clean and start 
>>> over many times if necessary. You will need to get used to how 
>>> synchronization is triggered and it helps if you can clean out 
>>> the sync settings on all machines (POS, PSS, MCS) and start over. 
>>> 
>>>  
>>>  
>>>  
>>> 
>>>  
>>>  
>>>  
>>> >> entityOrPackage="org.ofbiz.entity.group" applEnumId="ESIA_INCLUDE"/> 
>>>  
>>> >> entityOrPackage="org.ofbiz.product.product" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.product.price" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.product.promo" applEnumId="ESIA_INCLUDE"/> 
>>>  
>>> >> entityOrPackage="org.ofbiz.product.category" applEnumId="ESIA_INCLUDE"/> 
>>>  
>>> >> entityOrPackage="org.ofbiz.party.party" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.pos.PosTerminal" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.product.storage" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.product.store" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.accounting.tax" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.security.login" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.security.securitygroup" 
>>> applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.party.contact" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.product.inventory" applEnumId="ESIA_INCLUDE"/> 
>>> 
>>>  
>>>  
>>>  
>>> >> entityOrPackage="org.ofbiz.party.party" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.party.contact" applEnumId="ESIA_INCLUDE"/> 
>>>  
>>> >> applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.accounting.invo

Re: Problems while PUSH and PULL entity sync process in POS

2008-08-07 Thread Vince M. Clark
We could put it on the wiki and just refer to the URL in PosSyncSettings.xml. 

- Original Message - 
From: "Jacques Le Roux" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Thursday, August 7, 2008 11:21:21 AM (GMT-0700) America/Denver 
Subject: Re: Problems while PUSH and PULL entity sync process in POS 

I had no time to review completly yet; but I even wonder if we should not put 
it in trunk. 
I will review and let you know. Anyway as a page in Wiki will be good 

Jacques 

From: "Jacques Le Roux" <[EMAIL PROTECTED]> 
> Vince, 
> 
> Please put in a new page under the POS page 
> http://docs.ofbiz.org/display/OFBIZ/POS+System 
> 
> Thanks 
> 
> Jacques 
> 
> From: "Vince M. Clark" <[EMAIL PROTECTED]> 
>> Sure. Any suggestion on where I should put it? 
>> 
>> - Original Message - 
>> From: "BJ Freeman" <[EMAIL PROTECTED]> 
>> To: user@ofbiz.apache.org 
>> Sent: Thursday, August 7, 2008 10:09:06 AM (GMT-0700) America/Denver 
>> Subject: Re: Problems while PUSH and PULL entity sync process in POS 
>> 
>> Vince could you put this in the wiki 
>> TIA. 
>> 
>> 
>> Vince M. Clark sent the following on 8/7/2008 6:27 AM: 
>>> Ajey 
>>> 
>>> Not sure if it matters but in the serviceengine.xml file I only change the 
>>> enity-sync-rmi, not the others. 
>>> 
>>> Below is a PosSyncSettings.xml file that includes fairly detailed notes on 
>>> what to load where (POS vs. MCS) and in what order. 
>>> Hope it helps. When I modified this file it was the same approach you are 
>>> taking, a POS terminal and MCS with no per store 
>>> servers. So it should be exactly what you are trying to do. 
>>> 
>>> I would also suggest that as you are going thru the learning process use a 
>>> dev environment that you can wipe clean and start 
>>> over many times if necessary. You will need to get used to how 
>>> synchronization is triggered and it helps if you can clean out 
>>> the sync settings on all machines (POS, PSS, MCS) and start over. 
>>> 
>>>  
>>>  
>>>  
>>> 
>>>  
>>>  
>>>  
>>> >> entityOrPackage="org.ofbiz.entity.group" applEnumId="ESIA_INCLUDE"/> 
>>>  
>>> >> entityOrPackage="org.ofbiz.product.product" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.product.price" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.product.promo" applEnumId="ESIA_INCLUDE"/> 
>>>  
>>> >> entityOrPackage="org.ofbiz.product.category" applEnumId="ESIA_INCLUDE"/> 
>>>  
>>> >> entityOrPackage="org.ofbiz.party.party" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.pos.PosTerminal" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.product.storage" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.product.store" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.accounting.tax" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.security.login" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.security.securitygroup" 
>>> applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.party.contact" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.product.inventory" applEnumId="ESIA_INCLUDE"/> 
>>> 
>>>  
>>>  
>>>  
>>> >> entityOrPackage="org.ofbiz.party.party" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.party.contact" applEnumId="ESIA_INCLUDE"/> 
>>>  
>>> >> applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.accounting.invoice" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.accounting.payment" applEnumId="ESIA_INCLUDE"/> 
>>>  
>>> >> entityOrPackage="org.ofbiz.shipment.issuance" applEnumId="ESIA_INCLUDE"/> 
>>> >> entityOrPackage="org.ofbiz.product.inventory" applEnumId="ESIA_INCLUDE"/> 
>>>

Re: Problems while PUSH and PULL entity sync process in POS

2008-08-07 Thread Vince M. Clark
Sure. Any suggestion on where I should put it? 

- Original Message - 
From: "BJ Freeman" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Thursday, August 7, 2008 10:09:06 AM (GMT-0700) America/Denver 
Subject: Re: Problems while PUSH and PULL entity sync process in POS 

Vince could you put this in the wiki 
TIA. 


Vince M. Clark sent the following on 8/7/2008 6:27 AM: 
> Ajey 
> 
> Not sure if it matters but in the serviceengine.xml file I only change the 
> enity-sync-rmi, not the others. 
> 
> Below is a PosSyncSettings.xml file that includes fairly detailed notes on 
> what to load where (POS vs. MCS) and in what order. Hope it helps. When I 
> modified this file it was the same approach you are taking, a POS terminal 
> and MCS with no per store servers. So it should be exactly what you are 
> trying to do. 
> 
> I would also suggest that as you are going thru the learning process use a 
> dev environment that you can wipe clean and start over many times if 
> necessary. You will need to get used to how synchronization is triggered and 
> it helps if you can clean out the sync settings on all machines (POS, PSS, 
> MCS) and start over. 
> 
>  
>  
>  
> 
>  
>  
>  
>  entityOrPackage="org.ofbiz.entity.group" applEnumId="ESIA_INCLUDE"/> 
>  
>  entityOrPackage="org.ofbiz.product.product" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.product.price" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.product.promo" applEnumId="ESIA_INCLUDE"/> 
>  
>  entityOrPackage="org.ofbiz.product.category" applEnumId="ESIA_INCLUDE"/> 
>  
>  entityOrPackage="org.ofbiz.party.party" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.pos.PosTerminal" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.product.storage" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.product.store" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.accounting.tax" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.security.login" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.security.securitygroup" 
> applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.party.contact" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.product.inventory" applEnumId="ESIA_INCLUDE"/> 
> 
>  
>  
>  
>  entityOrPackage="org.ofbiz.party.party" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.party.contact" applEnumId="ESIA_INCLUDE"/> 
>  
>  applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.accounting.invoice" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.accounting.payment" applEnumId="ESIA_INCLUDE"/> 
>  
>  entityOrPackage="org.ofbiz.shipment.issuance" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.product.inventory" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.pos.PosTerminalLog" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.pos.PosTerminalState" applEnumId="ESIA_INCLUDE"/> 
>  
>  entityOrPackage="org.ofbiz.pos.PosTerminalInternTx" 
> applEnumId="ESIA_INCLUDE"/> 
> 
> 
>  
>  
>  syncSplitMillis="60" targetServiceName="remoteStoreEntitySyncDataRmi" 
> keepRemoveInfoHours="24" forPushOnly="Y"/> 
>  
> 
>  
>  
>  syncSplitMillis="60" 
> keepRemoveInfoHours="24" forPullOnly="Y"/> 
>  entityGroupId="5501"/> 
> 
>  
>  
> 
>  
>  frequency="HOURLY" intervalNumber="2" countNumber="-1"/> 
>  
>  
>  
>  
>  runtimeDataId="POSPULL" runTime="2000-01-01 00:00:00.000" 
> serviceName="runPullEntitySync" poolId="pool" runAsUser="system" 
> recurrenceInfoId="POSPULL"/> 
> 
>  
> 
> 
> - Original Message - 
> From: "Ajey.bitin" <[EMAIL PROTECTED]> 
> To: user@ofbiz.apache.org 
> Sent: Wednesday, August 6, 2008 10:52:42 PM (GMT-0700) America/Denver 
> Subject: Re: Problems while PUSH and PULL entity sync process in POS 
> 
> 
> Hi Vince, 
> 
> I'm also trying to setup POS completely and struggling around the PULL 
> activity. I&

Re: Problems while PUSH and PULL entity sync process in POS

2008-08-07 Thread Vince M. Clark
I've never used anything but rmi-sync. I think the cert stuff has changed since 
I last configured sync so I would have to go thru the learning curve myself on 
how to deal with it. I think it is just an extra step you need to take to 
generate your own cert and is documented a bit on the wiki as well as in some 
older threads on the ML. 

If you figure out http sync please post back to the ML with findings. 

- Original Message - 
From: "Ajey.bitin" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Thursday, August 7, 2008 8:36:43 AM (GMT-0700) America/Denver 
Subject: Re: Problems while PUSH and PULL entity sync process in POS 


Thanx Vince, 

But can I use the HTTP service instead of RMI because earlier when I tried, 
I was getting certificate error while calling these RMI services. Please let 
me know if i can do that and how much it'll be different from the RMI 
approach. 

Regards, 

Ajey 



Vince Clark wrote: 
> 
> Ajey 
> 
> Not sure if it matters but in the serviceengine.xml file I only change the 
> enity-sync-rmi, not the others. 
> 
> Below is a PosSyncSettings.xml file that includes fairly detailed notes on 
> what to load where (POS vs. MCS) and in what order. Hope it helps. When I 
> modified this file it was the same approach you are taking, a POS terminal 
> and MCS with no per store servers. So it should be exactly what you are 
> trying to do. 
> 
> I would also suggest that as you are going thru the learning process use a 
> dev environment that you can wipe clean and start over many times if 
> necessary. You will need to get used to how synchronization is triggered 
> and it helps if you can clean out the sync settings on all machines (POS, 
> PSS, MCS) and start over. 
> 
>  
>  
>  
> 
>  
>  
>  
>  entityOrPackage="org.ofbiz.entity.group" applEnumId="ESIA_INCLUDE"/> 
>  
>  entityOrPackage="org.ofbiz.product.product" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.product.price" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.product.promo" applEnumId="ESIA_INCLUDE"/> 
>  
>  entityOrPackage="org.ofbiz.product.category" applEnumId="ESIA_INCLUDE"/> 
>  
>  entityOrPackage="org.ofbiz.party.party" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.pos.PosTerminal" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.product.storage" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.product.store" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.accounting.tax" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.security.login" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.security.securitygroup" 
> applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.party.contact" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.product.inventory" applEnumId="ESIA_INCLUDE"/> 
> 
>  
>  
>  
>  entityOrPackage="org.ofbiz.party.party" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.party.contact" applEnumId="ESIA_INCLUDE"/> 
>  
>  applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.accounting.invoice" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.accounting.payment" applEnumId="ESIA_INCLUDE"/> 
>  
>  entityOrPackage="org.ofbiz.shipment.issuance" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.product.inventory" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.pos.PosTerminalLog" applEnumId="ESIA_INCLUDE"/> 
>  entityOrPackage="org.ofbiz.pos.PosTerminalState" 
> applEnumId="ESIA_INCLUDE"/> 
>  
>  entityOrPackage="org.ofbiz.pos.PosTerminalInternTx" 
> applEnumId="ESIA_INCLUDE"/> 
> 
> 
>  
>  
>  syncSplitMillis="60" targetServiceName="remoteStoreEntitySyncDataRmi" 
> keepRemoveInfoHours="24" forPushOnly="Y"/> 
>  
> 
>  
>  
>  syncSplitMillis="60" 
> keepRemoveInfoHours="24" forPullOnly="Y"/> 
>  entityGroupId="5501"/> 
> 
>  
>  
> 
>  
>  frequency="HOURLY" intervalNumber="2" countNumber="-1"/> 
>  
>  
>  
>  
>  runtimeDataId="POSPULL" runTime="2000-01-01 00:00:00.000" 
> serviceName="runPullEntitySync" poolId="pool" runAsUser="system" 
> recurrenceInfoId="POSPULL"/> 
> 
>  
> 
> 
> - Original Message - 
> From: "Ajey.bitin" <[EMAIL PROTECTED]> 
> To: user@ofbiz.apache.org 
> Sent: Wednesday, August 6, 2008 10:52:42 PM (GMT-0700) America/Denver 
> Subject: Re: Problems while PUSH and PULL entity sync process in POS 
> 
> 
> Hi Vince, 
> 
> I'm also trying to setup POS completely and struggling around the PULL 
> activity. I've configured POS for only POS terminals and one MCS. Here 
> with 
> my settings, PUSH is being called successfully but I'm not able to 
> configure 
> PULL in the system. I knew from the mailing list, you have experimented a 
> lot in POS. 
> 
> At present my serviceengine.xml of POS Terminal is configured with this 
> setting: 
>  location="rmi://server:1098/RMIDispatcher"/> 
>  location="http://server:8089/webtools/control/httpService"/> 
> 
>  location="rmi://server:1098/RMIDispatcher"/> 
>  location

Re: Problems while PUSH and PULL entity sync process in POS

2008-08-07 Thread Vince M. Clark
Ajey 

Not sure if it matters but in the serviceengine.xml file I only change the 
enity-sync-rmi, not the others. 

Below is a PosSyncSettings.xml file that includes fairly detailed notes on what 
to load where (POS vs. MCS) and in what order. Hope it helps. When I modified 
this file it was the same approach you are taking, a POS terminal and MCS with 
no per store servers. So it should be exactly what you are trying to do. 

I would also suggest that as you are going thru the learning process use a dev 
environment that you can wipe clean and start over many times if necessary. You 
will need to get used to how synchronization is triggered and it helps if you 
can clean out the sync settings on all machines (POS, PSS, MCS) and start over. 

 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


 
 
 
 

 
 
 
 

 
 

 
 
 
 
 
 
 

 


- Original Message - 
From: "Ajey.bitin" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Wednesday, August 6, 2008 10:52:42 PM (GMT-0700) America/Denver 
Subject: Re: Problems while PUSH and PULL entity sync process in POS 


Hi Vince, 

I'm also trying to setup POS completely and struggling around the PULL 
activity. I've configured POS for only POS terminals and one MCS. Here with 
my settings, PUSH is being called successfully but I'm not able to configure 
PULL in the system. I knew from the mailing list, you have experimented a 
lot in POS. 

At present my serviceengine.xml of POS Terminal is configured with this 
setting: 
 
http://server:8089/webtools/control/httpService"/> 

 
http://server:8089/webtools/control/httpService"/> 

 
http://server:8089/webtools/control/httpService"/> 

The serviceengine.xml of Server (MCS) is configured with this setting: 
 
http://localhost:8080/webtools/control/httpService"/> 

 
http://localhost:8080/webtools/control/httpService"/> 

 
http://localhost:8080/webtools/control/httpService"/> 

I've configured the PosSyncSettings.xml of POS Terminal with PUSH but I'm 
getting difficulty to configure PULL, like what kind of setting I need to do 
on both POS Terminal and Server(MCS) regarding PULL. How every POS Terminal 
can call PULL so that all inventory, returns and Promo kind of information 
will be updated on all POS Terminals. 

Any help is highly appreciated. 

Thanx in advance, 

Ajey 




Vince Clark wrote: 
> 
> 
> Pradeep 
> 
> Your settings looked fine in PosSyncSettings.xml. I have the impression 
> from your thread so far that you understand the setup when eliminating the 
> PSS and using the POS terminal to go directly to MCS. This is the setup we 
> have used as well so we're on the same page with that configuration. 
> 
> It can get a little tricky knowing what config to load on what server (POS 
> or MCS.) I have some notes at the top of my custom PosSyncSettings.xml 
> that I will send in a follow up message. Unfortunately I have to boot 
> another computer to get to them. But they go step by step on what to load 
> where. 
> 
> - Original Message - 
> From: "Jacques Le Roux" <[EMAIL PROTECTED]> 
> To: user@ofbiz.apache.org 
> Sent: Monday, April 21, 2008 3:45:47 AM (GMT-0700) America/Denver 
> Subject: Re: Problems while PUSH and PULL entity sync process in POS 
> 
> 
> 
>> Hi Vince, 
>> 
>> Sorry I forgot to ask one importnt thing. The RMIIF environment variable 
>> is 
>> defined in startup script startofbiz.sh. But I'm using the windows 
>> environment to test it. Now in this case how can I set this RMIIF in our 
>> environment variable. 
> 
> Simply tranpose to Windows this is a param tpo pass to JVM : 
> -Djava.rmi.server.hostname=" 
> 
>> Also, will there be any difference in the contents of PosSyncSeetings.xml 
>> on 
>> PSS+POS System and MCS System as I'm calling same two services on both 
>> system. This i the place where I'm a bit confused. 
> 
> Are you using 2 different DBs on the PSS+POS System (one for each OFBiz 
> instance) ? Are you relaying through PSS when you send from 
> POS to MCS (this is the intended basic scheme, of course you can build 
> your own...) ? 
> 
> Jacques 
> 
>> -- 
>> With regards, 
>> S K Pradeep kumar 
>> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problems-while-PUSH-and-PULL-entity-sync-process-in-POS-tp16801589p18864051.html
 
Sent from the OFBiz - User mailing list archive at Nabble.com. 



test

2008-07-15 Thread Vince M. Clark
I'm not getting emails from the list. Anyone else having this problem? 


Re: maximum open cursors in oracle required for running ofbiz

2008-07-08 Thread Vince M. Clark
This is an Oracle issue, not OfBiz. 

Increasing max open cursors to 1000 is the right move. But I believe there is 
another parameter you need to change as well. I cannot remember it off hand, 
but I think it is related to the number of connections allowed. I believe 
changing these parms requires restarting the db to take effect. Do a web search 
on the error message. I'm sure you will find plenty of answers. 

- Original Message - 
From: "sudheer baddam" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Tuesday, July 8, 2008 8:24:22 AM (GMT-0700) America/Denver 
Subject: maximum open cursors in oracle required for running ofbiz 

Hi, 
I working on an older version of OFBiz released in 2006. Everytime I start the 
server I am getting the below error message. I tried increasing maximum 
open_cursors in my oracle database to 1000. Even then I have this error. 
Can anyone please suggest what is the minimum open_cursors required for ofbiz 
to operate? 

[java] 2008-07-08 10:03:19,926 (main) [ DatabaseUtil.java:1194:ERROR] Error 
getting column meta data for Error was:java.sql.SQLException: ORA-01000: 
maximum open cursors exceeded 
[java] . Not checking columns. 
[java] 2008-07-08 10:03:19,926 (main) [ DatabaseUtil.java:345:WARN ] Entity 
[CaHostingDetails] has no table in the database 
[java] 2008-07-08 10:03:19,926 (main) [ DatabaseUtil.java:353:ERROR] Could not 
create table [OFBIZ_PROD.CA_HOSTING_DETAILS]: SQL Exception while executing the 
following: 
[java] CREATE TABLE OFBIZ_PROD.CA_HOSTING_DETAILS (COMPANY_ACCOUNT_ID 
VARCHAR2(20) NOT NULL, DOMAIN_ID VARCHAR2(255), USER_LOGIN_URL VARCHAR2(255), 
COMPANY_NAME VARCHAR2(255), DELIVERY_METHOD VARCHAR2(255), 
LAST_UPDATED_USER_LOGIN_ID VARCHAR2(255), LAST_UPDATED_STAMP TIMESTAMP, 
LAST_UPDATED_TX_STAMP TIMESTAMP, CREATED_STAMP TIMESTAMP, CREATED_TX_STAMP 
TIMESTAMP, CONSTRAINT PK_CA_HOSTING_DETAILS PRIMARY KEY (COMPANY_ACCOUNT_ID)) 
[java] Error was: java.sql.SQLException: ORA-01000: maximum open cursors 
exceeded 


Thanks, 
Sudheer 





Re: problem in POS setup

2008-06-10 Thread Vince M. Clark
There are instructions in the documentation on how to generate certificates. 

Also I would search nabble for "trusted certificate" or "trusted cert". 

- Original Message - 
From: "AnandM" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Tuesday, June 10, 2008 5:58:30 AM (GMT-0700) America/Denver 
Subject: Re: problem in POS setup 


Clark , i noticed one more thing which is about ssl certificate when POS 
screen started. it says that 
Error running EntitySync [5505], call to store service 
[remoteStoreEntitySyncDataRmi] failed. (RMI Invocation Error (error during 
JRMP connection establishment; nested exception is: 
javax.net.ssl.SSLHandshakeException: 
sun.security.validator.ValidatorException: No trusted certificate found)) 
Exception: org.ofbiz.service.GenericServiceException 
Message: RMI Invocation Error (error during JRMP connection establishment; 
nested exception is: 
javax.net.ssl.SSLHandshakeException: 
sun.security.validator.ValidatorException: No trusted certificate found) 
 stack trace 
--- 
org.ofbiz.service.GenericServiceException: RMI Invocation Error (error 
during JRMP connection establishment; nested exception is: 
javax.net.ssl.SSLHandshakeException: 
sun.security.validator.ValidatorException: No trusted certificate found) 
org.ofbiz.service.rmi.RmiServiceEngine.run(RmiServiceEngine.java:69) 
org.ofbiz.service.rmi.RmiServiceEngine.runSync(RmiServiceEngine.java:44) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:349) 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:215) 
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:152) 
org.ofbiz.entityext.synchronization.EntitySyncContext.runPushSendData(EntitySyncContext.java:1016)
 
org.ofbiz.entityext.synchronization.EntitySyncServices.runEntitySync(EntitySyncServices.java:108)
 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
java.lang.reflect.Method.invoke(Unknown Source) 
... 34 more 

 

So ,my question is that is it mandatory to have a sslcertificate form a 
trusted company or a self-signed certificate is good enough to call rmi 
services.i have generated a certifiacte form keytool on MCS machine. 


AnandM wrote: 
> 
> Hi clark, i am still having problem in POS setup. At present my POS and 
> PSS in on same machine.entity-sync-rmi is pointing to MCS machine .i am 
> getting error while making payment on POS by cash . Error message is 
> "Problem in order change".On MCS machine entity_sync table is not having 
> any record for my pos entity. here i am attaching all those files which i 
> changed with log file. http://www.nabble.com/file/p17692106/ofbiz.log 
> ofbiz.log . 
> 
> 
> Vince Clark wrote: 
>> 
>> Anand 
>> 
>> Check the log files in runtime/logs on each machine for connection 
>> problems. Also, make sure you have set the RMIIF environment variable in 
>> the startup script. Usually "localhost" is sufficient. 
>> 
>> - Original Message - 
>> From: "AnandM" <[EMAIL PROTECTED]> 
>> To: user@ofbiz.apache.org 
>> Sent: Tuesday, June 3, 2008 4:45:45 AM (GMT-0700) America/Denver 
>> Subject: problem in POS setup 
>> 
>> 
>> david, i configured one POS,PSS and MCS .Each has its own local database. 
>> On 
>> Pos machine entity-sync-rmi has address of PSS machine. On PSS 
>> entity-sync 
>> address is MCS ip. On MCS all locations are localhost in service 
>> engine.xml 
>> . But i am not able to find that my POS is actually connected to PSS and 
>> PSS 
>> is Connected to MCS. Is there any way see reflection of changes. 
>> -- 
>> View this message in context: 
>> http://www.nabble.com/problem-in-POS-setup-tp17620755p17620755.html 
>> Sent from the OFBiz - User mailing list archive at Nabble.com. 
>> 
>> 
>> 
> http://www.nabble.com/file/p17692106/DemoRetail.xml DemoRetail.xml 
> http://www.nabble.com/file/p17692106/PosSyncSettings.xml 
> PosSyncSettings.xml 
> http://www.nabble.com/file/p17692106/EntityScheduledServices.xml 
> EntityScheduledServices.xml 
> http://www.nabble.com/file/p17692106/serviceengine.xml serviceengine.xml 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-in-POS-setup-tp17620755p17753660.html 
Sent from the OFBiz - User mailing list archive at Nabble.com. 



Re: problem in POS setup

2008-06-08 Thread Vince M. Clark
The trace speaks for itself: 

No credit GL accounts found for payment posting 
Did you go thru the accounting setup for the org? It makes sense that you would 
hit this error at time of payment. That is when all documents are generated 
that create accounting postings (invoices, shipments, payments). 

Alternatively you can turn off the accounting secas but you would have to 
figure out which ones to turn off in the services xml files. Search Nabble. 
There was another discussion about this not too long ago. 

- Original Message - 
From: "AnandM" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Friday, June 6, 2008 7:24:25 AM (GMT-0700) America/Denver 
Subject: Re: problem in POS setup 


Hi clark, i am still having problem in POS setup. At present my POS and PSS 
in on same machine.entity-sync-rmi is pointing to MCS machine .i am getting 
error while making payment on POS by cash . Error message is "Problem in 
order change".On MCS machine entity_sync table is not having any record for 
my pos entity. here i am attaching all those files which i changed with log 
file. http://www.nabble.com/file/p17692106/ofbiz.log ofbiz.log . 


Vince Clark wrote: 
> 
> Anand 
> 
> Check the log files in runtime/logs on each machine for connection 
> problems. Also, make sure you have set the RMIIF environment variable in 
> the startup script. Usually "localhost" is sufficient. 
> 
> - Original Message - 
> From: "AnandM" <[EMAIL PROTECTED]> 
> To: user@ofbiz.apache.org 
> Sent: Tuesday, June 3, 2008 4:45:45 AM (GMT-0700) America/Denver 
> Subject: problem in POS setup 
> 
> 
> david, i configured one POS,PSS and MCS .Each has its own local database. 
> On 
> Pos machine entity-sync-rmi has address of PSS machine. On PSS entity-sync 
> address is MCS ip. On MCS all locations are localhost in service 
> engine.xml 
> . But i am not able to find that my POS is actually connected to PSS and 
> PSS 
> is Connected to MCS. Is there any way see reflection of changes. 
> -- 
> View this message in context: 
> http://www.nabble.com/problem-in-POS-setup-tp17620755p17620755.html 
> Sent from the OFBiz - User mailing list archive at Nabble.com. 
> 
> 
> 
http://www.nabble.com/file/p17692106/DemoRetail.xml DemoRetail.xml 
http://www.nabble.com/file/p17692106/PosSyncSettings.xml PosSyncSettings.xml 
http://www.nabble.com/file/p17692106/EntityScheduledServices.xml 
EntityScheduledServices.xml 
http://www.nabble.com/file/p17692106/serviceengine.xml serviceengine.xml 
-- 
View this message in context: 
http://www.nabble.com/problem-in-POS-setup-tp17620755p17692106.html 
Sent from the OFBiz - User mailing list archive at Nabble.com. 



Re: problem in POS setup

2008-06-03 Thread Vince M. Clark
Anand 

Check the log files in runtime/logs on each machine for connection problems. 
Also, make sure you have set the RMIIF environment variable in the startup 
script. Usually "localhost" is sufficient. 

- Original Message - 
From: "AnandM" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Tuesday, June 3, 2008 4:45:45 AM (GMT-0700) America/Denver 
Subject: problem in POS setup 


david, i configured one POS,PSS and MCS .Each has its own local database. On 
Pos machine entity-sync-rmi has address of PSS machine. On PSS entity-sync 
address is MCS ip. On MCS all locations are localhost in service engine.xml 
. But i am not able to find that my POS is actually connected to PSS and PSS 
is Connected to MCS. Is there any way see reflection of changes. 
-- 
View this message in context: 
http://www.nabble.com/problem-in-POS-setup-tp17620755p17620755.html 
Sent from the OFBiz - User mailing list archive at Nabble.com. 



Re: facility priority for fulfillment

2008-06-01 Thread Vince M. Clark
Thanks David. Exactly what I needed to know. I'm sure I can find it, but do you 
know off hand the name of the service we need to customize? 

- Original Message - 
From: "David E Jones" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Friday, May 30, 2008 10:41:49 PM (GMT-0700) America/Denver 
Subject: Re: facility priority for fulfillment 


Building this out is something that has not been attempted yet. There 
are many different ways and metrics that organizations use to choose 
things like this. The recommendation for now is to replace the service 
with a custom implementation to handle specific requirements. 

Over time hopefully people will contribute a wide variety of these and 
we can either start to build a library of them, and/or start to 
combine them and make a single configurable (data driven) service. 

The stuff implemented right now for multiple facilities is very 
simplistic and chances are it would only cover the needs of a small 
part of the organizations that might use OFBiz. 

-David 


On May 30, 2008, at 8:23 AM, Vince M. Clark wrote: 

> I think there was a thread about this recently but I cannot find it. 
> 
> Is there a way to prioritize the order in which items are fulfilled 
> or create rules based on items, customers, orders, etc? The closest 
> thing I have found that looks promising is facility groups. Each 
> facility in the group can have a sequence. Not sure if this is 
> intended to be used as some sort of prioritization for fulfillment. 



Re: How to: transfer stock

2008-05-30 Thread Vince M. Clark
Have you looked at this? 
http://docs.ofbiz.org/display/OFBENDUSER/Inventory+Transfer 


- Original Message - 
From: "Edson Chavez" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Friday, May 30, 2008 9:01:25 AM (GMT-0700) America/Denver 
Subject: How to: transfer stock 

Hi all i using pdf on ofbiz site to made a transfer stock y finish a 
transfer register but i dont know how update stock in form and to 
warehouse? in to warehouse i see the transfer but i cant update store well 
i reading but i dont understand well yet anybody knows where i can find a 
workflow or how to about transfer and movement stock between warehouse? 

kind regards 

Edson 


facility priority for fulfillment

2008-05-30 Thread Vince M. Clark
I think there was a thread about this recently but I cannot find it. 

Is there a way to prioritize the order in which items are fulfilled or create 
rules based on items, customers, orders, etc? The closest thing I have found 
that looks promising is facility groups. Each facility in the group can have a 
sequence. Not sure if this is intended to be used as some sort of 
prioritization for fulfillment. 


Re: change logging?

2008-05-30 Thread Vince M. Clark
Great news. It looks like the revision you directed me to provides all the 
framework capabilities, but I would still need to identify all the fields I 
want logged and also write user interfaces if we want to expose it in a useful 
way. Is this correct? 

- Original Message - 
From: "Scott Gray" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Thursday, May 29, 2008 7:25:04 PM (GMT-0700) America/Denver 
Subject: Re: change logging? 

Hi Vince 

Support for that was added recently: 
http://svn.apache.org/viewvc?view=rev&revision=652226 

Regards 
Scott 

2008/5/30 Vince M. Clark <[EMAIL PROTECTED]>: 

> Does OfBiz have any capabilities for the tracking of changes/actions on 
> records? Ideally this would be a feature that can be turned off and on as it 
> creates a great deal of data. But some customers want to record who changed 
> what and when. 
> 


  1   2   3   >