File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes SOA and ESB and the fly likes Mule standalone: Failed to read schema document Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » SOA and ESB
Bookmark "Mule standalone: Failed to read schema document "AMQP issue"" Watch "Mule standalone: Failed to read schema document "AMQP issue"" New topic

Mule standalone: Failed to read schema document "AMQP issue"

Achraf Charafi

Joined: Jan 30, 2012
Posts: 4

I'm trying to build a little web service demo with:

cxf 2.2.6
Mule 3.2.0
Maven 3
spring 3.0.6.RELEASE
rabbitmq (amqp-client) 2.3.1
A simple web service that takes an object person and then sends it via RabbitMq brocker to an othe application. this application returnes back the person's gender (String) also via RabbitMq to the Web service. then my Web service gives it back via Http.
I deploy my web service via Mule server: put the .war file into apps folder in mule installation and run mul standalone 3.2.0 via command prompt.
Now the pb is that I have an exception when Mule try to deploy it :

" Failed to read schema document '', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema> "

What gets me confused is that I'm using the same schema I have been using before which works on other web service with Mule running under Jboss.

My configuration file is the following:


<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns="" xmlns:xsi=""
xmlns:http="" xmlns:file=""
xmlns:amqp="" xmlns:cxf=""
xmlns:stdio="" xmlns:soap=""
xmlns:mulexml="" xmlns:vm=""

<spring:import resource="application-context.xml" />

<amqp:connector name="amqpMbssConnector"
<model name="PersonServices">
<service name="PersonTypeService">
<http:inbound-endpoint address="http://localhost:8080/MuleWS/personService" exchange-pattern="request-response">
<cxf:jaxws-service serviceClass="ws.IPersonService" />
<spring-object bean="personService" />
<amqputbound-endpoint routingKey="test"

My application-context.xml is the following:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="" xmlns:xsi="" xmlns:jaxws=""
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
<!-- Spring manage ServiceBean -->
<bean id="personServ" class="ws.PersonServiceImpl"/>
<!-- JAX-WS Service Endpoint -->
<jaxws:endpoint id="personService" implementor="#personServ" address="/personService" />


I appreciate if any one could help me getting this demo working correctly.

Roger Sterling
Ranch Hand

Joined: Apr 06, 2012
Posts: 426

You might try following the more simple example provided on the Mule documentation site. Note the client you are trying to use is not a Web Service client. It is an AMQP client. They are not the same.

Did you want to write a client for Web Services or a client for Queues ?

I agree. Here's the link:
subject: Mule standalone: Failed to read schema document "AMQP issue"
It's not a secret anymore!