转载自IT虾米网

Jul 12, 2017 3:31:03 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /app/project/apache-tomcat-console-8082/webapps/d:
Jul 12, 2017 3:31:03 PM org.apache.catalina.util.LifecycleMBeanBase register
WARNING: Failed to register object [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/d:]] with name [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/d:]] during component initialisation
javax.management.MalformedObjectNameException: Invalid character ‘:’ in value part of property
at javax.management.ObjectName.construct(ObjectName.java:618)
at javax.management.ObjectName.(ObjectName.java:1382)
at org.apache.catalina.util.LifecycleMBeanBase.register(LifecycleMBeanBase.java:156)
at org.apache.catalina.util.LifecycleMBeanBase.initInternal(LifecycleMBeanBase.java:61)
at org.apache.catalina.core.ContainerBase.initInternal(ContainerBase.java:1084)
at org.apache.catalina.core.StandardContext.initInternal(StandardContext.java:6448)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
at org.apache.catalina.startup.HostConfig D e p l o y D i r e c t o r y . r u n ( H o s t C o n f i g . j a v a : 1671 ) a t j a v a . u t i l . c o n c u r r e n t . E x e c u t o r s DeployDirectory.run(HostConfig.java:1671) at java.util.concurrent.Executors DeployDirectory.run(HostConfig.java:1671)atjava.util.concurrent.ExecutorsRunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Jul 12, 2017 3:31:03 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
javax.management.MalformedObjectNameException: Invalid character ‘:’ in value part of property
at javax.management.ObjectName.construct(ObjectName.java:618)
at javax.management.ObjectName.(ObjectName.java:1382)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5085)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5235)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)
at org.apache.catalina.startup.HostConfig D e p l o y D i r e c t o r y . r u n ( H o s t C o n f i g . j a v a : 1671 ) a t j a v a . u t i l . c o n c u r r e n t . E x e c u t o r s DeployDirectory.run(HostConfig.java:1671) at java.util.concurrent.Executors DeployDirectory.run(HostConfig.java:1671)atjava.util.concurrent.ExecutorsRunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

当时很是的纠结,就百度了一下发现百度上有说是oracle连接的jar包造成的异常,还有说是tomcat conf目录下的配置文件出的异常,会报这种错误,但是恰巧我们使用是数据库是MySQL数据库,tomcat我看了一下配置,整个测试的服务器没有配置任何东西。

之后我发现项目中多出了一个window磁盘下的目录(我们的服务器部署在liunx的系统上)名为d:的文件夹!!

之后通过我的测试 只要是在tomcat下加入这个文件夹(d:)服务启动的时候就会出现异常,我们项目中引起这个的原因是log日志路径不知道谁修改错了,故导致这个问题,

我总结了一下这个问题,这个问题的产生主要是tomcat在启动的时候发现静态资源不合法,这里的静态资源指的是,tomcat本身的配置文件,或者是tomcat下的目录结构,只有其中有一个出现了不合法的实例,就会出现以上错误。

评论关闭
IT源码网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!