tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "小网" <zwli...@qq.com>
Subject Re: Re: About Tomcat7.0.54 upgrade to Tomcat9.0.1
Date Fri, 13 Oct 2017 04:32:25 GMT
On 10/12/17 12:47 PM, 小网 wrote:
> After upgrading Tomcat to 9.0.1,  the local webapp can't right
> work. But in tomcat 7.0.54 is good.

Did you copy your Tomcat 7.0.x configuration file into your Tomcat
9.0.x conf/ directory or did you start fresh?


---> no, i only copied the <Host> section.


Catalina.out >>> out
13-Oct-2017 12:16:55.982 信息 [main] org.apache.catalina.core.StandardServer.await A valid
shutdown command was received via the shutdown port. Stopping the Server instance.
13-Oct-2017 12:16:56.094 信息 [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
["http-nio-8080"]
13-Oct-2017 12:16:56.238 信息 [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler
["ajp-nio-8009"]
13-Oct-2017 12:16:56.294 信息 [main] org.apache.catalina.core.StandardService.stopInternal
Stopping service [Catalina]
Timer Listener Destroyed....
DBContext Destroyed........
13-Oct-2017 12:16:56.642 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
["http-nio-8080"]
13-Oct-2017 12:16:56.672 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler
["ajp-nio-8009"]
13-Oct-2017 12:16:56.682 信息 [main] org.apache.coyote.AbstractProtocol.destroy Destroying
ProtocolHandler ["http-nio-8080"]
13-Oct-2017 12:16:56.684 信息 [main] org.apache.coyote.AbstractProtocol.destroy Destroying
ProtocolHandler ["ajp-nio-8009"]
13-Oct-2017 12:16:59.904 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
Server version:        Apache Tomcat/9.0.1
13-Oct-2017 12:16:59.912 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
Server built:          Sep 27 2017 17:31:52 UTC
13-Oct-2017 12:16:59.912 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
Server number:         9.0.1.0
13-Oct-2017 12:16:59.912 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
OS Name:               Mac OS X
13-Oct-2017 12:16:59.912 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
OS Version:            10.12.6
13-Oct-2017 12:16:59.912 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
Architecture:          x86_64
13-Oct-2017 12:16:59.912 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
Java Home:             /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre
13-Oct-2017 12:16:59.913 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
JVM Version:           1.8.0_05-b13
13-Oct-2017 12:16:59.913 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
JVM Vendor:            Oracle Corporation
13-Oct-2017 12:16:59.913 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
CATALINA_BASE:         /data/app/apache-tomcat-9.0.1
13-Oct-2017 12:16:59.913 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
CATALINA_HOME:         /data/app/apache-tomcat-9.0.1
13-Oct-2017 12:16:59.914 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
Command line argument: -Djava.util.logging.config.file=/data/app/apache-tomcat-9.0.1/conf/logging.properties
13-Oct-2017 12:16:59.914 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
13-Oct-2017 12:16:59.914 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
13-Oct-2017 12:16:59.914 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
13-Oct-2017 12:16:59.914 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
Command line argument: -Dcatalina.base=/data/app/apache-tomcat-9.0.1
13-Oct-2017 12:16:59.915 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
Command line argument: -Dcatalina.home=/data/app/apache-tomcat-9.0.1
13-Oct-2017 12:16:59.915 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log
Command line argument: -Djava.io.tmpdir=/data/app/apache-tomcat-9.0.1/temp
13-Oct-2017 12:16:59.915 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent
The APR based Apache Tomcat Native library which allows optimal performance in production
environments was not found on the java.library.path: [/Users/lijun/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
13-Oct-2017 12:17:00.235 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing
ProtocolHandler ["http-nio-8080"]
13-Oct-2017 12:17:00.280 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector
Using a shared selector for servlet write/read
13-Oct-2017 12:17:00.295 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing
ProtocolHandler ["ajp-nio-8009"]
13-Oct-2017 12:17:00.297 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector
Using a shared selector for servlet write/read
13-Oct-2017 12:17:00.298 信息 [main] org.apache.catalina.startup.Catalina.load Initialization
processed in 1146 ms
13-Oct-2017 12:17:00.367 信息 [main] org.apache.catalina.core.StandardService.startInternal
Starting service [Catalina]
13-Oct-2017 12:17:00.368 信息 [main] org.apache.catalina.core.StandardEngine.startInternal
Starting Servlet Engine: Apache Tomcat/9.0.1
13-Oct-2017 12:17:00.382 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deploying web application directory [/data/app/apache-tomcat-9.0.1/webapps/docs]
13-Oct-2017 12:17:01.067 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deployment of web application directory [/data/app/apache-tomcat-9.0.1/webapps/docs] has finished
in [684] ms
13-Oct-2017 12:17:01.068 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deploying web application directory [/data/app/apache-tomcat-9.0.1/webapps/examples]
13-Oct-2017 12:17:01.657 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deployment of web application directory [/data/app/apache-tomcat-9.0.1/webapps/examples] has
finished in [589] ms
13-Oct-2017 12:17:01.659 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deploying web application directory [/data/app/apache-tomcat-9.0.1/webapps/host-manager]
13-Oct-2017 12:17:01.709 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deployment of web application directory [/data/app/apache-tomcat-9.0.1/webapps/host-manager]
has finished in [49] ms
13-Oct-2017 12:17:01.709 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deploying web application directory [/data/app/apache-tomcat-9.0.1/webapps/manager]
13-Oct-2017 12:17:01.737 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deployment of web application directory [/data/app/apache-tomcat-9.0.1/webapps/manager] has
finished in [28] ms
13-Oct-2017 12:17:01.738 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deploying web application directory [/data/app/apache-tomcat-9.0.1/webapps/ROOT]
13-Oct-2017 12:17:01.758 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deployment of web application directory [/data/app/apache-tomcat-9.0.1/webapps/ROOT] has finished
in [19] ms
13-Oct-2017 12:17:05.226 信息 [main] org.apache.jasper.servlet.TldScanner.scanJars At least
one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for
a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded
JARs during scanning can improve startup time and JSP compilation time.
DBContext Init........
Timer Listener Init....
log4j:WARN No appenders could be found for logger (DEFAULT_INFO).
log4j:WARN Please initialize the log4j system properly.
13-Oct-2017 12:17:05.358 信息 [main] org.apache.catalina.startup.HostConfig.deployDescriptor
Deploying configuration descriptor [/data/app/apache-tomcat-9.0.1/conf/Catalina/localhost.seshenghuo.com/manager.xml]
13-Oct-2017 12:17:05.390 信息 [main] org.apache.catalina.startup.HostConfig.deployDescriptor
Deployment of configuration descriptor [/data/app/apache-tomcat-9.0.1/conf/Catalina/localhost.seshenghuo.com/manager.xml]
has finished in [32] ms
13-Oct-2017 12:17:05.391 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deploying web application directory [/data/wwwroot/seshenghuo/seshenghuo/htdocs/jsp/error]
13-Oct-2017 12:17:05.407 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deployment of web application directory [/data/wwwroot/seshenghuo/seshenghuo/htdocs/jsp/error]
has finished in [16] ms
13-Oct-2017 12:17:05.410 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deploying web application directory [/data/wwwroot/seshenghuo/seshenghuo/htdocs/jsp/mgr-bin]
13-Oct-2017 12:17:05.427 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deployment of web application directory [/data/wwwroot/seshenghuo/seshenghuo/htdocs/jsp/mgr-bin]
has finished in [17] ms
13-Oct-2017 12:17:05.428 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deploying web application directory [/data/wwwroot/seshenghuo/seshenghuo/htdocs/jsp/web]
13-Oct-2017 12:17:05.444 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory
Deployment of web application directory [/data/wwwroot/seshenghuo/seshenghuo/htdocs/jsp/web]
has finished in [16] ms
13-Oct-2017 12:17:05.450 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
["http-nio-8080"]
13-Oct-2017 12:17:05.464 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
["ajp-nio-8009"]
13-Oct-2017 12:17:05.466 信息 [main] org.apache.catalina.startup.Catalina.start Server startup
in 5168 ms
13-Oct-2017 12:17:17.567 严重 [http-nio-8080-exec-1] org.apache.catalina.core.StandardWrapperValve.invoke
Servlet.service() for servlet [jsp] in context with path [] threw exception [/jsp/web/index.jsp
(line: [1], column: [1]) File [] not found] with root cause
 org.apache.jasper.JasperException: /jsp/web/index.jsp (line: [1], column: [1]) File [] not
found
	at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)
	at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:292)
	at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:98)
	at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:345)
	at org.apache.jasper.compiler.Parser.addInclude(Parser.java:396)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:138)
	at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244)
	at org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:127)
	at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:202)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:384)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:345)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.seshenghuo.filter.DefaultCharsetFilter.doFilter(DefaultCharsetFilter.java:36)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:651)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:500)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:754)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1376)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)





----> this error occurred by "@include", don't know why the file does not loaded, I sure
the file is existed. becouse i can access in browser.




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

 




------------------ Original ------------------
From:  "Christopher Schultz";<chris@christopherschultz.net>;
Date:  Fri, Oct 13, 2017 10:41 AM
To:  "users"<users@tomcat.apache.org>;

Subject:  Re: About Tomcat7.0.54 upgrade to Tomcat9.0.1



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

小网,

On 10/12/17 12:47 PM, 小网 wrote:
> After upgrading Tomcat to 9.0.1,  the local webapp can't right
> work. But in tomcat 7.0.54 is good.

Did you copy your Tomcat 7.0.x configuration file into your Tomcat
9.0.x conf/ directory or did you start fresh?

> ----------- 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">

Baaaaad: don't put <Context> elements in your server.xml. I honestly
don't really understand why we still allow this...
> Exception org.apache.jasper.JasperException: /jsp/web/index.jsp
> (line: [1], column: [1]) File [] not found

Hmm... that's not really much help. How about:

> Note The full stack trace of the root cause is available in the
> server logs.

Can we get the full stack trace, including any "Caused by" lines?

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlngJ8MACgkQHPApP6U8
pFj2nhAAnk9DINqYraNidTI2J70ksUH/3WLdyriMvTAPuoXvq9u99ZItioDcsoQ6
CxnsmxEnKHAtGe3O3+5E/7EKqJPpKdW57dA6mZhSBqoacXegnNxHbwVO8ovwB3jw
1O2R5k8HjpTWWyc4cKaH4FMH+unfQ5xEkrZwcLutyz0cGPOotl/Ib9p0B3l2LyZb
Q6MXe2Ih+SUtrx6FR3XYA9jZBamAFSSiYFNRHI65LlpOhyL9Whrmuo/B1rJh5G4U
EN+bZTGchNDWqGs5yhsspSFMsUtDz2tT9I/i8YdbIgLzHzEJf8TdTtRlN2nFb1kf
uRwtSq9eUY6vURGLlrJ1kgvdRJ30w3HktKZqgEVjXWIrXJF2KRvgOyog9Fkt/47I
a/+4FMp0gU1AtV7Y46ueLgkAFBYgfoKE8OyqX2a/dAVKrZHspbxl9vC/sUDp1Uoh
O9mkHUwM3VC2GsGwZPMl+WMZ3Uey6i3gE5pBxrl8dw7i9slpeAs1rcXKSq7+tftb
f+tEkzijtYYbKB6YycwAETtyTglzutIYgAbt/Cn75x8l9JFT4WKr1XTweLol7NNv
3bgm4MhEgn40uyIqXludZDPnLtR3qCBRUH/Aqg0Yx7gCFMuKLsphsXj/fdr1rCsp
qfTZGC+fLhcBCnuV7B+ETGqSGR4zoojhomnLH1W4hBFIMVd6x4M=
=oIKF
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message