On Sun, May 4, 2008 at 11:55 PM, pratibhaG <[EMAIL PROTECTED]> wrote:
>
>  Hi all ,
>  Please help me I am stuck,
>  I am using Servicemix 3.2.1.
>  I want have communication like this:
>  HTTP request--Camel
>  here are my configuratuion files:
>  http-consumer-su:
>  xbean.xml
>
>  <?xml version="1.0" encoding="UTF-8"?>
>  <beans xmlns:http="http://servicemix.apache.org/http/1.0";
>        xmlns:camel="http://www.dmc.de/";>
>
>   <http:endpoint service="camel:testCamel"
>                  endpoint="endpoint"
>                  role="consumer"
>                  locationURI="http://0.0.0.0:8191/TestCamel/";
>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
>                  soap="false" />
>  </beans>
>
>  camel-su:
>  camel-context.xml:
>  <?xml version="1.0" encoding="UTF-8"?>
>  <beans xmlns="http://www.springframework.org/schema/beans";
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>        xsi:schemaLocation="
>        http://www.springframework.org/schema/beans
>  http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>        http://activemq.apache.org/camel/schema/spring
>  http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
>     ">
>         <camelContext id="camel"
>  xmlns="http://activemq.apache.org/camel/schema/spring";>
>         <package>org.apache.servicemix.tutorial.camel</package>
>         </camelContext>
>  </beans>
>
>  MyRouterBuilder.java
>
>  package org.apache.servicemix.tutorial.camel;
>
>  import org.apache.camel.Exchange;
>  import org.apache.camel.Processor;
>  import org.apache.camel.builder.RouteBuilder;
>
>  public class MyRouteBuilder extends RouteBuilder {
>
>         public void configure() {
>                 from("jbi:endpoint:http://www.dmc.de/testCamel/endpoint";)    
> // 1
>             .setBody(constant("Hello world!"))                // 2
>             .to("log:tutorial");
>
>         }
>  }
>
>  All the components with Sa install sucessfully.
>  When I deploy the zip file in hotdeploy I get following logs:
...
>  i get following on browser:
>  Error 404 - Not Found.
>  No service matched or handled this request.
>  Known services are:
>
>     * http://gpratibha.site:8191/TestCamel/
>
>  If i hit http://gpratibha.site:8191/TestCamel/
>
>  i get following on browesr:
>  HTTP ERROR: 404
>
>  Unable to find requested resource
>
>  RequestURI=/TestCamel/main.wsdl
>
>  Powered by Jetty://
>
>
>
>  on servicemix log i get this:
>  DEBUG - JettyContextManager            - Dispatching job:
>  [EMAIL PROTECTED],io=0,w=true,b=false|false]
>  DEBUG - JettyContextManager            - Dispatching job:
>  [EMAIL PROTECTED],io=0,w=true,b=false|false]
>  DEBUG - ConsumerProcessor              - Receiving HTTP request: GET
>  /TestCamel/?wsdl HTTP/1.1
>  Host: gpratibha.site:8191
>  User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1)
>  Gecko/20061023 SUSE/2.0-30 Firefox/2.0
>  Accept:
>  
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
>  Accept-Language: en-us,en;q=0.5
>  Accept-Encoding: gzip,deflate
>  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>  Keep-Alive: 300
>  Connection: keep-alive
>  Referer: http://0.0.0.0:8191/
>
>
>  DEBUG - JettyContextManager            - Dispatching job:
>  [EMAIL PROTECTED],io=1,w=true,b=false|false]
>  DEBUG - ConsumerProcessor              - Receiving HTTP request: GET
>  /TestCamel/main.wsdl HTTP/1.1
>  Host: gpratibha.site:8191
>  User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1)
>  Gecko/20061023 SUSE/2.0-30 Firefox/2.0
>  Accept:
>  
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
>  Accept-Language: en-us,en;q=0.5
>  Accept-Encoding: gzip,deflate
>  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>  Keep-Alive: 300
>  Connection: keep-alive
>  Referer: http://0.0.0.0:8191/
>
>
>  DEBUG - HttpComponent                  - Retrieving proxied endpoint
>  definition
>  DEBUG - HttpComponent                  - Could not retrieve endpoint for
>  service/endpoint
>
>
>
>  Please help me to find out where is the mistake?

The error is occurring because there is nothing to display in a web
browser at the URL. The URL is not meant to be used from a browser
because it's not a web application. In order to exercise the service,
you need to send a XML message to that URL from some type of client
application. However, currently the the XML message will be received
by the http:endpoint, but it won't be routed anywhere because the
http:endpoint element does not contain a targetService attribute
pointing at the testCamel service.

Bruce
-- 
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/

Reply via email to