2016-09-29 137 views
5

我是一個java servlet編程的新手,學習這方面的知識。安裝在我的debian電腦上的tomcat最初可以顯示默認樣本網頁。但與示例頁面替換無功/ lib中/ tomcat8/webapps /目錄根目錄下的文件載入後,網站無法顯示在端口8080Tomcat 8無法加載網站

下面是catalina.out中輸出消息:

Sep 28, 2016 10:08:31 PM org.apache.jasper.servlet.TldScanner scanJars 
INFO: 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. 
Sep 28, 2016 10:08:31 PM org.apache.catalina.startup.HostConfig deployDescriptor 
INFO: Deployment of configuration descriptor /etc/tomcat8/Catalina/localhost/examples.xml has finished in 694 ms 
Sep 28, 2016 10:08:31 PM org.apache.catalina.startup.HostConfig deployDescriptor 
INFO: Deploying configuration descriptor /etc/tomcat8/Catalina/localhost/docs.xml 
Sep 28, 2016 10:08:31 PM org.apache.tomcat.util.scan.StandardJarScanner scan 
WARNING: Failed to scan [file:/usr/share/java/el-api-3.0.jar] from classloader hierarchy 
java.io.FileNotFoundException: /usr/share/java/el-api-3.0.jar (No such file or directory) 
    at java.util.zip.ZipFile.open(Native Method) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:219) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:149) 
    at java.util.jar.JarFile.<init>(JarFile.java:166) 
    at java.util.jar.JarFile.<init>(JarFile.java:130) 
    at org.apache.tomcat.util.scan.JarFileUrlJar.<init>(JarFileUrlJar.java:60) 
    at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:43) 
    at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:323) 
    at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:273) 
    at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1898) 
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1131) 
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:783) 
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:307) 
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5213) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) 
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) 
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) 
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:587) 
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1798) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
    at java.lang.Thread.run(Thread.java:745) 

Sep 28, 2016 10:08:31 PM org.apache.tomcat.util.scan.StandardJarScanner scan 
WARNING: Failed to scan [file:/usr/share/java/jsp-api-2.3.jar] from classloader hierarchy 
java.io.FileNotFoundException: /usr/share/java/jsp-api-2.3.jar (No such file or directory) 
    at java.util.zip.ZipFile.open(Native Method) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:219) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:149) 
    at java.util.jar.JarFile.<init>(JarFile.java:166) 
    at java.util.jar.JarFile.<init>(JarFile.java:130) 
    at org.apache.tomcat.util.scan.JarFileUrlJar.<init>(JarFileUrlJar.java:60) 
    at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:43) 
    at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:323) 
    at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:273) 
    at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1898) 
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1131) 
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:783) 
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:307) 
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5213) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) 
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) 
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) 
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:587) 
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1798) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
    at java.lang.Thread.run(Thread.java:745) 

Sep 28, 2016 10:08:32 PM org.apache.tomcat.util.scan.StandardJarScanner scan 
WARNING: Failed to scan [file:/usr/share/java/el-api-3.0.jar] from classloader hierarchy 
java.io.FileNotFoundException: /usr/share/java/el-api-3.0.jar (No such file or directory) 
    at java.util.zip.ZipFile.open(Native Method) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:219) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:149) 
    at java.util.jar.JarFile.<init>(JarFile.java:166) 
    at java.util.jar.JarFile.<init>(JarFile.java:130) 
    at org.apache.tomcat.util.scan.JarFileUrlJar.<init>(JarFileUrlJar.java:60) 
    at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:43) 
    at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:323) 
    at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:273) 
    at org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:262) 
    at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:106) 
    at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:103) 
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) 
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) 
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) 
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:587) 
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1798) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
    at java.lang.Thread.run(Thread.java:745) 

Sep 28, 2016 10:08:32 PM org.apache.tomcat.util.scan.StandardJarScanner scan 
WARNING: Failed to scan [file:/usr/share/java/jsp-api-2.3.jar] from classloader hierarchy 
java.io.FileNotFoundException: /usr/share/java/jsp-api-2.3.jar (No such file or directory) 
    at java.util.zip.ZipFile.open(Native Method) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:219) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:149) 
    at java.util.jar.JarFile.<init>(JarFile.java:166) 
    at java.util.jar.JarFile.<init>(JarFile.java:130) 
    at org.apache.tomcat.util.scan.JarFileUrlJar.<init>(JarFileUrlJar.java:60) 
    at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:43) 
    at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:323) 
    at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:273) 
    at org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:262) 
    at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:106) 
    at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:103) 
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) 
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) 
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) 
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:587) 
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1798) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
    at java.lang.Thread.run(Thread.java:745) 

Sep 28, 2016 10:08:32 PM org.apache.jasper.servlet.TldScanner scanJars 
INFO: 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. 
Sep 28, 2016 10:08:32 PM org.apache.catalina.startup.HostConfig deployDescriptor 
INFO: Deployment of configuration descriptor /etc/tomcat8/Catalina/localhost/docs.xml has finished in 410 ms 
Sep 28, 2016 10:08:32 PM org.apache.catalina.startup.HostConfig deployDescriptor 
INFO: Deploying configuration descriptor /etc/tomcat8/Catalina/localhost/host-manager.xml 
Sep 28, 2016 10:08:32 PM org.apache.tomcat.util.scan.StandardJarScanner scan 
WARNING: Failed to scan [file:/usr/share/java/el-api-3.0.jar] from classloader hierarchy 
java.io.FileNotFoundException: /usr/share/java/el-api-3.0.jar (No such file or directory) 
    at java.util.zip.ZipFile.open(Native Method) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:219) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:149) 
    at java.util.jar.JarFile.<init>(JarFile.java:166) 
    at java.util.jar.JarFile.<init>(JarFile.java:130) 
    at org.apache.tomcat.util.scan.JarFileUrlJar.<init>(JarFileUrlJar.java:60) 
    at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:43) 
    at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:323) 
    at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:273) 
    at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1898) 
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1131) 
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:783) 
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:307) 
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5213) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) 
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) 
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) 
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:587) 
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1798) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
    at java.lang.Thread.run(Thread.java:745) 

Sep 28, 2016 10:08:32 PM org.apache.tomcat.util.scan.StandardJarScanner scan 
WARNING: Failed to scan [file:/usr/share/java/jsp-api-2.3.jar] from classloader hierarchy 
java.io.FileNotFoundException: /usr/share/java/jsp-api-2.3.jar (No such file or directory) 
    at java.util.zip.ZipFile.open(Native Method) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:219) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:149) 
    at java.util.jar.JarFile.<init>(JarFile.java:166) 
    at java.util.jar.JarFile.<init>(JarFile.java:130) 
    at org.apache.tomcat.util.scan.JarFileUrlJar.<init>(JarFileUrlJar.java:60) 
    at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:43) 
    at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:323) 
    at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:273) 
    at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1898) 
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1131) 
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:783) 
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:307) 
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5213) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) 
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) 
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) 
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:587) 
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1798) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
    at java.lang.Thread.run(Thread.java:745) 

Sep 28, 2016 10:08:32 PM org.apache.tomcat.util.scan.StandardJarScanner scan 
WARNING: Failed to scan [file:/usr/share/java/el-api-3.0.jar] from classloader hierarchy 
java.io.FileNotFoundException: /usr/share/java/el-api-3.0.jar (No such file or directory) 
    at java.util.zip.ZipFile.open(Native Method) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:219) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:149) 
    at java.util.jar.JarFile.<init>(JarFile.java:166) 
    at java.util.jar.JarFile.<init>(JarFile.java:130) 
    at org.apache.tomcat.util.scan.JarFileUrlJar.<init>(JarFileUrlJar.java:60) 
    at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:43) 
    at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:323) 
    at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:273) 
    at org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:262) 
    at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:106) 
    at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:103) 
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) 
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) 
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) 
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:587) 
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1798) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
    at java.lang.Thread.run(Thread.java:745) 

Sep 28, 2016 10:08:32 PM org.apache.tomcat.util.scan.StandardJarScanner scan 
WARNING: Failed to scan [file:/usr/share/java/jsp-api-2.3.jar] from classloader hierarchy 
java.io.FileNotFoundException: /usr/share/java/jsp-api-2.3.jar (No such file or directory) 
    at java.util.zip.ZipFile.open(Native Method) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:219) 
    at java.util.zip.ZipFile.<init>(ZipFile.java:149) 
    at java.util.jar.JarFile.<init>(JarFile.java:166) 
    at java.util.jar.JarFile.<init>(JarFile.java:130) 
    at org.apache.tomcat.util.scan.JarFileUrlJar.<init>(JarFileUrlJar.java:60) 
    at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:43) 
    at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:323) 
    at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:273) 
    at org.apache.jasper.servlet.TldScanner.scanJars(TldScanner.java:262) 
    at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:106) 
    at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:103) 
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) 
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) 
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) 
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:587) 
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1798) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
    at java.lang.Thread.run(Thread.java:745) 

Sep 28, 2016 10:08:32 PM org.apache.jasper.servlet.TldScanner scanJars 
INFO: 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. 
Sep 28, 2016 10:08:32 PM org.apache.catalina.startup.HostConfig deployDescriptor 
INFO: Deployment of configuration descriptor /etc/tomcat8/Catalina/localhost/host-manager.xml has finished in 395 ms 
Sep 28, 2016 10:08:32 PM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory /var/lib/tomcat8/webapps/ROOT 
Sep 28, 2016 10:08:32 PM org.apache.catalina.core.ContainerBase addChildInternal 
SEVERE: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162) 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) 
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) 
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) 
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092) 
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1834) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
    at java.lang.Thread.run(Thread.java:745) 
Caused by: java.lang.NullPointerException 
    at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:322) 
    at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:182) 
    at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1898) 
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1131) 
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:783) 
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:307) 
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95) 
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) 
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5213) 
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) 
    ... 10 more 

Sep 28, 2016 10:08:32 PM org.apache.catalina.startup.HostConfig deployDirectory 
SEVERE: Error deploying web application directory /var/lib/tomcat8/webapps/ROOT 
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729) 
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) 
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) 
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092) 
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1834) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
    at java.lang.Thread.run(Thread.java:745) 

嘗試幾個小時後,我只是想知道如何解決這個TAT。

+0

它說,它無法找到該文件,以獲得這些文件。檢查目錄和配置? –

+0

請檢查您是否正確提取。似乎你有一個損壞的版本。請參閱他們的安裝說明進行提取。 –

+0

謝謝大家!我通過重新配置web.xml文件解決了這個問題,我正在閱讀的教程中有一些錯誤。 –

回答

-2

異常顯示此/usr/share/java/jsp-api-2.3.jar文件沒有找到,它通常是由錯誤的目錄引起的或文件不存在。

16

可以使用sudo apt-get install libservlet3.1-java在終端

+1

有效,但爲什麼這會發生在第一位?如果需要,不應該安裝它 – user39950