could it be that the jdom you are using is not jdom version 1.0

is there any other version of Jdom out there in your classpath ?

regards
ashok

On 10/19/06, Nicholas Marchalleck <[EMAIL PROTECTED]> wrote:
I'm trying to create a simple webservice with the following interface:

public interface InvoiceManager {

    public Invoice getInvoice(int invoiceNumber) throws DaoException;

    public Invoice getInvoiceByPoNumber(String customerId, String
poNumber) throws DaoException;

}

Where Invoice contains a java.util.List property called invoiceItems.
So, I've got the mapping file below, according to the docs for
Collections on Javabeans here
http://xfire.codehaus.org/Mapping+collections.

<?xml version="1.0" encoding="utf-8"?>
<mappings>
    <mapping>
        <property name="invoiceItems" type="java.util.List"
componentType="com.anda.passthru.domain.InvoiceItem" />
    </mapping>
</mappings>

So far, I've just been trying to access the WSDL. If I remove the List
property (invoiceItems), the WSDL is generated just fine. However,
using the mapping file above, I encounter the following error. Any
help would be greatly appreciated. I'm pretty sure I have all the
depencies included in  my lib directory.

I'm using Spring 2.0 and Xfire 1.2.2. And this is the first time I'm
using XFire.

org.codehaus.xfire.XFireRuntimeException: Error evaluating xpath
/mappings/[EMAIL PROTECTED]' http://services.passthru.anda.com']. Nested
exception is org.jdom.JDOMException: java.lang.NoSuchMethodError:
org.jaxen.BaseXPath.<init>(Ljava/lang/String;Lorg/jaxen/Navigator;)V:
org.jaxen.BaseXPath.<init>(Ljava/lang/String;Lorg/jaxen/Navigator;)V
        org.codehaus.xfire.aegis.type.XMLTypeCreator.getMatch(XMLTypeCreator.java:522)
        org.codehaus.xfire.aegis.type.XMLTypeCreator.findMapping(XMLTypeCreator.java:166)
        org.codehaus.xfire.aegis.type.XMLTypeCreator.isEnum (XMLTypeCreator.java:106)
        org.codehaus.xfire.aegis.type.AbstractTypeCreator.createTypeForClass(AbstractTypeCreator.java:93)
        org.codehaus.xfire.aegis.type.AbstractTypeCreator.createType(AbstractTypeCreator.java :334)
        org.codehaus.xfire.aegis.AegisBindingProvider.getSuggestedName(AegisBindingProvider.java:226)
        org.codehaus.xfire.service.binding.DefaultServiceConfiguration.getOutParameterName(DefaultServiceConfiguration.java :174)
        org.codehaus.xfire.service.binding.ObjectServiceFactory.getOutParameterName(ObjectServiceFactory.java:1033)
        org.codehaus.xfire.service.binding.ObjectServiceFactory.addOperation(ObjectServiceFactory.java :794)
        org.codehaus.xfire.service.binding.ObjectServiceFactory.initializeOperations(ObjectServiceFactory.java:720)
        org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java :418)
        org.codehaus.xfire.spring.ServiceBean.afterPropertiesSet(ServiceBean.java:176)
        org.codehaus.xfire.spring.remoting.XFireExporter.afterPropertiesSet(XFireExporter.java:30)
        org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods (AbstractAutowireCapableBeanFactory.java:1062)
        org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
        org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:420)
        org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
        org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:141)
        org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
        org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:156)
        org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)
        org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:348)
        org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
        org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext (FrameworkServlet.java:308)
        org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:252)
        org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java :221)
        org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:115)
        javax.servlet.GenericServlet.init(GenericServlet.java:211)
        org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection (Http11BaseProtocol.java:667)
        org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java :80)
        org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        java.lang.Thread.run(Thread.java:595)

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to