开发用的是jetty服务器,运行没有问题。现在我打war包丢tomcat中,就启动不了,这是什么谁知道啊?

发布于 2021-11-25 16:59:58 字数 11727 浏览 715 评论 22

2014-05-16 11:33:17[org.springframework.web.context.ContextLoader] INFO-[Root WebApplicationContext: initialization started]
2014-05-16 11:33:17[org.springframework.web.context.support.XmlWebApplicationContext] INFO-[Refreshing Root WebApplicationContext: startup date [Fri May 16 11:33:17 CST 2014]; root of context hierarchy]
2014-05-16 11:33:17[org.springframework.context.support.PropertySourcesPlaceholderConfigurer] INFO-[Loading properties file from file [F:gitpermissiontargetclassesconfigcas-config.properties]]
2014-05-16 11:33:17[org.springframework.context.support.PropertySourcesPlaceholderConfigurer] INFO-[Loading properties file from file [F:gitpermissiontargetclassesconfigcommon-message-cn.properties]]
2014-05-16 11:33:17[org.springframework.context.support.PropertySourcesPlaceholderConfigurer] INFO-[Loading properties file from file [F:gitpermissiontargetclassesconfigjdbc.properties]]
2014-05-16 11:33:17[org.springframework.context.support.PropertySourcesPlaceholderConfigurer] INFO-[Loading properties file from file [F:gitpermissiontargetclassesconfiglog4j.properties]]
2014-05-16 11:33:17[org.springframework.context.support.PropertySourcesPlaceholderConfigurer] INFO-[Loading properties file from file [F:gitpermissiontargetclassesconfigmy-config.properties]]
2014-05-16 11:33:17[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0' of type [class org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:17[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' of type [class org.springframework.transaction.annotation.AnnotationTransactionAttributeSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:18[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'org.springframework.transaction.config.internalTransactionAdvisor' of type [class org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:18[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'org.springframework.beans.factory.config.MethodInvokingFactoryBean#0' of type [class org.springframework.beans.factory.config.MethodInvokingFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:18[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'dataSource' of type [class org.apache.tomcat.jdbc.pool.DataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:18[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'sqlSessionFactory' of type [class org.mybatis.spring.SqlSessionFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:18[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'sqlSessionFactory' of type [class org.apache.ibatis.session.defaults.DefaultSqlSessionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:18[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'userMapper' of type [class org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:18[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'systeminfoMapper' of type [class org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:18[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'roleMapper' of type [class org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:18[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'menuMapper' of type [class org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:18[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'menuBtnMapper' of type [class org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:18[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'commonMapper' of type [class org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:18[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'commonMapper' of type [class com.sun.proxy.$Proxy25] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:18[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'menuMapper' of type [class com.sun.proxy.$Proxy27] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:18[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'commonServiceImpl' of type [class com.ts.bg.logic.common.service.impl.CommonServiceImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:19[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'transactionManager' of type [class org.springframework.jdbc.datasource.DataSourceTransactionManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:19[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean '(inner bean)' of type [class org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:19[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'txAdvice' of type [class org.springframework.transaction.interceptor.TransactionInterceptor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:19[org.apache.shiro.realm.AuthorizingRealm] INFO-[No cache or cacheManager properties have been set.  Authorization cache cannot be obtained.]
2014-05-16 11:33:19[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'casShiroRealm' of type [class com.ts.bg.logic.common.mapper.MyCasRealm] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:19[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'casSubjectFactory' of type [class org.apache.shiro.cas.CasSubjectFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:19[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'shiroEhcacheManager' of type [class org.apache.shiro.cache.ehcache.EhCacheManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:19[org.apache.shiro.web.mgt.DefaultWebSecurityManager] WARN-[The 'sessionMode' property has been deprecated.  Please configure an appropriate WebSessionManager instance instead of using this property.  This property/method will be removed in a later version.]
2014-05-16 11:33:19[org.apache.shiro.web.mgt.DefaultWebSecurityManager] INFO-[http mode - enabling ServletContainerSessionManager (HTTP-only Sessions)]
2014-05-16 11:33:19[org.apache.shiro.cache.ehcache.EhCacheManager] INFO-[Cache with name 'com.ts.bg.logic.common.mapper.MyCasRealm.authorizationCache' does not yet exist.  Creating now.]
2014-05-16 11:33:19[org.apache.shiro.cache.ehcache.EhCacheManager] INFO-[Added EhCache named [com.ts.bg.logic.common.mapper.MyCasRealm.authorizationCache]]
2014-05-16 11:33:19[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'securityManager' of type [class org.apache.shiro.web.mgt.DefaultWebSecurityManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:19[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter#16a0e4c' of type [class org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:19[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'casFilter' of type [class org.apache.shiro.cas.CasFilter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:19[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'util:map#59d0a04d' of type [class org.springframework.beans.factory.config.MapFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:19[org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] INFO-[Bean 'util:map#59d0a04d' of type [class java.util.LinkedHashMap] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
2014-05-16 11:33:19[org.springframework.web.context.ContextLoader] INFO-[Root WebApplicationContext: initialization completed in 2713 ms]

大家可以看到我的日志中,有很多的

is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)]
这个以前是真心没注意过,这到底是什么啊?

我在jetty中运行是没问题的,但是我打war包丢tomcat中直接都运行不来了。。。

求大神解惑。。。



如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(22

三月梨花 2021-12-01 15:40:07

试了windows可以,然后买了服务器,linux上又不行。我次奥

伴我心暖 2021-12-01 15:40:07

可能咯。。现在换tomcat8了,启动完全没那问题了。。唉

绝影如岚 2021-12-01 15:40:05

极有可能。

风苍溪 2021-12-01 15:40:03

问题解决了。。是spring4.*要tomct8才能跑。。。囧

温柔少女心 2021-12-01 15:40:01

将信息输出到log里面,这里给的信息估计还不是重点,重点应该是这个之前的信息

复古式 2021-12-01 15:40:00

jdk1.7肯定是够了的哟,毕竟我用jetty是可以运行的

泪冰清 2021-12-01 15:39:58

回复
我也在折腾阿里云服务器,那个和真实的linux没区别,所你说和哪个没关系哈,应该是你自己写的程序有问题

柳若烟 2021-12-01 15:39:58

无奈了,入手了台阿里服务器,linux上一试,又不行了。。真无奈

静谧 2021-12-01 15:39:58

spring4貌似要jre1.8吧,你用spring3的看一看

静谧 2021-12-01 15:39:57

回复
如果说程序有问题,为啥我在jetty上,和windows上可以运行呢??纠结

疾风者 2021-12-01 15:39:53

回复
你写了和运行环境相关的代码

贱贱哒 2021-12-01 15:39:45

@阿信sxq 那就不知道咯。。唉。

鹤舞 2021-12-01 15:39:44

据说是因为spring版本和jre的版本对应关系不好造成的,spring和jre的版本是多少啊

后知后觉 2021-12-01 15:39:23

刚才我不管它卡住,一直开着,奇迹发生了。。。过了大概好几分钟后,开始死循环一样的飞快的打日志了。。我抓了几张图,内存使用直接使用上130WK,我吓得赶紧关了。。

葬花如无物 2021-12-01 15:33:07

问题就出在这了,我在tomcat里面启动就卡住了。。。这才是关键啊。。

丢了幸福的猪 2021-12-01 15:24:47

INFO信息,又不是错误

归属感 2021-12-01 13:17:36

兄弟,很完整了。前面是jetty的打印,后面是springMvc加载的类。。都和这个无关的哟。。。且这个启动是不报错可以正常运行的哦

终遇你 2021-11-30 18:39:05

除非是我日志级别有问题,打印的内容不够,呵呵

疑心病 2021-11-30 16:43:22

回复
没一个error?计算是其他的打印也有可能有问题。 我顺便搜索了下你的这个info,有些人是因为jdk路径、jre环境等各种问题导致

终止放荡 2021-11-29 10:56:19

回复
嗯,我是jetty热部署嘛,启动很快。。但是打成war包丢tomcat里面就不行了,启动一会就卡在dataSource那个日志那,不动了。。。

夜血缘 2021-11-29 02:20:38

日志信息还不够完整,前面肯定还有一些重要信息,后面应该也有,弄个完整的日志文件上来吧

甜扑 2021-11-27 06:55:26

最近提问总没人回答。。。

我提的太肤浅了吗?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文