org/jboss/Uzak/InvokerLocator çalışma zamanı çalışma hatası. java.lang.NoClassDefFoundError: ": org/jboss/Uzak/InvokerLocator java.lang.NoClassDefFoundError" Ben istemci sınıf var ama sınıf çağrıldığında, bir <br> alır hatası
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();
}
}
}
Ben de orada o
InvokerLocator
sınıf teyit etti,
IDE JAR org.jboss.remoting var.
JAR dosyasını here'dan indirdim ve bulabildiğim en yeni/kararlı olan.
Yanlış kullanıyorum remoting.jar veya başka bir şey mi eksik miyim? Bu, bir seam.remoting.jar kullanıyordu. Dikiş çıkarıldıktan sonra farklı bir JAR kullanmak zorunda kaldım.
Kullandığınız JBoss sürümü nedir? – aribeiro
@aribeiro Jboss wildfly 10 – DrSaugi
Peki ne yapmaya çalışıyorsunuz? Wildfly 10'daki JBoss Remote Listener'ı nasıl başlattın? – aribeiro