警告:检索容器的JNDI命名上下文失败



注意,这对我没有帮助Tomcat错误:警告:无法检索容器的JNDI命名上下文

当我在我的新工作区上运行Apache tomcat v8.0服务器时,它会产生一个"server tomcat v8.0 server at localhost failed to started."错误。

严重:启动期间子容器失败java.util.courrent.ExecutionException:org.apache.catalina.LifecycleException:启动组件失败[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/appstore-api]]位于java.util.concurrent.FFutureTask.report(FutureTask.java:122)java.util.concurrent.FFutureTask.get(FutureTask.java:192)位于org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:915)在org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:871)在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)在org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)在org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)位于java.util.concurrent.FFutureTask.run(FutureTask.java:266)java.util.concurrent.ThreadPoolExecutiator.runWorker(ThreadPoolExecutiator.java:1142)在java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)在java.lang.Thread.run(Thread.java:745)由以下原因引起:org.apache.catalina.LifecycleException:启动组件失败[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/appstore-api]]在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)…还有6个原因:org.apache.catalina.LifecycleException:失败启动组件[org.apache.catalina.webresources.StandardRoot@716b94d]在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)在org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4958)在org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5088)在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)…还有6个原因:org.apache.catalina.LifecycleException:失败初始化组件[org.apache.catalina.webresources.JarResourceSet@58623467]在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:136)在org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:699)在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)…9更多原因:java.lang.IollegalArgumentException:java.util.zip.ZipException:处的LOC标头无效(签名错误)org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:139)在org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)…还有12个原因:java.util.zip.ZipException:无效的LOC头(错误签名),位于java.util.zip。ZipFile.read(Native Method)java.util.zip。ZipFile.access$1400(ZipFile.java:60)java.util.zip。ZipFile$ZipFileInputStream。read(ZipFile.java:717)java.util.zip。ZipFile$ZipFile充气器输入流.fill(ZipFile.java:419)在java.util.zip。充气输入流.read(充气输入流.java:158)在sun.misc.IIOutils.readFully(IOUtils.java:65)java.util.jar。JarFile.getBytes(JarFile.java:425)java.util.jar。JarFile.getManifestFromReference(JarFile.java:193)java.util.jar。JarFile.getManifest(JarFile.java:180)org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:137)…还有13个

2016年8月19日上午8:50:33 org.apache.catalina.core.ContainerBasestartInternal SEVERE:启动期间子容器失败java.util.courrent.ExecutionException:org.apache.catalina.LifecycleException:启动组件失败[StandardEngine[Catalina].StandardHost[localhost]]位于java.util.concurrent.FFutureTask.report(FutureTask.java:122)位于java.util.concurrent.FFutureTask.get(FutureTask.java:192)位于org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:915)在org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)在org.apache.catalina.core.StandardService.startInternal(StandardService.java:441)在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)在org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:787)在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)网址:org.apache.catalina.startup.catalina.start(catalina.java:629)位于的sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)位于java.lang.reflect.Method.ioke(Method.java:498)org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)导致发件人:org.apache.catalina.LifecycleException:启动组件失败[StandardEngine[Catalina]。StandardHost[localhost]]位于org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)在org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)在org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)位于java.util.concurrent.FFutureTask.run(FutureTask.java:266)java.util.concurrent.ThreadPoolExecutiator.runWorker(ThreadPoolExecutiator.java:1142)在java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)在java.lang.Thread.run(Thread.java:745)由以下原因引起:org.apache.catalina.LifecycleException:子容器失败在启动期间org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:923)在org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:871)在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)…还有6个

2016年8月19日上午8:50:33 org.apache.catalina.startup.catalina启动严重:所需的服务器组件无法启动,因此Tomcat无法启动。org.apache.catalina.LifecycleException:未能在启动组件[StandardServer[8005]]org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)网址:org.apache.catalina.startup.catalina.start(catalina.java:629)位于的sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)位于java.lang.reflect.Method.ioke(Method.java:498)org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)导致发件人:org.apache.catalina.LifecycleException:启动组件失败[StandardService[Catalina]]org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)在org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:787)在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)…还有7个原因:org.apache.catalina.LifecycleException:失败在启动组件[StandardEngine[Catalina]]org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)在org.apache.catalina.core.StandardService.startInternal(StandardService.java:441)在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)…9更多原因:org.apache.catalina.LifecycleException:一个孩子容器在启动时失败org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:923)在org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)…还有11个

2016年8月19日上午8:50:33 org.apache.coyote.AbstractProtocol暂停信息:暂停ProtocolHandler["http-nio-8080"]2016年8月19日上午8:50:33org.apache.coyote.AbstractProtocol暂停信息:暂停ProtocolHandler【"ajp-nio-8009"】2016年8月19日上午8:50:33org.apache.catalina.core.StandardService停止内部信息:正在停止服务Catalina 2016年8月19日上午8:50:33org.apache.coyote.AbstractProtocol destroy INFO:正在销毁ProtocolHandler["http-nio-8080"]2016年8月19日上午8:50:33org.apache.coyote.AbstractProtocol destroy严重:无法销毁与ProtocolHandler关联的端点["http-nio-8080"]位于的java.lang.NullPointerExceptionorg.apache.tomcat.util.net.NioEndpoint.releaseCache(NioEndpoint.java:316)在org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:492)在org.apache.tomcat.util.net.AbstractEndpoint.dedestroy(AbstractEndpoint.java:821)在org.apache.coyote.AbstractProtocol.destroy(抽象协议.java:534)在org.apache.catalina.connecter.connector.dedestroyInternal(connector.java:1023)在org.apache.catalina.util.LifecycleBase.dedestroy(LifecycleBase.java:297)在org.apache.catalina.core.StandardService.dedestroyInternal(StandardService.java:589)在org.apache.catalina.util.LifecycleBase.dedestroy(LifecycleBase.java:297)在org.apache.catalina.core.StandardServer.dedestroyInternal(StandardServer.java:877)在org.apache.catalina.util.LifecycleBase.dedestroy(LifecycleBase.java:297)网址:org.apache.catalina.startup.catalina.start(catalina.java:633)位于的sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)位于java.lang.reflect.Method.ioke(Method.java:498)org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

2016年8月19日上午8:50:33 org.apache.coyote.AbstractProtocol销毁信息:销毁ProtocolHandler["ajp-nio-8009"]2016年8月19日8:50:33AM org.apache.coyote.AbstractProtocol destroy SEVERE:未能销毁与ProtocolHandler关联的端点["ajp-nio-8009"]位于的java.lang.NullPointerExceptionorg.apache.tomcat.util.net.NioEndpoint.releaseCache(NioEndpoint.java:316)在org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:492)在org.apache.tomcat.util.net.AbstractEndpoint.dedestroy(AbstractEndpoint.java:821)在org.apache.coyote.AbstractProtocol.destroy(抽象协议.java:534)在org.apache.catalina.connecter.connector.dedestroyInternal(connector.java:1023)在org.apache.catalina.util.LifecycleBase.dedestroy(LifecycleBase.java:297)在org.apache.catalina.core.StandardService.dedestroyInternal(StandardService.java:589)在org.apache.catalina.util.LifecycleBase.dedestroy(LifecycleBase.java:297)在org.apache.catalina.core.StandardServer.dedestroyInternal(StandardServer.java:877)在org.apache.catalina.util.LifecycleBase.dedestroy(LifecycleBase.java:297)网址:org.apache.catalina.startup.catalina.start(catalina.java:633)位于的sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)位于java.lang.reflect.Method.ioke(Method.java:498)org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

2016年8月19日上午8:50:33 org.apache.catalina.deploy.NamingResourcesImplcleanUp警告:检索容器的JNDI命名上下文失败[StandardEngine[Catalina]。StandardHost[localhost]。StandardContext[/appstore-api]]所以没有对该容器进行清理javax.naming.NamingException:没有绑定到此类的命名上下文装载机org.apache.naming.ContextBindings.getClassLoader(ContextBindings.java:258)在org.apache.catalina.deploy.NamingResourcesImpl.cleanUp(NamingResourcesCompl.java:992)在org.apache.catalina.deploy.NamingResourcesImpl.stopInternal(NamingResourcesCompl.java:975)在org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)在org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5540)在org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)在org.apache.catalina.util.LifecycleBase.dedestroy(LifecycleBase.java:263)在org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:832)在org.apache.catalina.core.ContainerBase.dedestroyInternal(ContainerBase.java:1012)在org.apache.catalina.util.LifecycleBase.dedestroy(LifecycleBase.java:297)在org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:832)在org.apache.catalina.core.ContainerBase.dedestroyInternal(ContainerBase.java:1012)在org.apache.catalina.util.LifecycleBase.dedestroy(LifecycleBase.java:297)在org.apache.catalina.core.StandardService.dedestroyInternal(StandardService.java:604)在org.apache.catalina.util.LifecycleBase.dedestroy(LifecycleBase.java:297)在org.apache.catalina.core.StandardServer.dedestroyInternal(StandardServer.java:877)在org.apache.catalina.util.LifecycleBase.dedestroy(LifecycleBase.java:297)网址:org.apache.catalina.startup.catalina.start(catalina.java:633)位于的sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)位于java.lang.reflect.Method.ioke(Method.java:498)org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

我尝试更改代码的某些部分,当我删除时

<Context docBase="appstore-api" path="/appstore-api" reloadable="true" source="org.eclipse.jst.jee.server:appstore-api">
<Resource auth="Container" driverClassName="org.postgresql.Driver" maxIdle="10" maxTotal="20" maxWaitMillis="-1" name="jdbc/postgres" password="password" type="javax.sql.DataSource" url="jdbc:postgresql://localhost:5432/appstore" username="postgres"/>
</Context>

tomcat服务器的server.xml中的部分代码。错误消失了,但我无法调用我的enpoints,因为没有定义"/appstoreapi"路径。

我是不是遗漏了什么?

我的问题是这个Maven依赖导致了这个错误

<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.1</version>
</dependency>

相关内容

  • 没有找到相关文章

最新更新