开发用的是jetty服务器,运行没有问题。现在我打war包丢tomcat中,就启动不了,这是什么谁知道啊?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(22)
试了windows可以,然后买了服务器,linux上又不行。我次奥
可能咯。。现在换tomcat8了,启动完全没那问题了。。唉
极有可能。
问题解决了。。是spring4.*要tomct8才能跑。。。囧
将信息输出到log里面,这里给的信息估计还不是重点,重点应该是这个之前的信息
jdk1.7肯定是够了的哟,毕竟我用jetty是可以运行的
回复
我也在折腾阿里云服务器,那个和真实的linux没区别,所你说和哪个没关系哈,应该是你自己写的程序有问题
无奈了,入手了台阿里服务器,linux上一试,又不行了。。真无奈
spring4貌似要jre1.8吧,你用spring3的看一看
回复
如果说程序有问题,为啥我在jetty上,和windows上可以运行呢??纠结
回复
你写了和运行环境相关的代码
@阿信sxq 那就不知道咯。。唉。
据说是因为spring版本和jre的版本对应关系不好造成的,spring和jre的版本是多少啊
刚才我不管它卡住,一直开着,奇迹发生了。。。过了大概好几分钟后,开始死循环一样的飞快的打日志了。。我抓了几张图,内存使用直接使用上130WK,我吓得赶紧关了。。
问题就出在这了,我在tomcat里面启动就卡住了。。。这才是关键啊。。
INFO信息,又不是错误
兄弟,很完整了。前面是jetty的打印,后面是springMvc加载的类。。都和这个无关的哟。。。且这个启动是不报错可以正常运行的哦
除非是我日志级别有问题,打印的内容不够,呵呵
回复
没一个error?计算是其他的打印也有可能有问题。 我顺便搜索了下你的这个info,有些人是因为jdk路径、jre环境等各种问题导致
回复
嗯,我是jetty热部署嘛,启动很快。。但是打成war包丢tomcat里面就不行了,启动一会就卡在dataSource那个日志那,不动了。。。
日志信息还不够完整,前面肯定还有一些重要信息,后面应该也有,弄个完整的日志文件上来吧
最近提问总没人回答。。。
我提的太肤浅了吗?