2016-10-20 64 views
0

首先,我將現有的「正在運行的」Java應用程序遷移到較新版本的Java。我們已經與Red Hat(REHL 6)一起使用Java 1.8.0_60和Tomcat 6.現在,我們試圖將它移動到Tomcat 7(錯誤來自Tomcat 7.5.4)。

看來Tomcat在工作目錄中創建JAVA和CLASS文件時出錯。 [/usr/share/tomcat7/work/Catalina/localhost/CortWebApps-NACustomer/org/apache/jsp/WEB_002dINF/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> 

回答

0

只是一個猜你有沒有爲tomcat設置一個有效的JAVA_HOME環境變量來查找正確的java版本?或者您是否已經使用安裝程序而不將tomcat指向適當的java版本?

問候

亞歷

相關問題