Error finding Service with name updatePracticePerson for auto-fields-service in a form widget

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error finding Service with name updatePracticePerson for auto-fields-service in a form widget

Shuany Yu
I'm trying to finish the part 2 of the tutorial but I haven't found where the updatePracticePerson service is defined in the tutorial. Thus, I'm recieving the following error message when I try to open the personform page.
---- exception report ---------------------------------------------------------- Error finding Service with name updatePracticePerson for auto-fields-service in a form widget Exception: org.ofbiz.service.GenericServiceException Message: Cannot locate service by name (updatePracticePerson) ---- stack trace --------------------------------------------------------------- org.ofbiz.service.GenericServiceException: Cannot locate service by name (updatePracticePerson) org.ofbiz.service.DispatchContext.getModelService(DispatchContext.java:190) org.ofbiz.widget.form.ModelForm.addAutoFieldsFromService(ModelForm.java:681) org.ofbiz.widget.form.ModelForm.initForm(ModelForm.java:497) org.ofbiz.widget.form.ModelForm.<init>(ModelForm.java:213) org.ofbiz.widget.form.FormFactory.createModelForm(FormFactory.java:154) org.ofbiz.widget.form.FormFactory.createModelForm(FormFactory.java:150) org.ofbiz.widget.form.FormFactory.getFormFromLocation(FormFactory.java:85) org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:857) org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:837who can help me, thanks?
Reply | Threaded
Open this post in threaded view
|

Re: Error finding Service with name updatePracticePerson for auto-fields-service in a form widget

Vikas Mayur-2
You also need to add the service definition, look for an example in
applications/party/servicedef

Regards
Vikas

On Tue, Feb 21, 2012 at 11:00 PM, Shuany Yu <[hidden email]> wrote:

> I'm trying to finish the part 2 of the tutorial but I haven't found where
> the updatePracticePerson service is defined in the tutorial. Thus, I'm
> recieving the following error message when I try to open the personform
> page.
> ---- exception report
> ---------------------------------------------------------- Error finding
> Service with name updatePracticePerson for auto-fields-service in a form
> widget Exception: org.ofbiz.service.GenericServiceException Message: Cannot
> locate service by name (updatePracticePerson) ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: Cannot locate service by name
> (updatePracticePerson)
> org.ofbiz.service.DispatchContext.getModelService(DispatchContext.java:190)
> org.ofbiz.widget.form.ModelForm.addAutoFieldsFromService(ModelForm.java:681)
> org.ofbiz.widget.form.ModelForm.initForm(ModelForm.java:497)
> org.ofbiz.widget.form.ModelForm.<init>(ModelForm.java:213)
> org.ofbiz.widget.form.FormFactory.createModelForm(FormFactory.java:154)
> org.ofbiz.widget.form.FormFactory.createModelForm(FormFactory.java:150)
> org.ofbiz.widget.form.FormFactory.getFormFromLocation(FormFactory.java:85)
> org.ofbiz.widget.screen.ModelScreenWidget$Form.getModelForm(ModelScreenWidget.java:857)
> org.ofbiz.widget.screen.ModelScreenWidget$Form.renderWidgetString(ModelScreenWidget.java:837who
> can help me, thanks?
Reply | Threaded
Open this post in threaded view
|

Re: Error finding Service with name updatePracticePerson for auto-fields-service in a form widget

dhiraj.g
In reply to this post by Shuany Yu
Hi
First you declare updatePracticePerson in controller ,then you define the service  in servicedef/service.xml and then define the service in script/org/ofbiz .


Thanks
Dhiraj Gupta
Dhiraj Gupta