Hi ICAR,

Thanks a lot for spending time on my post.
I have the same configuration as you have. I have given it below. Still I am
not able to succeed. My application is very simple. It has just to pass the
http request to bean. I have given all the details. Please...............
help me. I am stuck for a long.

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:test="http://www.in2n.com/test";>

  <http:endpoint service="test:servicehttp"
                 endpoint="consumerhttp"
                 role="consumer"
                 locationURI="http://0.0.0.0:8192/jbi/Service/";
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                 soap="true"
                   targetService="test:MyS1PojoService"
                   targetEndpoint="myS1PojoSu" />            
</beans>

pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.chariotsolutions</groupId>
  <artifactId>http-consumer-su</artifactId>
  <packaging>jbi-service-unit</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>A Service HTTP Service Engine Service Unit</name>
  <url>http://www.myorganization.org</url>
  <repositories>
    <repository>
      <id>apache</id>
      <name>Apache Repository</name>
      <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <releases>
        <enabled>true</enabled>
      </releases>
    </repository>
    <repository>
      <id>apache.snapshots</id>
      <name>Apache Snapshots Repository</name>
      <url>http://people.apache.org/repo/m2-snapshot-repository</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>apache</id>
      <name>Apache Repository</name>
      <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <releases>
        <enabled>true</enabled>
      </releases>
    </pluginRepository>
    <pluginRepository>
      <id>apache.snapshots</id>
      <name>Apache Snapshots Repository</name>
      <url>http://people.apache.org/repo/m2-snapshot-repository</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </pluginRepository>
  </pluginRepositories>
  <properties>
    <servicemix-version>3.2.1</servicemix-version>
  </properties>
  <dependencies>
    <dependency>
      <groupId>org.apache.servicemix</groupId>
      <artifactId>servicemix-http</artifactId>
      <version>${servicemix-version}</version>     
    </dependency>
  </dependencies>
  <build>
      <resources>
      <resource>
        <directory>src/main/resources</directory>
        <includes>
          <include>**/*</include>
        </includes>
      </resource>   
    </resources>
    <plugins>
      <plugin>
        <groupId>org.apache.servicemix.tooling</groupId>
        <artifactId>jbi-maven-plugin</artifactId>
        <version>${servicemix-version}</version>     
        <extensions>true</extensions>
      </plugin>    
    </plugins>
  </build>
</project>


servicemix-bean-su:
xbean.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:bean="http://servicemix.apache.org/bean/1.0";
xmlns:test="http://www.in2n.com/test";>
<bean:endpoint service="test:MyS1PojoService" endpoint="myS1PojoSu"
bean="#myBean"/>
<bean id="myBean"
class="com.chariotsolutions.MyMessageExchangeListenerBean"/>
</beans>

pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.chariotsolutions</groupId>
  <artifactId>myS1Pojo</artifactId>
  <packaging>jbi-service-unit</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>MyJmsTest :: myS1Pojo</name>
  <url>http://www.finicity.com</url>
  <repositories>
    <repository>
      <id>apache</id>
      <name>Apache Repository</name>
      <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <releases>
        <enabled>true</enabled>
      </releases>
    </repository>
    <repository>
      <id>apache.snapshots</id>
      <name>Apache Snapshots Repository</name>
      <url>http://people.apache.org/repo/m2-snapshot-repository</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>apache</id>
      <name>Apache Repository</name>
      <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <releases>
        <enabled>true</enabled>
      </releases>
    </pluginRepository>
    <pluginRepository>
      <id>apache.snapshots</id>
      <name>Apache Snapshots Repository</name>
      <url>http://people.apache.org/repo/m2-snapshot-repository</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </pluginRepository>
  </pluginRepositories>
  <properties>
    <servicemix-version>3.2.1</servicemix-version>
    <componentName>servicemix-bean</componentName>
  </properties>
  <dependencies>
    <dependency>
      <groupId>org.apache.servicemix</groupId>
      <artifactId>servicemix-bean</artifactId>
      <version>${servicemix-version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.servicemix</groupId>
      <artifactId>servicemix-core</artifactId>
      <version>${servicemix-version}</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <includes>
          <include>**/*</include>
        </includes>
      </resource>   
    </resources>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.servicemix.tooling</groupId>
        <artifactId>jbi-maven-plugin</artifactId>
        <version>${servicemix-version}</version>
        <extensions>true</extensions>
      </plugin>
    </plugins>
  </build>
</project>


All the components install sucessfully.

When I deploy the zip file in hotdeploy I get following logs:

INFO  - AutoDeploymentService          - Directory: hotdeploy: Archive
changed: processing mySa-1.0-SNAPSHOT.zip ...
DEBUG - AutoDeploymentService          - Unpacked archive
/home/pghogale/apache-servicemix-3.2.1/hotdeploy/mySa-1.0-SNAPSHOT.zip to
/home/pghogale/apache-servicemix-3.2.1/data/smx/tmp/mySa-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-bean,
servicemix-http]
DEBUG - DeploymentService              - Moving
/home/pghogale/apache-servicemix-3.2.1/data/smx/tmp/mySa-1.0-SNAPSHOT.0.tmp
to
/home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/mySa/version_1/install
DEBUG - DeploymentService              - Unpack service unit archive
/home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/mySa/version_1/install/http-consumer-su-1.0-SNAPSHOT.zip
to
/home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/mySa/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/mySa/version_1/sus/servicemix-http/http-consumer-su/xbean.xml:
true
DEBUG - HttpComponent                  - Service unit deployed
DEBUG - DeploymentService              - Unpack service unit archive
/home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/mySa/version_1/install/myS1Pojo-1.0-SNAPSHOT.zip
to
/home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/mySa/version_1/sus/servicemix-bean/myS1Pojo
DEBUG - BeanComponent                  - Deploying service unit
DEBUG - BeanComponent                  - Looking for
/home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/mySa/version_1/sus/servicemix-bean/myS1Pojo/xbean.xml:
true
DEBUG - BeanComponent                  - Service unit deployed
INFO  - ServiceAssemblyLifeCycle       - Starting service assembly: mySa
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
http-consumer-su
DEBUG - HttpComponent                  - Initializing service unit
DEBUG - HttpComponent                  - Service unit initialized
INFO  - ServiceUnitLifeCycle           - Initializing service unit: myS1Pojo
DEBUG - BeanComponent                  - Initializing service unit
DEBUG - BeanComponent                  - Service unit initialized
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
targetService/targetEndpoint
DEBUG - HttpComponent                  - Could not retrieve endpoint for
targetService
DEBUG - HttpComponent                  - Could not retrieve endpoint for
service/endpoint
DEBUG - HttpComponent                  - Service unit started
INFO  - ServiceUnitLifeCycle           - Starting service unit: myS1Pojo
DEBUG - BeanComponent                  - Starting service unit
DEBUG - ComponentContextImpl           - Component: servicemix-bean
activated endpoint: {http://www.in2n.com/test}MyS1PojoService : myS1PojoSu
DEBUG - BeanComponent                  - Querying service description for
ServiceEndpoint[service={http://www.in2n.com/test}MyS1PojoService,endpoint=myS1PojoSu]
DEBUG - BeanComponent                  - No description found for
{http://www.in2n.com/test}MyS1PojoService:myS1PojoSu
DEBUG - WSDL1Processor                 - Endpoint
ServiceEndpoint[service={http://www.in2n.com/test}MyS1PojoService,endpoint=myS1PojoSu]
has no service description
DEBUG - BeanComponent                  - Querying service description for
ServiceEndpoint[service={http://www.in2n.com/test}MyS1PojoService,endpoint=myS1PojoSu]
DEBUG - BeanComponent                  - No description found for
{http://www.in2n.com/test}MyS1PojoService:myS1PojoSu
DEBUG - WSDL2Processor                 - Endpoint
ServiceEndpoint[service={http://www.in2n.com/test}MyS1PojoService,endpoint=myS1PojoSu]
has no service description
DEBUG - JCAFlow                        - ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://www.in2n.com/test}MyS1PojoService,endpoint=myS1PojoSu]]
DEBUG - JMSFlow                        - ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://www.in2n.com/test}MyS1PojoService,endpoint=myS1PojoSu]]
DEBUG - BeanComponent                  - 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:  mySa-1.0-SNAPSHOT.zip
          


then I hit http://0.0.0.0:8192

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:8192/jbi/Service/



If i hit

    * http://gpratibha.site:8192/jbi/Service/

i get the following on browesr:
HTTP ERROR: 404

Unable to find requested resource

RequestURI=/jbi/Service/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 - ConsumerProcessor              - Receiving HTTP request: GET
/jbi/Service/?wsdl HTTP/1.1
Host: gpratibha.site:8192
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:8192/


DEBUG - JettyContextManager            - Dispatching job:
[EMAIL PROTECTED],io=1,w=true,b=false|false]
DEBUG - ConsumerProcessor              - Receiving HTTP request: GET
/jbi/Service/main.wsdl HTTP/1.1
Host: gpratibha.site:8192
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:8192/


DEBUG - HttpComponent                  - Retrieving proxied endpoint
definition
DEBUG - BeanComponent                  - Querying service description for
ServiceEndpoint[service={http://www.in2n.com/test}MyS1PojoService,endpoint=myS1PojoSu]
DEBUG - BeanComponent                  - No description found for
{http://www.in2n.com/test}MyS1PojoService:myS1PojoSu


Please help me to find out where i am committing a mistake?

Thanks,
Pratibha

-- 
View this message in context: 
http://www.nabble.com/ServiceMix-and-camel-problem-tp12752035p17071592.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to