今天是怎么了,又碰到一个奇怪的问题,tomcat启动报错,前所未有!!!!跪等大神

大苹果xxoo 程序员  2015-12-03 08:03:58
把控制台贴出来了,项目发布到linux服务器上启动报错,在本机启动都没问题
maxIdle is deprecated
[INFO] 2015-12-03 18:12:16,137 [localhost-startStop-1] [com.alibaba.druid.pool.DruidDataSource.init:446]
{dataSource-1} inited
[ERROR] 2015-12-03 18:12:16,684 [localhost-startStop-1] [net.sf.ehcache.Cache.<clinit>:145]
Unable to set localhost. This prevents creation of a GUID. Cause was: wlyweb: wlyweb: Name or service not known
java.net.UnknownHostException: wlyweb: wlyweb: Name or service not known
at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
at net.sf.ehcache.Cache.<clinit>(Cache.java:143)
at net.sf.ehcache.config.ConfigurationHelper.createCache(ConfigurationHelper.java:463)
at net.sf.ehcache.config.ConfigurationHelper.createDefaultCache(ConfigurationHelper.java:369)
at net.sf.ehcache.CacheManager.configure(CacheManager.java:445)
at net.sf.ehcache.CacheManager.init(CacheManager.java:302)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:260)
at net.sf.ehcache.CacheManager.create(CacheManager.java:535)
at net.sf.ehcache.CacheManager.getInstance(CacheManager.java:555)
at com.enation.framework.cache.EhCacheImpl.<init>(EhCacheImpl.java:24)
at com.enation.framework.cache.CacheFactory.getCache(CacheFactory.java:18)
at com.enation.framework.cache.AbstractCacheProxy.<init>(AbstractCacheProxy.java:21)
at com.enation.app.cms.core.service.impl.cache.DataCatCacheProxy.<init>(DataCatCacheProxy.java:26)
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:100)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:1029)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:977)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5490)
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.deployDirectory(HostConfig.java:1247)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)
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: wlyweb: Name or service not known
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)
... 60 more
...全文
3063 点赞 收藏 10
写回复
10 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
Cx_轩 2015-12-04
学习了!
回复
科學信仰 2015-12-04
本机没有映射也能获取说明未必需要映射 在没映射之前就已经能获取到localhost name wlyweb了 映射之后无效也说明没有去 etc/hots下去取
回复
大苹果xxoo 2015-12-04
引用 6 楼 ilovejavas的回复:
出现这个问题是因为DNS无法解析的原因: 解决办法:vi /etc/hosts在后面假如一行:127.0.0.1 wlyweb
解决了,之前错改成host文件了
回复
大苹果xxoo 2015-12-04
引用 6 楼 ilovejavas的回复:
出现这个问题是因为DNS无法解析的原因: 解决办法:vi /etc/hosts在后面假如一行:127.0.0.1 wlyweb
还是不可以,不管写本机ip还是写你给的那个还是报错
回复
ilovejavas 2015-12-04
出现这个问题是因为DNS无法解析的原因: 解决办法:vi /etc/hosts在后面假如一行:127.0.0.1 wlyweb
回复
ilovejavas 2015-12-04
linux上编辑:
回复
大苹果xxoo 2015-12-03
引用 2 楼 大苹果xxoo的回复:
[quote=引用 1 楼 zhang116868的回复:]你项目名是wlyweb? 还是之前tomcat上有绑定过这个的项目?
都没有,而且我在我的项目里面search了一下都没找到[/quote] wlweb是服务器的计算机名
回复
大苹果xxoo 2015-12-03
引用 2 楼 大苹果xxoo的回复:
[quote=引用 1 楼 zhang116868的回复:]你项目名是wlyweb? 还是之前tomcat上有绑定过这个的项目?
都没有,而且我在我的项目里面search了一下都没找到[/quote] 一个tomcat里面布了两个项目,之前的那个项目就不会报这种错误,后来添加的这个项目就报错了
回复
大苹果xxoo 2015-12-03
引用 1 楼 zhang116868的回复:
你项目名是wlyweb? 还是之前tomcat上有绑定过这个的项目?
都没有,而且我在我的项目里面search了一下都没找到
回复
海会圣贤 2015-12-03
你项目名是wlyweb? 还是之前tomcat上有绑定过这个的项目?
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2015-12-03 08:03
社区公告
暂无公告