does not point to a valid jar for a Class-Path reference

      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元素.

个人觉得最好的处理方法就是,别管它!

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
As an AI language model, I do not have the ability to know your exact situation. But I can give a general answer to your question. The error message "does not point to a valid JVM installation" often occurs when trying to run a Java program and the system cannot find the Java Virtual Machine (JVM) or the path to the JVM is not set correctly. To fix this error, you need to ensure that the JVM is installed on your system and the path to the JVM is set correctly in your environment variables. Here are the steps to follow: 1. Check if the JVM is installed on your system. You can do this by running the command "java -version" in your terminal or command prompt. If the JVM is installed, you should see the version information. 2. If the JVM is not installed, download and install the latest version of the JVM from the official Java website. 3. Set the path to the JVM in your environment variables. The steps to do this vary depending on your operating system. Here are the general steps: - Windows: Go to Control Panel > System > Advanced System Settings > Environment Variables. Under System Variables, click on New and add the path to the JVM's bin folder (e.g. C:\Program Files\Java\jre1.8.0_281\bin) to the PATH variable. - Mac OS X: Open Terminal and type "vim ~/.bash_profile". Add the following line to the file: export PATH=$PATH:/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home/bin. Save and exit the file. - Linux: Open Terminal and type "sudo nano /etc/environment". Add the following line to the file: PATH="/usr/lib/jvm/java-8-openjdk-amd64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games". Save and exit the file. 4. Restart your terminal or command prompt and try running your Java program again. The error message should no longer appear.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值