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:
INFO  - AutoDeploymentService          - Location
tutorial-camel-sa-1.0-SNAPSHOT.zip no longer exists - removing ...
INFO  - AutoDeploymentService          - Attempting to remove archive at:
tutorial-camel-sa-1.0-SNAPSHOT.zip
DEBUG - SedaFlow                       - Called Flow suspend
DEBUG - JMSFlow                        - Called Flow suspend
DEBUG - JCAFlow                        - Called Flow suspend
DEBUG - SedaFlow                       - Called Flow resume
DEBUG - JMSFlow                        - Called Flow resume
DEBUG - JCAFlow                        - Called Flow resume
INFO  - AutoDeploymentService          - Directory: hotdeploy: Archive
changed: processing tutorial-camel-sa-1.0-SNAPSHOT.zip ...
DEBUG - AutoDeploymentService          - Unpacked archive
/home/pghogale/apache-servicemix-3.2.1/hotdeploy/tutorial-camel-sa-1.0-SNAPSHOT.zip
to
/home/pghogale/apache-servicemix-3.2.1/data/smx/tmp/tutorial-camel-sa-1.0-SNAPSHOT.0.tmp
DEBUG - SedaFlow                       - Called Flow suspend
DEBUG - JMSFlow                        - Called Flow suspend
DEBUG - JCAFlow                        - Called Flow suspend
DEBUG - AutoDeploymentService          - SA dependencies: [servicemix-http,
servicemix-camel]
DEBUG - DeploymentService              - Moving
/home/pghogale/apache-servicemix-3.2.1/data/smx/tmp/tutorial-camel-sa-1.0-SNAPSHOT.0.tmp
to
/home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/install
DEBUG - DeploymentService              - Unpack service unit archive
/home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/install/tutorial-camel-su-1.0-SNAPSHOT.zip
to
/home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/sus/servicemix-camel/tutorial-camel-su
DEBUG - CamelJbiComponent              - Deploying service unit
DEBUG - CamelJbiComponent              - Looking for
/home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/sus/servicemix-camel/tutorial-camel-su/camel-context.xml:
true
DEBUG - CamelJbiComponent              - Service unit deployed
DEBUG - DeploymentService              - Unpack service unit archive
/home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/install/http-consumer-su-1.0-SNAPSHOT.zip
to
/home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/sus/servicemix-http/http-consumer-su
DEBUG - HttpComponent                  - Deploying service unit
DEBUG - HttpComponent                  - Looking for
/home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/sus/servicemix-http/http-consumer-su/xbean.xml:
true
DEBUG - HttpComponent                  - Service unit deployed
INFO  - ServiceAssemblyLifeCycle       - Starting service assembly:
tutorial-camel-sa
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
tutorial-camel-su
DEBUG - CamelJbiComponent              - Initializing service unit
DEBUG - CamelJbiComponent              - Service unit initialized
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
http-consumer-su
DEBUG - HttpComponent                  - Initializing service unit
DEBUG - HttpComponent                  - Service unit initialized
INFO  - ServiceUnitLifeCycle           - Starting service unit:
tutorial-camel-su
DEBUG - CamelJbiComponent              - Starting service unit
DEBUG - ComponentContextImpl           - Component: servicemix-camel
activated endpoint: {http://www.dmc.de}testCamel : endpoint
DEBUG - CamelJbiComponent              - Querying service description for
ServiceEndpoint[service={http://www.dmc.de}testCamel,endpoint=endpoint]
DEBUG - CamelJbiComponent              - No description found for
{http://www.dmc.de}testCamel:endpoint
DEBUG - WSDL1Processor                 - Endpoint
ServiceEndpoint[service={http://www.dmc.de}testCamel,endpoint=endpoint] has
no service description
DEBUG - CamelJbiComponent              - Querying service description for
ServiceEndpoint[service={http://www.dmc.de}testCamel,endpoint=endpoint]
DEBUG - CamelJbiComponent              - No description found for
{http://www.dmc.de}testCamel:endpoint
DEBUG - WSDL2Processor                 - Endpoint
ServiceEndpoint[service={http://www.dmc.de}testCamel,endpoint=endpoint] has
no service description
DEBUG - JCAFlow                        - ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://www.dmc.de}testCamel,endpoint=endpoint]]
DEBUG - JMSFlow                        - ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://www.dmc.de}testCamel,endpoint=endpoint]]
DEBUG - ComponentContextImpl           - Component: servicemix-camel
activated endpoint: {http://activemq.apache.org/camel/schema/jbi}endpoint :
camel:controlBus
DEBUG - CamelJbiComponent              - Querying service description for
ServiceEndpoint[service={http://activemq.apache.org/camel/schema/jbi}endpoint,endpoint=camel:controlBus]
DEBUG - CamelJbiComponent              - No description found for
{http://activemq.apache.org/camel/schema/jbi}endpoint:camel:controlBus
DEBUG - WSDL1Processor                 - Endpoint
ServiceEndpoint[service={http://activemq.apache.org/camel/schema/jbi}endpoint,endpoint=camel:controlBus]
has no service description
DEBUG - CamelJbiComponent              - Querying service description for
ServiceEndpoint[service={http://activemq.apache.org/camel/schema/jbi}endpoint,endpoint=camel:controlBus]
DEBUG - CamelJbiComponent              - No description found for
{http://activemq.apache.org/camel/schema/jbi}endpoint:camel:controlBus
DEBUG - WSDL2Processor                 - Endpoint
ServiceEndpoint[service={http://activemq.apache.org/camel/schema/jbi}endpoint,endpoint=camel:controlBus]
has no service description
DEBUG - JCAFlow                        - ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://activemq.apache.org/camel/schema/jbi}endpoint,endpoint=camel:controlBus]]
DEBUG - JMSFlow                        - ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://activemq.apache.org/camel/schema/jbi}endpoint,endpoint=camel:controlBus]]
DEBUG - CamelJbiComponent              - Service unit started
INFO  - ServiceUnitLifeCycle           - Starting service unit:
http-consumer-su
DEBUG - HttpComponent                  - Starting service unit
DEBUG - HttpComponent                  - Retrieving proxied endpoint
definition
DEBUG - HttpComponent                  - Could not retrieve endpoint for
service/endpoint
DEBUG - HttpComponent                  - Service unit started
DEBUG - SedaFlow                       - Called Flow resume
DEBUG - JMSFlow                        - Called Flow resume
DEBUG - JCAFlow                        - Called Flow resume
INFO  - AutoDeploymentService          - Directory: hotdeploy: Finished
installation of archive:  tutorial-camel-sa-1.0-SNAPSHOT.zip





then I hit http://0.0.0.0:8191

on serviceMix log I get

DEBUG - JettyContextManager            - Dispatching job:
[EMAIL PROTECTED],io=0,w=true,b=false|false]


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?

Thanks,
Pratibha


-- 
View this message in context: 
http://www.nabble.com/http--%3ECamel-communication-tp17053949p17053949.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to