gpt4 book ai didi

java - Docusign Java 集成出现错误 "http://java.sun.com/jsp/jSTL/core cannot be resolved"

转载 作者:行者123 更新时间:2023-12-02 06:12:23 27 4
gpt4 key购买 nike

我正在使用 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 代码具有来自该 url 的标签,如您在类似内容中看到的

%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

您可以删除它们,但它们应该可以工作。不确定您使用的是什么 Java 环境。

似乎你可以在这里得到答案 - 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

关于java - Docusign Java 集成出现错误 "http://java.sun.com/jsp/jSTL/core cannot be resolved",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55897993/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com