有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

tomcat7 Java 1.8.0_60和tomcat7.5.4:Java类型。util。无法解析Map$条目。它是从required间接引用的。类文件

首先,我正在将一个现有的“工作”Java应用程序迁移到一个更新的Java版本。我们让它与Red Hat(REHL 6)、Java1.8.060和Tomcat 6一起工作。现在,我们正在尝试将其移动到Tomcat7(错误来自Tomcat7.5.4)

Tomcat似乎在工作目录中创建JAVA和类文件时出错。 [/usr/share/tomcat7/work/Catalina/localhost/CortWebApps-NACustomer/org/apache/jsp/WEB_002INF/jsp/nacTemplate_-jsp.java

文件如下:

    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
    <% String content = request.getParameter("content"); %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xml:lang="en">
    <jsp:include flush="true" page="./includes/nacHead.jsp"/>
    <body>
        <a name=top></a>
        <table id=twoColMain height=100% width=990 border=0 cellpadding=0 cellspacing=0 align=center>

            <jsp:include flush="true" page="./includes/nacHeader.jsp"/>

            <tr>
                <jsp:include flush="true" page="./includes/nacSideNav.jsp"/>
                <jsp:include flush="true" page="<%=content %>"/>
            </tr>
            <tr>
                <td colspan=3 class=footerBar><a href=#top>Back to Top</a></td>
            </tr>
            <tr>
                <td colspan=3 align=left class=footerCopy>Copyright &copy; 2007 CORT&reg;  All images and copy. All rights reserved.</td>
            </tr>
        </table>
    </body>
   </html>

共 (1) 个答案

  1. # 1 楼答案

    猜测一下:您是否为tomcat设置了一个有效的JAVA_HOME环境变量来查找正确的JAVA版本?或者您使用安装程序时没有将tomcat指向正确的java版本

    致意

    亚历克斯