Hi,
I'm using jax-ws with cxf implementation to implement web services.
I have several services annotated with the @WebService annotation.
In a different package I defined the exceptions (which inherit from
RuntimeException) and annotated them with @WebFault with a unique namespace.
Each exception class holds a single bean with the exception data (faultInfo)
which resides in the same namespace and package as the fault and is annotated
with @XMlType.
When I run the server CXF complain with the following error:
ERROR
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.fillInSchemaCrossreferences:305
[main] - Schema element
{http://www.example.com/schema}ValidationRemoteFault references undefined type
{http://www.example.com/schema}ValidationRemoteFaultException for service
{http://web_services.example.com/}ValidationService
The ValidationRemoteFault is the class annotated with the WebFault and
ValidationRemoteFaultException is the bean class annotated with XmlType.
Any insight about solving the error will be appreciated.
Thanks,
Avner