I am having a similar problem, scheme not found.
Programs I am using:
- Servicemix 4.3.0
- java version "1.6.0_33"
- activiti 5.9
- Servicemix-Camel 2.6.0

I have to integrate Activiti and Servicemix, for that I am using
Servicemix-Camel, from this page I create a new component named "activiti",
using the steps on this site: 
http://camel.apache.org/creating-a-new-camel-component.html
http://camel.apache.org/creating-a-new-camel-component.html  but when I
deploy the zip file I get the following error:
/org.apache.camel.ResolveEndpointFailedException: Failed to resolve
endpoint: activiti://gpi:serviceTask1 due to: No component found with
scheme: activiti/

here is the process:

<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"; 
                         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
                         xmlns:activiti="http://activiti.org/bpmn"; 
                         
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"; 
                         xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"; 
                         xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"; 
                         typeLanguage="http://www.w3.org/2001/XMLSchema"; 
                         expressionLanguage="http://www.w3.org/1999/XPath"; 
                         targetNamespace="http://www.activiti.org/test";>
                         
  <process id="gpi" name="gpi">
    <startEvent id="starteventGPI" name="Start"></startEvent>
    <userTask id="inspectorWork" name="inspectorWork"
activiti:assignee="inspector">
      <extensionElements>
        <activiti:formProperty id="nome" name="nome" type="string"
required="false"></activiti:formProperty>
      </extensionElements>
    </userTask>
    <serviceTask id="servicetask1" name="Service Task"
activiti:delegateExpression="${camel}"></serviceTask>
    <serviceTask id="mailtask1" name="Mail Task" activiti:type="mail">
      <extensionElements>
        <activiti:field name="to"
expression="[email protected]"></activiti:field>
        <activiti:field name="from"
expression="[email protected]"></activiti:field>
        <activiti:field name="subject" expression="Teste
Servicemix"></activiti:field>
        <activiti:field name="html">
          <activiti:expression></activiti:expression>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow4" name="to inspectorWork"
sourceRef="starteventGPI" targetRef="inspectorWork"></sequenceFlow>
    <sequenceFlow id="flow5" name="to Service Task"
sourceRef="inspectorWork" targetRef="servicetask1"></sequenceFlow>
    <sequenceFlow id="flow6" name="to Mail Task" sourceRef="servicetask1"
targetRef="mailtask1"></sequenceFlow>
    <sequenceFlow id="flow7" name="to End" sourceRef="mailtask1"
targetRef="endevent1"></sequenceFlow>
  </process>
...
</definitions>

The camel route:
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:activiti="http://activiti.org/bpmn";
       xmlns:e="http://schemas.xmlsoap.org/soap/envelope/";
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
    ">

         
        <bean id="camel" class="org.activiti.camel.CamelBehaviour">
        <constructor-arg index="0">
                <list>
                        
                        <bean class="org.activiti.camel.SimpleContextProvider">
                                <constructor-arg index="0" value="gpi" />
                                <constructor-arg index="1" 
ref="camelProcessFromActiviti" />
                        </bean>
                </list>
        </constructor-arg>
        </bean>
....
  
      <camelContext id="camelProcessFromActiviti"
xmlns="http://camel.apache.org/schema/spring";>
            <route streamCache="true">
                        <from uri="activiti:gpi:serviceTask1"/>
                <to uri="file:/Users/paundejr/Desktop/reci"/>
            </route>
      </camelContext>
</beans>

Can anyone help me to understand the problem.
Is this the correct way to create a component in Servicemix?
does it have to do with namespaces?




-----
Gumba
--
View this message in context: 
http://servicemix.396122.n5.nabble.com/camel-2-2-smx4-2-org-apache-camel-ResolveEndpointFailedException-No-component-found-with-scheme-http-tp420579p5713974.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to