eclipse - Can't locate an XML file inside a META-INF directory -
i've set web service i'm trying debug in eclipse.
it has directory structure this:
root /
+ src
+ meta-inf
+ web-inf
inside meta-inf directory, there folder \xfire\services.xml.
when start server, have following error:
java.io.filenotfoundexception: class path resource [meta-inf/xfire/services.xml] cannot opened because not exist
when run procmon.exe sysinternals, see have "path not found" error on following paths:
c:\program files\apache software foundation\tomcat 6.0\lib\meta-inf\xfire\services.xmlc:\program files\apache software foundation\tomcat 6.0\webapps\mywebservice\web-inf\meta-inf\xfire\services.xmlc:\program files\apache software foundation\tomcat 6.0\webapps\mywebservice\web-inf\classes\meta-inf\xfire\services.xml
while file stored in:
c:\program files\apache software foundation\tomcat 6.0\webapps\mywebservice\meta-inf\xfire\services.xml
what doing wrong?
it's getressources() used read xml, file need in classpath.
just move or copy meta-inf in 1 of project source directory (i guess src or src/main...).
Comments
Post a Comment