我在Eclipse中使用嵌入式tomcat 7.0.53在localhost上运行网关。当我在Eclipse中运行网关时,它运行良好。 现在我想在OSGi Felix容器中运行网关,但是我收到了一个tomcat错误:
LifeCycleException. Here is the the detailed error report:
2014-08-18 17:57:48 [org.apache.catalina.core.ContainerBase] SEVERE - A child container failed during start
2014-08-18 17:57:48 [org.apache.catalina.core.ContainerBase] SEVERE - A child container failed during start
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[-1]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:341)
at at.ac.tuwien.auto.iotsys.gateway.obix.server.TomcatServerNoSecurity.<init>(TomcatServerNoSecurity.java:73)
at at.ac.tuwien.auto.iotsys.gateway.IoTSySGateway$2.run(IoTSySGateway.java:301)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Tomcat]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:731)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 4 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 8 more
由于错误报告太模糊,我不知道错误来自哪里。
有没有人在OSGi Felix容器中嵌入tomcat?或者有人对这个问题有所了解吗? THX!
答案 0 :(得分:0)
一个可能的原因是http端口被阻止。愿你还能从日食中运行tomcat吗?