Linux starts tomcat error Failed to get local inetaddress for VMID. This was unlikely to matter. At all. We ll add some extra randomness

Source: Internet
Author: User
Tags addchild

INFO [localhost-startstop-1] Com.mchange.v2.log.slf4j.slf4jmlog$slf4jmlogger$infologger.log (206) | Failed to get the local inetaddress for VMID. This was unlikely to matter. At all. We ll add some extra randomness
java.net.UnknownHostException:Oracle.Linux.server:Oracle.Linux.server: Unknown name or service
At java.net.InetAddress.getLocalHost (inetaddress.java:1496)
At com.mchange.v2.uid.UidUtils.generateVmId (uidutils.java:70)
At com.mchange.v2.uid.uidutils.<clinit> (uidutils.java:54)
At com.mchange.v2.c3p0.impl.c3p0implutils.<clinit> (c3p0implutils.java:126)
At com.mchange.v2.c3p0.impl.poolbackeddatasourcebase.<init> (poolbackeddatasourcebase.java:288)
At com.mchange.v2.c3p0.impl.abstractpoolbackeddatasource.<init> (abstractpoolbackeddatasource.java:74)
At com.mchange.v2.c3p0.abstractcombopooleddatasource.<init> (abstractcombopooleddatasource.java:142)
At com.mchange.v2.c3p0.abstractcombopooleddatasource.<init> (abstractcombopooleddatasource.java:138)
At com.mchange.v2.c3p0.combopooleddatasource.<init> (combopooleddatasource.java:47)
At Sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
At sun.reflect.NativeConstructorAccessorImpl.newInstance (nativeconstructoraccessorimpl.java:57)
At sun.reflect.DelegatingConstructorAccessorImpl.newInstance (delegatingconstructoraccessorimpl.java:45)
At java.lang.reflect.Constructor.newInstance (constructor.java:526)
At Org.springframework.beans.BeanUtils.instantiateClass (beanutils.java:147)
At Org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate ( simpleinstantiationstrategy.java:89)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean ( abstractautowirecapablebeanfactory.java:1094)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance ( abstractautowirecapablebeanfactory.java:1046)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:504)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:476)
At Org.springframework.beans.factory.support.abstractbeanfactory$1.getobject (abstractbeanfactory.java:303)
At Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:230)
At Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:299)
At Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:194)
At Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:755)
At Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:757)
At Org.springframework.context.support.AbstractApplicationContext.refresh (Abstractapplicationcontext.java : 480)
At Org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext ( contextloader.java:403)
At Org.springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:306)
At org.springframework.web.context.ContextLoaderListener.contextInitialized (contextloaderlistener.java:106)
At Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:5068)
At org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5584)
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:147)
At org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:899)
At Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:875)
At Org.apache.catalina.core.StandardHost.addChild (standardhost.java:652)
At org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1260)
At Org.apache.catalina.startup.hostconfig$deploydirectory.run (hostconfig.java:2002)
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:Oracle.Linux.server: unknown name or service
At java.net.Inet6AddressImpl.lookupAllHostAddr (Native Method)
At java.net.inetaddress$1.lookupallhostaddr (inetaddress.java:922)
At Java.net.InetAddress.getAddressesFromNameService (inetaddress.java:1316)
At java.net.InetAddress.getLocalHost (inetaddress.java:1492)
... more

Workaround: Modify the/etc/hosts file to add 192.168.3.230 Oracle.Linux.server

Linux starts tomcat error Failed to get local inetaddress for VMID. This was unlikely to matter. At all. We ll add some extra randomness

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.