Java JBoss AS7:客户端无法连接到应用程序服务器

Java JBoss AS7:客户端无法连接到应用程序服务器,java,jboss,jboss7.x,Java,Jboss,Jboss7.x,我正在将ejb应用程序从OC4j迁移到JBoss AS7,我能够成功地部署ear,如下JBoss控制台中的消息所述 17:30:30,346 INFO [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on 127.0.0.1:4447 17:30:30,613 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thre

我正在将ejb应用程序从OC4j迁移到JBoss AS7,我能够成功地部署ear,如下JBoss控制台中的消息所述

17:30:30,346 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on 127.0.0.1:4447
17:30:30,613 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:/jdbc/testappDataSource]
17:30:39,431 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 26) JBAS018559: Deployed "testapp.ear" (runtime-name : "testapp.ear")
应用程序正在使用Customdatabase身份验证,因此相应地更新了standalone.xml,如下所述:

<security-domain name="testapp" cache-type="default">
                    <authentication>
                        <login-module code="com.demo.dev.framework.products.oc4j.security.auth.OC4JLoginManager" flag="required"/>
                    </authentication>
                </security-domain>
我尝试过使用JBoss的示例远程ejb应用程序,它工作正常,但是当我尝试将我的应用程序与JBoss连接时,它不允许连接


我还需要做些什么来进行沟通吗?

我不确定Customdatabase凭据是如何工作的,但看起来您可能需要调整这些行:

Context.SECURITY_CREDENTIALS = <db user name>
Context.SECURITY_CREDENTIALS = <db password>
Context.SECURITY\u凭据=
Context.SECURITY\u凭据=
安全\u凭据列出两次。应该是吗

Context.SECURITY_PRINCIPAL = <db username>
Context.SECURITY_CREDENTIALS = <db password>
Context.SECURITY\u主体=
Context.SECURITY\u凭据=
另外,看看它是否有效:

Context.SECURITY_PRINCIPAL = <jboss username>
Context.SECURITY_CREDENTIALS = <jboss password>
Context.SECURITY\u主体=
Context.SECURITY\u凭据=
另外,可能是空白造成了问题。尝试:

Context.SECURITY_PRINCIPAL=<db user name>
Context.SECURITY_CREDENTIALS=<db password>
Context.SECURITY\u主体=
Context.SECURITY\u凭据=

抱歉,这是发布查询时的输入错误,凭证中也没有空格。在线程中也进行了更正
Context.SECURITY_PRINCIPAL = <db username>
Context.SECURITY_CREDENTIALS = <db password>
Context.SECURITY_PRINCIPAL = <jboss username>
Context.SECURITY_CREDENTIALS = <jboss password>
Context.SECURITY_PRINCIPAL=<db user name>
Context.SECURITY_CREDENTIALS=<db password>