Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jboss AS7 Deployment warning : does not point to a valid jar for a Class-Path reference

Tags:

jboss7.x

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

(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 is already in the lib folder.

like image 801
kds Avatar asked Mar 28 '13 12:03

kds


1 Answers

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

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:

  • rename commons-beanutils-1.7.0.jar to commons-beanutils.jar or
  • open struts-1.2.9.jar!META-INF/MANIFEST.MF and remove that Class-Path element.

But as I said this is mostly informative warning.

like image 199
Tomaz Cerar Avatar answered Oct 15 '22 08:10

Tomaz Cerar