About Tomcat7.0.54 upgrade to Tomcat9.0.1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

About Tomcat7.0.54 upgrade to Tomcat9.0.1

小网
hi,


After upgrading Tomcat to 9.0.1,  the local webapp can't right work. But in tomcat 7.0.54 is good.
-----------
server.xml host configure





<Host name="localhost.seshenghuo.com" appBase="/data/wwwroot/seshenghuo/seshenghuo/htdocs/jsp"
      unpackWARs="true" autoDeploy="true" deployOnStartup="true">


  <Context path="" docBase="/data/wwwroot/seshenghuo/seshenghuo/htdocs"
      reloadable="true" privileged="true">
    <JarScanner scanAllDirectories="true" scanBootstrapClassPath="true" />
  </Context>


  <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
         prefix="localhost_seshenghuo_com_access_log." suffix=".txt"
         pattern="%h %l %u %t &quot;%r&quot; %s %b" />
</Host>

-----------
webapp dir.



- htdocs
  + jsp
  + static
-----------
jsp source file


<%@page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" trimDirectiveWhitespaces="true"%>
<!DOCTYPE html>
<html data-page-alias="desktop.seshenghuo.front.web.search.index"<%@include file="/static/v1.0/inc/rem_dattr.html" %>>
<head>
<%@include file="/static/v1.0/inc/meta.html" %>
<%@include file="/static/v1.0/inc/rem.html" %>
<title>SE生活</title>
<%@include file="/static/v1.0/inc/css_common_gm.html" %>
<%@include file="/static/v1.0/inc/css_common_dm.html" %>
<%@include file="/static/v1.0/inc/css_web_index.html" %>
<%@include file="/static/v1.0/inc/stat_code_header.html" %>
</head>
<body class="flexbox vertical">
<%@include file="/jsp/web/inc/header.jsp" %>
<article class="app-body flexbox top center">
  <div class="searchbox flexbox middle center vertical">
    <a href="/" class="logo"></a>
    <form name="search" action="/" method="GET">
      <div class="search flexbox middle center">
        <input type="text" name="q" placeholder="如:蚕豆病">
        <label class="icofont" data-action-click="se://search"></label>
      </div>
    </form>
  </div>
</article>
<%@include file="/jsp/web/inc/footer.jsp" %>
<%@include file="/static/v1.0/inc/js_common_j.2.x.html" %>
<%@include file="/static/v1.0/inc/js_logic_d_web.html" %>  
<%@include file="/static/v1.0/inc/stat_code_footer.html" %>
</body>
</html>



-----------
exception



HTTP Status 500 – Internal Server Error


Type Exception Report

Message /jsp/web/index.jsp (line: [1], column: [1]) File [] not found

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception
org.apache.jasper.JasperException: /jsp/web/index.jsp (line: [1], column: [1]) File [] not found org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:292) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:98) org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:345) org.apache.jasper.compiler.Parser.addInclude(Parser.java:396) org.apache.jasper.compiler.Parser.parse(Parser.java:138) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244) org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:127) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:202) org.apache.jasper.compiler.Compiler.compile(Compiler.java:384) org.apache.jasper.compiler.Compiler.compile(Compiler.java:361) org.apache.jasper.compiler.Compiler.compile(Compiler.java:345) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329) javax.servlet.http.HttpServlet.service(HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) com.seshenghuo.filter.DefaultCharsetFilter.doFilter(DefaultCharsetFilter.java:36)
Note The full stack trace of the root cause is available in the server logs.


Apache Tomcat/9.0.1









------------------
From: 李军(Carl.li)