title: how to pass java object as a parameter in restful webservice
body: <p>Registration_BE contains many variable like <code>myvariable</code>. I want to get <code>reg_be</code> all variable in here. Like this I have to pass my object.</p>
  
  <p>servlet:</p>
  
  <pre><code>http://192.168.1.1:8084/UnionClubWS/webresources/customerregistration/?reg_be="+reg_be
  </code></pre>
  
  <p>webservice:</p>
  
  <pre><code>public String getText(@PathParam("reg_be") Registration_BE reg_be ) {
     System.out.println("websevice:" +reg_be.myvariable);      
      return reg_be.myvariable;
  }
  </code></pre>
  
  <p>The above code throws this Exception:</p>
  
  <pre><code>com.sun.jersey.spi.inject.Errors$ErrorMessagesException.....
  </code></pre>
  
  <p>How can I solve this problem?</p>