启动 glassfish 服务器时出错
这是我的第一篇文章 希望能得到解决方案。
我在 Solaris m/c 上启动 glassfish 服务器时遇到以下异常,并且服务器未启动。
搜索了一些博客后发现可以通过重启m/c来解决。
我想找到原因...
请帮助...
[#|2011-05-10T18:54:00.212+0300|SEVERE|sun-appserver2.1|javax.enterprise.resource.corba.ee.S1AS-ORB .rpc.transport|_ThreadID=1 0;_ThreadName=main;所有接口;3700;;_RequestID=7ad87260-643c-4341-9221-716f58687949;|"IOP00410216: (COMM_FAILURE) 无法 在指定主机/端口上创建 IIOP 侦听器:所有接口/3700” org.omg.CORBA.COMM_FAILURE:vmcid:SUN 次要代码:216 已完成:否 在com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:3187) 在 com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:3207) 在com.sun.corba.ee.impl.transport.SocketOrChannelAcceptorImpl.initialize(SocketOrChannelAcceptorImpl.java:182) 在com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.getAcceptors(CorbaTransportManagerImpl.java:236) 在com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.addToIORTemplate(CorbaTransportManagerImpl.java:253) 在 com.sun.corba.ee.spi.oa.ObjectAdapterBase.initializeTemplate(ObjectAdapterBase.java:127) 在 com.sun.corba.ee.impl.oa.toa.TOAImpl.(TOAImpl.java:107) 在 com.sun.corba.ee.impl.oa.toa.TOAFactory.getTOA(TOAFactory.java:98) 在 com.sun.corba.ee.impl.orb.ORBImpl.connect(ORBImpl.java:1664) 在 com.sun.corba.ee.spi.presentation.rmi.StubAdapter.connect(StubAdapter.java:212) 在 com.sun.corba.ee.impl.orb.ORBImpl.getIOR(ORBImpl.java:2115) 在 com.sun.corba.ee.impl.orb.ORBImpl.getFVDCCodeBaseIOR(ORBImpl.java:987) 在 com.sun.enterprise.util.ORBManager.initORB(ORBManager.java:556) 在 com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:278) 在 com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:289) 在 com.sun.enterprise.server.ondemand.EjbServiceGroup.createORB(EjbServiceGroup.java:511) 在 com.sun.enterprise.server.ondemand.EjbServiceGroup.startORB(EjbServiceGroup.java:437) 在 com.sun.enterprise.server.ondemand.EjbServiceGroup._start(EjbServiceGroup.java:156) 在 com.sun.enterprise.server.ondemand.EjbServiceGroup.start(EjbServiceGroup.java:143) 在 com.sun.enterprise.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:193) 在 java.security.AccessController.doPrivileged(本机方法) 在 com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:190) 在 com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:58) 在 com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:85) 在 com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:75) 在com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generateStartUpEntryContext(ServerEntryHelper.java:64) 在 com.sun.enterprise.server.ondemand.OnDemandServer.generateEntryContext(OnDemandServer.java:154) 在 com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:133) 在 com.sun.enterprise.server.PEMain.run(PEMain.java:409) 在 com.sun.enterprise.server.PEMain.main(PEMain.java:336) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在 java.lang.reflect.Method.invoke(Method.java:592) 在 com.sun.enterprise.server.PELaunch.main(PELaunch.java:415) 引起原因:java.net.BindException:地址已在使用中 在 sun.nio.ch.Net.bind(本机方法) 在 sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119) 在 sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) 在 sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52) 在 com.sun.enterprise.iiop.IIOPSSLSocketFactory.createServerSocket(IIOPSSLSocketFactory.java:301) 在com.sun.corba.ee.impl.transport.SocketOrChannelAcceptorImpl.initialize(SocketOrChannelAcceptorImpl.java:175) ... 32 更多 |#]
[#|2011-05-10T18:54:00.254+0300|警告|sun-appserver2.1|javax.enterprise.resource.corba.ee。正在初始化.rpc.presentation|_ ThreadID=10;_ThreadName=main;;_RequestID=7ad87260-643c-4341-9221-716f58687949;|“IOP02310202: (OBJ_ADAPTER) 连接错误 g ORB 的仆人” org.omg.CORBA.OBJ_ADAPTER:vmcid:SUN 次要代码:202 已完成:否 在 com.sun.corba.ee.impl.logging.ORBUtilSystemException.orbConnectError(ORBUtilSystemException.java:10263) 在 com.sun.corba.ee.impl.logging.ORBUtilSystemException.orbConnectError(ORBUtilSystemException.java:10281) 在 com.sun.corba.ee.impl.orb.ORBImpl.connect(ORBImpl.java:1666) 在 com.sun.corba.ee.spi.presentation.rmi.StubAdapter.connect(StubAdapter.java:212) 在 com.sun.corba.ee.impl.orb.ORBImpl.getIOR(ORBImpl.java:2115) 在 com.sun.corba.ee.impl.orb.ORBImpl.getFVDCCodeBaseIOR(ORBImpl.java:987) 在 com.sun.enterprise.util.ORBManager.initORB(ORBManager.java:556) 在 com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:278) 在 com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:289) 在 com.sun.enterprise.server.ondemand.EjbServiceGroup.createORB(EjbServiceGroup.java:511) 在 com.sun.enterprise.server.ondemand.EjbServiceGroup.startORB(EjbServiceGroup.java:437) 在 com.sun.enterprise.server.ondemand.EjbServiceGroup._start(EjbServiceGroup.java:156) 在 com.sun.enterprise.server.ondemand.EjbServiceGroup.start(EjbServiceGroup.java:143) 在 com.sun.enterprise.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:193) 在 java.security.AccessController.doPrivileged(本机方法) 在 com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:190) 在 com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:58) 在com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:85) 在 com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:75) 在com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generateStartUpEntryContext(ServerEntryHelper.java:64) 在 com.sun.enterprise.server.ondemand.OnDemandServer.generateEntryContext(OnDemandServer.java:154) 在 com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:133) 在 com.sun.enterprise.server.PEMain.run(PEMain.java:409) 在 com.sun.enterprise.server.PEMain.main(PEMain.java:336) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在 java.lang.reflect.Method.invoke(Method.java:592) 在 com.sun.enterprise.server.PELaunch.main(PELaunch.java:415) 引起原因:org.omg.CORBA.COMM_FAILURE:vmcid:SUN 次要代码:216 已完成:否 在com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:3187) 在 com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:3207) 在com.sun.corba.ee.impl.transport.SocketOrChannelAcceptorImpl.initialize(SocketOrChannelAcceptorImpl.java:182) 在com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.getAcceptors(CorbaTransportManagerImpl.java:236) 在com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.addToIORTemplate(CorbaTransportManagerImpl.java:253) 在 com.sun.corba.ee.spi.oa.ObjectAdapterBase.initializeTemplate(ObjectAdapterBase.java:127) 在 com.sun.corba.ee.impl.oa.toa.TOAImpl.(TOAImpl.java:107) 在 com.sun.corba.ee.impl.oa.toa.TOAFactory.getTOA(TOAFactory.java:98) 在 com.sun.corba.ee.impl.orb.ORBImpl.connect(ORBImpl.java:1664) ... 26 更多 原因:java.net.BindException:地址已在使用中 在 sun.nio.ch.Net.bind(本机方法)
谢谢和问候, 阿里
this is my first post
Hope will get solution.
I am getting below exceptions while starting glassfish server on solaris m/c and server is not starting.
After searching some of the blogs i found that it could be resolved by restarted m/c.
I want to find the cause...
Please help ...
[#|2011-05-10T18:54:00.212+0300|SEVERE|sun-appserver2.1|javax.enterprise.resource.corba.ee.S1AS-ORB.rpc.transport|_ThreadID=1
0;_ThreadName=main;all interfaces;3700;;_RequestID=7ad87260-643c-4341-9221-716f58687949;|"IOP00410216: (COMM_FAILURE) Unable
to create IIOP listener on the specified host/port: all interfaces/3700"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 216 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:3187)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:3207)
at com.sun.corba.ee.impl.transport.SocketOrChannelAcceptorImpl.initialize(SocketOrChannelAcceptorImpl.java:182)
at com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.getAcceptors(CorbaTransportManagerImpl.java:236)
at com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.addToIORTemplate(CorbaTransportManagerImpl.java:253)
at com.sun.corba.ee.spi.oa.ObjectAdapterBase.initializeTemplate(ObjectAdapterBase.java:127)
at com.sun.corba.ee.impl.oa.toa.TOAImpl.(TOAImpl.java:107)
at com.sun.corba.ee.impl.oa.toa.TOAFactory.getTOA(TOAFactory.java:98)
at com.sun.corba.ee.impl.orb.ORBImpl.connect(ORBImpl.java:1664)
at com.sun.corba.ee.spi.presentation.rmi.StubAdapter.connect(StubAdapter.java:212)
at com.sun.corba.ee.impl.orb.ORBImpl.getIOR(ORBImpl.java:2115)
at com.sun.corba.ee.impl.orb.ORBImpl.getFVDCodeBaseIOR(ORBImpl.java:987)
at com.sun.enterprise.util.ORBManager.initORB(ORBManager.java:556)
at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:278)
at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:289)
at com.sun.enterprise.server.ondemand.EjbServiceGroup.createORB(EjbServiceGroup.java:511)
at com.sun.enterprise.server.ondemand.EjbServiceGroup.startORB(EjbServiceGroup.java:437)
at com.sun.enterprise.server.ondemand.EjbServiceGroup._start(EjbServiceGroup.java:156)
at com.sun.enterprise.server.ondemand.EjbServiceGroup.start(EjbServiceGroup.java:143)
at com.sun.enterprise.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:190)
at com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:58)
at com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:85)
at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:75)
at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generateStartUpEntryContext(ServerEntryHelper.java:64)
at com.sun.enterprise.server.ondemand.OnDemandServer.generateEntryContext(OnDemandServer.java:154)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:133)
at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createServerSocket(IIOPSSLSocketFactory.java:301)
at com.sun.corba.ee.impl.transport.SocketOrChannelAcceptorImpl.initialize(SocketOrChannelAcceptorImpl.java:175)
... 32 more
|#]
[#|2011-05-10T18:54:00.254+0300|WARNING|sun-appserver2.1|javax.enterprise.resource.corba.ee.INITIALIZING.rpc.presentation|_
ThreadID=10;_ThreadName=main;;_RequestID=7ad87260-643c-4341-9221-716f58687949;|"IOP02310202: (OBJ_ADAPTER) Error in connectin
g servant to ORB"
org.omg.CORBA.OBJ_ADAPTER: vmcid: SUN minor code: 202 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.orbConnectError(ORBUtilSystemException.java:10263)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.orbConnectError(ORBUtilSystemException.java:10281)
at com.sun.corba.ee.impl.orb.ORBImpl.connect(ORBImpl.java:1666)
at com.sun.corba.ee.spi.presentation.rmi.StubAdapter.connect(StubAdapter.java:212)
at com.sun.corba.ee.impl.orb.ORBImpl.getIOR(ORBImpl.java:2115)
at com.sun.corba.ee.impl.orb.ORBImpl.getFVDCodeBaseIOR(ORBImpl.java:987)
at com.sun.enterprise.util.ORBManager.initORB(ORBManager.java:556)
at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:278)
at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:289)
at com.sun.enterprise.server.ondemand.EjbServiceGroup.createORB(EjbServiceGroup.java:511)
at com.sun.enterprise.server.ondemand.EjbServiceGroup.startORB(EjbServiceGroup.java:437)
at com.sun.enterprise.server.ondemand.EjbServiceGroup._start(EjbServiceGroup.java:156)
at com.sun.enterprise.server.ondemand.EjbServiceGroup.start(EjbServiceGroup.java:143)
at com.sun.enterprise.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:190)
at com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:58)
at com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:85)
at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:75)
at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generateStartUpEntryContext(ServerEntryHelper.java:64)
at com.sun.enterprise.server.ondemand.OnDemandServer.generateEntryContext(OnDemandServer.java:154)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:133)
at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 216 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:3187)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:3207)
at com.sun.corba.ee.impl.transport.SocketOrChannelAcceptorImpl.initialize(SocketOrChannelAcceptorImpl.java:182)
at com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.getAcceptors(CorbaTransportManagerImpl.java:236)
at com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.addToIORTemplate(CorbaTransportManagerImpl.java:253)
at com.sun.corba.ee.spi.oa.ObjectAdapterBase.initializeTemplate(ObjectAdapterBase.java:127)
at com.sun.corba.ee.impl.oa.toa.TOAImpl.(TOAImpl.java:107)
at com.sun.corba.ee.impl.oa.toa.TOAFactory.getTOA(TOAFactory.java:98)
at com.sun.corba.ee.impl.orb.ORBImpl.connect(ORBImpl.java:1664)
... 26 more
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
Thanks and regards,
Ali
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您想在不启动 glassfish 的情况下更改域的端口,您可以通过编辑 xml 域的配置文件来完成此操作,
希望这会对您有所帮助。
祝你好运
If you want to change the domain's ports without starting glassfish, you can do this by editing the xml domain's config file
Hope this will help you.
Good Luck
您可能应该首先找出 什么进程正在使用端口3700 看看你是否能杀死它。
如果您无法终止该进程,可以使用 asadmin 的 create-domain 子命令 用于创建一个不使用“标准 GlassFish 端口”的新域...最简单的方法是使用 --portbase 选项。
You should probably start by finding out what process is using port 3700 and find out if you can kill it.
If you cannot kill that process, you can use asadmin's create-domain subcommand to create a new domain that does not use the 'standard GlassFish ports'... The easiest way to do that is with the --portbase option.