Deployed today to Tomcat, found that the boot process has an exception, the verification code at the front desk out, thought it was caused by this exception, and later resolved the Java.net.UnknownHostException, login page verification code is still out of the question. Verbose exception output
Error mode: java.net.UnknownHostException: Host Name: Host name
Java.net.unknownhostexception:rd-cd-app122.wlyd.local:rd-cd-app122.wlyd.local:?..?..
Crepe version.?.. At Java.net.InetAddress.getLocalHost (inetaddress.java:1473) at net.sf.ehcache.cache.<clinit> (cache.java:214 ) at Net.sf.ehcache.config.ConfigurationHelper.createCache (configurationhelper.java:296) at Net.sf.ehcache.config.ConfigurationHelper.createDefaultCache (configurationhelper.java:219) at Net.sf.ehcache.CacheManager.configure (cachemanager.java:722) at Net.sf.ehcache.CacheManager.doInit ( cachemanager.java:439) at the Net.sf.ehcache.CacheManager.init (cachemanager.java:377) at Net.sf.ehcache.CacheManager. <init> (cachemanager.java:259) at Net.sf.ehcache.CacheManager.newInstance (cachemanager.java:1037) at Net.sf.ehcache.CacheManager.newInstance (cachemanager.java:818) at Net.sf.ehcache.CacheManager.create ( cachemanager.java:799) at com.wlyd.fmcgwms.util.ehcache.ehcacheutil.<clinit> (EhcacheUtil.java:18) at Com.wlyd.fmcgwms.util.sysinit.InitSysProperties.setApplicationContexT (initsysproperties.java:55) at Org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces ( applicationcontextawareprocessor.java:117) at Org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization ( applicationcontextawareprocessor.java:92) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization (abstractautowirecapablebeanfactory.java:396) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean ( abstractautowirecapablebeanfactory.java:1505) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:521) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:458) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (abstractbeanfactory.java:296) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:223) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:293) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:194) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:628) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:932) at Org.springframework.context.support.AbstractApplicationContext.refresh ( abstractapplicationcontext.java:479) at
Org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext (contextloader.java:389) At Org.springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:294) at Org.springframework.web.context.ContextLoaderListenEr.contextinitialized (contextloaderlistener.java:112) at Org.apache.catalina.core.StandardContext.listenerStart (
standardcontext.java:4994) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5492) 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:649) at Org.apache.catalina.startup.HostConfig.deployWAR (hostconfig.java:1081) at Org.apache.catalina.startup.HostConfig
$DeployWar. Run (hostconfig.java:1877) at Java.util.concurrent.executors$runnableadapter.call (executors.java:471) At Java.util.concurrent.FutureTask.run (futuretask.java:262) at Java.util.concurrent.ThreadPoolExecutor.runWorker (
threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (ThreadPoolExecutor.java:615) At Java. lang. Thread.run (thread.java:745) caused by:java.net.unknownhostexception:rd-cd-app122.wlyd.local:?..?..
Crepe version.?.. At Java.net.Inet6AddressImpl.lookupAllHostAddr (Native method) at Java.net.inetaddress$1.lookupallhostaddr ( inetaddress.java:901) at Java.net.InetAddress.getAddressesFromNameService (inetaddress.java:1293) at Java.net.InetAddress.getLocalHost (inetaddress.java:1469) ... More 2016-12-29 17:11:38,875 [localhost-startstop-1] INFO [Org.quartz.core.SchedulerSignalerImpl]-initialized Scheduler signaller of Type:class org.quartz.core.SchedulerSignalerImpl 2016-12-29 17:11:38,885 [
LOCALHOST-STARTSTOP-1] INFO [Org.quartz.core.QuartzScheduler]-quartz Scheduler v.1.8.5 created.
2016-12-29 17:11:38,886 [localhost-startstop-1] INFO [Org.quartz.simpl.RAMJobStore]-ramjobstore initialized. 2016-12-29 17:11:38,888 [localhost-startstop-1] INFO [Org.quartz.core.QuartzScheduler]-Scheduler Meta-data:quartz Scheduler (v1.8.5) ' Springjobschedulerfactorybean ' with Instanceid ' NON_clustered ' Scheduler class: ' Org.quartz.core.QuartzScheduler '-running locally.
Not started.
Currently in standby mode.
Number of jobs executed:0 Using thread pool ' org.quartz.simpl.SimpleThreadPool '-with threads. Using job-store ' Org.quartz.simpl.RAMJobStore '-which does not support persistence. and is not clustered.
Solving Method
Command: vi/etc/hosts
Add on last line: 127.0.0.1 host name. My system has been changed to look like the following image:
The modification is complete, the file is saved, and then no such exception occurs.