JBoss 5.1 在虚拟服务器中运行时绑定到主机地址 -b
在 Debian 上的虚拟服务器计算机中启动 JBoss 5.1.0.GA 时(linux-VServer 技术),出现以下错误:
错误[org.jboss.kernel.plugins.dependency.AbstractKernelController](主要)安装到启动时出错:name=jboss.remoting:protocol=rmi,service=JMXConnectorServer state=Create mode=Manual requiredState=Installed java.io.IOException:无法绑定到 URL [rmi://10.1.2.11:1090/jmxconnector]:javax.naming.NoPermissionException [根异常是 java.rmi.ServerException:RemoteException 在服务器线程中发生;嵌套异常是: java.rmi.AccessException:不允许Registry.Registry.bind; origin /AA.BB.CC.DD 为非本地主机]
其中 AA.BB.CC.DD 是主机名称,10.1.2.11 是带有 JBoss 的 vserver guest,JBoss 是用 -b 10.1.2.11 启动的(我也尝试过 -Djboss.bind.address=10.1.2.11 -相同的结果)。
10.1.2.11 绑定到主机上的 dummy2 接口(服务于 10.1.2.1 网络)。
根异常很奇怪 - 为什么 JBoss 要绑定到主机地址 AA.BB.CC.DD?在同一台机器上使用 4.2.3.GA 没有问题,也以 -b 10.1.2.11 启动。
当不存在参数时,它会正确启动 - 绑定到本地主机并且一切正常,但它必须绑定到 10.1.2.11 才能被另一个虚拟服务器来宾上的 Apache 看到,充当代理。
我认为可以通过 sysctl 设置 net.ipv4.conf.all.promote_secondaries=1 (为 0)来修复它,但没有多大帮助。
有人遇到过这样的问题吗?
问候, 巴特
while starting JBoss 5.1.0.GA in virtual server machine on Debian (linux-VServer technology) I get the following error:
ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.remoting:protocol=rmi,service=JMXConnectorServer state=Create mode=Manual requiredState=Installed
java.io.IOException: Cannot bind to URL [rmi://10.1.2.11:1090/jmxconnector]: javax.naming.NoPermissionException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.AccessException: Registry.Registry.bind disallowed; origin /AA.BB.CC.DD is non-local host]
where AA.BB.CC.DD is host machine name, 10.1.2.11 is vserver guest with JBoss and JBoss is started with -b 10.1.2.11 (I also tried -Djboss.bind.address=10.1.2.11 - the same result).
10.1.2.11 is bound to dummy2 interface on host (serving 10.1.2.1 network).
The root exception is strange - why JBoss wants to bind to host address AA.BB.CC.DD? There were no problems with 4.2.3.GA on the same machine, also started with -b 10.1.2.11.
It starts correctly when no params present - binds to localhost and everything is ok, but it MUST be bound to 10.1.2.11 to be visible by Apache on another vserver guest, acting as proxy.
I thought that it can be fixed by setting net.ipv4.conf.all.promote_secondaries=1 via sysctl (was 0) but it didn't help much.
Has anyone had such problem?
Regards,
bart
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您能否确认端口 //10.1.2.11:1090/ 是否未被其他进程(甚至是僵尸进程:P)使用?
几年前 JbossJIRA 也出现过类似的问题......但是我虽然它已经修好了。
Could you confirm if The port //10.1.2.11:1090/ isn't being used by another process (even a zombie one : P)?
There was a problem similar at JbossJIRA a couple of years ago... But i though it was already fixed.