jboss-as-7.1.1.Final部署项目后本地启动,频繁出现以下报错:
09:50:21,564 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry unoloader.jar in "/D:/DEMO_Workspace/demo/trunk/server/target/demo/WEB-INF/lib/jurt-3.0.1.jar" does not point to a valid jar for a Class-Path reference.
09:50:21,566 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry ../../lib/ in "/D:/DEMO_Workspace/demo/trunk/server/target/demo/WEB-INF/lib/jurt-3.0.1.jar" does not point to a valid jar for a Class-Path reference.
09:50:21,567 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry ../bin/ in "/D:/DEMO_Workspace/demo/trunk/server/target/demo/WEB-INF/lib/jurt-3.0.1.jar" does not point to a valid jar for a Class-Path reference.
09:50:21,570 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry activation.jar in "/D:/DEMO_Workspace/demo/trunk/server/target/demo/WEB-INF/lib/mail-1.4.1.jar" does not point to a valid jar for a Class-Path reference.
实际在查找jar包后,发现这些Jar包在路径下都是存在的。以上述警告的这条为例说明:
09:50:21,570 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) Class Path entry activation.jar in "/D:/DEMO_Workspace/demo/trunk/server/target/demo/WEB-INF/lib/mail-1.4.1.jar" does not point to a valid jar for a Class-Path reference.
意思是说 mail-1.4.1.jar引用了jar包 activation.jar,实际路径中找到了的jar包名称是activation-1.1.jar,和mail-1.4.1.jar中的配置文件 META-INF/MANIFEST.MF 记录的名称不一致,但又可以使用,所以给了这个警告。
知道产生原因,消除这个警告的办法就有两种途径了:
1.修改Jar包名称,activation-1.1.jar 改为 activation.jar ;
2.打开mail-1.4.1.jar!META-INF/MANIFEST.MF并删除该Class-Path元素.
个人觉得最好的处理方法就是,别管它!