title: Ofbiz service creation
body: <p>Starting to learn ofbiz, I am following the tutorial here:
  <a href="https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorial-ABeginnersDevelopmentGuide-SecureYourApplicationbyAuthentication" rel="nofollow">https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide#OFBizTutorial-ABeginnersDevelopmentGuide-SecureYourApplicationbyAuthentication</a></p>
  
  <p>Now I am in the step to make the list form of persons editable. In this step I need to create a service which will be used for auto-fields-service. Below I give the code which I have done.</p>
  
  <p>In the controller.xml of my componenent I have created a requestMaps as follows:</p>
  
  <pre><code> &lt;request-map uri="updatePracticePerson"&gt;
      &lt;security https="true" auth="true"/&gt;
      &lt;event type="service" invoke="updatePracticePerson"/&gt;
      &lt;response name="success" type="view" value="personForm"/&gt;
      &lt;response name="error" type="view" value="personForm"/&gt;
  &lt;/request-map&gt;
  </code></pre>
  
  <p>Moving now to the PracticeScreens.xml i have the following for personForm:</p>
  
  <pre><code>&lt;screen name="personForm"&gt;
      &lt;section&gt;
          &lt;actions&gt;
              &lt;set field="headerItem" value="personForm"/&gt;
              &lt;set field="titleProperty" value="PageTitlePracticePersonForm"/&gt;
              &lt;entity-condition entity-name="Person" list="persons"/&gt;
          &lt;/actions&gt;
          &lt;widgets&gt;
              &lt;decorator-screen name="CommonPracticeDecorator" location="${parameters.mainDecoratorLocation}"&gt;
                  &lt;decorator-section name="body"&gt;
                      &lt;label text="Person List" style="h2"/&gt;
                      &lt;include-form name="ListPersons" location="component://practice/widget/PracticeForms.xml"&gt;&lt;/include-form&gt;
                  &lt;/decorator-section&gt;
              &lt;/decorator-screen&gt;       
          &lt;/widgets&gt;
      &lt;/section&gt;
  </code></pre>
  
  <p></p>
  
  <p>The above includes the ListPersons from PracticeForms.xml, which I have as :</p>
  
  <pre><code>&lt;form name="ListPersons" type="list" list-name="persons" list-entry-name="person" target="updatePracticePerson" paginate-target="personForm"&gt;
      &lt;auto-fields-service service-name="updatePracticePerson" default-field-type="edit" map-name="person"/&gt;
      &lt;field name="partyId"&gt;&lt;hidden/&gt;&lt;/field&gt;
      &lt;field name="submitButton" title="Update" widget-style="smallSubmit"&gt;&lt;submit button-type="button"/&gt;&lt;/field&gt;
      &lt;field name="deletePracticePerson" title="Delete Person" widget-style="buttontext"&gt;
          &lt;hyperlink target="deletePracticePerson?partyId=${person.partyId}" description="${uiLabelMap.CommonDelete}" also-hidden="false"/&gt;
      &lt;/field&gt;
      &lt;field name="submitButton" title="${uiLabelMap.CommonUpdate}"&gt;&lt;submit button-type="button"/&gt;&lt;/field&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>If you see above the ListPersons calls the service updatePracticePerson.</p>
  
  <p>inside servicedef/services.xml i have the following:</p>
  
  <pre><code> &lt;service name="updatePracticePerson" default-entity-name="Person" engine="simple"
          location="component://practice/script/org/hotwax/practice/PracticeServices.xml" invoke="updatePracticePerson" auth="true"&gt;
      &lt;description&gt;Create a Person&lt;/description&gt;
      &lt;auto-attributes include="pk" mode="IN" optional="false"/&gt;
      &lt;attribute name="salutation" mode="IN" type="String" optional="true"/&gt;
      &lt;attribute name="firstName" mode="IN" type="String" optional="false"/&gt;
      &lt;attribute name="middleName" mode="IN" type="String" optional="true"/&gt;
      &lt;attribute name="lastName" mode="IN" type="String" optional="false"/&gt;
      &lt;attribute name="suffix" mode="IN" type="String" optional="true"/&gt;
  &lt;/service&gt;
  </code></pre>
  
  <p>In the root of my project in the file ofbiz-component.xml i have :</p>
  
  <pre><code> &lt;service-resource type="model" loader="main" location="servicedef/services.xml"/&gt;
  </code></pre>
  
  <p>this to make sure that my service is loaded.</p>
  
  <p>Although all of the above seem correct to me I get the following error :</p>
  
  <pre><code>org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.RuntimeException: Error rendering included form named [ListPersons] at location [component://practice/widget/PracticeForms.xml]: java.lang.IllegalArgumentException: Error finding Service with name updatePracticePerson for auto-fields-service in a form widget (Error rendering included form named [ListPersons] at location [component://practice/widget/PracticeForms.xml]: java.lang.IllegalArgumentException: Error finding Service with name updatePracticePerson for auto-fields-service in a form widget)
  </code></pre>
  
  <p>Which obviously implies that everything is not ok and there is something wrong with my service. Could you please assist on this?</p>
  
  <p>Thanks in advance, 
  gianis</p>