title: Netbeans JAX-WS Generated Classes Collisons (stub and server on the same project)
body: <p>I'm developing two server-side independent modules (A and B).</p>
  
  <p>B interacts with A as a client. So far so good.</p>
  
  <p>The problem is that when I generate the stub on B, Netbeans generates the classes in a different package turning the same class incompatible with the rest (Although they are the same class).</p>
  
  <pre><code>public RegistryResponseType documentRepositoryProvideAndRegisterDocumentSetB(ProvideAndRegisterDocumentSetRequestType body) 
  {
      oasis.names.tc.ebxml_regrep.xsd.rim._3.SubmissionObjectRequest receivedObj body.getSubmitObjectsRequest();
      pt.ieeta.xadi.core.SubmitObjectsRequest stubObj = handleSubmissionObject(receivedObj);
  }
  </code></pre>
  
  <p>Currently I'm translating the object (although they are the same class but generated through different processes) with the method:</p>
  
  <pre><code>pt.ieeta.xadi.core.SubmitObjectsRequest stubObj = handleSubmissionObject(receivedObj);
  </code></pre>
  
  <p>I bet there is a straightforward way to do this.</p>
  
  <p>Can anyone help me?</p>
  
  <p>Thank you in advance and Sorry for being JAX-WS noob ;)</p>