[英]The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved error
[英]Docusign java integration having error “ http://java.sun.com/jsp/jstl/core cannot be resolved”
我正在使用url https://github.com/docusign/qs-java將docuSign與java集成。 我正在使用java 1.8。 我有如下錯誤。
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 6.387 sec <<< FAILURE! - in com.docusign.HelloControllerTest
testHello(com.docusign.HelloControllerTest) Time elapsed: 1.855 sec <<< FAILURE!
java.lang.AssertionError: Response body doesn't match expectation.
Expected: is "Hello World!"
Actual: {"timestamp":1556517506260,"status":500,"error":"Internal Server Error","exception":"org.apache.jasper.JasperException","message":"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","path":"/"}
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
<!-- To compile JSP files -->
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="../partials/head.jsp"/>
我嘗試了依賴如下。 但是不解決問題。
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
有人請幫我解決這個問題。 任何幫助都會很明顯
java代碼有來自該URL的標簽,你可以看到類似的東西
%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
你可以刪除它們,但它們應該可以工作。 不確定您使用的是什么Java環境。
看起來你可以在這里得到你的答案 - Eclipse - 絕對的uri:http://java.sun.com/jsp/jstl/core無法在web.xml或使用此應用程序部署的jar文件中解析
我遇到了同樣的問題。 將<jsp:include page="../partials/head.jsp"/>
更改為<%@ include file ="../partials/head.jsp" %>
'
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.