I've configured a CXF simple front end server in Spring like so:
<simple:server id="depotServiceWS" serviceClass="com.sas...DepotService"
address="/services/DepotService">
<simple:serviceBean>
<ref bean="depotService"/>
</simple:serviceBean>
<simple:dataBinding>
<bean
class="org.apache.cxf.aegis.databinding.AegisDatabinding"/>
</simple:dataBinding>
</simple:server>
When I start my JBoss (4.2.0) server, I get this:
14:25:33,805 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'depotServiceWS': Invocation of init method failed; nested
exception is java.lang.IllegalArgumentException: A fault with name
[{http://client.depot.content.svcs.sas.com/}ObjectNotFoundException] already
exists in this operation
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1395)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
...
The service class, DepotService, has multiple methods that throw the
ObjectNotFoundException. This exception lives in our common package and
extends java.lang.Exception.
How do I get around this IllegalArgumentException?
I'm using CXF 2.2.4 and Spring 3.0. I'm not using (or trying not to use)
JAX-WS because I prefer not to annotate our Java files. I'd like to handle
this via configuration.
Thanks,
Sarah
--
View this message in context:
http://old.nabble.com/Simple-front-end%3A-IllegalArgumentException%3A-A-fault-with-name-already-exists-tp26500031p26500031.html
Sent from the cxf-user mailing list archive at Nabble.com.