简体   繁体   English

java.lang.NoClassDefFoundError:org / jboss / remoting / InvokerLocator运行时错误

[英]java.lang.NoClassDefFoundError: org/jboss/remoting/InvokerLocator runtime error

I have the client class but when the class is called, it gets a 我有客户端类,但是当类被调用时,它会得到一个
"java.lang.NoClassDefFoundError: org/jboss/remoting/InvokerLocator" runtime error. “ java.lang.NoClassDefFoundError:org / jboss / remoting / InvokerLocator”运行时错误。

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();
            }
        }
    }

I have the org.jboss.remoting JAR in the IDE, also I did confirm that InvokerLocator class in there. 我在IDE中有org.jboss.remoting JAR,我也确实在那里确认了InvokerLocator类。

I downloaded the JAR file from here , and it is the most recent/stable one that I could find. 我从此处下载JAR文件,它是我可以找到的最新/稳定文件。

Am I using a wrong remoting.jar , or am I missing something else? 我使用的是错误的remoting.jar还是缺少其他内容?

By the way, this was a using a seam.remoting.jar . 顺便说一句,这是使用seam.remoting.jar After removing seam, I had to use a different JAR. 去除接缝后,我不得不使用其他JAR。

When RedHat replaced JBoss AS with Wildfly, it also replaced JBoss ESB with SwitchYard . 当RedHat用Wildfly替换JBoss AS时,它也用SwitchYard 替换了 JBoss ESB。

Therefore, since JBoss AS7 that there's no more support for JBoss ESB. 因此,自JBoss AS7起, 就不再支持 JBoss ESB。

By the code you've posted, I'm assuming that your service is, in fact, a web service. 根据您发布的代码,我假设您的服务实际上是Web服务。

Therefore, I think you might want to change your code and start using a RemoveInvoker , with SOAP-based web service binding . 因此,我认为您可能想更改代码并开始使用带有基于SOAP的Web服务绑定RemoveInvoker

As a starting point, you could take a look at the this RedHat's SwitchYard example. 作为一个起点,你可以看看在这个 RedHat的开关站的例子。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.lang.NoClassDefFoundError:org / jboss / netty / channel / ChannelFactory - java.lang.NoClassDefFoundError: org/jboss/netty/channel/ChannelFactory 线程“主”中的异常java.lang.NoClassDefFoundError:org / json / simple / JSONObject-Java命令行运行时错误 - Exception in thread “main” java.lang.NoClassDefFoundError: org/json/simple/JSONObject - java commandline runtime error java.lang.NoClassDefFoundError:org.eclipse.core.runtime.RegistryFactory - java.lang.NoClassDefFoundError: org.eclipse.core.runtime.RegistryFactory Jetty:Java.lang.NoClassDefFoundError:org / apache / jasper / runtime / JspApplicationContextImpl错误 - Jetty: Java.lang.NoClassDefFoundError:org/apache/jasper/runtime/JspApplicationContextImpl error java.lang.NoClassDefFoundError:org / apache / poi / ss / usermodel / Row运行时错误 - java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Row Error during runtime Java错误,java.lang.NoClassDefFoundError:Hadoop中的org / myorg / WordCount - Java Error, java.lang.NoClassDefFoundError: org/myorg/WordCount in Hadoop java.lang.NoClassDefFoundError:升级JBoss 4.0.5至4.2.2时org / jboss / mq / SpyObjectMessage - java.lang.NoClassDefFoundError: org/jboss/mq/SpyObjectMessage when upgrading JBoss 4.0.5 to 4.2.2 jBoss部署显示java.lang.NoClassDefFoundError - jBoss deployment showed java.lang.NoClassDefFoundError 获取错误 java.lang.NoClassDefFoundError: org/mockito/MockitoAnnotations$Mock - Getting error java.lang.NoClassDefFoundError: org/mockito/MockitoAnnotations$Mock 出现错误 java.lang.NoClassDefFoundError: org/reactivestreams/Publisher - Getting Error java.lang.NoClassDefFoundError: org/reactivestreams/Publisher
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM