尽管正确放置,但找不到 jstl
不幸的是,经过很长一段时间,我再次重新发布了同样的问题: org.apache.jasper.JasperException:绝对uri: http://java.sun.com/jsp /jstl/core 无法在 web.xml 或使用此应用程序部署的 jar 文件中解析
第一次我通过将 jstl-1.2 放在 web-inf/lib 中解决了这个问题,这次我无法在反正,为什么这不起作用。
“有趣”的是,我有很多其他项目正在启动并运行,具有完全相同的配置树: /web-inf/lib/jstl-1.2.jar
在 web-xml 中没有引用这些 jar,它们只是在 web-apps-libraries 中
应用程序运行正常,但是一旦我在页面中插入 taglib 行,我就会我要求: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
我得到了例外,
你有什么建议吗? taglib 可以“从工作项目复制” 类路径很好,网络应用程序库也很好
,谢谢你,经过 5 个小时的工作,不知道如何解决这个问题。
Unfortunately after very long time i'm re-posting again about the same problem:
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
The first time i solved it by just placing jstl-1.2 in web-inf/lib, this time i cannot get, in any way, why this is not working.
The "funny" thing is that i have plenty of other projects which are up and running, with exactly the same configuration tree:
/web-inf/lib/jstl-1.2.jar
no reference of these jars in web-xml, they are simply in the web-apps-libraries
The app runs fine, but as soon as i insert the taglib line in the page i'm requesting:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
i get the exception,
do you have any advice? the taglib is ok "copied from a working project"
the classpath are fine, the web-app libraries too
thank you, have no idea how to solve this after 5 hours working on it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经有一段时间没有处理这个问题了。我曾经在一个经常没有网络连接的国家进行开发。您必须将 tablib 行中的 uri 设置为可以在运行时找到的位置。您可以指向本地副本。我想我在 uri 中设置了实际的文件系统位置。但是,不记得这个细节(并且我没有靠近正确的计算机来验证围绕此问题的编码)。
It's been a while since I dealt with this problem. I used to do dev way out in the country where I often did not have 'Net connectivity. You must set the uri in the tablib line to a location which can be found...at run-time. You can point to a local copy. I think I set an actual file system location in the uri. However, can't remember that detail (and am not near the right computer to verify coding around this issue).