部署Java WAR文件时出错:严重:为上下文修复了docBase的异常 [英] Error Deploying Java WAR File: SEVERE: Exception fixing docBase for context

查看:1210
本文介绍了部署Java WAR文件时出错:严重:为上下文修复了docBase的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经解决了这个问题,但是它可能会帮助遇到这个问题的人.在过去看似晦涩难解的IT问题上,Stackoverflow为我节省了无数小时.

I have already resolved this one but it may help someone out there who stumbles across this problem. Stackoverflow has saved me countless hours on seemingly obscure and mysterious IT issues in the past.

这是在Windows上将WAR文件部署到Tomcat时遇到的错误. WAR文件是使用JRuby& Mac在Mac上构建的.莺.

Here is the error I was getting when deploying a WAR file to Tomcat on Windows. The WAR file was built on a Mac using JRuby & Warbler.

SEVERE: Exception fixing docBase for context [/XYZ] java.io.IOException: 
The filename, directory name, or volume label syntax is incorrect

根据SO上的其他文件,WAR文件已损坏,不应通过任何Zip工具打开.此情况并非如此.

According to others on SO the WAR file is corrupt and should not open via any of the Zip tools. This was not the case.

相反,经过数小时的调查,结果表明我在Warbler路径中有一个文件,该文件名中的管道为"|".特点.该文件名不是故意分配的,尽管在Mac上很好,但Windows不喜欢它.

Instead, after many hours of investigation it turns out that I had a file in the Warbler path that had in the file name the pipe "|" character. This file name was not assigned intentionally While this is fine on a Mac, Windows does not like it.

解决方案:使用"|"删除文件在文件名中,瞧,WAR文件已成功部署!

SOLUTION: Remove the files with "|" in the file name and voila the WAR file deploys successfully!

推荐答案

如上所述:
解决方案:使用"|"删除文件文件名中,然后将WAR文件成功部署!

As per above:
SOLUTION: Remove the files with "|" in the file name and voila the WAR file deploys successfully!

这篇关于部署Java WAR文件时出错:严重:为上下文修复了docBase的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆