JBoss 7:java.net.ConnectException:拒绝连接:没有进一步的信息

时间:2016-09-02 15:37:02

标签: java-ee jboss jboss7.x

我在JBoss中使用EJB远程处理机制,应用程序运行正常。但是在部署期间会出现一些问题。我们能够在组织环境中访问Jboss,但是从Citrix环境我们无法访问相同的JBoss服务器并获得连接拒绝错误:

java.net.ConnectException: Connection refused: no further information
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
    at org.xnio.nio.NioXnioWorker$1.handleEvent(NioXnioWorker.java:329)
    at org.xnio.nio.NioXnioWorker$1.handleEvent(NioXnioWorker.java:325)
    at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72)
    at org.xnio.nio.NioHandle.run(NioHandle.java:90)
    at org.xnio.nio.WorkerThread.run(WorkerThread.java:198)
    at ...asynchronous invocation...(Unknown Source)
    at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:270)
    at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:386)
    at org.jboss.ejb.client.remoting.EndpointPool$PooledEndpoint.connect(EndpointPool.java:187)
    at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:152)
    at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:133)
    at org.jboss.ejb.client.remoting.ConnectionPool.getConnection(ConnectionPool.java:78)
    at org.jboss.ejb.client.remoting.RemotingConnectionManager.getConnection(RemotingConnectionManager.java:51)
    at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.setupEJBReceivers(ConfigBasedEJBClientContextSelector.java:149)
    at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.getCurrent(ConfigBasedEJBClientContextSelector.java:118)
    at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.getCurrent(ConfigBasedEJBClientContextSelector.java:47)
    at org.jboss.ejb.client.EJBClientContext.getCurrent(EJBClientContext.java:279)
    at org.jboss.ejb.client.EJBClientContext.requireCurrent(EJBClientContext.java:289)
    at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:178)
    at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:146)
    at com.sun.proxy.$Proxy2.connect(Unknown Source)

代码中使用的jboss-ejb-client设置是:

Properties clientProp = new Properties();
            clientProp.put("endpoint.name", "client-endpoint");
            clientProp
                    .put("remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED",
                            false);

                                clientProp.put("remote.connection.default.port", urls[1]);
                                clientProp.put("remote.connection.default.host", urls[0]);


            clientProp.put("remote.connection.default.username",
                    System.getProperty(Context.SECURITY_PRINCIPAL));
            clientProp.put("remote.connection.default.password",
                    System.getProperty(Context.SECURITY_CREDENTIALS));
            clientProp
                    .put("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT",
                            false);
            clientProp
                    .put("remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS",
                            false);
            clientProp
                    .put("remote.connection.default.connect.options.org.xnio.Options.SASL_DISALLOWED_MECHANISMS",
                            "JBOSS-LOCAL-USER");
            clientProp
                    .put("remote.connection.default.connect.options.org.jboss.remoting3.RemotingOptions.HEARTBEAT_INTERVAL",
                            "60000");
            clientProp.put("remote.connection.default.connect.timeout", "3000000");//for xnio

防火墙可以是什么原因?或者我在这里丢失的任何配置导致客户端无法访问某些特定位置的JBoss?

0 个答案:

没有答案