title: Java JAX-RPC NoClassDefFoundError
body: <p>I am new to JAX-RPC. I tried creating a simple Java bean in RAD 7.0, and went through the options to create a JAX-RPC webservice. My method is as below.</p>
  
  <pre><code> public byte[] getData(byte[] argument) {
  
      &lt;Customclass&gt; proxy = new &lt;Customclass&gt;();
      List outputList = new ArrayList();
      try {
          // Call a method on proxy
      } catch (Exception e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
      byte[] output = getBytesFromObject(outputList);
      return output;
  
  }
  </code></pre>
  
  <p>1) This works fine when called from a client, if i do not import any dependent classes. 
  2) However, when i import a dependent class (Customclass shown above), i get to see the below <strong>exception</strong>. </p>
  
  <pre><code> [9/12/09 9:59:00:182 IST] 00000026 UserException E   WSWS3228E: Error: Exception: WebServicesFault
   faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
   faultString: java.lang.NoClassDefFoundError: &lt;Customclass&gt;
   faultActor: null
   faultDetail: 
  java.lang.NoClassDefFoundError: 
  </code></pre>
  
  <p>Packaging - the above method resides in an application(ear) which has all the necessary classes included as jar files within the ear. The above method is invoked from a client - JAX-RPC client.</p>
  
  <p>Would appreciate if someone could guide me on this.</p>