Results 1 to 3 of 3

Thread: CafeDemo.xml problem-Please help

  1. #1
    Join Date
    Sep 2008
    Location
    Mannheim,Germany
    Posts
    125

    Red face CafeDemo.xml problem-Please help

    Hi,
    I tried to mount the CafeDemo example in myeclipse and the CafeDemo.xml shows me this error Unable to locate a reference to a supported schema type(DTD,W3C Schema) within this document instance I have included Spring 2.5 Core Libraries to the build path and Im wondering whether I have to include anything else to get rid of this error
    CafeDemo.xml
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/integration"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xmlns:beans="http://www.springframework.org/schema/beans"
    	xmlns:stream="http://www.springframework.org/schema/integration/stream"
    	xsi:schemaLocation="http://www.springframework.org/schema/beans
    			http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    			http://www.springframework.org/schema/integration
                            http://www.springframework.org/schema/integration/spring-integration-1.0.xsd
    			http://www.springframework.org/schema/integration/stream
    			http://www.springframework.org/schema/integration/stream/spring-integration-  stream-1.0.xsd
                            http://www.springframework.org/schema/tool">
    
    	<message-bus/>
    
    	<gateway id="cafe" service-interface="org.springframework.integration.samples.cafe.Cafe"/>
    
    	<channel id="orders"/>
    	<splitter input-channel="orders" ref="orderSplitter" method="split" output-channel="drinks"/>
    
    	<channel id="drinks"/>
    	<router input-channel="drinks" ref="drinkRouter" method="resolveOrderItemChannel"/>
    
    	<channel id="coldDrinks">
    		<queue capacity="10"/>
    	</channel>
    	<service-activator input-channel="coldDrinks" ref="barista" method="prepareColdDrink" output-channel="preparedDrinks"/>
    
    	<channel id="hotDrinks">
    		<queue capacity="10"/>
    	</channel>
    	<service-activator input-channel="hotDrinks" ref="barista" method="prepareHotDrink" output-channel="preparedDrinks"/>
    
        <channel id="preparedDrinks"/>
        <aggregator input-channel="preparedDrinks" ref="waiter" method="prepareDelivery" output-channel="deliveries"/>
    
    	<stream:stdout-channel-adapter id="deliveries"/>
    
    	<bean id="orderSplitter" class="org.springframework.integration.samples.cafe.xml.OrderSplitter"/>
    
    	<bean id="drinkRouter" class="org.springframework.integration.samples.cafe.xml.DrinkRouter"/>
    
    	<bean id="barista" class="org.springframework.integration.samples.cafe.xml.Barista"/>
    
    	<bean id="waiter" class="org.springframework.integration.samples.cafe.xml.Waiter"/>
    
    </beans>
    Last edited by ashleyvijay; Oct 15th, 2008 at 08:18 AM.

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    Can you try removing "http://www.springframework.org/schema/tool" from that header?

  3. #3
    Join Date
    Sep 2008
    Location
    Mannheim,Germany
    Posts
    125

    Red face

    Thanks for the prompt reply. I have tried removing that and now it gives me the following error :File http://www.springframework.org/schem...n-core-1.0.xsd is not valid

    Unable to load schema with target namespace 'http://www.springframework.org/schema/tool' from"
    Error location: xsd:schema/xsd:import


    Please help!Its really driving me crazy
    Last edited by ashleyvijay; Oct 15th, 2008 at 10:06 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •