【问题标题】:<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> Not found<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> 没有找到
【发布时间】:2015-07-03 06:19:05
【问题描述】:

我在通过 Eclipse 将 Maven Web 项目部署到 Weblogic 12c 服务器时遇到此异常。

student.jsp:1:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
    ^----^

我尝试将 Maven 依赖项添加到部署程序集,但无济于事。当我在部署之前手动将 .tld 或 .jar 文件放入项目中的 /lib 时,它可以工作。

有什么建议吗?

【问题讨论】:

标签: eclipse maven spring-mvc weblogic


【解决方案1】:

您是否尝试删除&lt;%@ 之后和taglib 之前的空格以写入&lt;%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %&gt;

我认为它看起来更像是一个类路径问题,但永远不知道,以防万一它会起作用......

【讨论】:

    【解决方案2】:

    好的,很久没有发帖了,但我很确定这是我创建项目的结果。习惯于使用 Eclipse,我创建了 Web 应用程序,然后转换为 Maven 项目。我认为这可能是插件变得更好的组合,或者创建了一个 Maven 战争项目。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-12-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-27
      相关资源
      最近更新 更多