Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Achraf Charafi
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 426
Eclipse IDE Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!