【问题标题】:Docusign java integration having error " http://java.sun.com/jsp/jstl/core cannot be resolved"Docusign java 集成出现错误“http://java.sun.com/jsp/jstl/core 无法解决”
【发布时间】: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


    【解决方案1】:

    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

    【讨论】:

      【解决方案2】:

      我遇到了同样的问题。 更改&lt;jsp:include page="../partials/head.jsp"/&gt;&lt;%@ include file ="../partials/head.jsp" %&gt;'

      【讨论】:

        猜你喜欢
        • 2019-04-02
        • 2013-04-28
        • 2017-12-14
        • 2015-09-30
        • 2014-09-03
        • 1970-01-01
        • 1970-01-01
        • 2013-10-27
        • 2011-08-05
        相关资源
        最近更新 更多