收藏 不显示删除回复显示所有回复显示星级回复显示得分回复 动态网站部署到服务器出现了问题

09-10-15 bloveyao

各位大虾,我做了一个动态网站,在本机上测试用的是:mysql + tomcat

在本机上的Tomcat测试,和到其他机器上的tomcat上测试都没有丝毫的问题,但是部署到服务器以后,就会出现以下错误

org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)

org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315)

org.apache.jasper.compiler.TagLibraryInfoImpl. <init>(TagLibraryInfoImpl.java:148)

org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420)

org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)

org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)

org.apache.jasper.compiler.Parser.parse(Parser.java:133)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)

org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)

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

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

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

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

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

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

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

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

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

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

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156)

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

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

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

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

root cause

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

org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:600)

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)

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

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

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

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

root cause

java.lang.ClassNotFoundException: org.apache.jsp.jmifst.index_jsp

java.net.URLClassLoader$1.run(Unknown Source)

java.security.AccessController.doPrivileged(Native Method)

java.net.URLClassLoader.findClass(Unknown Source)

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

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

org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:598)

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)

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

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

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

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

照上面报的错误看来是,服务器上的Tomcat找不到WEB_INF文件夹下的classes目录下的所有classes文件和lib目录下的所有jar包

请各位大虾帮忙分析,出现这样的情况的原因是什么?小弟在线逛等!!

[该贴被bloveyao于2009-10-15 11:58修改过]

fxltsbl3855
2009-10-15 15:55

看看是不是服务器的环境变量影响了