访问应用程序的URL时发出警告:wildfly-9.0.2.Final,struts2-core-2.2.1.jar

时间:2016-05-03 09:09:04

标签: struts2 wildfly

Enviornment -

  1. 应用程序服务器 - wildfly-9.0.2.Final
  2. struts jar - struts2-core-2.2.1.jar
  3. 构建工具 - Ant 我的测试应用程序工作正常,但我在访问应用程序时收到了警告。

    14:03:59,342 WARN  [com.opensymphony.xwork2.util.FileManager] (default task-1) Could not create JarEntryRevision for [vfs:/content/test.ear/test.war/WEB-INF/lib/struts2-core-2.2.1]!: java.io.FileNotFoundException: vfs:/content/test.ear/test.war/WEB-INF/lib/struts2-core-2.2.1 (No such file or directory)
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:219)
    at java.util.zip.ZipFile.<init>(ZipFile.java:149)
    at java.util.jar.JarFile.<init>(JarFile.java:166)
    at java.util.jar.JarFile.<init>(JarFile.java:130)
    at com.opensymphony.xwork2.util.FileManager$JarEntryRevision.build(FileManager.java:307)
    at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:145)
    14:03:59,643 WARN  [com.opensymphony.xwork2.util.FileManager] (default task-1) Could not create JarEntryRevision for [vfs:/content/test.ear/test.war/WEB-INF/lib/teststruts]!: java.io.FileNotFoundException: vfs:/content/test.ear/test.war/WEB-INF/lib/teststruts (No such file or directory)
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:219)
    at java.util.zip.ZipFile.<init>(ZipFile.java:149)
    at java.util.jar.JarFile.<init>(JarFile.java:166)
    at java.util.jar.JarFile.<init>(JarFile.java:130)
    at com.opensymphony.xwork2.util.FileManager$JarEntryRevision.build(FileManager.java:307)
    at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:145)
    at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:105)
    
  4. 以下struts jar存在于WEB-INF / lib目录中。

    1.commons-IO-1.3.2.jar * 2.freemarker-2.3.16.jar * 3.ognl-3.0.jar * 4.struts2核-2.2.1.jar * 5.xwork核-2.2.1.jar * 6.commons-文件上传-1.2.1.jar *

    为什么会出现此警告,是否存在兼容性问题?

0 个答案:

没有答案