JBoss 6 发布WAR工程错误 Trying to resolve systemId as a non-file URL: xxxx 解决办法
来源:互联网 发布:感康和泰诺 知乎 编辑:程序博客网 时间:2024/06/06 07:50
我把项目打了个WAR包,在JBoss 4 下发布可以正常工作,但在JBoss 6 下发布抛出如下错误:
08:57:17,305 WARN [org.jboss.util.xml.JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://java.sun.com/j2ee/dtds/web-jsptaglib_1_1.dtd08:57:59,695 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Parse: name=vfs:///C:/tools/jboss-6.1.0.Final/server/default/deploy/GHS_Utility_GUI.war state=PreParse mode=Manual requiredState=Parse: org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfs:///C:/tools/jboss-6.1.0.Final/server/default/deploy/GHS_Utility_GUI.war
..................
DEPLOYMENTS IN ERROR: Deployment "vfs:///C:/tools/jboss-6.1.0.Final/server/default/deploy/GHS_Utility_GUI.war" is in error due to the following reason(s): java.net.ConnectException: Connection timed out: connect
看了一下log,发现错误的根源是找不到那个URL:
http://java.sun.com/j2ee/dtds/web-jsptaglib_1_1.dtd
解决方案:
(1)因为这个URL是在bsf-2.3.0.jar里,
(2)所以在war里打开 \WEB-INF\bsf-2.3.0.jar\META-INF\taglib.tld
(3)编辑taglib.tld, 把
http://java.sun.com/j2ee/dtds/web-jsptaglib_1_1.dtd替换成:
http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd
问题就解决了,不知这种方案可否解决你的问题,欢迎回复。
原文:http://stackoverflow.com/questions/4888866/deployment-problem-in-jboss-6
- JBoss 6 发布WAR工程错误 Trying to resolve systemId as a non-file URL: xxxx 解决办法
- BroadcastReceiver trying to return result during a non-ordered broadcast
- XXX is parsed as a non-type, but instantiation yields a type 错误解决办法
- Linux开机提示fsck.ext3:Unable to resolve ‘LABLE=XXXX’错误导致无法正常开机解决办法
- Linux开机提示fsck.ext3:Unable to resolve ‘LABLE=XXXX’错误导致无法正常开机解决办法
- git操作错误Failed to resolve HEAD as a valid ref解决方案
- 编译ffmpeg 'XXXX' follows non-static declaration错误解决办法
- 编译ffmpeg 'XXXX' follows non-static declaration错误解决办法
- Trying to attach a file from SD Card to email
- Django数据库操作中You are trying to add a non-nullable field 'name' to contact without a default错误处理
- can't locate file for: xxxx file: -xxxx is not an object file (not allowed in a library)错误的解决办法
- jboss发布war文件
- You are trying to add a non-nullable field 'password' to userinfo without a default问题
- How to install JBoss AS 7 as a Linux service
- JBoss AS 4.2发布
- C#: Problem trying to resolve a class when two namespaces are similar
- gcc: error trying to exec 'as': execvp: No such file or directory
- gcc: error trying to exec 'as': execvp: No such file or directory
- C#日期时间格式化
- 关于release版本错误
- 怎么分割ape文件(cue格式分析)_XLosslessDecoder
- 某网站验证码的识别笔记【三】
- 如何才能自信?
- JBoss 6 发布WAR工程错误 Trying to resolve systemId as a non-file URL: xxxx 解决办法
- eclipse failed to create the java virtual machine 问题图文解析
- 多线程调试方法
- Javascript学习笔录9(窗口属性操作-status、背景色、title等)
- vi 常用命令行
- ajax异步上传输图片
- [VSTS] 配置 Team Foundation Server 团队权限最佳实践
- javascript操作table(insertRow(),deleteRow(),insertCell(),deleteCel...
- 动态代理