myeclipse不提示错误的项目报错,status 500,求解

myeclipse中项目报错,但下面文件没有报错的
[问题点数:100分]
myeclipse中项目报错,但下面文件没有报错的
[问题点数:100分]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
相关帖子推荐:
本帖子已过去太久远了,不再提供回复功能。Myeclipse运行后出现HTTP Status 500错误,请高手指教!_百度知道
Myeclipse运行后出现HTTP Status 500错误,请高手指教!
type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 63: &%@page import=&java.util.*&%&4: &%@page import=&com.wy.domain.GoodsForm& %&5: &jsp:useBean id=&newGood& scope=&page& class=&com.wy.dao.GoodsDao&/&6: &%List nowList =newGood.selectMark(Integer.valueOf(&0&));%&7: &%List freeList =newGood.selectMark(Integer.valueOf(&1&));%&8: &html&9: &head&Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:519) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:428) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)root cause java.lang.NullPointerEx珐叮粹顾诔该达双惮晶ception com.wy.dao.GoodsDao.selectMark(GoodsDao.java:52) org.apache.jsp.index_jsp._jspService(index_jsp.java:70) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.
com.wy.dao.GoodsDao.selectMark(GoodsDao.java:52)在com.wy.dao这个包下的Go珐叮粹顾诔该达双惮晶odsDao.java的第52行的selectMark方法中出现了空指针错错误。java.lang.NullPointerExceptionlog里面说明了的,你查看一下。
其他类似问题
myeclipse的相关知识
其他1条回答
在各珐叮粹顾诔该达双惮晶项都输入完毕后,进行Test Driver的时候出现了这样的错误 该如何解决? 数据库的驱动包问题,换个驱动版本;搜下你Oracle对应的驱动包版本吧; ..
怎么才能知道我的数据库对应的版本呢?我用的是SQL
SERCER 2000呀!
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁Tomcat7出现HTTP Status 500 - java.lang.ClassCastException: org.apache.jasper.el.ELContextIm... - 推酷
Tomcat7出现HTTP Status 500 - java.lang.ClassCastException: org.apache.jasper.el.ELContextIm...
在Tomcat7上发布了一个war,过一阵子发现localhost:8080都进不去了。在浏览器输入http://localhost:8080出现如下内容:
HTTP Status 500 - java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl
typeException report
messagejava.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl
description The server encountered an internal error that prevented it from fulfilling this request.
org.apache.jasper.JasperException: java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
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:728)
root cause
java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:1023)
org.apache.jsp.index_jsp._jspService(index_jsp.java:85)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
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:728)
noteThe full stack trace of the root cause is available in the Apache Tomcat/7.0.42 logs.
网友给出的解决方案:
EL表达式的错误
解决方案1:
当项目中引用tomcat目录下面的lib下面的catalina.jar的时候,用myeclipse将项目部署到tomcat下面的时候,会将catalina.jar包加到项目的web-inf下面的lib文件夹下面,这样这个包就会和tomcat下面的lib下面的catalina.jar包冲突会报java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor错误,解决方法是将项目部署到tomcat下面后,将项目的web-inf/lib下面的catalina.jar删掉,然后在重启tomcat,问题解决!
解决方案2:
修改了tomcat里的context.xml文件,在context 元素下添加
&Loader delegate=&true& /&
&Loader delegate=&true& /&
已发表评论数()
&&登&&&陆&&
已收藏到推刊!
请填写推刊名
描述不能大于100个字符!
权限设置: 公开
仅自己可见3572人阅读
1、我是想把原来的项目名称rpoms改成hycrm,修改后发布运行tomcat没有报错,但是打开页面就出现HTTP Status 404 错误!
&&&&& 原因:没有改Web Context-root目录的名称,你只是修改了项目名称。
&&&&& 解决办法:项目根目录下.project 文件里的工程名一否一致
&&&&&&&&&&&&&&&&&&&&&&&&& 右击该项目 --&Properties(快捷键Alt+Enter) &--&MyEclipse --&Web 右面的Context Root选项,修改Web Context-root&为:hycrm
&&&&&&&&&&&&&&&&&&&&&&&&&&确定并重新发布项目,再打开页面
2、包名类名修改: 直接在项目里面重命名就可以了(右击 Rename 或者F2快捷键)
3、有时候会出现下面的问题:
================================
如,使用MyEclipse+Tomcat建立了一个web工程aaa,在MyEclipse中启动Tomcat运行,这个相信大家都熟悉。
但 是问题是,我将这个aaa工程复制成bbb工程,注意,是在MyEclipse下面,在工程名上面点右键直接复制的,命名为bbb,然后关闭aaa工程, 在MyEclipse中重新启动
Tomcat,问题就是MyEclipse中的Tomcat信息窗口显示这个工程的Deploy Location仍然为
D:\tomcat5.5\webapps\aaa,而不是D:\tomcat5.5\webapps\bbb,死活都改不了,而且通过IE浏览器浏览,需要敲入的地址仍然是,而不是bbb。
考虑到编译问题,将tomcat下的work\Catalina\localhost和\webapps\下生成的aaa,以及bbb工程编译文件夹都删除,仍然还是一样,为何?
================================
01 不要那样复制, 先建一个BBB 然后把AAA里面的东西复制进去,不要先复制再改名字,你的问题就出现在这里咯
02&只需要把工程项目的.mymetadata等文件的项名改为你修改后的项目名就行了.
03在复制后的工程上点右键-&properties-&myeclipse-&web-&web context-root内更改新的工程名就ok了
=======================================================
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:82138次
排名:千里之外
原创:25篇
评论:12条
(1)(6)(9)(12)(6)

我要回帖

更多关于 myeclipse js文件报错 的文章

 

随机推荐