class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist
如图所示,错误就是找不到那个service.xml ![《class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist》](/uploads/images/2019-07/24/9845465003eabdeca8691a1c30749e570.jpg)
![《class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist》](/uploads/images/2019-07/24/9845465003eabdeca8691a1c30749e571.jpg)
![《class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist》](/uploads/images/2019-07/24/9845465003eabdeca8691a1c30749e572.jpg)
但是仔细找找,那个文件确确实实躺在那儿的。
那是什么原因了,别人告诉我这个要看Class path。
System.getProperty("java.class.path") 用这个可以得到class path 。
解决方案就是把META-INF那个文件夹拖到WEB-INF这个文件夹下面来才可以被找到。然而那个上面的那个也删不掉,反正问题解决了。
![《class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist》](/uploads/images/2019-07/24/9845465003eabdeca8691a1c30749e573.jpg)
![《class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist》](/uploads/images/2019-07/24/9845465003eabdeca8691a1c30749e574.jpg)
相关文章