JBOSS 7.1远程EJB客户端失败

时间:2018-06-07 09:02:24

标签: jboss client ejb

我正在尝试从远程EJB客户端连接到JBOSS 7.1服务器。

但是,我收到以下错误:

  

jboss.naming.context.java.SecureChannelServer.SecureChannelServerEJB"!ApplicationCheckBean com.securechannel.EJBRemoteInterface.ApplicationCheckRemote"   14:20:20,926 ERROR [stderr](Timer-2)javax.naming.NameNotFoundException:SecureChannelServer / SecureChannelServerEJB // ApplicationCheckBean!com.securechannel.EJBRemoteInterface.ApplicationCheckRemote - service jboss.naming.context.java.SecureChannelServer.SecureChannelServerEJB。& #34;!ApplicationCheckBean com.securechannel.EJBRemoteInterface.ApplicationCheckRemote"   14:20:20,928 ERROR [stderr](Timer-2)在org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:106)   14:20:20,929 org.jboss.as.naming.NamingContext.lookup(NamingContext.java:207)中的错误[stderr](Timer-2)   14:20:20,931 ERROR [stderr](Timer-2)在org.jboss.as.naming.InitialContext $ DefaultInitialContext.lookup(InitialContext.java:237)   14:20:20,932 ERROR [stderr](Timer-2)在org.jboss.as.naming.NamingContext.lookup(NamingContext.java:193)   14:20:20,933错误[stderr](Timer-2)在org.jboss.as.naming.NamingContext.lookup(NamingContext.java:189)   14:20:20,935错误[stderr](Timer-2)在javax.naming.InitialContext.lookup(InitialContext.java:417)   14:20:20,939错误[stderr](Timer-2)在javax.naming.InitialContext.lookup(InitialContext.java:417)   14:20:20,941 ERROR [stderr](Timer-2)在com.securechannel.webserviceclient.SecureChannelAuthServiceClient.CheckRemoteService(SecureChann

服务器端的JNDI:

  java:global/SecureChannelServer/SecureChannelServerEJB/ApplicationCheckBean!com.securechannel.serverEJB.ApplicationCheckLocal
        java:app/SecureChannelServerEJB/ApplicationCheckBean!com.securechannel.serverEJB.ApplicationCheckLocal
        java:module/ApplicationCheckBean!com.securechannel.serverEJB.ApplicationCheckLocal


    java:global/SecureChannelServer/SecureChannelServerEJB/ApplicationCheckBean!com.securechannel.EJBRemoteInterface.ApplicationCheckRemote
        java:app/SecureChannelServerEJB/ApplicationCheckBean!com.securechannel.EJBRemoteInterface.ApplicationCheckRemote
        java:module/ApplicationCheckBean!com.securechannel.EJBRemoteInterface.ApplicationCheckRemote


java:jboss/exported/SecureChannelServer/SecureChannelServerEJB/ApplicationCheckBean!com.securechannel.EJBRemoteInterface.ApplicationCheckRemote

远程客户端属性:

Context.URL_PKG_PREFIXES=org.jboss.ejb.client.naming
Context.INITIAL_CONTEXT_FACTORY=org.jboss.naming.remote.client.InitialContextFactory
Context.PROVIDER_URL=remote://localhost:8080
Context.SECURITY_PRINCIPAL=xxxxxxxxxx
Context.SECURITY_CREDENTIALS=xxxxxxxxxxxx
jboss.naming.client.ejb.context=true

JNDI已使用:

ejb:SecureChannelServer/SecureChannelServerEJB//ApplicationCheckBean!com.securechannel.EJBRemoteInterface.ApplicationCheckRemote

我也试过没有jboss.naming.client.ejb.context而JNDI中没有ejb:前缀。

我尝试了很多选择。但是,我无法弄清楚我哪里出错了。

有人可以帮助我吗?

0 个答案:

没有答案