[英]Docusign java integration having error “ http://java.sun.com/jsp/jstl/core cannot be resolved”
I'm integrating docuSign with java using the url https://github.com/docusign/qs-java . 我正在使用url https://github.com/docusign/qs-java将docuSign与java集成。 And I'm using java 1.8.
我正在使用java 1.8。 I have got the error as follows.
我有如下错误。
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"/>
I have tried with the dependency as follows. 我尝试了依赖如下。 But don't solve the problem.
但是不解决问题。
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
Anyone please help me with this to sort out. 有人请帮我解决这个问题。 Any help would be appreciable
任何帮助都会很明显
the java code has the tags coming from that url as you can see in something like java代码有来自该URL的标签,你可以看到类似的东西
%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
You can remove these, but they should work. 你可以删除它们,但它们应该可以工作。 Not sure what Java environment you are using.
不确定您使用的是什么Java环境。
Seems like you can get your answer here - Eclipse -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 看起来你可以在这里得到你的答案 - Eclipse - 绝对的uri:http://java.sun.com/jsp/jstl/core无法在web.xml或使用此应用程序部署的jar文件中解析
I was having the same issue. 我遇到了同样的问题。 Change
<jsp:include page="../partials/head.jsp"/>
to <%@ include file ="../partials/head.jsp" %>
' 将
<jsp:include page="../partials/head.jsp"/>
更改为<%@ include file ="../partials/head.jsp" %>
'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.