title: java.lang.NoClassDefFoundError: org/jboss/remoting/InvokerLocator runtime error
body: <p>I have the client class but when the class is called, it gets a<br>
  "java.lang.NoClassDefFoundError: org/jboss/remoting/InvokerLocator" runtime error.</p>
  
  <pre><code>import java.text.SimpleDateFormat;
  
  import javax.inject.Inject;
  import javax.inject.Named;
  import org.jboss.remoting.Client;
  import org.jboss.remoting.InvokerLocator;
  
  @Named("esamDIDDClient")
  public class ESAMDIDDWSClient {
  
      @Inject SystemProperyManager sysprop;
  
      private void sendMessageToJBRListener(String url, String message) throws Throwable {
          String locatorURI = url;
          InvokerLocator locator = new InvokerLocator(locatorURI);
          System.out.println("Calling JBoss Remoting Listener using locator URI: " + locatorURI);
  
          Client remotingClient = null;
  
          try {
              remotingClient = new Client(locator);
              remotingClient.connect();
  
              // Deliver the message to the listener...
              Object response = remotingClient.invoke(message);
              System.out.println("JBR Class: " + response.getClass().getName());
              System.out.println("Response from JBoss Remoting Listener '" + locatorURI + "' was '" + response + "'.");
          }  catch (Exception ex) {
              ex.printStackTrace();
              throw ex;
          } finally {
              if(remotingClient != null) {
                  remotingClient.disconnect();
              }
          }
      }
  </code></pre>
  
  <p>I have the <em>org.jboss.remoting</em> JAR in the IDE, also I did confirm that <code>InvokerLocator</code> class in there.</p>
  
  <p>I downloaded the JAR file from <a href="http://jbossremoting.jboss.org/downloads" rel="nofollow">here</a>, and it is the most recent/stable one that I could find.</p>
  
  <p>Am I using a wrong <em>remoting.jar</em>, or am I missing something else?</p>
  
  <p>By the way, this was a using a <em>seam.remoting.jar</em>. After removing seam, I had to use a different JAR.</p>