eclipseweb-servicestomcatxfire

Can't locate an XML file inside a META-INF directory


I've set up a web service I'm trying to debug in Eclipse.

It has a directory structure like this:

Root /
  + src
  + META-INF
  + WEB-INF

Inside the META-INF directory, there is a folder \xfire\services.xml.

When I start the server, I have the following error:

java.io.FileNotFoundException: class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist

When I run procmon.exe from sysinternals, I see that I have a "PATH NOT FOUND" error on those following paths:

While the file is stored in:

What am I doing wrong?


Solution

  • It's look like getRessources() is used to read your xml, so the file need to be in the classpath.

    Just move or copy the META-INF in one of your project source directory (i guess src or src/main...).