【发布时间】:2019-04-29 06:24:33
【问题描述】:
我正在使用 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":"/"}
pom.xml
<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>
index.jsp
<%@ 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 docusignapi