javax.naming.NamingException: No naming context bound to this class loader
来源:互联网 发布:叶玉如 知乎 编辑:程序博客网 时间:2024/06/14 06:48
1、错误描述
警告: Failed to retrieve JNDI naming context for container [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/soa]] so no cleanup was performed for that containerjavax.naming.NamingException: No naming context bound to this class loaderat org.apache.naming.ContextBindings.getClassLoader(ContextBindings.java:350)at org.apache.catalina.deploy.NamingResources.cleanUp(NamingResources.java:985)at org.apache.catalina.deploy.NamingResources.stopInternal(NamingResources.java:968)at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5702)at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:272)at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1234)at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1234)at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:593)at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:829)at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)at org.apache.catalina.startup.Catalina.start(Catalina.java:693)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:606)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
2、错误原因
在部署Java Web项目,添加到Tomcat中出现问题,没有部署好,导致错误。
3、解决办法
(1)关闭Tomcat服务器
(2)将Web项目从Tomcat移除,清除缓存
(3)最后,将项目重新部署到Tomcat中,启动Tomcat
1 1
- javax.naming.NamingException: No naming context bound to this class loader
- tomcat启动报javax.naming.NamingException: No naming context bound to this class loader
- javax.naming.NameNotFoundException: Name jdbcis not bound in this Context
- javax.naming.NameNotFoundException: Name [jdbc/lappJDBC] is not bound in this Context. Unable to fi
- javax.naming.NameNotFoundException: Name [comp/env] is not bound in this Context. Unable to find [co
- Failed to register in JMX: javax.naming.NamingException: Could not load resource factory class
- Failed to register in JMX: javax.naming.NamingException: Could not load resource factory class
- Failed to register in JMX: javax.naming.NamingException: Could not load resource factory class
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context错误待解决中
- GWT + Spring : javax.naming.NameNotFoundException: Name userDao is not bound in this Context
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- 解决javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- Tomcat配置连接池 异常:javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- javax.naming.NameNotFoundException Name java:comp is not bound in this Context之解决
- javax.naming.NameNotFoundException: Name jms is not bound in this Context
- 在iOS上编译FFmpeg
- archive-归档解档的总结
- 使用大图+脚本,生成各种size的app icon和图片素材
- coderforce 595B. Pasha and Phone(容斥原理)
- Ry’s Objective-C Tutorial---Classes
- javax.naming.NamingException: No naming context bound to this class loader
- Ry’s Objective-C Tutorial---Properties
- Codeforces Round #332 (Div. 2) B. Spongebob and Joke
- Codeforces Round #332 (Div. 2) C. Day at the Beach详解
- LintCode-剑指Offer-(140)快速幂
- 使用Xamarin.Forms构建UWP应用
- Ry’s Objective-C Tutorial---Methods
- Ry’s Objective-C Tutorial---Protocols
- Gnome Tetravex