[架构师之路]TOMCAT启动出错
来源:互联网 发布:matlab 数组重复拼接 编辑:程序博客网 时间:2024/06/07 05:36
1.看tomcat错误日记
报错信息:StandardContext.startInternal One or more listeners failed to start. Full details will be found in t
在项目的WEB-INF/classes目录下新建一个文件叫logging.properties,内容如下
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler ############################################################ # Handler specific properties. # Describes specific configuration info for Handlers. ############################################################ org.apache.juli.FileHandler.level = FINE org.apache.juli.FileHandler.directory = ${catalina.base}/logs org.apache.juli.FileHandler.prefix = error-debug. java.util.logging.ConsoleHandler.level = FINE java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
重新启动tomcat,便可以在tomcat的logs目录下生产error开头的错误日记。
2.java.lang.IncompatibleClassChangeError: Class org.springframework.core.type.classreading.AnnotationMetadataReadingVisitor
原因是jar包冲突引起的。
spring-core.jar包里已经有了asm
固不用单独导入asm包
方案一:全部的spring引用换成3.4.2;这个版本里面core 有as-common文件夹
3.
http://www.imooc.com/wenda/detail/317567
把“,”变成"#"就可以解决
4.
The valid characters are defined in RFC 7230 and RFC 3986 错误
http://blog.csdn.net/sunpeng_sp/article/details/58309190
5.项目在war打包后,jetty单元测试总是报下面的错误
--------------------------------------------------------------------------------------------------
HTTP ERROR 500
Problem accessing /customer/customer/toList. Reason:
Server Error
Caused by:
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.sishuok.architecture1.customermgr.dao.CustomerDAO.getByConditionPage
at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:184)
at org.apache.ibatis.binding.MapperMethod.<init>(MapperMethod.java:38)
at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:49)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:42)
at com.sun.proxy.$Proxy31.getByConditionPage(Unknown Source)
at com.sishuok.architecture1.common.service.BaseService.getByConditionPage(BaseService.java:37)
at com.sishuok.architecture1.customermgr.web.CustomerController.toList(CustomerController.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
-------------------------------------------------------------------------------------------------------
进过一个星期的调查调试发现在target下的map文件没有生产导致,不能映射出错;
终于找到该处错误,太开心了;被折磨好一阵子。
接下来看为啥有时候能生成的问题
6.maven的主项目和子模块在clean后,如果直接运行子模块会出现莫名的报错,
这时必须把项目用maven 强制update,错误就可以消失
- [架构师之路]TOMCAT启动出错
- Tomcat启动出错????
- Tomcat启动出错????
- tomcat 启动出错
- tomcat启动出错
- 启动tomcat出错
- Tomcat启动出错详解
- Tomcat启动出错
- STS启动tomcat出错
- tomcat启动出错
- tomcat启动出错
- linux启动tomcat出错
- myclipse tomcat启动出错
- tomcat启动出错排查
- tomcat 启动出错,帮忙解决
- Myeclipse中启动Tomcat出错
- Tomcat启动的时候出错
- 项目发布、启动Tomcat出错
- 不带头结点的单链表删除任意一个节点
- android对接unity时出现的内存泄漏问题
- LCA(dfs+st)在线算法
- 百练OJ:2713:肿瘤面积
- HDU1008
- [架构师之路]TOMCAT启动出错
- 将数组A中的内容和数组B中的内容进行交换。(数组一样大)
- hdu 4745 Two Rabbits
- 居然很少有人质疑: 2MSL的TIME_WAIT时间真的足够保证旧连接上的所有包都消失吗?
- 数组逆序操作
- HDU
- 元素出栈、入栈顺序的合法性
- 不再纠结OpenCV图像中的x,y;width,height;cols,rows
- 日常学习2017.7.22