A child container failed during start,Caused by: java.lang.ClassNotFoundException
2017-01-08 22:08
621 查看
NO.1
A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/lab]]
Caused by: java.lang.ClassNotFoundException:
解决办法:我是clean一下项目,重新编译,发布就解决了
NO.2
解决办法:int 改Integer
NO.3
原因:控制台不断输出该信息,原因是数据库表关联里面循环引用了
解决方法:在实体类循环引用的字段添加@JsonIgnore注解:
不知道能否帮到你,希望我踩过的坑你不再…
严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/lab]] at java.util.concurrent.FutureTask.report(Unknown Source) at java.util.concurrent.FutureTask.get(Unknown Source) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/lab]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) ... 6 more Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/WebApplicationContext at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Unknown Source) at java.lang.Class.getDeclaredFields(Unknown Source) at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106) at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:139) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:65) at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:415) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:892) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5380) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 6 more Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.WebApplicationContext at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) ... 20 more
A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/lab]]
Caused by: java.lang.ClassNotFoundException:
解决办法:我是clean一下项目,重新编译,发布就解决了
NO.2
java.lang.IllegalStateException: Optional int parameter 'lack' is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the corresponding primitive type. at org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.handleNullValue(AbstractNamedValueMethodArgumentResolver.java:231)
解决办法:int 改Integer
NO.3
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:156) at com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serializeContents(CollectionSerializer.java:132) at com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serialize(CollectionSerializer.java:94) at com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serialize(CollectionSerializer.java:24) at
原因:控制台不断输出该信息,原因是数据库表关联里面循环引用了
解决方法:在实体类循环引用的字段添加@JsonIgnore注解:
@JsonIgnore private SysUser sysUser;
不知道能否帮到你,希望我踩过的坑你不再…
相关文章推荐
- Tomcat启动异常:A child container failed during start 与 ClassNotFoundException: org.slf4j.Loggerl分析与解决方法
- A child container failed during start java.lang.ClassCastException: org.springframework.web.SpringSe
- Tomcat启动异常:A child container failed during start 与 ClassNotFoundException: org.slf4j.Loggerl分析与解决方法
- Caused by: java.lang.ClassNotFoundException: org.springframework.web.SpringServletContainerInitializ
- 严重 A child container failed during start——Caused by: java.lang.NoClassDefFoundError: org/springframe
- Caused by: java.lang.ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor
- IReport 中 java.lang.ClassNotFoundException:...CompilationFailedException 异常的处理
- 导入开源项目后报:1 Caused by: java.lang.ClassNotFoundException: Didn't find class "net.oschina.app.AppContex
- Caused by: java.lang.ClassNotFoundException:org.apache.commons.logging.LogFactory
- Caused by: java.lang.ClassNotFoundException: org.jboss.util.file.ArchiveBrowser$Filter
- Caused by: java.lang.ClassNotFoundException[android的终极解决错误]
- Caused by: java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider
- JeeSite的开发环境部署 -- 异常:java.lang.ClassNotFoundException: javax.servlet.ServletContainerInitializer
- Caused by: java.lang.ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor
- Eclipse RCP “Caused by: java.lang.ClassNotFoundException”
- Caused by: java.lang.ClassNotFoundException[android的终极解决错误]
- Caused by: java.lang.ClassNotFoundException: android.view.fragment in loader dalvik.system.PathClass
- Caused by: java.lang.ClassNotFoundException: org.apache.commons.pool.impl.GenericObjectPool
- Caused by: java.lang.ClassNotFoundException: android.support.v4.view.ViewPager in loader dalvik.syst
- eeplat 在tomcat 6.0下面部署的时候出现Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpSessi