繁体   English   中英

Docusign java集成有错误“http://java.sun.com/jsp/jstl/core无法解析”

[英]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":"/"}

的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 - 绝对的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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM