Jboss startup failed due to incorrect/etc/hosts File Settings

Source: Internet
Author: User

Jboss startup failed due to incorrect/etc/hosts File Settings
Jboss-4.2.3.GA-jdk6
Jdk1.6.0 _ 12
CentOS 1, 5.2

/Etc/hosts:
: 1 localhost. localdomain localhost vmlincn80ce5

/Etc/sysconfig/network
NETWORKING = yes
NETWORKING_IPV6 = no
HOSTNAME = vmlincn80ce5


Jboss:

[Higkoo @ vmlincn80ce5 local] #/usr/local/jboss-4.2.3.GA/bin/run. sh
========================================================== ======================================

JBoss Bootstrap Environment

JBOSS_HOME:/usr/local/jboss-4.2.3.GA

JAVA:/usr/local/jdk1.6.0 _ 12/bin/java

JAVA_OPTS:-Dprogram. name = run. sh-server-Xms128m-Xmx512m-Dsun. rmi. dgc. client. gcInterval = 3600000-Dsun. rmi. dgc. server. gcInterval = 3600000 -Djava.net. prefer12004stack = true

CLASSPATH:/usr/local/jboss-4.2.3.GA/bin/run. jar:/usr/local/jdk1.6.0 _ 12/lib/tools. jar

========================================================== ======================================

15:58:12, 528 INFO [Server] Starting JBoss (MX MicroKernel )...
15:58:12, 530 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag = JBoss_4_2_3_GA date = 200807181439)
15:58:12, 532 INFO [Server] Home Dir:/usr/local/jboss-4.2.3.GA
15:58:12, 532 INFO [Server] Home URL: file:/usr/local/jboss-4.2.3.GA/
15:58:12, 533 INFO [Server] Patch URL: null
15:58:12, 534 INFO [Server] Server Name: default
15:58:12, 534 INFO [Server] Server Home Dir:/usr/local/jboss-4.2.3.GA/server/default
15:58:12, 534 INFO [Server] Server Home URL: file:/usr/local/jboss-4.2.3.GA/server/default/
15:58:12, 535 INFO [Server] Server Log Dir:/usr/local/jboss-4.2.3.GA/server/default/log
15:58:12, 535 INFO [Server] Server Temp Dir:/usr/local/jboss-4.2.3.GA/server/default/tmp
15:58:12, 536 INFO [Server] Root Deployment Filename: jboss-service.xml
15:58:12, 975 INFO [ServerInfo] Java version: 1.6.0 _ 12, Sun Microsystems Inc.
15:58:12, 976 INFO [ServerInfo] Java VM: Java HotSpot (TM) 64-Bit Server VM 11.2-b01, Sun Microsystems Inc.
15:58:12, 976 INFO [ServerInfo] OS-System: Linux 2.6.18-92. el5, amd64
15:58:13, 694 INFO [Server] Core system initialized.
15:58:16, 399 WARN [BasicMBeanRegistry] javax. management. MBeanRegistrationException: preRegister () failed: [ObjectName = 'jboss. remoting: service = NetworkRegistry ', Class = org. jboss. remoting. network. networkRegistry (org. jboss. remoting. network. networkRegistry @ 5c435a3a)]
15:58:16, 420 ERROR [MainDeployer] cocould not create deployment: file:/usr/local/jboss-4.2.3.GA/server/default/conf/jboss-service.xml
Org. jboss. deployment. DeploymentException:-nested throwable: (java. lang. reflect. InvocationTargetException)
At org. jboss. system. ServiceConfigurator. install (ServiceConfigurator. java: 196)
At org. jboss. system. ServiceController. install (ServiceController. java: 226)
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: 155)
At org. jboss. mx. server. Invocation. dispatch (Invocation. java: 94)
At org. jboss. mx. server. Invocation. invoke (Invocation. java: 86)
At org. jboss. mx. server. AbstractMBeanInvoker. invoke (AbstractMBeanInvoker. java: 264)
At org. jboss. mx. server. MBeanServerImpl. invoke (MBeanServerImpl. java: 659)
At org. jboss. mx. util. MBeanProxyExt. invoke (MBeanProxyExt. java: 210)
At $ Proxy4.install (Unknown Source)
At org. jboss. deployment. SARDeployer. create (SARDeployer. java: 251)
At org. jboss. deployment. MainDeployer. create (MainDeployer. java: 969)
At org. jboss. deployment. MainDeployer. deploy (MainDeployer. java: 818)
At org. jboss. deployment. MainDeployer. deploy (MainDeployer. java: 782)
At org. jboss. deployment. MainDeployer. deploy (MainDeployer. java: 766)
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: 155)
At org. jboss. mx. server. Invocation. dispatch (Invocation. java: 94)
At org. jboss. mx. interceptor. AbstractInterceptor. invoke (AbstractInterceptor. java: 133)
At org. jboss. mx. server. Invocation. invoke (Invocation. java: 88)
At org. jboss. mx. interceptor. ModelMBeanOperationInterceptor. invoke (ModelMBeanOperationInterceptor. java: 142)
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: 659)
At org. jboss. mx. util. MBeanProxyExt. invoke (MBeanProxyExt. java: 210)
At $ Proxy5.deploy (Unknown Source)
At org. jboss. system. server. ServerImpl. doStart (ServerImpl. java: 482)
At org. jboss. system. server. ServerImpl. start (ServerImpl. java: 362)
At org. jboss. Main. boot (Main. java: 200)
At org. jboss.main $ 1.run( Main. java: 508)
At java. lang. Thread. run (Thread. java: 619)
Caused by: java. lang. reflect. InvocationTargetException
At org. jboss. mx. server. MBeanServerImpl. registerMBean (MBeanServerImpl. java: 1451)
At org. jboss. mx. server. MBeanServerImpl. registerMBean (MBeanServerImpl. java: 1350)
At org. jboss. mx. server. MBeanServerImpl. createMBean (MBeanServerImpl. java: 345)
At org. jboss. system. ServiceCreator. install (ServiceCreator. java: 157)
At org. jboss. system. ServiceConfigurator. internalInstall (ServiceConfigurator. java: 451)
At org. jboss. system. ServiceConfigurator. install (ServiceConfigurator. java: 171)
... 36 more
Caused by: javax. management. MBeanException
At org. jboss. mx. interceptor. ReflectedDispatcher. handleInvocationExceptions (ReflectedDispatcher. java: 180)
At org. jboss. mx. interceptor. ReflectedDispatcher. invoke (ReflectedDispatcher. java: 163)
At org. jboss. mx. server. Invocation. dispatch (Invocation. java: 94)
At org. jboss. mx. interceptor. AbstractInterceptor. invoke (AbstractInterceptor. java: 133)
At org. jboss. mx. server. Invocation. invoke (Invocation. java: 88)
At org. jboss. mx. interceptor. ModelMBeanOperationInterceptor. invoke (ModelMBeanOperationInterceptor. java: 142)
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: 659)
At org. jboss. mx. server. MBeanServerImpl $ 3.run( MBeanServerImpl. java: 1422)
At java. security. AccessController. doPrivileged (Native Method)
At org. jboss. mx. server. MBeanServerImpl. registerMBean (MBeanServerImpl. java: 1417)
... 41 more
Caused by: javax. management. MBeanRegistrationException: preRegister () failed: [ObjectName = 'jboss. remoting: service = NetworkRegistry ', Class = org. jboss. remoting. network. networkRegistry (org. jboss. remoting. network. networkRegistry @ 5c435a3a)]
At org. jboss. mx. server. registry. BasicMBeanRegistry. invokePreRegister (BasicMBeanRegistry. java: 713)
At org. jboss. mx. server. registry. BasicMBeanRegistry. registerMBean (BasicMBeanRegistry. java: 211)
At sun. reflect. GeneratedMethodAccessor1.invoke (Unknown Source)
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: 155)
... 51 more
Caused by: java. lang. RuntimeException: Exception creating identity: vmlincn80ce5: vmlincn80ce5
At org. jboss.remoting. ident. Identity. get (Identity. java: 211)
At org. jboss. remoting. network. NetworkRegistry. preRegister (NetworkRegistry. java: 268)
At org. jboss. mx. server. AbstractMBeanInvoker. invokePreRegister (AbstractMBeanInvoker. java: 966)
At org. jboss. mx. modelmbean. ModelMBeanInvoker. invokePreRegister (ModelMBeanInvoker. java: 489)
At org. jboss. mx. server. AbstractMBeanInvoker. preRegister (AbstractMBeanInvoker. java: 654)
At org. jboss. mx. server. registry. BasicMBeanRegistry. invokePreRegister (BasicMBeanRegistry. java: 697)
... 56 more
Failed to boot JBoss:
Org. jboss. deployment. DeploymentException:-nested throwable: (java. lang. reflect. InvocationTargetException)
At org. jboss. system. ServiceConfigurator. install (ServiceConfigurator. java: 196)
At org. jboss. system. ServiceController. install (ServiceController. java: 226)
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: 155)
At org. jboss. mx. server. Invocation. dispatch (Invocation. java: 94)
At org. jboss. mx. server. Invocation. invoke (Invocation. java: 86)
At org. jboss. mx. server. AbstractMBeanInvoker. invoke (AbstractMBeanInvoker. java: 264)
At org. jboss. mx. server. MBeanServerImpl. invoke (MBeanServerImpl. java: 659)
At org. jboss. mx. util. MBeanProxyExt. invoke (MBeanProxyExt. java: 210)
At $ Proxy4.install (Unknown Source)
At org. jboss. deployment. SARDeployer. create (SARDeployer. java: 251)
At org. jboss. deployment. MainDeployer. create (MainDeployer. java: 969)
At org. jboss. deployment. MainDeployer. deploy (MainDeployer. java: 818)
At org. jboss. deployment. MainDeployer. deploy (MainDeployer. java: 782)
At org. jboss. deployment. MainDeployer. deploy (MainDeployer. java: 766)
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: 155)
At org. jboss. mx. server. Invocation. dispatch (Invocation. java: 94)
At org. jboss. mx. interceptor. AbstractInterceptor. invoke (AbstractInterceptor. java: 133)
At org. jboss. mx. server. Invocation. invoke (Invocation. java: 88)
At org. jboss. mx. interceptor. ModelMBeanOperationInterceptor. invoke (ModelMBeanOperationInterceptor. java: 142)
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: 659)
At org. jboss. mx. util. MBeanProxyExt. invoke (MBeanProxyExt. java: 210)
At $ Proxy5.deploy (Unknown Source)
At org. jboss. system. server. ServerImpl. doStart (ServerImpl. java: 482)
At org. jboss. system. server. ServerImpl. start (ServerImpl. java: 362)
At org. jboss. Main. boot (Main. java: 200)
At org. jboss.main $ 1.run( Main. java: 508)
At java. lang. Thread. run (Thread. java: 619)
Caused by: java. lang. reflect. InvocationTargetException
At org. jboss. mx. server. MBeanServerImpl. registerMBean (MBeanServerImpl. java: 1451)
At org. jboss. mx. server. MBeanServerImpl. registerMBean (MBeanServerImpl. java: 1350)
At org. jboss. mx. server. MBeanServerImpl. createMBean (MBeanServerImpl. java: 345)
At org. jboss. system. ServiceCreator. install (ServiceCreator. java: 157)
At org. jboss. system. ServiceConfigurator. internalInstall (ServiceConfigurator. java: 451)
At org. jboss. system. ServiceConfigurator. install (ServiceConfigurator. java: 171)
... 36 more
Caused by: javax. management. MBeanException
At org. jboss. mx. interceptor. ReflectedDispatcher. handleInvocationExceptions (ReflectedDispatcher. java: 180)
At org. jboss. mx. interceptor. ReflectedDispatcher. invoke (ReflectedDispatcher. java: 163)
At org. jboss. mx. server. Invocation. dispatch (Invocation. java: 94)
At org. jboss. mx. interceptor. AbstractInterceptor. invoke (AbstractInterceptor. java: 133)
At org. jboss. mx. server. Invocation. invoke (Invocation. java: 88)
At org. jboss. mx. interceptor. ModelMBeanOperationInterceptor. invoke (ModelMBeanOperationInterceptor. java: 142)
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: 659)
At org. jboss. mx. server. MBeanServerImpl $ 3.run( MBeanServerImpl. java: 1422)
At java. security. AccessController. doPrivileged (Native Method)
At org. jboss. mx. server. MBeanServerImpl. registerMBean (MBeanServerImpl. java: 1417)
... 41 more
Caused by: javax. management. MBeanRegistrationException: preRegister () failed: [ObjectName = 'jboss. remoting: service = NetworkRegistry ', Class = org. jboss. remoting. network. networkRegistry (org. jboss. remoting. network. networkRegistry @ 5c435a3a)]
At org. jboss. mx. server. registry. BasicMBeanRegistry. invokePreRegister (BasicMBeanRegistry. java: 713)
At org. jboss. mx. server. registry. BasicMBeanRegistry. registerMBean (BasicMBeanRegistry. java: 211)
At sun. reflect. GeneratedMethodAccessor1.invoke (Unknown Source)
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: 155)
... 51 more
Caused by: java. lang. RuntimeException: Exception creating identity: vmlincn80ce5: vmlincn80ce5
At org. jboss.remoting. ident. Identity. get (Identity. java: 211)
At org. jboss. remoting. network. NetworkRegistry. preRegister (NetworkRegistry. java: 268)
At org. jboss. mx. server. AbstractMBeanInvoker. invokePreRegister (AbstractMBeanInvoker. java: 966)
At org. jboss. mx. modelmbean. ModelMBeanInvoker. invokePreRegister (ModelMBeanInvoker. java: 489)
At org. jboss. mx. server. AbstractMBeanInvoker. preRegister (AbstractMBeanInvoker. java: 654)
At org. jboss. mx. server. registry. BasicMBeanRegistry. invokePreRegister (BasicMBeanRegistry. java: 697)
... 56 more
15:58:16, 442 INFO [Server] Runtime shutdown hook called, forceHalt: true
15:58:16, 442 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
15:58:16, 459 INFO [Server] Shutdown complete
Shutdown complete
Halting VM


The reason is found./etc/hosts must contain the following content (in red ):
/Etc/hosts:
127.0.0.1     locahost.localdomian localhost
192.168.0.1 yourname.localdomian yourname
192.168.0.1 is your IP address. the-name-of-your-pc does not need to be mentioned.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.