14:37:22,453 INFO [STDOUT] WARN - Could not create JarEntryRevision for [vfs:/D:/jboss-6.0.0.Final/server/default/deploy/tjtweb.ear/jksc_wap.war/WEB-INF/lib/struts2-core-2.2.3.1]!
14:37:22,453 INFO [STDOUT] java.io.FileNotFoundException: vfs:\D:\jboss-6.0.0.Final\server\default\deploy\tjtweb.ear\jksc_wap.war\WEB-INF\lib\struts2-core-2.2.3.1 (文件名、目录名或卷标语法不正确。)
------解决方案--------------------
哈哈,搞定了,这是struts2在jboss下的bug问题
请参看:http://struts.1045723.n5.nabble.com/jira-Created-WW-3391-FileManager-problem-with-creating-JarEntryRevision-on-JBOSS-td3552450.html
http://docs.jboss.org/jbossmc/docs/2.0.x/userGuide/ch20.html
http://community.jboss.org/thread/160683
解决方案:修改xwork-core的jar包文件com.opensymphony.xwork2.util.URLUtil
//--------------------------------old code----------------------------------------------------
public static final String JBOSS5_VFSZIP = "vfszip";
public static final String JBOSS5_VFSMEMORY = "vfsmemory";
public static boolean isJBoss5Url(URL fileUrl) {
final String protocol = fileUrl.getProtocol();
return JBOSS5_VFSZIP.equals(protocol)
------解决方案--------------------
JBOSS5_VFSMEMORY.equals(fileUrl.getProtocol());
}
//--------------------------------end of old code-------------------------------------------
and change it to:
//--------------------------------fixed code----------------------------------------------------
public static final String JBOSS5_VFS = "vfs";
public static final String JBOSS5_VFSZIP = "vfszip";
public static final String JBOSS5_VFSMEMORY = "vfsmemory";
public static boolean isJBoss5Url(URL fileUrl) {
final String protocol = fileUrl.getProtocol();
return JBOSS5_VFS.equals(protocol)
------解决方案--------------------
JBOSS5_VFSZIP.equals(protocol)
------解决方案--------------------
JBOSS5_VFSMEMORY.equals(fileUrl.getProtocol());
}
具体请参照:http://community.jboss.org/thread/160683
------解决方案--------------------
具体jar文件在http://download.csdn.net/detail/fenger0168/3791702下