运行jsp文件 以后出错信息 大家帮帮忙 !

1007 2006-02-27 07:13:39
大家好!
我运行了 最简单jsp 文件以后 回出现以下错误信息!
http://localhost:8080/test/test.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: /test/test.jsp(1,1) Page directive has invalid attribute: contenType
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:83)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:363)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:233)
at org.apache.jasper.compiler.JspUtil.checkAttributes(JspUtil.java:334)
at org.apache.jasper.compiler.Validator$DirectiveVisitor.visit(Validator.java:148)
at org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:564)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2142)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2184)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2190)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:471)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2142)
at org.apache.jasper.compiler.Validator.validate(Validator.java:1462)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:264)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:444)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:562)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:205)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:562)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:177)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:562)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:562)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:203)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:637)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:488)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:568)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:631)
at java.lang.Thread.run(Unknown Source)



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

Apache Tomcat/5.0.4
...全文
231 点赞 收藏 6
写回复
6 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
wsk_228 2006-02-27
<%@ page contenType="text/html;charset=gb2312" %>

<%@ page contentType="text/html;charset=gb2312" %>

contenType != contentType
回复
1007 2006-02-27
<%@ page contenType="text/html;charset=gb2312" %>
<HTML>
<HEAD>
<TITLE>
JSP测试页面---HelloWorld!
</TITLE>
</HEAD>
<BODY>
<%="<h1>HelloWorld!<br>世界,你好!</h1>" %>
</BODY>
</HTML>

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

我是这样写的!请大家看看
回复
dlxu 2006-02-27
你JSP的头一行代码可能有错
回复
wanglin824 2006-02-27
Page directive has invalid attribute: contenType
页面不支持该属性:contenType,是你的笔误吧。
回复
wsk_228 2006-02-27
/test/test.jsp(1,1) Page directive has invalid attribute: contenType


/test/test.jsp(1,1) Page directive has invalid attribute: contentType

contenType != contentType
明白了嘛
回复
1007 2006-02-27
是 我的tomcat 设置错了呢? 还是什么问题出错了呢?
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2006-02-27 07:13
社区公告
暂无公告