当前位置: 代码迷 >> Java Web开发 >> Tomcat配置问题,急需解决
  详细解决方案

Tomcat配置问题,急需解决

热度:240   发布时间:2006-04-10 22:01:00.0
Tomcat配置问题,急需解决

原来一直用Resin后来看到网上说Tomcat好就转用这个,刚开始配置就出错,

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: Unable to compile class for JSP

An error occurred at line: 8 in the jsp file: /zhuce.jsp

Generated servlet error:

Syntax error on token "{", invalid AssignmentOperator

Generated servlet error:

Syntax error on tokens, delete these tokens

Generated servlet error:

Syntax error on token "finally", delete this token

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 8 in the jsp file: /zhuce.jsp

Generated servlet error:

Syntax error on token "{", invalid AssignmentOperator

Generated servlet error:

Syntax error on tokens, delete these tokens

Generated servlet error:

Syntax error on token "finally", delete this token

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:413)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


我在论坛中看了几封解决这个问题的帖子但是还是不能解决问题,静态页面浏览没有问题,可是到JSP的页面中就不能正常运行了,出现上面的情况,我使用Tomcat5.5.16+JDK1.5.0,希望高手能给解决一下,急需!!先谢过了



搜索更多相关主题的帖子: Tomcat  

----------------解决方案--------------------------------------------------------

什么呀!!!!
论坛的顶上不是有[精华]Tomcat5.5.9+JSP经典配置实例吗?
一步一步做就行!

----------------解决方案--------------------------------------------------------
是按照那上面一步步做的,可是还是不通,在论坛中看到要指向,就是Context的那个,可是在Conf的Server.xml中没有Context的标记啊,怎么指向啊?
----------------解决方案--------------------------------------------------------
  相关解决方案