2016-03-28 13 views
0

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.

+0

Kullandığınız JBoss sürümü nedir? – aribeiro

+0

@aribeiro Jboss wildfly 10 – DrSaugi

+0

Peki ne yapmaya çalışıyorsunuz? Wildfly 10'daki JBoss Remote Listener'ı nasıl başlattın? – aribeiro

cevap

0

RedHat, JBoss AS ürününü Wildfly ile değiştirdiğinde, SwitchYard numaralı telefonla replaced JBoss ESB. Bu nedenle JBoss AS7'den bu yana JBoss ESB için there's no more support.

Gönderdiğiniz kodla, hizmetinizin aslında bir web hizmeti olduğunu varsayalım.

Bu nedenle, kodunuzu değiştirmek ve SOAP-based web service binding ile RemoveInvoker kullanmaya başlamak isteyebilirsiniz.

Bir başlangıç ​​noktası olarak, this RedHat'ın SwitchYard örneğine bakabilirsiniz.

+0

Teşekkürler, sadece bana doğru yöne işaret edecek birine ihtiyacım vardı. – DrSaugi

İlgili konular