You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Daniel Kulp <dk...@apache.org> on 2009/12/03 21:43:35 UTC

Re: Simple front end: IllegalArgumentException: A fault with name already exists

Can you create a small test case and attach to a JIRA?   This does sound like 
a bug.

Thanks!
Dan


On Tue November 24 2009 2:43:09 pm sassjh wrote:
> 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.AbstractAutowireCapableBeanFactor
> y.initializeBean(AbstractAutowireCapableBeanFactory.java:1395) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
> y.doCreateBean(AbstractAutowireCapableBeanFactory.java:512) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
> y.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
> 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog