apache-启动Tomcat7 运行jsp就报错

问题描述

启动Tomcat7 运行jsp就报错

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: org.apache.jasper.JasperException: XML parsing error on file org.apache.tomcat.util.scan.MergedWebXml
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:218)
org.apache.jasper.compiler.JspConfig.init(JspConfig.java:231)
org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:290)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:113)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:365)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:345)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:594)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:342)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
root cause

org.apache.jasper.JasperException: XML parsing error on file org.apache.tomcat.util.scan.MergedWebXml
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:111)
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:83)
org.apache.jasper.compiler.JspConfig.init(JspConfig.java:231)
org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:290)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:113)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:365)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:345)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:594)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:342)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
root cause

com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence.
com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:674)
com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:362)
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742)
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.peekChar(XMLEntityScanner.java:487)
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2679)
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:96)
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:83)
org.apache.jasper.compiler.JspConfig.init(JspConfig.java:231)
org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:290)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:113)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:365)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:345)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:594)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:342)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.6 logs.

Apache Tomcat/7.0.6

解决方案

Tomcat7 启动报错解决办法
tomcat启动不了,报错!

解决方案二:

500错误,一般也就是服务端错误,可以排查缩小错误范围:
1排除tomcat的问题,访问tomcat,通过浏览器localhost:8080查看是否出错;
2排除工程出错的可能性,测试以往正确运行的工程是否出错;
3本工程下查错,tomcat启动后,浏览器访问localhost:8080/index.jsp导航页是否可以访问,否:检查关于相关jar包,是否完整,一般只要建立的web工程都是完整的,若可以访问,错误可以缩小到你页面本身的编写问题检查~希望对你有所帮助

解决方案三:

先启动toncat看能不能正常运行,能正常运行的话手工写一个jsp看看能不能运行,如果正常就是你的开发工具有问题,在看看你jdk是否正常 包括环境变量配置什么的
还有你在开发工具追踪配置的jdk tomcat是否正确

时间: 2024-10-28 15:52:14

apache-启动Tomcat7 运行jsp就报错的相关文章

在tomcat6运行无异常,换到tomcat7运行则会报错

问题描述 后台是用springMVC+spring+hibernate做的,用Myeclipse自带的tomcat6运行,无异常,项目可以正常运行.可是在tomcat7中启动,就会报错说找不到aspectjweaver这个包吧,可是我已经引入了该jar包这是我的jar包有考虑过是不是jar包版本太低的原因,通过maven下载最新的1.8.4的jar包,结果还下载失败了最后下载了1.6.12版本的jar包,启动以后还是会报同样的错误本人才开始学习没多久,对各种jar包的整合一点经验也没有,请各位大

ssm-maven创建的SSM启动成功之后预览JSP页面报错

问题描述 maven创建的SSM启动成功之后预览JSP页面报错 java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/jasperrvlet/JasperLoader) previously initiated loading for a different type with name ""javaxrvlettp/HttpServletRequest"&quo

msvsmon exe-vs2010无法运行程序,报错是 无法启动调试

问题描述 vs2010无法运行程序,报错是 无法启动调试 错误信息如下: 尝试运行项目出错:无法启动调试. Microsoft visual Studio 调试监控器(MSVSMON.EXE)未能启动.请通过控制面板中的"添加或删除程序"修复Visual Studio安装. 我电脑上的VS2010以前用是好的,最近出现的这个问题,在运行本地Windows Azure程序时报错,以为只是运行微软云这类程序有问题,但是试了以前运行正常的程序后,也无发运行,提醒错误如上描述.自己重装过软件,

java-linux 部署项目启动时报struts.apache.org windows下项目没报错

问题描述 linux 部署项目启动时报struts.apache.org windows下项目没报错 10:34:24,218 ERROR [STDERR] Nested exception: 10:34:24,218 ERROR [STDERR] java.net.UnknownHostException:0:34:23,146 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=D

jsp文件报错,Unknown tag (html:form)

问题描述 jsp文件报错,Unknown tag (html:form) <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getSe

jdk-求指点:我把JDK1.7换成1.8,JSP老是报错

问题描述 求指点:我把JDK1.7换成1.8,JSP老是报错 九月 22, 2015 2:27:29 下午 org.apache.jasper.compiler.JDTCompiler$1 findType 严重: Compilation error org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException at org.eclipse.jdt.internal.compiler.classfmt.ClassFileReade

tomcat正常启动后http://localhost:8080/报错404

问题描述 如题,tomcat正常启动后http://localhost:8080/报错404.tomcat的webapps目录下有正常部署好的项目,项目可以运行. 解决方案 解决方案二:Tomcat中配置的默认项目是什么??默认项目的默认主页又是什么??404就是找不到资源呗!解决方案三:http://localhost:8080/xxxx/xxxx一般是项目名称,你也可以配置为"/"解决方案四:我也遇到了这种情况,tomcat下面的项目可以正常访问,但是tomcat的manager页

storm配置后启动nimbus后查看日志报错

问题描述 storm配置后启动nimbus后查看日志报错 [WARN] Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect java.net.NoRouteToHostException: 没有到主机的路由 at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.7.0_45]

server-在线等,求大神看看 tomcat发布的时候没问题,访问inde.jsp就报错

问题描述 在线等,求大神看看 tomcat发布的时候没问题,访问inde.jsp就报错 HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: java.lang