今天在linux(x86)机器上启动TongWeb时抛出这样的异常:
[2012-04-27 17:11:21] [INFO] [core] [Starting TongWeb Server...]
[2012-04-27 17:11:21] [INFO] [security] [Security Manager is disabled.]
[2012-04-27 17:11:22] [INFO] [cluster] [Cluster is disabled.]
[2012-04-27 17:11:23] [INFO] [security] [Loading policy provider com.tongweb.security.provider.PolicyWrapper.]
[2012-04-27 17:11:23] [INFO] [web-container] [Starting HTTP/1.1 on 8080]
[2012-04-27 17:11:23] [INFO] [web-container] [Starting HTTP/1.1 on 9060]
[2012-04-27 17:11:23] [INFO] [web-container] [SSO is disabled in virtual server [server]]
[2012-04-27 17:11:23] [INFO] [web-container] [SSO is disabled in virtual server [admin]]
[2012-04-27 17:11:23] [WARNING] [util] [Unknown host exception - Setting host to localhost]
[2012-04-2717:11:24] [WARNING][javax.enterprise.resource.corba.ee._INITIALIZING_.rpc.presentation]["IOP00710208: (INTERNAL) Unable to determine local hostname fromInetAddress.getLocalHost().getHostName()"
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 208 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.getLocalHostFailed(ORBUtilSystemException.java:4921)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.getLocalHostFailed(ORBUtilSystemException.java:4939)
at com.sun.corba.ee.impl.orb.ORBImpl.getLocalHostName(ORBImpl.java:1785)
at com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:699)
at org.omg.CORBA.ORB.init(ORB.java:337)
at com.tongweb.util.ORBManager.initORB(ORBManager.java:524)
at com.tongweb.util.ORBManager.getORB(ORBManager.java:256)
at com.tongweb.util.ORBManager.getORB(ORBManager.java:267)
at com.tongweb.server.ondemand.EjbServiceGroup.createORB(EjbServiceGroup.java:513)
at com.tongweb.server.ondemand.EjbServiceGroup.startORB(EjbServiceGroup.java:439)
at com.tongweb.server.ondemand.EjbServiceGroup._start(EjbServiceGroup.java:158)
at com.tongweb.server.ondemand.EjbServiceGroup.start(EjbServiceGroup.java:145)
at com.tongweb.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:192)
at java.security.AccessController.doPrivileged(Native Method)
at com.tongweb.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:189)
at com.tongweb.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:57)
at com.tongweb.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:88)
at com.tongweb.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:76)
at com.tongweb.server.ondemand.entry.ServerEntryHelper.generateStartUpEntryContext(ServerEntryHelper.java:65)
at com.tongweb.server.ondemand.OnDemandServer.generateEntryContext(OnDemandServer.java:156)
at com.tongweb.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:135)
at com.tongweb.server.PEMain.run(PEMain.java:395)
at com.tongweb.server.PEMain.main(PEMain.java:314)
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:597)
at com.tongweb.server.PELaunch.main(PELaunch.java:394)
Caused by: java.net.UnknownHostException: bogon: bogon
at java.net.InetAddress.getLocalHost(InetAddress.java:1353)
at com.sun.corba.ee.impl.orb.ORBImpl.getLocalHostName(ORBImpl.java:1783)
... 25 more
]
[2012-04-27 17:11:24] [SEVERE] [util] [Exception in createORB.
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 208 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.getLocalHostFailed(ORBUtilSystemException.java:4921)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.getLocalHostFailed(ORBUtilSystemException.java:4939)
at com.sun.corba.ee.impl.orb.ORBImpl.getLocalHostName(ORBImpl.java:1785)
at com.sun.corba.ee.impl.orb.ORBImpl.set_parameters(ORBImpl.java:699)
at org.omg.CORBA.ORB.init(ORB.java:337)
at com.tongweb.util.ORBManager.initORB(ORBManager.java:524)
at com.tongweb.util.ORBManager.getORB(ORBManager.java:256)
at com.tongweb.util.ORBManager.getORB(ORBManager.java:267)
at com.tongweb.server.ondemand.EjbServiceGroup.createORB(EjbServiceGroup.java:513)
at com.tongweb.server.ondemand.EjbServiceGroup.startORB(EjbServiceGroup.java:439)
at com.tongweb.server.ondemand.EjbServiceGroup._start(EjbServiceGroup.java:158)
at com.tongweb.server.ondemand.EjbServiceGroup.start(EjbServiceGroup.java:145)
at com.tongweb.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:192)
at java.security.AccessController.doPrivileged(Native Method)
at com.tongweb.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:189)
at com.tongweb.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:57)
at com.tongweb.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:88)
at com.tongweb.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:76)
at com.tongweb.server.ondemand.entry.ServerEntryHelper.generateStartUpEntryContext(ServerEntryHelper.java:65)
at com.tongweb.server.ondemand.OnDemandServer.generateEntryContext(OnDemandServer.java:156)
at com.tongweb.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:135)
at com.tongweb.server.PEMain.run(PEMain.java:395)
at com.tongweb.server.PEMain.main(PEMain.java:314)
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:597)
at com.tongweb.server.PELaunch.main(PELaunch.java:394)
Caused by: java.net.UnknownHostException: bogon: bogon
at java.net.InetAddress.getLocalHost(InetAddress.java:1353)
at com.sun.corba.ee.impl.orb.ORBImpl.getLocalHostName(ORBImpl.java:1783)
... 25 more
]
[2012-04-2717:11:24] [SEVERE] [core] [Exception in creating ORB:[java.lang.RuntimeException: org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 208 completed: No]]
[2012-04-27 17:11:24] [SEVERE] [core] [Exception in running services: [java.lang.RuntimeException: Unable to create ORB]]
[2012-04-2717:11:24] [SEVERE] [core][com.tongweb.server.ondemand.ServiceGroupException:java.lang.RuntimeException: Unable to create ORB
com.tongweb.server.ondemand.ServiceGroupException:com.tongweb.server.ondemand.ServiceGroupException:java.lang.RuntimeException: Unable to create ORB
at com.tongweb.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:197)
at com.tongweb.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:57)
at com.tongweb.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:88)
at com.tongweb.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:76)
at com.tongweb.server.ondemand.entry.ServerEntryHelper.generateStartUpEntryContext(ServerEntryHelper.java:65)
at com.tongweb.server.ondemand.OnDemandServer.generateEntryContext(OnDemandServer.java:156)
at com.tongweb.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:135)
at com.tongweb.server.PEMain.run(PEMain.java:395)
at com.tongweb.server.PEMain.main(PEMain.java:314)
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:597)
at com.tongweb.server.PELaunch.main(PELaunch.java:394)
Caused by: com.tongweb.server.ondemand.ServiceGroupException: java.lang.RuntimeException: Unable to create ORB
at com.tongweb.server.ondemand.EjbServiceGroup._start(EjbServiceGroup.java:162)
at com.tongweb.server.ondemand.EjbServiceGroup.start(EjbServiceGroup.java:145)
at com.tongweb.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:192)
at java.security.AccessController.doPrivileged(Native Method)
at com.tongweb.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:189)
... 13 more
Caused by: java.lang.RuntimeException: Unable to create ORB
at com.tongweb.server.ondemand.EjbServiceGroup.startORB(EjbServiceGroup.java:503)
at com.tongweb.server.ondemand.EjbServiceGroup._start(EjbServiceGroup.java:158)
... 17 more
Caused by: java.lang.RuntimeException: Unable to create ORB
at com.tongweb.server.ondemand.EjbServiceGroup.startORB(EjbServiceGroup.java:454)
... 18 more
]
[2012-04-27 17:11:24] [SEVERE] [core] [Error in initialization
java.lang.RuntimeException:com.tongweb.server.ondemand.ServiceGroupException:com.tongweb.server.ondemand.ServiceGroupException:java.lang.RuntimeException: Unable to create ORB
at com.tongweb.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:91)
at com.tongweb.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:76)
at com.tongweb.server.ondemand.entry.ServerEntryHelper.generateStartUpEntryContext(ServerEntryHelper.java:65)
at com.tongweb.server.ondemand.OnDemandServer.generateEntryContext(OnDemandServer.java:156)
at com.tongweb.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:135)
at com.tongweb.server.PEMain.run(PEMain.java:395)
at com.tongweb.server.PEMain.main(PEMain.java:314)
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:597)
at com.tongweb.server.PELaunch.main(PELaunch.java:394)
Causedby: com.tongweb.server.ondemand.ServiceGroupException:com.tongweb.server.ondemand.ServiceGroupException:java.lang.RuntimeException: Unable to create ORB
at com.tongweb.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:197)
at com.tongweb.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:57)
at com.tongweb.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:88)
... 11 more
Caused by: com.tongweb.server.ondemand.ServiceGroupException: java.lang.RuntimeException: Unable to create ORB
at com.tongweb.server.ondemand.EjbServiceGroup._start(EjbServiceGroup.java:162)
at com.tongweb.server.ondemand.EjbServiceGroup.start(EjbServiceGroup.java:145)
at com.tongweb.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:192)
at java.security.AccessController.doPrivileged(Native Method)
at com.tongweb.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:189)
... 13 more
Caused by: java.lang.RuntimeException: Unable to create ORB
at com.tongweb.server.ondemand.EjbServiceGroup.startORB(EjbServiceGroup.java:503)
at com.tongweb.server.ondemand.EjbServiceGroup._start(EjbServiceGroup.java:158)
... 17 more
Caused by: java.lang.RuntimeException: Unable to create ORB
at com.tongweb.server.ondemand.EjbServiceGroup.startORB(EjbServiceGroup.java:454)
... 18 more
]
[2012-04-27 17:11:24] [SEVERE] [core] [Server Startup failed]
[2012-04-27 17:11:24] [INFO] [core] [Server is shutting down ...]
[2012-04-27 17:11:24] [INFO] [web-container] [Stopping Web Container.]
[2012-04-27 17:11:24] [WARNING] [core] [Exception :
com.tongweb.api.server.ServerLifecycleException: Error in stopping the web container
at com.tongweb.web.PEWebContainer.stopInstance(PEWebContainer.java:789)
at com.tongweb.web.PEWebContainerLifecycle.onShutdown(PEWebContainerLifecycle.java:97)
at com.tongweb.server.ApplicationServer.onShutdown(ApplicationServer.java:527)
at com.tongweb.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:147)
at com.tongweb.server.PEMain.run(PEMain.java:413)
at com.tongweb.server.PEMain.main(PEMain.java:314)
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:597)
at com.tongweb.server.PELaunch.main(PELaunch.java:394)
Caused by: LifecycleException: Web container has not yet been started
at com.tongweb.web.WebContainer.stop(WebContainer.java:890)
at com.tongweb.web.PEWebContainer.stopInstance(PEWebContainer.java:781)
... 10 more
]
[2012-04-27 17:11:24] [INFO] [core] [Shutting down all applications ...]
[2012-04-27 17:11:24] [INFO] [core] [Shutting down all connector resource adapters ...]
[2012-04-27 17:11:24] [INFO] [core] [Resource adapters shutdown complete]
[2012-04-27 17:11:24] [INFO] [core] [Application shutdown complete.]
[2012-04-27 17:11:24] [WARNING] [core] [Exception :
com.tongweb.api.server.ServerLifecycleException
at com.tongweb.admin.server.core.JmxConnectorLifecycle.onShutdown(JmxConnectorLifecycle.java:150)
at com.tongweb.server.ApplicationServer.onShutdown(ApplicationServer.java:527)
at com.tongweb.server.ondemand.OnDemandServer.onShutdown(OnDemandServer.java:147)
at com.tongweb.server.PEMain.run(PEMain.java:413)
at com.tongweb.server.PEMain.main(PEMain.java:314)
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:597)
at com.tongweb.server.PELaunch.main(PELaunch.java:394)
]
[2012-04-27 17:11:24] [WARNING] [admin] [core.tmp_folder_deletion_failed]
[2012-04-27 17:11:24] [SEVERE] [core] [Server stopped due to Server startup failure.]
[2012-04-27 17:11:24] [INFO] [core] [Stopping tongweb application server...]
[2012-04-27 17:11:24] [INFO] [core] [sending notification to server...server]
[2012-04-27 17:11:24] [INFO] [core] [Server shutdown complete.]
大致的意思是说不认识当前的主机名:Unknown host exception - Setting host to localhost
在网上搜了一下,根本就没有关于TongWeb的启动异常的,这破国产的东西,都没人用呀,这个中间件搞了这么长时间,我以为多牛呢,
这样的问题,我都算第一碰到的,无语了!
后来想想它不是不认识当前系统的主机名么?可能是我改了系统的什么东西,既然TongWeb不能用,jboss和TongWeb都属于一类的,我看看jboss是不是也会抛出同样的异常,果然,jboss在启动的时候也抛了异常:
10:06:12,720 INFO [CopyMechanism] VFS temp dir: /root/Desktop/jboss-5.0.1.GA/server/default/tmp
10:06:12,721 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
10:06:14,070 INFO [ServerInfo] Java version: 1.6.0_18,Sun Microsystems Inc.
10:06:14,070 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
10:06:14,070 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 16.0-b13,Sun Microsystems Inc.
10:06:14,070 INFO [ServerInfo] OS-System: Linux 2.6.18-128.el5PAE,i386
10:06:14,093 INFO [JMXKernel] Legacy JMX core initialized
10:06:16,655INFO [ProfileServiceImpl] Loading profile: default from:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@917cb0(root=/root/Desktop/jboss-5.0.1.GA/server,key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
10:06:16,656INFO [ProfileImpl] Usingrepository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@917cb0(root=/root/Desktop/jboss-5.0.1.GA/server,key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
10:06:16,656INFO [ProfileServiceImpl] Loaded profile:ProfileImpl@1866417{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}
10:06:16,800 ERROR [ServerInfo] Error looking up local address
java.net.UnknownHostException: bogon: bogon
at java.net.InetAddress.getLocalHost(InetAddress.java:1353)
at org.jboss.system.server.ServerInfo.getHostAddress(ServerInfo.java:342)
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:597)
at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
at org.jboss.beans.info.plugins.DefaultPropertyInfo.get(DefaultPropertyInfo.java:133)
at org.jboss.deployers.plugins.managed.BeanMetaDataICF.getValue(BeanMetaDataICF.java:164)
at org.jboss.deployers.plugins.managed.BeanMetaDataICF.getValue(BeanMetaDataICF.java:48)
atorg.jboss.managed.plugins.factory.AbstractManagedObjectPopulator.populateValues(AbstractManagedObjectPopulator.java:201)
atorg.jboss.managed.plugins.factory.AbstractManagedObjectPopulator.populateManagedObject(AbstractManagedObjectPopulator.java:130)
atorg.jboss.managed.plugins.factory.AbstractManagedObjectFactory.initManagedObject(AbstractManagedObjectFactory.java:364)
atorg.jboss.managed.plugins.factory.AbstractInstanceClassFactory.getManagedObjectValue(AbstractInstanceClassFactory.java:315)
atorg.jboss.managed.plugins.factory.AbstractInstanceClassFactory.getManagedObjectArray(AbstractInstanceClassFactory.java:331)
at org.jboss.managed.plugins.factory.AbstractInstanceClassFactory.getValue(AbstractInstanceClassFactory.java:252)
atorg.jboss.managed.plugins.factory.AbstractManagedObjectPopulator.populateValues(AbstractManagedObjectPopulator.java:201)
atorg.jboss.managed.plugins.factory.AbstractManagedObjectPopulator.populateManagedObject(AbstractManagedObjectPopulator.java:130)
atorg.jboss.managed.plugins.factory.AbstractManagedObjectFactory.initManagedObject(AbstractManagedObjectFactory.java:364)
at org.jboss.managed.api.factory.ManagedObjectFactory.initManagedObject(ManagedObjectFactory.java:77)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.initBootstrapMDs(ProfileServiceBootstrap.java:447)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:199)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
10:06:16,811 ERROR [ServerInfo] Error looking up local hostname
java.net.UnknownHostException: bogon: bogon
at java.net.InetAddress.getLocalHost(InetAddress.java:1353)
at org.jboss.system.server.ServerInfo.getHostName(ServerInfo.java:321)
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:597)
at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
at org.jboss.beans.info.plugins.DefaultPropertyInfo.get(DefaultPropertyInfo.java:133)
at org.jboss.deployers.plugins.managed.BeanMetaDataICF.getValue(BeanMetaDataICF.java:164)
at org.jboss.deployers.plugins.managed.BeanMetaDataICF.getValue(BeanMetaDataICF.java:48)
atorg.jboss.managed.plugins.factory.AbstractManagedObjectPopulator.populateValues(AbstractManagedObjectPopulator.java:201)
atorg.jboss.managed.plugins.factory.AbstractManagedObjectPopulator.populateManagedObject(AbstractManagedObjectPopulator.java:130)
atorg.jboss.managed.plugins.factory.AbstractManagedObjectFactory.initManagedObject(AbstractManagedObjectFactory.java:364)
atorg.jboss.managed.plugins.factory.AbstractInstanceClassFactory.getManagedObjectValue(AbstractInstanceClassFactory.java:315)
atorg.jboss.managed.plugins.factory.AbstractInstanceClassFactory.getManagedObjectArray(AbstractInstanceClassFactory.java:331)
at org.jboss.managed.plugins.factory.AbstractInstanceClassFactory.getValue(AbstractInstanceClassFactory.java:252)
atorg.jboss.managed.plugins.factory.AbstractManagedObjectPopulator.populateValues(AbstractManagedObjectPopulator.java:201)
atorg.jboss.managed.plugins.factory.AbstractManagedObjectPopulator.populateManagedObject(AbstractManagedObjectPopulator.java:130)
atorg.jboss.managed.plugins.factory.AbstractManagedObjectFactory.initManagedObject(AbstractManagedObjectFactory.java:364)
at org.jboss.managed.api.factory.ManagedObjectFactory.initManagedObject(ManagedObjectFactory.java:77)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.initBootstrapMDs(ProfileServiceBootstrap.java:447)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:199)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
10:06:18,163 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
10:06:18,166ERROR [AbstractKernelController] Error installing to Start:name=jboss:service=WebService state=Create mode=ManualrequiredState=Installed
java.lang.Exception: Port 8083 already in use.
at org.jboss.web.WebServer.start(WebServer.java:233)
at org.jboss.web.WebService.startService(WebService.java:322)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
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:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
at $Proxy36.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
atorg.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
atorg.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:274)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.jboss.web.WebServer.start(WebServer.java:226)
... 54 more
10:06:18,181ERROR [AbstractKernelController] Error installing to Real:name=vfsfile:/root/Desktop/jboss-5.0.1.GA/server/default/conf/jboss-service.xmlstate=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error deploying: jboss:service=WebService
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
atorg.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:274)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.Exception: Port 8083 already in use.
at org.jboss.web.WebServer.start(WebServer.java:233)
at org.jboss.web.WebService.startService(WebService.java:322)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
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:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
at $Proxy36.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
atorg.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
... 23 more
Caused by: java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.jboss.web.WebServer.start(WebServer.java:226)
... 54 more
10:06:18,195ERROR [ProfileServiceBootstrap] Failed to load profile: Summary ofincomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS
同样也是不认识的主机名:java.net.UnknownHostException: bogon: bogon
一搜很多解决方法,看来jboss用的人还是比较多的。
解决方法是这样的:
ping 127.0.0.1 可以ping通
127.0.0.1 bogon.localdomain bongon //因为异常说的是不认识主机名bogon,就把bogon加上去
然后在注消或者重启一下你的机器(最好重启),一切搞定了!jboss和TongWeb全部都能正常的启动了。