jboss-as-7.1.1.Final 使用client远程调用,用户名密码验证出错
2014-06-12 16:36
585 查看
在myeclipse10.6上开发ejb程序部署到jboss-as-7.1.1.Final上后,在myeclipse写一个java程序验证是否正确时;
新建jboss-ejb-client.properties内容如下(之前已经在jboss上增加过用户了,client下的jar包什么的都已经加到classpath路径上了):
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connections=default
remote.connection.default.host=localhost
remote.connection.default.port = 4447
remote.connection.default.username=localhost
remote.connection.default.password=shenyf
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
jndi.properties内容如下:
java.naming.factory.initial=org.jboss.naming.remote.client.InitialContextFactory
java.naming.factory.url.pkgs=org.jboss.ejb.client.naming
java.naming.provider.url=remote://localhost:4447
javax.naming.Context.SECURITY_PRINCIPAL=localhost
javax.naming.Context.SECURITY_CREDENTIALS=shenyf
执行时总是报错连接不了4447端口!google了几天才发现是7.1.1的bug
还是换用jboss-as-6.1.0了,只需要配一个文件jndi.properties如下
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=127.0.0.1
自己记一下!
新建jboss-ejb-client.properties内容如下(之前已经在jboss上增加过用户了,client下的jar包什么的都已经加到classpath路径上了):
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connections=default
remote.connection.default.host=localhost
remote.connection.default.port = 4447
remote.connection.default.username=localhost
remote.connection.default.password=shenyf
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
jndi.properties内容如下:
java.naming.factory.initial=org.jboss.naming.remote.client.InitialContextFactory
java.naming.factory.url.pkgs=org.jboss.ejb.client.naming
java.naming.provider.url=remote://localhost:4447
javax.naming.Context.SECURITY_PRINCIPAL=localhost
javax.naming.Context.SECURITY_CREDENTIALS=shenyf
执行时总是报错连接不了4447端口!google了几天才发现是7.1.1的bug
还是换用jboss-as-6.1.0了,只需要配一个文件jndi.properties如下
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=127.0.0.1
自己记一下!
相关文章推荐
- JBOSS AS 7 客户端使用JNDI远程调用EJB Bean (方式之一)
- java通过url调用远程接口返回json数据,有用户名和密码验证
- weblogic/jboss使用ejb3.0远程调用
- SVN使用MySQL验证用户名密码(HTTP)
- C#调用Oracle ebs生成Webservice,加用户名密码验证
- WCF消息安全模式之自定义用户名密码:Message CustomUserNamePassword wsHttpBinding 使用Windows Services宿主以及客户端免证书验证
- wcf使用用户名和密码来验证
- JSP 连接远程LDAP 实现用户名和密码验证
- 使用用户名和密码验证apache登录
- jboss-as-7.1.1.Final部署SSH项目出错总结
- 使用JDBC连接MySQL数据库--典型案例分析(五)----用户名密码验证功能
- 使用用户名和密码验证apache登录
- NO.19 HttpConnection、HttpClient使用注意点(附http连接工具:采用HttpClient支持代理Proxy、支持用户名密码、支持域Domain模式)
- 温习ASP调用C#的DLL并实现用户名密码进行域验证反馈结果
- .net使用用户名和密码访问远程共享文件夹的两种方法
- 使用powershell通过配置文件config调用wcf(含用户名密码认证)