日期:2014-05-19  浏览次数:20656 次

No tag library could be found with this URI
我用weblogic部署的项目,用到<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>标签库,但提示:
weblogic.servlet.jsp.CompilationException: Failed to compile JSP /el.jsp
el.jsp:2:4: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
   ^----^
el.jsp:2:4: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
   ^----^

at weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessary(JavelinxJSPStub.java:226)
at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:162)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:191)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
Truncated. see log file for complete stacktrace
>
其中点击:JavelinxJSPStub.java:226、JavelinxJSPStub.java:162、JspStub.java:246、JspStub.java:191、ServletStubImpl.java:235。提示:Source not found for weblogic.servlet.jsp.*
------解决方案--------------------
缺少jstl的包jstl.jar以及一系列的tld文件吧。。。仔细检查一下。。