tomcat启动项目异常: 2 字节的 UTF-8 序列的字节 2 无效。
来源:互联网 发布:免费域名小说1080 编辑:程序博客网 时间:2024/06/06 23:13
严重: Servlet.service() for servlet [jsp] in context with path [/test] threw exception [org.apache.jasper.JasperException: XML parsing error on file org.apache.tomcat.util.scan.MergedWebXml] with root causecom.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 2 字节的 UTF-8 序列的字节 2 无效。
解决方法:
在tomcat的bin目录下有文件catalina.bat
找到这行:set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%
在它上一行加入:set JAVA_OPTS=-server -Dfile.encoding=utf-8
0 1
- tomcat启动项目异常: 2 字节的 UTF-8 序列的字节 2 无效。
- org.dom4j.DocumentException: 2 字节的 UTF-8 序列的字节 2 无效。 Nested exception: 2 字节的 UTF-8 序列的字节 2 无效。异常解决办法
- 2 字节的 UTF-8 序列的字节 2 无效
- 2 字节的 UTF-8 序列的字节 2 无效
- Java异常: "2 字节的 UTF-8 序列的字节 2 无效。"的解决方案
- 异常: 2 字节的 UTF-8 序列的字节 2 无效。
- Java异常 2字节的UTF-8序列的字节2无效
- Tomcat——2 字节的 UTF-8 序列的字节 2 无效
- Tomcat——2 字节的 UTF-8 序列的字节 2 无效
- 异常:org.dom4j.DocumentException: 2字节的UTF-8序列的2无效
- spring MalformedByteSequenceException:2字节的 UTF-8 序列的字节 2无效
- ant打包 报错 3 字节的 UTF-8 序列的字节 2 无效
- eclipse 3字节的UTF-8序列的字节2无效
- MalformedByteSequenceException: 3 字节的 UTF-8 序列的字节 2 无效
- MalformedByteSequenceException: 3 字节的 UTF-8 序列的字节 2 无效
- IDEA JUnit Test报错:3 字节的 UTF-8 序列的字节 2 无效
- 1 字节的 UTF-8 序列的字节 1 无效
- 3 字节的 UTF-8 序列的字节 3 无效。
- 浅谈 SOAP
- java.lang.NoClassDefFoundError: org/apache/xml/serializer/TreeWalker
- Volley笔记
- 教你一分钟实现动态模糊效果
- 常用电脑知识
- tomcat启动项目异常: 2 字节的 UTF-8 序列的字节 2 无效。
- Swift中的类
- 如何将图片存入MySQL中的blob去
- TensorFlow框架的简单理解
- Linux 初始化 init 系统(UpStart)
- 对于Java回调的最深刻解析
- datatable edit 中 数据源为 HTML类型时的操作 取得超链接中的文字 输出时整理斜杠
- 无法连接 MKS: Login(username/password)incorrect
- android中和屏幕相关的操作