Jboss AS7部署警告:未指向用于类路径引用的有效jar [英] Jboss AS7 Deployment warning : does not point to a valid jar for a Class-Path reference

查看:217
本文介绍了Jboss AS7部署警告:未指向用于类路径引用的有效jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在jboss AS7中部署.war时,出现以下警告.有什么主意吗?

Im getting the below warning when deploy the .war in the jboss AS7. Any idea?

(MSC服务线程1-4)"/content/test-1.0.0.war/WEB-INF/lib/struts-1.2.9.jar"中的类路径条目commons-beanutils.jar不指向用于Class-Path引用的有效jar.

(MSC service thread 1-4) Class Path entry commons-beanutils.jar in "/content/test-1.0.0.war/WEB-INF/lib/struts-1.2.9.jar" does not point to a valid jar for a Class-Path reference.

PS. commons-beanutils-1.7.0.jar已经在lib文件夹中.

PS. commons-beanutils-1.7.0.jar is already in the lib folder.

推荐答案

这只是一个警告,您在大多数情况下都可以安全地忽略.

This is just a warning that you can in most cases safely ignore.

它告诉您的是,您的struts-1.2.9.jar中的META-INF/MANIFEST.MF中 在类路径中引用"commons-beanutils.jar",并且无法引用此文件/jar. 但是,鉴于您具有commons-beanutils-1.7.0.jar,一切正常.

What it tells you is that in your struts-1.2.9.jar has in META-INF/MANIFEST.MF in Class-Path reference to "commons-beanutils.jar" and that this file/jar cannot be referenced. But given that you have commons-beanutils-1.7.0.jar there everything will work fine.

要摆脱警告,您可以做两件事:

To get rid of the warning you can do two things:

  • 将commons-beanutils-1.7.0.jar重命名为commons-beanutils.jar或
  • 打开struts-1.2.9.jar!META-INF/MANIFEST.MF并删除该Class-Path元素.

但是正如我所说的,这主要是有益的警告.

But as I said this is mostly informative warning.

这篇关于Jboss AS7部署警告:未指向用于类路径引用的有效jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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