tomcat 下JSP例子都报错

系统错误报告和讨论
回复
lyfp
帖子: 3
注册时间: 2007-03-01 13:50
送出感谢: 0
接收感谢: 0

tomcat 下JSP例子都报错

#1

帖子 lyfp » 2007-04-13 18:05

我按wiki上的说法安装了java和tomcat.但JSP例子报错。不过Servlet Examples没有问题能正常运行
地址:http://wiki.ubuntu.org.cn/Tomcat%E8%AE% ... F%E5%A2%83
type Exception report

message

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

exception

org.apache.jasper.JasperException: org.apache.jasper.tagplugins.jstl.If
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: org.apache.jasper.tagplugins.jstl.If
org.apache.jasper.compiler.TagPluginManager.init(TagPluginManager.java:109)
org.apache.jasper.compiler.TagPluginManager.apply(TagPluginManager.java:51)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:189)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
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)

root cause

java.lang.ClassNotFoundException: org.apache.jasper.tagplugins.jstl.If
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:164)
org.apache.jasper.compiler.TagPluginManager.init(TagPluginManager.java:106)
org.apache.jasper.compiler.TagPluginManager.apply(TagPluginManager.java:51)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:189)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
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)
implements
帖子: 13
注册时间: 2006-09-09 22:04
送出感谢: 0
接收感谢: 0

#2

帖子 implements » 2007-04-15 22:13

好象引用了JSTL标签但没有相应的lib,试试把JSTL.jar包含到classpath里吧。。
回复

回到 “Ubuntu错误报告”