Right. Well, I've tried doing as suggested in the following post:
http://archive.xfire.codehaus.org/user/B967EC1195898E499CC20A68744650070
2087148%40BLR-EC-MBX02.wipro.com
But now I end up with a different stack trace. I'll just put the first
line here:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'org.codehaus.xfire.spring.config.HandlerFactory' defined
in class path resource [META-INF/xfire/services.xml]: Error setting
property values; nested exception is
org.springframework.beans.PropertyAccessExceptionsException:
PropertyAccessExceptionsException (1 errors); nested
propertyAccessExceptions are:
[org.springframework.beans.TypeMismatchException: Failed to convert
property value of type [java.lang.String] to required type
[java.lang.Class] for property 'handlerClass'; nested exception is
java.lang.IllegalArgumentException: Class not found:
org.codehaus.xfire.demo.handlers.CheckVersionHandler]
It looks like something is passing in a String where a Class is
expected?
Jon
-----Original Message-----
From: Poulton, Jonathan [mailto:[EMAIL PROTECTED]
Sent: 05 June 2007 12:29
To: [email protected]
Subject: RE: [xfire-user] Unable to get started with XFire examples
OK I'll give that a try, but I still don't understand why I couldn't
find the services.xml file or any of the classes after unzipping the war
file; where are they?
Jon
-----Original Message-----
From: Tomek Sztelak [mailto:[EMAIL PROTECTED]
Sent: 05 June 2007 12:27
To: [email protected]
Subject: Re: [xfire-user] Unable to get started with XFire examples
As someone mentioned before its Tomcat classloader problem. You can
change the server to something else like Jetty, or move location of
services.xml to place where tomcat can find it. ( and maybe report this
to tomcat bugzila :)
On 6/5/07, Poulton, Jonathan <[EMAIL PROTECTED]> wrote:
>
>
> 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(ClassPath
> Resource.java:137)
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBean
> Definitions(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
--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email