简单的用myeclipse 9 + maven 创建一个web项目,总是提示HTTP Status 500错误

宋生 发布于 2012/12/14 00:42
阅读 2K+
收藏 0

环境:

Apache Maven 3.0.4 (r1232337; 2012-01-17 16:44:56+0800)
Maven home: D:\Java\apache-maven-3.0.4
Java version: 1.6.0_25, vendor: Sun Microsystems Inc.
Java home: D:\Java\jdk1.6.0_25\jre
Default locale: zh_CN, platform encoding: GBK
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"

开发工具:

MyEclipse Enterprise Workbench
Version: 9.1
Build id: 9.1-20110701

创建过程:

new->web project->helloworld项目 + 勾选 add maven support->finish

直接将其helloworld部署在安装的tomcat上

运行提示:

HTTP Status 500 - java.lang.NullPointerException

type Exception report

message java.lang.NullPointerException

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

exception

org.apache.jasper.JasperException: java.lang.NullPointerException
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:538)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
	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.NullPointerException
	org.apache.jsp.index_jsp._jspInit(index_jsp.java:23)
	org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
	org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:164)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
	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.36 logs.

不知道为什么,如果不勾选maven,则运行是成功的!!!

加载中
0
宋生
宋生
另外,可以看到tomcat下面有生成的部署的helloworld系统的。
0
宋生
宋生
真是奇怪,用tomcat 6就部署错误,7就没问题。
返回顶部
顶部