Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
686 views
in Technique[技术] by (71.8m points)

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

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...