tomcat运行javaweb工程总是有错误提示,百度无果,求大牛解答。

11月 23, 2018 11:48:51 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/9.0.13
11月 23, 2018 11:48:51 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Nov 2 2018 14:27:55 UTC
11月 23, 2018 11:48:51 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 9.0.13.0
11月 23, 2018 11:48:51 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 10
11月 23, 2018 11:48:51 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 10.0
11月 23, 2018 11:48:51 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: amd64
11月 23, 2018 11:48:51 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: D:\Program Files\Java\jdk-11.0.1
11月 23, 2018 11:48:51 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 11.0.1+13-LTS
11月 23, 2018 11:48:51 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
11月 23, 2018 11:48:51 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: D:\Program Files\tomcat\apache-tomcat-9.0.13
11月 23, 2018 11:48:51 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: D:\Program Files\tomcat\apache-tomcat-9.0.13
11月 23, 2018 11:48:51 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\Program Files\tomcat\apache-tomcat-9.0.13
11月 23, 2018 11:48:51 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\Program Files\tomcat\apache-tomcat-9.0.13
11月 23, 2018 11:48:51 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps
11月 23, 2018 11:48:51 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
11月 23, 2018 11:48:51 下午 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: [D:\Program Files\Java\jdk-11.0.1\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:/jdk8/jre1.8_191/bin/server;D:/jdk8/jre1.8_191/bin;D:/jdk8/jre1.8_191/lib/amd64;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;D:\Program Files\Java\jdk-11.0.1\bin;D:\MySQL\MySQL Server 5.5\bin;;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;;D:\办公软件\Google下载\eclipse;;.]
11月 23, 2018 11:48:51 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8080"]
11月 23, 2018 11:48:52 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
11月 23, 2018 11:48:52 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-nio-8009"]
11月 23, 2018 11:48:52 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 718 ms
11月 23, 2018 11:48:52 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Catalina]
11月 23, 2018 11:48:52 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/9.0.13
11月 23, 2018 11:48:52 下午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
警告: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [107] milliseconds.
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\docs]
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\docs] has finished in [19] ms
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\examples]
11月 23, 2018 11:48:52 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
11月 23, 2018 11:48:52 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
11月 23, 2018 11:48:52 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('StockTicker', 'async.Stockticker@3a7b503d')
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\examples] has finished in [238] ms
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\host-manager]
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\host-manager] has finished in [27] ms
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\mail]
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\mail] has finished in [20] ms
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\manager]
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\manager] has finished in [19] ms
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\MyProject]
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\MyProject] has finished in [15] ms
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\ROOT]
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\ROOT] has finished in [16] ms
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\web12]
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\web12] has finished in [22] ms
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\web13]
11月 23, 2018 11:48:52 下午 org.apache.catalina.core.ContainerBase addChildInternal
严重: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/web13]]
at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1141)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1876)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1053)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:428)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1585)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:972)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1432)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1422)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:261)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:801)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:695)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
#Caused by: java.lang.NoClassDefFoundError: ServletConfig
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3167)
at java.base/java.lang.Class.getDeclaredMethods(Class.java:2310)
at org.apache.catalina.util.Introspection.getDeclaredMethods(Introspection.java:133)
at org.apache.catalina.startup.WebAnnotationSet.loadMethodsAnnotation(WebAnnotationSet.java:285)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:138)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:69)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:328)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:772)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5007)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
... 38 more
#Caused by: java.lang.ClassNotFoundException: ServletConfig
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1328)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)
... 51 more

11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
严重: Error deploying web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\web13]
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/web13]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:747)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1141)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1876)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1053)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:428)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1585)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:972)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1432)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1422)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:261)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:801)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:695)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)

11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory [D:\Program Files\tomcat\apache-tomcat-9.0.13\webapps\web13] has finished in [24] ms
11月 23, 2018 11:48:52 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
11月 23, 2018 11:48:52 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
11月 23, 2018 11:48:52 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 899 ms

我用--io流-从工程里读取文件报500,其他操作还没发现问题。
我用的jdk11,servlet4.0 ,tomcat9.0 。这个错误提示是什么原因呢?
没有悬赏,穷学生。

paypal_8421
我吃西红柿鸡蛋面 回复silence_xiang: 很久之前了,不记得了,不好意思
12 个月之前 回复
silence_xiang
silence_xiang 请问怎么解决的,我也有同样的问题
一年多之前 回复

1个回答

已经解决了,666666666666

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐