title: There are no actions associated with the resource
body: <p>I'm following Liferay In Action instruction to build a portlet using Service Builder and I'm new to it. I've added addProduct method. You can see the code below:</p>
  
  <pre class="lang-java prettyprint-override"><code>public PRProduct addProduct(
          long companyID, long groupID, String productName,
          String serialNumber, long userID)
      throws SystemException, PortalException{
  
          PRProduct product = prProductPersistence.create(
              counterLocalService.increment(PRProduct.class.getName()));      
  
          resourceLocalService.addResources(
              companyID, groupID, userID, PRProduct.class.getName(),
              product.getPrimaryKey(), false, true, true);
  
          product.setProductName(productName);
          product.setSerialNumber(serialNumber);
          product.setCompanyId(companyID);
          product.setGroupId(groupID);
  
          return prProductPersistence.update(product, false);
  }
  </code></pre>
  
  <p>When I call this method from my portlet class I get "There are no actions associated with the resource com.inkwell.internet.productregistration.model.PRProduct". I don't understand what does it say and I don't know how to solve it. Any help is appreciated in advance.</p>