首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

myEclipse 中tomcat配备出错

2013-09-11 
myEclipse 中tomcat配置出错type Exception reportmessage java.lang.ClassNotFoundException: org.apache

myEclipse 中tomcat配置出错
type Exception report

message java.lang.ClassNotFoundException: org.apache.jsp.index_jsp

description The server encountered an internal error (java.lang.ClassNotFoundException: org.apache.jsp.index_jsp) that prevented it from fulfilling this request.

exception 
org.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:177)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)



root cause 
java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
java.net.URLClassLoader$1.run(URLClassLoader.java:202)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:190)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:172)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)



note The full stack trace of the root cause is available in the Apache Tomcat/7.0.29 logs.







HTTP Status 404 - /

--------------------------------------------

type Status report

message /

description The requested resource (/) is not available.


[解决办法]
你的index.jsp其实运行的时候都会被build成servlet来运行的。
但是看错误信息,build失败,class没有生成。 可能原因如下:


转自百度。

这是部署问题,关闭,重新部署
1、选中项目 F5(eclipe)
2、project--clean(菜单上)
3、servers里面-clean(这等于把工程从新copy到deploy目录)

我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html

热点排行