版主砭任依struts安b}

04-10-05 goal_gao
我在自已的C子上用apache2+tomcat5建了Web服泰o并且\行

.jsp很正常o]有}o但是我下d了struts1.1和struts1.2o并按它的

安bf明o把那些.war文件拷到tomcat目下的webapps下o并成功

展_o但我在打_struts-examplero其它的几自例子都一

s出F

HTTP Status 500 -

type Exception report

message

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

exception

javax.servlet.ServletException: javax/servlet/jsp/tagext/TagSupport

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)

org.apache.jsp.index_jsp._jspService(index_jsp.java:88)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

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

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

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

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

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

root cause

java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagSupport

java.lang.ClassLoader.defineClass0(Native Method)

java.lang.ClassLoader.defineClass(ClassLoader.java:537)

java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

java.net.URLClassLoader.defineClass(URLClassLoader.java:251)

java.net.URLClassLoader.access$100(URLClassLoader.java:55)

java.net.URLClassLoader$1.run(URLClassLoader.java:194)

java.security.AccessController.doPrivileged(Native Method)

java.net.URLClassLoader.findClass(URLClassLoader.java:187)

java.lang.ClassLoader.loadClass(ClassLoader.java:289)

java.lang.ClassLoader.loadClass(ClassLoader.java:282)

sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

java.lang.ClassLoader.loadClass(ClassLoader.java:235)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1255)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)

org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:148)

org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:69)

java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

java.lang.Class.forName0(Native Method)

java.lang.Class.forName(Class.java:141)

org.apache.jsp.index_jsp.class$(index_jsp.java:100)

org.apache.jsp.index_jsp._jspx_meth_html_html_0(index_jsp.java:100)

org.apache.jsp.index_jsp._jspService(index_jsp.java:79)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

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

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

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

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

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

note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.

的e`o看幼泳蜕倭javax.servlet.jsp.tagext.TagSupport@

可是o@不是jdk自的岍t我用的是jdk1.4.2

@倒低是什么原因呢o有哪位好心告之oxx

happycpa
2004-10-07 10:44
看一下common/lib中有没有servlet-api.jar,jsp-api.jar

猜你喜欢