RE: How to Configure a Product with Configurable Attributes

2008-04-01 Thread Nikita Shinde
Hi,

   Have done something similar to this ...

Providing some pointers :

1> Add the attributes width, gauge, thickness etc as ProductFeature &
associate these features with products in ProductFeatureAppl.
2> Write your custom code to calculate the adjustments depending on the
input.
3> Then you can add the calculated adjustment to the product price.


I have'nt tried this with price rules but you can try that too.


Thanks,
Nikita Shinde
Amicon Technologies Pvt. Ltd.
Mumbai.


-Original Message-
From: rohitpant [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 02, 2008 7:56 AM
To: user@ofbiz.apache.org
Subject: How to Configure a Product with Configurable Attributes


Hi All,
   I have the following requirement - When a user selects a
product from a shopping cart, user should get prompted to enter some
parameters before getting the final list of products. For example -

If you are purchasing steel, you might select a product by name 'Hot Rolled
Steel' but then you would also like to enter width, gauge, thickness etc for
'Steel' since these attributes would determine the price of the product.

I am in the process of finding out how this can be done, but if someone has
already done this or your thoughts on how can this be done (iam 3 days old
to ofbiz) or you could point me to the rite doc maybe.

Would appreciate a reply.

Regards,
Rohit

-- 
View this message in context:
http://www.nabble.com/How-to-Configure-a-Product-with-Configurable-Attribute
s-tp16437473p16437473.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: component not found when invoking notifications

2008-04-01 Thread Mridul Pathak
Actually, the error you are getting is in prepareNotification() method of
NotificationServices class.  This method is called from sendNotification()
method of the same class which is invoked through
sendGenericNotificationMail service in services_email.xml.  Now this service
actually uses a template (ftl) to render the email body.  But the URL you
are passing renders a screen, and such a url is used in the service
sendMailFromScreen.  So this problem is not related to the component URL.This
lead me to think that you might be using wrong ProductStoreEmailSettings.

On Wed, Apr 2, 2008 at 10:19 AM, Mridul Pathak <
[EMAIL PROTECTED]> wrote:

> Hi Ryan,
>
> Can you please let me know if that have you written some custom code or
> are you running the OFBiz code?  If you have written anything custom, than
> is it ok for you if you can share ProductStoreEmailSettings at your end, if
> you have defined any custom ones?  Please let me know which process in OFBiz
> you are exactly trying to run.
>
>
> On Wed, Apr 2, 2008 at 4:44 AM, Ryan Sweet <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
> >
> > I'm having a problem getting the notification emails wired up.  When a
> > service invokes the notification service, it tries to load the email
> > from the provided templates, and can't find it via the normal
> > component:// URL.
> >
> > "[NotificationServices.java:204:ERROR] Problem getting the template URL:
> >
> > component://party/widget/partymgr/PartyEmailNotification.xml#CreatePartyNotification
> > not found"
> >
> > I've verified that
> > ${OFBIZ_HOME}//party/widget/partymgr/PartyEmailNotification.xml exists
> > and has a screen named CreatePartyNotification.
> > I don't see where else to look for this guy.
> > Is there some reason that in the context of NotificationServices the
> > reference to component:// urls would not be valid?
> >
> > regards,
> > -Ryan
> >
>
>
>
> --
> Thanks & Regards
> Mridul Pathak
> Hotwax Media
> http://www.hotwaxmedia.com
> [EMAIL PROTECTED]
> __
> Office : 509.855.4113
> Mobile : +919425926892




-- 
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
__
Office : 509.855.4113
Mobile : +919425926892


Re: component not found when invoking notifications

2008-04-01 Thread Mridul Pathak
Hi Ryan,

Can you please let me know if that have you written some custom code or are
you running the OFBiz code?  If you have written anything custom, than is it
ok for you if you can share ProductStoreEmailSettings at your end, if you
have defined any custom ones?  Please let me know which process in OFBiz you
are exactly trying to run.

On Wed, Apr 2, 2008 at 4:44 AM, Ryan Sweet <[EMAIL PROTECTED]> wrote:

> Hi All,
>
> I'm having a problem getting the notification emails wired up.  When a
> service invokes the notification service, it tries to load the email
> from the provided templates, and can't find it via the normal
> component:// URL.
>
> "[NotificationServices.java:204:ERROR] Problem getting the template URL:
>
> component://party/widget/partymgr/PartyEmailNotification.xml#CreatePartyNotification
> not found"
>
> I've verified that
> ${OFBIZ_HOME}//party/widget/partymgr/PartyEmailNotification.xml exists
> and has a screen named CreatePartyNotification.
> I don't see where else to look for this guy.
> Is there some reason that in the context of NotificationServices the
> reference to component:// urls would not be valid?
>
> regards,
> -Ryan
>



-- 
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
__
Office : 509.855.4113
Mobile : +919425926892


Re: Error processing payment authorization

2008-04-01 Thread Mridul Pathak
Hi Case,
The store setting which you have used, i.e. PRDS_PAY_EXTERNAL is
basically used for the external payments, for example via paypal or worldpay
or for offline and cod payments.
Following are the Demo ProductStorePaymentSettings for the Credit Card
Payments extracted from trunk/ecommerce/data/DemoProduct.xml :












You may change the productStoreId and paymentService fields if you are using
different ones, rest of the settings must remain same.



On Tue, Apr 1, 2008 at 11:59 PM, Case Torres <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> All of our orders are thru Order Entry. Some orders are paid thru credit
> card, most are not. We do not use a authorization service but manually
> authorize the cc payment. We need all the pertinent CC payment information
> in the db for the order.
> When processing a cc order I can get to the final order page and there is
> an
> Authorization button when I click on this I'm sent to the Accounting
> package
> "Authorize" screen and clicking on the "Authorize" button I get the
> following error.
>
> Error processing payment authorization:
> org.ofbiz.base.util.GeneralException: Could not find any valid payment
> settings for order with ID [QC10155], and payment operation (serviceType)
> [PRDS_PAY_AUTH]
>
> OFBiz version 4 is installed.
>
> My store settings Payment Type for CC's is set to PRDS_PAY_EXTERNAL.
>
> Is there another setting some where that I need to set to be able to
> process
> CC payments manually in the system?
> Also, I did quite a bit of searching and couldn't find any documentation
> on
> how to setup manual cc processing via Order Entry. Point me in the right
> documentation direction is they're out there.
>
> Thanks much in advance,
>
> ---
> Case Torres
> [EMAIL PROTECTED]
>
>
>


-- 
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
__
Office : 509.855.4113
Mobile : +919425926892


Re: Ofbiz entityengine.xml configuration

2008-04-01 Thread Sumit Pandit

Did you make following changes In entityengine.xml :-
At line # 52 and 55  use datasource-name="localpostgres"
At line # 307  use *   
*jdbc-uri="jdbc:postgresql://127.0.0.1/yourDataBaseName"

At line# 308-09 use
   jdbc-username="yourUserName"
   jdbc-password=""

Also make sure that you have psotgres RDBMS 
connector(postgresql-8.1-405.jdbc3.jar) in framework/entity/lib/jdbc


I think this will help you.
Sumit Pandit

Ritz123 wrote:

What is the error that you are getting?


ladroge wrote:
  
HI 
I use postgresql as database and when i configure opentaps with it i can

run my application.
For the same configuration on Ofbiz it does not run .
Someone can show me how to configure this file
entityengine.xml

Thanks 




  




How to Configure a Product with Configurable Attributes

2008-04-01 Thread rohitpant

Hi All,
   I have the following requirement - When a user selects a
product from a shopping cart, user should get prompted to enter some
parameters before getting the final list of products. For example -

If you are purchasing steel, you might select a product by name 'Hot Rolled
Steel' but then you would also like to enter width, gauge, thickness etc for
'Steel' since these attributes would determine the price of the product.

I am in the process of finding out how this can be done, but if someone has
already done this or your thoughts on how can this be done (iam 3 days old
to ofbiz) or you could point me to the rite doc maybe.

Would appreciate a reply.

Regards,
Rohit

-- 
View this message in context: 
http://www.nabble.com/How-to-Configure-a-Product-with-Configurable-Attributes-tp16437473p16437473.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: Ofbiz entityengine.xml configuration

2008-04-01 Thread BJ Freeman
I believe the page does not cover
   


David E Jones sent the following on 4/1/2008 10:58 AM:
> 
> I'm not aware of anything out-of-date in that page. Of course, if anyone
> finds anything please comment so we can fix it!
> 
> -David
> 
> 
> On Apr 1, 2008, at 10:26 PM, BJ Freeman wrote:
>> This pages has not been updated since 2004 and may not cover the trunk
>> version of ofbiz
>>
>> Pranay Pandey sent the following on 4/1/2008 6:43 AM:
>>> Hello ladroge,
>>>
>>> Just go through this link
>>> http://ofbiz.apache.org/docs/entityconfig.html.
>>>
>>> --Thanks and Regards
>>> Pranay Pandey
>>>
>>> ladroge wrote:
 HI I use postgresql as database and when i configure opentaps with it
 i can run
 my application.
 For the same configuration on Ofbiz it does not run .
 Someone can show me how to configure this file
 entityengine.xml

 Thanks
>>>
>>>
>>>
>>>
>>
> 
> 
> 
> 



component not found when invoking notifications

2008-04-01 Thread Ryan Sweet

Hi All,

I'm having a problem getting the notification emails wired up.  When a 
service invokes the notification service, it tries to load the email 
from the provided templates, and can't find it via the normal 
component:// URL.


"[NotificationServices.java:204:ERROR] Problem getting the template URL: 
component://party/widget/partymgr/PartyEmailNotification.xml#CreatePartyNotification 
not found"


I've verified that 
${OFBIZ_HOME}//party/widget/partymgr/PartyEmailNotification.xml exists 
and has a screen named CreatePartyNotification.

I don't see where else to look for this guy.
Is there some reason that in the context of NotificationServices the 
reference to component:// urls would not be valid?


regards,
-Ryan


Error processing payment authorization

2008-04-01 Thread Case Torres
Hi,

All of our orders are thru Order Entry. Some orders are paid thru credit
card, most are not. We do not use a authorization service but manually
authorize the cc payment. We need all the pertinent CC payment information
in the db for the order.
When processing a cc order I can get to the final order page and there is an
Authorization button when I click on this I'm sent to the Accounting package
"Authorize" screen and clicking on the "Authorize" button I get the
following error.

Error processing payment authorization:
org.ofbiz.base.util.GeneralException: Could not find any valid payment
settings for order with ID [QC10155], and payment operation (serviceType)
[PRDS_PAY_AUTH] 

OFBiz version 4 is installed.

My store settings Payment Type for CC's is set to PRDS_PAY_EXTERNAL.

Is there another setting some where that I need to set to be able to process
CC payments manually in the system?
Also, I did quite a bit of searching and couldn't find any documentation on
how to setup manual cc processing via Order Entry. Point me in the right
documentation direction is they're out there. 

Thanks much in advance,

---
Case Torres
[EMAIL PROTECTED]




Re: Ofbiz entityengine.xml configuration

2008-04-01 Thread David E Jones


I'm not aware of anything out-of-date in that page. Of course, if  
anyone finds anything please comment so we can fix it!


-David


On Apr 1, 2008, at 10:26 PM, BJ Freeman wrote:

This pages has not been updated since 2004 and may not cover the trunk
version of ofbiz

Pranay Pandey sent the following on 4/1/2008 6:43 AM:

Hello ladroge,

Just go through this link http://ofbiz.apache.org/docs/entityconfig.html 
.


--
Thanks and Regards
Pranay Pandey

ladroge wrote:
HI I use postgresql as database and when i configure opentaps with  
it

i can run
my application.
For the same configuration on Ofbiz it does not run .
Someone can show me how to configure this file
entityengine.xml

Thanks











Re: How to automatically update inventory ?

2008-04-01 Thread Bruno Busco
Thank you for your quick replay,
i will study [ i really need to study ;-) ] and elaborate on your
suggestions.
- Bruno

2008/4/2, BJ Freeman <[EMAIL PROTECTED]>:
>
> there maybe other suggestions:
> these are mine
> 1) create a seperate service to read you external DB using then enitites
> for those, and the service to update the ofbiz entity
> 2) write a helper that converts you entity to a map the service to
> update ofbiz entities and calls then service to update the ofbiz entity.
>
> Since you are using your own service and directly changing the entity, I
> doubt you will fire and ecas.
> look up one of the services that is schedule in the seed data and copy
> one for your service.
>
>
> Bruno Busco sent the following on 4/1/2008 9:54 AM:
>
> > BJ,
> > thank you for your suggestion...
> > to be sincere i am not sure to have well understood how this could be
> done.
> >
> > In any case i do not want to delete and rebuild the DB but i am looking
> for
> > the cleanest way to update a facility inventory using a script and
> taking
> > the information from an external db.
> >
> > Any pointer to the closest example to what i nedd to do?
> >
> > Many thanks
> > - Bruno
> >
> > 2008/4/1, BJ Freeman <[EMAIL PROTECTED]>:
> >> Just a thought any thing you use will effect other modules like
> >> accounting.
> >> so if at some point you are going to delete and rebuild the DB for
> ofbiz
> >> you will have a large task on your hands.
> >> you may want to write your own service directly effects the information
> >> you are making a copy of in ofbiz.
> >>
> >> Bruno Busco sent the following on 3/31/2008 2:27 PM:
> >>
> >>> Hi All,
> >>> for the moment i need to use OFBIZ as an ecommerce webapp that
> >> interfaces to
> >>> a legacy warehouse management application. (As a further step we aim
> to
> >>> replace the whole ERP)
> >>>
> >>> I have configured a couple of entitities and built a view-entity to
> >> access
> >>> the legacy database and I have now all the information I need to
> >> populate
> >>> the OFBIZ inventory.
> >>>
> >>> Where could I start from to build a task that every night scans the
> >> legacy
> >>> db and updates the OFBIZ inventory?
> >>> How to scan all entities and for each one perform a task?
> >>> Is there a service I can call to set/update the product availability?
> >>>
> >>> Many thanks for any hint.
> >>>
> >>> - Bruno
> >>>
> >>
> >
>
>


Re: How to automatically update inventory ?

2008-04-01 Thread BJ Freeman
there maybe other suggestions:
these are mine
1) create a seperate service to read you external DB using then enitites
for those, and the service to update the ofbiz entity
2) write a helper that converts you entity to a map the service to
update ofbiz entities and calls then service to update the ofbiz entity.

Since you are using your own service and directly changing the entity, I
doubt you will fire and ecas.
look up one of the services that is schedule in the seed data and copy
one for your service.


Bruno Busco sent the following on 4/1/2008 9:54 AM:
> BJ,
> thank you for your suggestion...
> to be sincere i am not sure to have well understood how this could be done.
> 
> In any case i do not want to delete and rebuild the DB but i am looking for
> the cleanest way to update a facility inventory using a script and taking
> the information from an external db.
> 
> Any pointer to the closest example to what i nedd to do?
> 
> Many thanks
> - Bruno
> 
> 2008/4/1, BJ Freeman <[EMAIL PROTECTED]>:
>> Just a thought any thing you use will effect other modules like
>> accounting.
>> so if at some point you are going to delete and rebuild the DB for ofbiz
>> you will have a large task on your hands.
>> you may want to write your own service directly effects the information
>> you are making a copy of in ofbiz.
>>
>> Bruno Busco sent the following on 3/31/2008 2:27 PM:
>>
>>> Hi All,
>>> for the moment i need to use OFBIZ as an ecommerce webapp that
>> interfaces to
>>> a legacy warehouse management application. (As a further step we aim to
>>> replace the whole ERP)
>>>
>>> I have configured a couple of entitities and built a view-entity to
>> access
>>> the legacy database and I have now all the information I need to
>> populate
>>> the OFBIZ inventory.
>>>
>>> Where could I start from to build a task that every night scans the
>> legacy
>>> db and updates the OFBIZ inventory?
>>> How to scan all entities and for each one perform a task?
>>> Is there a service I can call to set/update the product availability?
>>>
>>> Many thanks for any hint.
>>>
>>> - Bruno
>>>
>>
> 



Re: Ofbiz entityengine.xml configuration

2008-04-01 Thread Ritz123

What is the error that you are getting?


ladroge wrote:
> 
> HI 
> I use postgresql as database and when i configure opentaps with it i can
> run my application.
> For the same configuration on Ofbiz it does not run .
> Someone can show me how to configure this file
> entityengine.xml
> 
> Thanks 
> 

-- 
View this message in context: 
http://www.nabble.com/Ofbiz-entityengine.xml-configuration-tp16418429p16419434.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: Documentation on API integration

2008-04-01 Thread BJ Freeman
API in ofbiz can mean many things.
you have the Frame work, SOAP, RMI.
or are you using the term Loosely to include
Services?
can you be more specific?

ladroge sent the following on 4/1/2008 6:29 AM:
> Hi 
> I want to know how to implement API in ofbiz.
> I want to know how to developp specifi API's for ofbiz
> Sommeone can show me a solid documentation about it?
> 
> Thanks



Re: How to automatically update inventory ?

2008-04-01 Thread Bruno Busco
BJ,
thank you for your suggestion...
to be sincere i am not sure to have well understood how this could be done.

In any case i do not want to delete and rebuild the DB but i am looking for
the cleanest way to update a facility inventory using a script and taking
the information from an external db.

Any pointer to the closest example to what i nedd to do?

Many thanks
- Bruno

2008/4/1, BJ Freeman <[EMAIL PROTECTED]>:
>
> Just a thought any thing you use will effect other modules like
> accounting.
> so if at some point you are going to delete and rebuild the DB for ofbiz
> you will have a large task on your hands.
> you may want to write your own service directly effects the information
> you are making a copy of in ofbiz.
>
> Bruno Busco sent the following on 3/31/2008 2:27 PM:
>
> > Hi All,
> > for the moment i need to use OFBIZ as an ecommerce webapp that
> interfaces to
> > a legacy warehouse management application. (As a further step we aim to
> > replace the whole ERP)
> >
> > I have configured a couple of entitities and built a view-entity to
> access
> > the legacy database and I have now all the information I need to
> populate
> > the OFBIZ inventory.
> >
> > Where could I start from to build a task that every night scans the
> legacy
> > db and updates the OFBIZ inventory?
> > How to scan all entities and for each one perform a task?
> > Is there a service I can call to set/update the product availability?
> >
> > Many thanks for any hint.
> >
> > - Bruno
> >
>
>


Re: Ofbiz entityengine.xml configuration

2008-04-01 Thread BJ Freeman
This pages has not been updated since 2004 and may not cover the trunk
version of ofbiz

Pranay Pandey sent the following on 4/1/2008 6:43 AM:
> Hello ladroge,
> 
> Just go through this link http://ofbiz.apache.org/docs/entityconfig.html.
> 
> -- 
> Thanks and Regards
> Pranay Pandey
> 
> ladroge wrote:
>> HI I use postgresql as database and when i configure opentaps with it
>> i can run
>> my application.
>> For the same configuration on Ofbiz it does not run .
>> Someone can show me how to configure this file
>> entityengine.xml
>>
>> Thanks   
> 
> 
> 
> 



Re: Cannot locate service by name

2008-04-01 Thread Jacques Le Roux
Have you had a look at 
http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Soap ?


Jacques

From: "Roberto Cosenza" <[EMAIL PROTECTED]>

Hello.
I'm trying to run a simple webservice test using a php client.
The method I want to run is "getOrderStatus" but i get

"Request SOAPService caused an error with the following message: Error
calling event: org.ofbiz.webapp.event.EventHandlerException: Cannot
locate service by name (orderId) (Cannot locate service by name
(orderId))"
which is strange since the name of the service is "getOrderStatus" and
not "orderId"

This is the calling code:

http://10.6.1.74:8080/webtools/control/SOAPService/getOrderStatus?WS
$wsdl = new SOAP_WSDL( $wsdlurl);
$proxy = $wsdl->getProxy();

$params = array('orderId' => "1");
$resp = $proxy->getOrderStatus($params);
?>

/roberto





Re: Ofbiz entityengine.xml configuration

2008-04-01 Thread BJ Freeman
depends if your using Trunk or Version 4.0 of ofbiz.
Opentaps does not have the support of the Trunk version of ofbiz.

ladroge sent the following on 4/1/2008 6:32 AM:
> HI 
> I use postgresql as database and when i configure opentaps with it i can run
> my application.
> For the same configuration on Ofbiz it does not run .
> Someone can show me how to configure this file
> entityengine.xml
> 
> Thanks 



Re: Ofbiz entityengine.xml configuration

2008-04-01 Thread Nattanicha Rittammanart

Ladroge
  Can you give the exception which you got?
Natty

ladroge wrote:
HI 
I use postgresql as database and when i configure opentaps with it i can run

my application.
For the same configuration on Ofbiz it does not run .
Someone can show me how to configure this file
entityengine.xml

Thanks 
  




Re: Exception in Webtools

2008-04-01 Thread Bilgin Ibryam
Hi Mark, 

I think it is fixed in r591941 but not sure. Is your revision newer that
this?

Bilgin



Exception in Webtools

2008-04-01 Thread Mark Ellul
Hi,

I am getting the below exception when using the Service Reference in
WebTools for Ofbiz v4.0 running on Java 1.6 u 5

Any Idea on whats happening?

Thanks and Regards

Mark

org.ofbiz.base.util.GeneralException: Error rendering screen
[component://webtools/widget/AvailableServicesScreens.xml#AvailableServicesList]:
org.ofbiz.base.util.GeneralException: Error running BSH script at location
[component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh]:
org.ofbiz.base.util.GeneralException: Error running BSH script at
[component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh],
line [147]: Sourced file:
component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh
: Method Invocation actionClass.getDeclaredField : at Line: 147 : in file:
component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh
: actionClass .getDeclaredField ( "resultToResult" )

Target exception: java.lang.NoSuchFieldException: resultToResult
(Sourced file:
component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh
: Method Invocation actionClass.getDeclaredField) (Error running BSH script
at
[component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh],
line [147]: Sourced file:
component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh
: Method Invocation actionClass.getDeclaredField : at Line: 147 : in file:
component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh
: actionClass .getDeclaredField ( "resultToResult" )

Target exception: java.lang.NoSuchFieldException: resultToResult
(Sourced file:
component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh
: Method Invocation actionClass.getDeclaredField)) (Error running BSH script
at location
[component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh]:
org.ofbiz.base.util.GeneralException: Error running BSH script at
[component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh],
line [147]: Sourced file:
component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh
: Method Invocation actionClass.getDeclaredField : at Line: 147 : in file:
component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh
: actionClass .getDeclaredField ( "resultToResult" )

Target exception: java.lang.NoSuchFieldException: resultToResult
(Sourced file:
component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh
: Method Invocation actionClass.getDeclaredField) (Error running BSH script
at
[component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh],
line [147]: Sourced file:
component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh
: Method Invocation actionClass.getDeclaredField : at Line: 147 : in file:
component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh
: actionClass .getDeclaredField ( "resultToResult" )

Target exception: java.lang.NoSuchFieldException: resultToResult
(Sourced file:
component://webtools/webapp/webtools/WEB-INF/actions/service/availableservices.bsh
: Method Invocation actionClass.getDeclaredField)))


External Login Key

2008-04-01 Thread Mark Ellul
Hi,

I recently saw when using WebTools a parameter called externalLoginKey

i.e.

https://localhost:8443/marketing/control/main?externalLoginKey=EL515258790180


Is there any documentation on how I could use the externalLoginKey in my own
applications?

The reason I want to use it, is to have the ability to login through a
portal, and then have some code which would create an externalLoginKey to
use with my Ofbiz Services.

Is that possible?

Regards

Mark


Re: Ofbiz entityengine.xml configuration

2008-04-01 Thread Pranay Pandey

Hello ladroge,

Just go through this link http://ofbiz.apache.org/docs/entityconfig.html.

--
Thanks and Regards
Pranay Pandey

ladroge wrote:
HI 
I use postgresql as database and when i configure opentaps with it i can run

my application.
For the same configuration on Ofbiz it does not run .
Someone can show me how to configure this file
entityengine.xml

Thanks 
  




Ofbiz entityengine.xml configuration

2008-04-01 Thread ladroge

HI 
I use postgresql as database and when i configure opentaps with it i can run
my application.
For the same configuration on Ofbiz it does not run .
Someone can show me how to configure this file
entityengine.xml

Thanks 
-- 
View this message in context: 
http://www.nabble.com/Ofbiz-entityengine.xml-configuration-tp16418429p16418429.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Documentation on API integration

2008-04-01 Thread ladroge

Hi 
I want to know how to implement API in ofbiz.
I want to know how to developp specifi API's for ofbiz
Sommeone can show me a solid documentation about it?

Thanks
-- 
View this message in context: 
http://www.nabble.com/Documentation-on-API-integration-tp16418424p16418424.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



SOAP: Cannot locate service by name

2008-04-01 Thread Roberto Cosenza

Hello.
I'm trying to run a simple webservice test using a php client.
The method I want to run is "getOrderStatus" but i get

"Request SOAPService caused an error with the following message: Error  
calling event: org.ofbiz.webapp.event.EventHandlerException: Cannot  
locate service by name (orderId) (Cannot locate service by name  
(orderId))"
which is strange since the name of the service is "getOrderStatus" and  
not "orderId"


This is the calling code:

http://10.6.1.74:8080/webtools/control/SOAPService/getOrderStatus?WS
$wsdl = new SOAP_WSDL( $wsdlurl);
$proxy = $wsdl->getProxy();

$params = array('orderId' => "1");
$resp = $proxy->getOrderStatus($params);
?>

/roberto


Defining a required parameter

2008-04-01 Thread ian tabangay
Hi.
I would like to ask where a parameter whose mode value is OUT and optional
value is false for the attribute element in the service xml definition
whould be defined.

like:
**


Thank you for community's assistance to a noob like me.

~ ian


Re: Error while installing multiple ofbiz on one machine

2008-04-01 Thread Jacques Le Roux

Change also the url.properties file.

Jacques

From: "Rupinder" <[EMAIL PROTECTED]>
: 
Sent: Tuesday, April 01, 2008 11:46 AM
Subject: Error while installing multiple ofbiz on one machine




Hi all,
I am trying to install two ofbiz instances on a same machine. I
made the following changes in
"ofbiz\framework\base\config\ofbiz-containers.xml" in the second ofbiz
folder: 


1. Changed http port from 8080 to 8086
2. Changed https port from 8443 to 8444
3. Changed AJP/13 connector port form 8009 to 8005
4. Commented the tags which were loading the naming (JNDI) server.

Now I am getting the following error in the log file at the end of process:

"
(main) [ Http11BaseProtocol.java:157:INFO ] Starting Coyote HTTP/1.1 on
http-0.0.0.0-8086
(main) [  Connector.java:988:INFO ] The connector has already been
initialized
(main) [ Http11BaseProtocol.java:157:INFO ] Starting Coyote HTTP/1.1 on
http-0.0.0.0-8444
(main) [  CatalinaContainer.java:230:INFO ] Connector AJP/1.3 @ 8005 -
not-secure [org.apache.jk.server.JkCoyoteHandler] started.
(main) [  CatalinaContainer.java:227:INFO ] Connector HTTP/1.1 @ 8086 -
not-secure [org.apache.coyote.http11.Http11Protocol] started.
(main) [  CatalinaContainer.java:227:INFO ] Connector TLS @ 8444 - secure
[org.apache.coyote.http11.Http11Protocol] started.
(main) [  CatalinaContainer.java:234:INFO ] Started Apache Tomcat/5.5.23
(OFBiz_Shutdown_Hook) [ContainerLoader.java:92 :INFO ] Shutting down
containers
(OFBiz_Shutdown_Hook) [ Http11BaseProtocol.java:184:INFO ] Stopping Coyote
HTTP/1.1 on http-0.0.0.0-8086
(OFBiz_Shutdown_Hook) [ Http11BaseProtocol.java:184:INFO ] Stopping Coyote
HTTP/1.1 on http-0.0.0.0-8444
(OFBiz_Shutdown_Hook) [  ServiceDispatcher.java:178:INFO ] De-Registering
dispatcher: bi
(OFBiz_Shutdown_Hook) [  ServiceDispatcher.java:178:INFO ] De-Registering
dispatcher: partymgr
(OFBiz_Shutdown_Hook) [  RealmBase.java:1063:INFO ] This Realm has
not yet been started
(OFBiz_Shutdown_Hook) [  ServiceDispatcher.java:178:INFO ] De-Registering
dispatcher: marketing"

Is this the right approach to install multiple ofbiz on one machine, if this
is right then what mistake I am making that such error is occurring? 
--

View this message in context: 
http://www.nabble.com/Error-while-installing-multiple-ofbiz-on-one-machine-tp16417082p16417082.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Error while installing multiple ofbiz on one machine

2008-04-01 Thread Rupinder

Hi all,
 I am trying to install two ofbiz instances on a same machine. I
made the following changes in
"ofbiz\framework\base\config\ofbiz-containers.xml" in the second ofbiz
folder: 

1. Changed http port from 8080 to 8086
2. Changed https port from 8443 to 8444
3. Changed AJP/13 connector port form 8009 to 8005
4. Commented the tags which were loading the naming (JNDI) server.

Now I am getting the following error in the log file at the end of process:

"
(main) [ Http11BaseProtocol.java:157:INFO ] Starting Coyote HTTP/1.1 on
http-0.0.0.0-8086
(main) [  Connector.java:988:INFO ] The connector has already been
initialized
(main) [ Http11BaseProtocol.java:157:INFO ] Starting Coyote HTTP/1.1 on
http-0.0.0.0-8444
(main) [  CatalinaContainer.java:230:INFO ] Connector AJP/1.3 @ 8005 -
not-secure [org.apache.jk.server.JkCoyoteHandler] started.
(main) [  CatalinaContainer.java:227:INFO ] Connector HTTP/1.1 @ 8086 -
not-secure [org.apache.coyote.http11.Http11Protocol] started.
(main) [  CatalinaContainer.java:227:INFO ] Connector TLS @ 8444 - secure
[org.apache.coyote.http11.Http11Protocol] started.
(main) [  CatalinaContainer.java:234:INFO ] Started Apache Tomcat/5.5.23
(OFBiz_Shutdown_Hook) [ContainerLoader.java:92 :INFO ] Shutting down
containers
(OFBiz_Shutdown_Hook) [ Http11BaseProtocol.java:184:INFO ] Stopping Coyote
HTTP/1.1 on http-0.0.0.0-8086
(OFBiz_Shutdown_Hook) [ Http11BaseProtocol.java:184:INFO ] Stopping Coyote
HTTP/1.1 on http-0.0.0.0-8444
(OFBiz_Shutdown_Hook) [  ServiceDispatcher.java:178:INFO ] De-Registering
dispatcher: bi
(OFBiz_Shutdown_Hook) [  ServiceDispatcher.java:178:INFO ] De-Registering
dispatcher: partymgr
(OFBiz_Shutdown_Hook) [  RealmBase.java:1063:INFO ] This Realm has
not yet been started
(OFBiz_Shutdown_Hook) [  ServiceDispatcher.java:178:INFO ] De-Registering
dispatcher: marketing"
 
Is this the right approach to install multiple ofbiz on one machine, if this
is right then what mistake I am making that such error is occurring? 
-- 
View this message in context: 
http://www.nabble.com/Error-while-installing-multiple-ofbiz-on-one-machine-tp16417082p16417082.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: Product Price

2008-04-01 Thread rpbang

ok , go it. 
I think it was the cache problem as mentioned by you Bilgin. altho I
restarted the server(but used the same browser session) , it might have to
do something with the 'browser' cache . 
I think when I cleared the browser cache and started it again , it worked.

Of course needless to say my store had earlier wrong currency pointing to it
which I changed as per your suggestion.

Thankx a ton.

also very quickly - do we have any detailed documentation/tutorial except
for what is avaliable on the net ?

Regards,
Rohit




Bilgin Ibryam wrote:
> 
> Not sure what's the problem there. It works for me.
> One last guest: make sure that you changed the currency for the right
> product store.
> 
> 
> 

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



default address value

2008-04-01 Thread Yitao_Zhao
Hi all

 

As a customer may have many addresses, How to identify the default shipping
addresses, if a person have many shipping addresses.

 

How to make a address default in Opentaps webservice

 

Like these

Address0:not default

Address1:default choose

Address2:not default

Address3:not default

 

Thanks

 



Re: Product Price

2008-04-01 Thread Bilgin Ibryam
Not sure what's the problem there. It works for me.
One last guest: make sure that you changed the currency for the right
product store.



Re: Product Price

2008-04-01 Thread rpbang

Hi Ajay,
   I am not able to enter the "Product Store Group Id" since it
is a drop down with only one choice 'Not Applicable' in it . How do I map my
store now ?

Regds,
Rohit



Vinod Kashyap wrote:
> 
> Hi Rohit.
> 
> Firstly, You need not to give the Thru Date.
> Second, you have to give the "Product Store Group Id". This will be your
> store to whom your product belongs. that is your ecommerce store. As your
> have not mentioned this, that's why you get the exception. I hope this
> will definitely solve your problem.
> 
> Thanks..
> 
> Ajay
> Software Engineer
> Pal Info Com
> India
>   
> 
> rpbang wrote:
>> 
>> Hi all,
>> I have created a product and also attached a price to it by
>> providing the following informtion
>> 
>> Price Type : Default Price
>> Purpose : Purchase/Initial
>> Currency UOM Id: INR - Indian Rupee
>> Product Store Group Id : Not Applicable
>> From Date : 2008-04-01 10:11:50.552
>> Thru Date : 2009-04-24 10:11:59.790
>> Price : 10,909
>> termUomId :
>> Custom Price Calc Service:
>> 
>> when I try adding this product to shopping cart it throws the following
>> error
>> 
>> The Following Errors Occurred:
>> Could not find a valid price for the product with ID [table002], not
>> adding to cart.
>> 
>> 
>> Would appreciate a reply.
>> 
>> regards,
>> Rohit
>> 
>> 
> 
> 

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



Re: about geronimo

2008-04-01 Thread Jacques Le Roux

I explain how to make it works with IBM WASCE 2  (which is dervived from 
Geronimo 2.0.1) here
http://docs.ofbiz.org/pages/viewpage.action?pageId=4098
It's not a sophisticate approach, but it works fine for now. You will find all 
what is needed in framework/appserver/wasce2

As it's explained in the link above, it does not work with Geronimo 2.0.1 yet. 
I will open a Geronimo Jira soon.
Moreover I wonder if, in the case of Geronino, Little-G could not be a way to 
go : in the way I did it we don't need GBeans.

Some facts : running OFBiz in Geronimo implies a 2xfootprint, from which my 
Little-G expectation.
Independently of my client's need, I saw an advantage in using Geronimo : we could expect to run OFBiz multi-instances in one 
application server. But as I explain in the link above there are still some problems to fix.


Jacques

From: "xpingxu" <[EMAIL PROTECTED]>

Hi,yuesef
 thanks for replay. see the url "Updating a GBean's classloader"
http://mail-archives.apache.org/mod_mbox/geronimo-user/200602.mbox/[EMAIL 
PROTECTED]

 in the 2006. core team has a approach for geronimo integration with gbean
model.
 but from the svn I don't find out code for this feature. I don't know,
what happen, the core team
don't implementation this feature.  if you know can tell me
 contribute your method (with geronimo), this is a good experience for
ofbizer.
 I hope ofbiz go to open..
Xu

On Mon, Mar 31, 2008 at 7:40 PM, Yousef Shemisa <[EMAIL PROTECTED]>
wrote:




-Original Message-
From: Jacques Le Roux [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 30, 2008 23:51
To: user@ofbiz.apache.org
Subject: Re: about geronimo

I have done some work about that these last weeks for a client. Now OFBiz
is
running under Websphere Application Server Community Edition 2 (WASCE)
which
is derived from Geronimo 2.0.1. But I have a problem with Geronimo itself.
I
will commit soon with a guidelines in  OFBiz doc, still  some tests to
do...
I used a simple approach, there are no changes in OFBiz but in appserver.

One point on which I failed is to allow multi-instances of OFBiz running
in
WASCE. I got conflicts between OFBiz modules when wanting to run
multi-instances. For instance webtools have the same names in each
instance.
I thought I had an easy solution, by prefixing modules for each instance.
But then I found 2 new problems.

To run, OFBiz needs a classpath with some sub-directories (mostly config,
dtd, script) of each components. So I pass them to the JVM. But I can't
pass
2 classpathes (one for each instance) since I get conflict between them,
though I'm not sure it's really a problem

For the same reason, I must pass an "ofbiz.home" env value to the JVM and
there I'm really caught.

Of course if we succeed on this issue, this will benefit to the community
at
large as it will allow to run many OFBiz instances with only one  Tomcat
engine (Geronimo embed Tomcat or Jetty). Commercially I believe it could
be
very interesting...

I'm confident we will find soon a solution to run OFBiz under Geronimo
itself (I tried also wiht last version : 2.1). But actually it's not a
real
problem as wasce 2 is available for free. I'm not sure about the sources
though. Anyway, it's not bad to pretend running under an IBM application
server, PHBs like it ;o)

Jacques

From: "xpingxu" <[EMAIL PROTECTED]>
> Hi,All
>  now the ofbiz can't be deployed on geronimo. why?
> somebody can be tell me. I remember the ofbiz 2.0 still can be
> deployed some of application server(like jboss or others) but now,
> where is the feature?
> Xu
>










答复: Use Webservice inside

2008-04-01 Thread Yitao_Zhao
Thanks for the hints about the using webservice...



-邮件原件-
发件人: Nikita Shinde [mailto:[EMAIL PROTECTED] 
发送时间: 2008年4月1日 14:48
收件人: user@ofbiz.apache.org
主题: RE: Use Webservice inside

Hi,

You have to pass the userLoginId too in the map

Map = local.runSync("createPartyRole",UtilMisc.toMap("userLoginId",
userLoginId, ...);


Thanks,
Nikita Shinde.
Amicon Technologies Pvt. Ltd.
Mumbai.


-Original Message-
From: Yitao_Zhao [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2008 12:06 PM
To: user@ofbiz.apache.org
Subject: Use Webservice inside

Hi all
I hope to get some hints about the webservice 
I configured the service.xml in my project like below:
 
 
 
 
 
   
   
 

Then I try to use the webservice in the java code for remote webservice like
below:
  @WebMethod
  Public String createCustomer(String customer){
   .
   .
   LocalDispatcher
local=GenericDispatcher.getLocalDispatcher("projectName",
 
GenericDelegator.getGenericDelegator(("default")));
   DispatchContext context=local.getDispatchContext();
   Try{
  Map = local.runSync("createPerson",map);
  String partyId = map.get("partyId");
  Map = local.runSync("createPartyRole",UtilMisc.toMap(...);
  }catch(Exception e){
Return e.getLocalMessage();
}
 
When I try to run createPartyRole webservice, it tell me "User authorization
is required for this service: createPartyRole"
How to add authentication to a webservice, any hints would be
appreciate





Re: Use Webservice inside

2008-04-01 Thread Mark Ellul
Hi you can also pass in... 2 parameters... userlogin.username and
userlogin.password, which is simpler if you don't want to expose the
GenericValue Object across the wire!

On Tue, Apr 1, 2008 at 8:51 AM, Nikita Shinde <[EMAIL PROTECTED]> wrote:

> Oops! its userLogin(GenericValue) not userLoginId :)
>
>
> -Original Message-
> From: Nikita Shinde [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2008 12:18 PM
> To: user@ofbiz.apache.org
> Subject: RE: Use Webservice inside
>
> Hi,
>
>You have to pass the userLoginId too in the map
>
>Map = local.runSync("createPartyRole",UtilMisc.toMap("userLoginId",
> userLoginId, ...);
>
>
> Thanks,
> Nikita Shinde.
> Amicon Technologies Pvt. Ltd.
> Mumbai.
>
>
> -Original Message-
> From: Yitao_Zhao [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2008 12:06 PM
> To: user@ofbiz.apache.org
> Subject: Use Webservice inside
>
> Hi all
>I hope to get some hints about the webservice
>I configured the service.xml in my project like below:
> 
>  optional="False"/>
>  optional="False"/>
> 
> 
>optional="True"/>
>optional="False"/>
> 
>
> Then I try to use the webservice in the java code for remote webservice
> like
> below:
>  @WebMethod
>  Public String createCustomer(String customer){
>   .
>   .
>   LocalDispatcher
> local=GenericDispatcher.getLocalDispatcher("projectName",
>
> GenericDelegator.getGenericDelegator(("default")));
>   DispatchContext context=local.getDispatchContext();
>   Try{
>  Map = local.runSync("createPerson",map);
>  String partyId = map.get("partyId");
>  Map = local.runSync("createPartyRole",UtilMisc.toMap
> (...);
>  }catch(Exception e){
>Return e.getLocalMessage();
>}
>
> When I try to run createPartyRole webservice, it tell me "User
> authorization
> is required for this service: createPartyRole"
> How to add authentication to a webservice, any hints would be
> appreciate
>
>
>
>


Re: Product Price

2008-04-01 Thread Vinod Kashyap

Hi Rohit.

Firstly, You need not to give the Thru Date.
Second, you have to give the "Product Store Group Id". This will be your
store to whom your product belongs. that is your ecommerce store. As your
have not mentioned this, that's why you get the exception. I hope this will
definitely solve your problem.

Thanks..

Ajay
Software Engineer
Pal Info Com
India
  

rpbang wrote:
> 
> Hi all,
> I have created a product and also attached a price to it by
> providing the following informtion
> 
> Price Type : Default Price
> Purpose : Purchase/Initial
> Currency UOM Id: INR - Indian Rupee
> Product Store Group Id : Not Applicable
> From Date : 2008-04-01 10:11:50.552
> Thru Date : 2009-04-24 10:11:59.790
> Price : 10,909
> termUomId :
> Custom Price Calc Service:
> 
> when I try adding this product to shopping cart it throws the following
> error
> 
> The Following Errors Occurred:
> Could not find a valid price for the product with ID [table002], not
> adding to cart.
> 
> 
> Would appreciate a reply.
> 
> regards,
> Rohit
> 
> 

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



Re: Product Price

2008-04-01 Thread rpbang

mmm..i restarted the server (just to make sure everything gets cleared).
still...the same problem.

I also noticed that when I click product itself on the shooping cart ( to
open the details) it always shows

Dinning Table big (SNB)
table002
Your Price: $0.00 
Height: 760 mm 
Width: 1100 mm 

this is the case with products with which I have attached the price as well
as the ones which do not have the price attached

regds,
rohit


Bilgin Ibryam wrote:
> 
> I suppose it is the cache. Try to clear the cache, wipe the session and
> shopping cart... It should work
> 
> 
> 

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



Re: Product Price

2008-04-01 Thread Bilgin Ibryam
I suppose it is the cache. Try to clear the cache, wipe the session and
shopping cart... It should work



Re: Product Price

2008-04-01 Thread rpbang

Hi Bilgin,
   Thankx for the quick reply. changed Default currency of
product store from USD to INR, still the problem persists...

regds,
Rohit


Bilgin Ibryam wrote:
> 
> Hi Rohit,
> 
> You also have to change the Default Currency Uom of the Product Store.
> 
> Bilgin
> 
> 
> 

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