Hi there,
I'm just trying to get started with one of the XFire examples, but I've
been utterly unable to get any of them working.
I've downloaded xfire-distribution-1.2.6, and extracted it in a
temporary directory, moved to the "examples" subdirectory and then done
as follows with the "book" example.
mvn war:war
The build was successful and left a "target" directory with a war file
in it called xfire-book-1.2.6.war. I dropped this into my Tomcat webapps
directory and went to the following url (as described in the Quick Start
guide):
http://localhost:8080/xfire-book-1.1/services/BookService?wsdl
This URL is actually wrong, and for the 1.2.6 release it should be
http://localhost:8080/xfire-book-1.2.6/services/BookService?wsdl as the
version number is included in the name of the war file - and the
resulting context.
Anway, after going to the correct URL I find that I get a stack trace;
an error instantiating the XFire Servlet, the root cause was:
java.io.FileNotFoundException: class path resource
[META-INF/xfire/services.xml] cannot be opened because it does not exist
org.springframework.core.io.ClassPathResource.getInputStream(ClassPathRe
source.java:137)
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDe
finitions(XmlBeanDefinitionReader.java:167)
..etc
After placing the .war file in a temp directory and doing jar -xvf to
see whats in it, I find that there is no services.xml file inside the
war. Not only that, but there doesn't actually appear to be any classes
inside a WEB-INF/classes directory, which is what I would normally
expect in a war file.
I don't know whats going on here. Has anyone tested this example lately,
have you found any problems? Are the build instructions incorrect?
Jon