LinkageError when calling a cxf endpoint
garethahealy Jun 18, 2012 9:25 AMMy setup is as follows. I have 3 bundles; common, magento and images.
Images does all the work, and uses classes from the other two. When i make a webservices call which throws a soap fault i get the following exception:
Caused by: java.lang.LinkageError: javax/xml/soap/SOAPFault
at javax.xml.ws.soap.SOAPFaultException.(SOAPFaultException.java:28)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:156)[175:org.apache.cxf.bundle:2.5.0.fuse-7-061]
at $Proxy140.catalogProductInfo(Unknown Source)
at com.boohoo.magento.MagentoProducts.getProductInfo(MagentoProducts.java:325)[990:magento-soap-api:1.0.0.SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_29]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_29]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_29]
at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_29]
at org.apache.camel.component.bean.MethodInfo.invoke(MethodInfo.java:340)
at org.apache.camel.component.bean.MethodInfo$1.proceed(MethodInfo.java:237)
at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:166)
... 132 more
Common headers:
boohoo-esb-common (989)
-
Manifest-Version = 1.0
Bnd-LastModified = 1340024110600
Tool = Bnd-1.15.0
Built-By = Gareth.Healy
Build-Jdk = 1.6.0_29
Created-By = Apache Maven Bundle Plugin
Bundle-Name = boohoo-esb-common
Bundle-Description = ESB common library code
Bundle-SymbolicName = boohoo-esb-common
Bundle-Version = 1.0.0.SNAPSHOT
Bundle-ManifestVersion = 2
Import-Package =
com.mysql.jdbc,
com.thoughtworks.xstream,
com.thoughtworks.xstream.io,
com.thoughtworks.xstream.io.json,
javax.imageio,
javax.xml.bind,
javax.xml.bind.annotation,
javax.xml.datatype,
javax.xml.namespace,
org.apache.activemq.camel.component;version="[5.5,6)",
org.apache.camel;version="[2.9,3)",
org.apache.camel.impl;version="[2.9,3)",
org.apache.commons.codec.binary;version="[1.6,2)",
org.apache.commons.io;version="[2.3,3)",
org.osgi.service.blueprint;version="[1.0.0,2.0.0)"
Export-Package =
com.boohoo.esb.common;uses:="org.apache.camel.impl,org.apache.camel,com.mysql.jdbc,com.thoughtworks.xstream.io,com.thoughtworks.xstream,com.thoughtworks.xstream.io.json",
com.boohoo.esb.common.helpers;uses:="javax.imageio,com.boohoo.esb.common,org.apache.commons.io,org.apache.commons.codec.binary,com.boohoo.esb.common.standard.entities",
com.boohoo.esb.common.orders.entities,
com.boohoo.esb.common.products.entities;uses:=com.boohoo.esb.common.standard.entities,
com.boohoo.esb.common.products.helpers;uses:="com.boohoo.esb.common.sage.entities,com.boohoo.esb.common.standard.entities",
com.boohoo.esb.common.sage.entities,
com.boohoo.esb.common.standard.entities;uses:="javax.xml.bind.annotation,javax.xml.datatype,javax.xml.bind,javax.xml.namespace"
Require-Bundle =
org.apache.cxf.bundle
magento headers:
magento-soap-api (990)
-
Manifest-Version = 1.0
Bnd-LastModified = 1340024205368
Tool = Bnd-1.15.0
Built-By = Gareth.Healy
Build-Jdk = 1.6.0_29
Created-By = Apache Maven Bundle Plugin
Bundle-Name = magento-soap-api
Bundle-Description = Boohoo magento api
Bundle-SymbolicName = magento-soap-api
Bundle-Version = 1.0.0.SNAPSHOT
Bundle-ManifestVersion = 2
Import-Package =
com.boohoo.esb.common,
com.boohoo.esb.common.helpers,
com.boohoo.esb.common.products.helpers,
com.boohoo.esb.common.sage.entities,
com.boohoo.esb.common.standard.entities,
javax.jws,
javax.jws.soap,
javax.xml.bind.annotation,
javax.xml.namespace,
javax.xml.ws,
javax.xml.ws.soap,
org.apache.camel;version="[2.9,3)"
Export-Package =
com.boohoo.magento;
uses:="com.boohoo.esb.common,
magento,
org.apache.camel,
com.boohoo.esb.common.sage.entities,
com.boohoo.esb.common.helpers,
com.boohoo.esb.common.products.helpers,
com.boohoo.magento.typeconverters,
com.boohoo.esb.common.standard.entities,
javax.xml.ws.soap",
com.boohoo.magento.typeconverters;uses:="com.boohoo.esb.common.products.helpers,org.apache.camel,magento,com.boohoo.esb.common.sage.entities,com.boohoo.esb.common.helpers,com.boohoo.esb.common.standard.entities",
magento;uses:="javax.xml.bind.annotation,javax.jws.soap,javax.jws,javax.xml.ws,javax.xml.namespace"
Require-Bundle =
org.apache.cxf.bundle
Images headers:
boohoo-esb-products-images-into-cms (992)
-
Manifest-Version = 1.0
Bnd-LastModified = 1340024118776
Tool = Bnd-1.15.0
Built-By = Gareth.Healy
Build-Jdk = 1.6.0_29
Created-By = Apache Maven Bundle Plugin
Bundle-Name = boohoo-esb-products-images-into-cms
Bundle-Description = Routes for updating product image information in the CMS
Bundle-SymbolicName = boohoo-esb-products-images-into-cms
Bundle-Version = 1.0.0.SNAPSHOT
Bundle-ManifestVersion = 2
Import-Package =
com.boohoo.esb.common,
com.boohoo.esb.common.helpers,
com.boohoo.esb.common.sage.entities,
com.boohoo.magento,
magento,
org.apache.activemq.camel.component;version="[5.5,6)",
org.apache.camel;version="[2.9,3)",
org.apache.camel.component.file;version="[2.9,3)",
org.apache.camel.impl;version="[2.9,3)",
org.apache.camel.processor.aggregate;version="[2.9,3)",
org.osgi.service.blueprint;version="[1.0.0,2.0.0)"
Export-Package =
com.boohoo.esb.products.images.into.cms.magento.aggregations;
uses:="org.apache.camel.component.file,
org.apache.camel,
com.boohoo.esb.products.images.into.cms.magento.helpers,
com.boohoo.esb.common.sage.entities,
com.boohoo.esb.products.images.into.cms.magento.holders,
org.apache.camel.processor.aggregate,
magento",
com.boohoo.esb.products.images.into.cms.magento.factories;uses:="com.boohoo.esb.common,org.apache.camel",
com.boohoo.esb.products.images.into.cms.magento.helpers;uses:="org.apache.camel,com.boohoo.esb.products.images.into.cms.magento.holders,com.boohoo.esb.common,com.boohoo.esb.common.sage.entities,com.boohoo.esb.common.helpers",
com.boohoo.esb.products.images.into.cms.magento.holders;uses:=com.boohoo.esb.common.sage.entities,
com.boohoo.esb.products.images.into.cms.magento.messagebuidlers;
uses:="org.apache.camel.impl,
org.apache.camel,
com.boohoo.esb.products.images.into.cms.magento.helpers,
com.boohoo.esb.common.sage.entities,
com.boohoo.esb.products.images.into.cms.magento.holders"
Require-Bundle =
org.apache.cxf.bundle
I've spent the last 2 days trying to figure out whats wrong, but havent got anywhere.