Today, I migrated the liferay of the development server to the newly purchased server of the company. When I started liferay, the following error was reported:
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/49/FA/wKiom1Qg2-bBLl9AAAahhXgCIqI010.jpg "Title =" 1.png" alt = "wKiom1Qg2-bBLl9AAAahhXgCIqI010.jpg"/> View liferay's log reports an error as follows:
09:41:32, 171 info [localhost-startStop-1] [dialectdetector: 71] determine dialect for MySQL 5
09:41:32, 195 info [localhost-startStop-1] [dialectdetector: 136] Found dialect org. hibernate. dialect. mysqldialect
09:41:32, 585 error [localhost-startStop-1] [cache: 120] unable to set localhost. This prevents creation of a guid. Cause was: tomcat-03: tomcat-03: Unknown error
Java.net. unknownhostexception: tomcat-03: tomcat-03: Unknown error
At java.net. inetaddress. getlocalhost (inetaddress. Java: 1484)
At net. SF. ehcache. cache. <clinit> (Cache. Java: 200)
At net. SF. ehcache. config. configurationhelper. createcache (configurationhelper. Java: 302)
At net. SF. ehcache. config. configurationhelper. createdefaultcache (configurationhelper. Java: 218)
At net. SF. ehcache. cachemanager. Configure (cachemanager. Java: 618)
At net. SF. ehcache. cachemanager. INIT (cachemanager. Java: 361)
At net. SF. ehcache. cachemanager. <init> (cachemanager. Java: 230)
At com. liferay. Portal. Dao. Orm. hibernate. region. liferayehcacheregionfactory. Start (liferayehcacheregionfactory. Java: 182)
At com. liferay. Portal. Dao. Orm. hibernate. region. singletonliferayehcacheregionfactory. Start (singletonliferayehcacheregionfactory. Java: 106)
At org. hibernate. impl. sessionfactoryimpl. <init> (sessionfactoryimpl. Java: 238)
At org. hibernate. cfg. configuration. buildsessionfactory (configuration. Java: 1872)
At org. springframework. Orm. hibernate3.localsessionfactorybean. newsessionfactory (localsessionfactorybean. Java: 860)
At org. springframework. Orm. hibernate3.localsessionfactorybean. buildsessionfactory (localsessionfactorybean. Java: 779)
At com. liferay. Portal. Spring. hibernate. portalhibernateconfiguration. buildsessionfactory (portalhibernateconfiguration. Java: 65)
At org. springframework. Orm. hibernate3.abstractsessionfactorybean. afterpropertiesset (abstractsessionfactorybean. Java: 211)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. invokeinitmethods (abstractautowirecapablebeanfactory. Java: 1479)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. initializebean (abstractautowirecapablebeanfactory. Java: 1419)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. docreatebean (abstractautowirecapablebeanfactory. Java: 518)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. createbean (abstractautowirecapablebeanfactory. Java: 455)
At org. springframework. Beans. Factory. Support. abstractbeanfactory $1. GetObject (abstractbeanfactory. Java: 293)
At org. springframework. Beans. Factory. Support. defaultsingletonbeanregistry. getsingleton (defaultsingletonbeanregistry. Java: 222)
At org. springframework. Beans. Factory. Support. abstractbeanfactory. dogetbean (abstractbeanfactory. Java: 290)
At org. springframework. Beans. Factory. Support. abstractbeanfactory. getbean (abstractbeanfactory. Java: 192)
At org. springframework. Beans. Factory. Support. beandefinitionvalueresolver. resolvereference (beandefinitionvalueresolver. Java: 322)
At org. springframework. Beans. Factory. Support. beandefinitionvalueresolver. resolvevalueifnecessary (beandefinitionvalueresolver. Java: 106)
At org. springframework. Beans. Factory. Support. constructorresolver. resolveconstructorarguments (constructorresolver. Java: 630)
At org. springframework. Beans. Factory. Support. constructorresolver. instantiateusingfactorymethod (constructorresolver. Java: 441)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. instantiateusingfactorymethod (abstractautowirecapablebeanfactory. Java: 982)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. createbeaninstance (abstractautowirecapablebeanfactory. Java: 878)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. docreatebean (abstractautowirecapablebeanfactory. Java: 484)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. createbean (abstractautowirecapablebeanfactory. Java: 455)
At org. springframework. Beans. Factory. Support. abstractbeanfactory $1. GetObject (abstractbeanfactory. Java: 293)
At org. springframework. Beans. Factory. Support. defaultsingletonbeanregistry. getsingleton (defaultsingletonbeanregistry. Java: 222)
At org. springframework. Beans. Factory. Support. abstractbeanfactory. dogetbean (abstractbeanfactory. Java: 290)
At org. springframework. Beans. Factory. Support. abstractbeanfactory. getbean (abstractbeanfactory. Java: 192)
At org. springframework. Beans. Factory. Support. beandefinitionvalueresolver. resolvereference (beandefinitionvalueresolver. Java: 322)
At org. springframework. Beans. Factory. Support. beandefinitionvalueresolver. resolvevalueifnecessary (beandefinitionvalueresolver. Java: 106)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. applypropertyvalues (abstractautowirecapablebeanfactory. Java: 1327)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. populatebean (abstractautowirecapablebeanfactory. Java: 1085)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. docreatebean (abstractautowirecapablebeanfactory. Java: 516)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. createbean (abstractautowirecapablebeanfactory. Java: 455)
At org. springframework. Beans. Factory. Support. abstractbeanfactory $1. GetObject (abstractbeanfactory. Java: 293)
At org. springframework. Beans. Factory. Support. defaultsingletonbeanregistry. getsingleton (defaultsingletonbeanregistry. Java: 222)
At org. springframework. Beans. Factory. Support. abstractbeanfactory. dogetbean (abstractbeanfactory. Java: 290)
At org. springframework. Beans. Factory. Support. abstractbeanfactory. getbean (abstractbeanfactory. Java: 192)
At org. springframework. Beans. Factory. Support. beandefinitionvalueresolver. resolvereference (beandefinitionvalueresolver. Java: 322)
At org. springframework. Beans. Factory. Support. beandefinitionvalueresolver. resolvevalueifnecessary (beandefinitionvalueresolver. Java: 106)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. applypropertyvalues (abstractautowirecapablebeanfactory. Java: 1327)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. populatebean (abstractautowirecapablebeanfactory. Java: 1085)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. docreatebean (abstractautowirecapablebeanfactory. Java: 516)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. createbean (abstractautowirecapablebeanfactory. Java: 455)
At org. springframework. Beans. Factory. Support. abstractbeanfactory $1. GetObject (abstractbeanfactory. Java: 293)
At org. springframework. Beans. Factory. Support. defaultsingletonbeanregistry. getsingleton (defaultsingletonbeanregistry. Java: 222)
At org. springframework. Beans. Factory. Support. abstractbeanfactory. dogetbean (abstractbeanfactory. Java: 290)
At org. springframework. Beans. Factory. Support. abstractbeanfactory. getbean (abstractbeanfactory. Java: 196)
At org. springframework. Context. Support. abstractapplicationcontext. registerbeanpostprocessors (abstractapplicationcontext. Java: 710)
At org. springframework. Context. Support. abstractapplicationcontext. Refresh (abstractapplicationcontext. Java: 410)
At org. springframework. Web. Context. contextloader. createwebapplicationcontext (contextloader. Java: 282)
At org. springframework. Web. Context. contextloader. initwebapplicationcontext (contextloader. Java: 204)
At org. springframework. Web. Context. contextloaderlistener. contextinitialized (contextloaderlistener. Java: 47)
At com. liferay. Portal. Spring. Context. portalcontextloaderlistener. contextinitialized (portalcontextloaderlistener. Java: 186)
At org. Apache. Catalina. Core. standardcontext. listenerstart (standardcontext. Java: 4887)
At org. Apache. Catalina. Core. standardcontext. startinternal (standardcontext. Java: 5381)
At org. Apache. Catalina. util. lifecyclebase. Start (lifecyclebase. Java: 150)
At org. Apache. Catalina. Core. containerbase. addchildinternal (containerbase. Java: 901)
At org. Apache. Catalina. Core. containerbase. addchild (containerbase. Java: 877)
At org. Apache. Catalina. Core. standardhost. addchild (standardhost. Java: 633)
At org. Apache. Catalina. startup. hostconfig. deploydescriptor (hostconfig. Java: 657)
At org. Apache. Catalina. startup. hostconfig $ deploydescriptor. Run (hostconfig. Java: 1636)
At java. util. Concurrent. executors $ runnableadapter. Call (executors. Java: 511)
At java. util. Concurrent. futuretask. Run (futuretask. Java: 266)
At java. util. Concurrent. threadpoolexecutor. runworker (threadpoolexecutor. Java: 1142)
At java. util. Concurrent. threadpoolexecutor $ worker. Run (threadpoolexecutor. Java: 617)
At java. Lang. thread. Run (thread. Java: 745)
Caused by: java.net. unknownhostexception: tomcat-03: Unknown error
At java.net. inet6addressimpl. lookupallhostaddr (native method)
At java.net. inetaddress $2. lookupallhostaddr (inetaddress. Java: 907)
At java.net. inetaddress. getaddressesfromnameservice (inetaddress. Java: 1302)
At java.net. inetaddress. getlocalhost (inetaddress. Java: 1479)
... 73 more
Solution: Add a record to the/etc/hosts file.
Host Name of the local IP Address
Restart liferay and view the log. Everything is normal. After startup, the front-end interface can be accessed normally.
This article is from the Nagios fault blog, please be sure to keep this source http://5250070.blog.51cto.com/5240070/1557243
Fault during liferay startup