Hi Guru,

Please read my previous answer thoroughly, I've already told you
from("jbi:service:person:CustomerIncidentService")
is incorrect.
Here replace the "person" with a namespaceURI you defined for "person".
I believe you DO have something like
xmlns:person="http://what_ever_uri"; in for your cxf bc consumer beans.xml, right? you should put http://what_ever_uri here but not the "person".

Also <task-status-msg><msg-loc-info><loc-token/><loc-message>Service Unit
'camel-simple-su
is already deployed</loc-message></msg-loc-info></task-status-msg>
means you deploy SU with same twice, I think it's from your install both spring dsl and java dsl SU with same name, you need uninstall one.

Freeman

On 2011-11-24, at 下午7:36, Gnanaguru S wrote:


Hi Freeman,

I tried the same with the java dsl. Below is my code. I dont understand what
furthermore options required in uri ! . :(

package org.apache.servicemix.samples;

import org.apache.camel.builder.RouteBuilder;

/**
* A Camel Router
*
* @version $Revision: 1.1 $
*/
public class MyRouteBuilder extends RouteBuilder {
   public void configure() throws Exception {

       from("jbi:service:person:CustomerIncidentService")
           .setBody(constant("Hello World!"))

.to("log:org.apache.servicemix.samples.camel.ExampleCamelRoute");
   }
}

And the log am getting.

17:02:40,787 | INFO | use-00-27/deploy | Deployer |
?
  ? | 148 - org.apache.servicemix.jbi.deployer - 1.5.0.fuse-00-27 |
Deploying bundle 'null (camel-sa)' as a
BI service assembly
17:02:40,803 | WARN | use-00-27/deploy | ServiceAssemblyInstaller |
?
? | 148 - org.apache.servicemix.jbi.deployer - 1.5.0.fuse-00-27 | Problem
undeploying SU camel-simple-su
17:02:40,959 | ERROR | use-00-27/deploy | ServiceAssemblyInstaller |
?
? | 148 - org.apache.servicemix.jbi.deployer - 1.5.0.fuse-00-27 | Error
deploying SU camel-simple-su
javax.jbi.management.DeploymentException: <component-task-result
xmlns="http://java.sun.com/xml/ns/jbi/manage
ent-message">
       <component-name>servicemix-camel</component-name>
       <component-task-result-details>
               <task-result-details>
                       <task-id>deploy</task-id>
                       <task-result>FAILED</task-result>
                       <message-type>ERROR</message-type>

<task-status-msg><msg-loc-info><loc-token/><loc-message>Service Unit
'camel-simple-su
is already deployed</loc-message></msg-loc-info></task-status-msg>
               </task-result-details>
       </component-task-result-details>
</component-task-result>
       at
org .apache .servicemix .common.BaseServiceUnitManager.failure(BaseServiceUnitManager.java: 268)[152:s
rvicemix-common:2011.02.0.fuse-00-27]
       at
org .apache .servicemix .common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:67) [152:ser
icemix-common:2011.02.0.fuse-00-27]
       at
org .apache .servicemix .jbi.deployer.artifacts.ServiceUnitImpl.deploy(ServiceUnitImpl.java: 104)[148:
rg.apache.servicemix.jbi.deployer:1.5.0.fuse-00-27]
       at
org .apache .servicemix .jbi .deployer .impl.ServiceAssemblyInstaller.deploySUs(ServiceAssemblyInstalle
.java:207)[148:org.apache.servicemix.jbi.deployer:1.5.0.fuse-00-27]
       at
org .apache .servicemix .jbi .deployer .impl.ServiceAssemblyInstaller.install(ServiceAssemblyInstaller.
ava:85)[148:org.apache.servicemix.jbi.deployer:1.5.0.fuse-00-27]
       at
org .apache .servicemix.jbi.deployer.impl.Deployer.onBundleStarted(Deployer.java: 330)[148:org.apache
servicemix.jbi.deployer:1.5.0.fuse-00-27]
       at
org .apache .servicemix.jbi.deployer.impl.Deployer.bundleChanged(Deployer.java: 260)[148:org.apache.s
rvicemix.jbi.deployer:1.5.0.fuse-00-27]
       at
org .apache .felix .framework .util .EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:
95)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
       at
org .apache .felix .framework .util.EventDispatcher.fireEventImmediately(EventDispatcher.java:717) [org
apache.felix.framework-3.0.9-fuse-00-27.jar:]
       at
org .apache .felix .framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java: 597)[org.apac
e.felix.framework-3.0.9-fuse-00-27.jar:]
       at
org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3751) [org.apache.felix.framework-3.0.9
fuse-00-27.jar:]
       at
org.apache.felix.framework.Felix.startBundle(Felix.java:1781) [org.apache.felix.framework-3.0.9-fus
-00-27.jar:]
       at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927) [org.apache.felix.framework-3.0.9-
use-00-27.jar:]
       at
org .apache .felix .fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java: 1175)[7:org.a
ache.felix.fileinstall:3.1.10]
       at
org .apache .felix .fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java: 1153)[7:org.a
ache.felix.fileinstall:3.1.10]
       at
org .apache .felix .fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java: 458)[7:org.ap
che.felix.fileinstall:3.1.10]
       at
org .apache .felix .fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:263) [7:org.apache
felix.fileinstall:3.1.10]
17:02:40,959 | ERROR | use-00-27/deploy | ServiceAssemblyInstaller |
?
? | 148 - org.apache.servicemix.jbi.deployer - 1.5.0.fuse-00-27 | Error
deploying SU camel-simple-su
17:02:40,959 | ERROR | use-00-27/deploy | Deployer |
?
? | 148 - org.apache.servicemix.jbi.deployer - 1.5.0.fuse-00-27 | Error
handling bundle start event
javax.jbi.JBIException: java.lang.Exception: Error deploying SU
camel-simple-su
       at
org .apache .servicemix .jbi .deployer .impl.ServiceAssemblyInstaller.install(ServiceAssemblyInstaller.
ava:101)[148:org.apache.servicemix.jbi.deployer:1.5.0.fuse-00-27]
       at
org .apache .servicemix.jbi.deployer.impl.Deployer.onBundleStarted(Deployer.java: 330)[148:org.apache
servicemix.jbi.deployer:1.5.0.fuse-00-27]
       at
org .apache .servicemix.jbi.deployer.impl.Deployer.bundleChanged(Deployer.java: 260)[148:org.apache.s
rvicemix.jbi.deployer:1.5.0.fuse-00-27]
       at
org .apache .felix .framework .util .EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:
95)[org.apache.felix.framework-3.0.9-fuse-00-27.jar:]
       at
org .apache .felix .framework .util.EventDispatcher.fireEventImmediately(EventDispatcher.java:717) [org
apache.felix.framework-3.0.9-fuse-00-27.jar:]
       at
org .apache .felix .framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java: 597)[org.apac
e.felix.framework-3.0.9-fuse-00-27.jar:]
       at
org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3751) [org.apache.felix.framework-3.0.9
fuse-00-27.jar:]
       at
org.apache.felix.framework.Felix.startBundle(Felix.java:1781) [org.apache.felix.framework-3.0.9-fus
-00-27.jar:]
       at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:927) [org.apache.felix.framework-3.0.9-
use-00-27.jar:]
       at
org .apache .felix .fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java: 1175)[7:org.a
ache.felix.fileinstall:3.1.10]
       at
org .apache .felix .fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java: 1153)[7:org.a
ache.felix.fileinstall:3.1.10]
       at
org .apache .felix .fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java: 458)[7:org.ap
che.felix.fileinstall:3.1.10]
       at
org .apache .felix .fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:263) [7:org.apache
felix.fileinstall:3.1.10]
Caused by: java.lang.Exception: Error deploying SU camel-simple-su
       at
org .apache .servicemix .jbi .deployer .impl.ServiceAssemblyInstaller.deploySUs(ServiceAssemblyInstalle
.java:213)[148:org.apache.servicemix.jbi.deployer:1.5.0.fuse-00-27]
       at
org .apache .servicemix .jbi .deployer .impl.ServiceAssemblyInstaller.install(ServiceAssemblyInstaller.
ava:85)[148:org.apache.servicemix.jbi.deployer:1.5.0.fuse-00-27]
       ... 12 more
Caused by: javax.jbi.management.DeploymentException: <component-task- result
xmlns="http://java.sun.com/xml/ns
jbi/management-message">
       <component-name>servicemix-camel</component-name>
       <component-task-result-details>
               <task-result-details>
                       <task-id>deploy</task-id>
                       <task-result>FAILED</task-result>
                       <message-type>ERROR</message-type>

<task-status-msg><msg-loc-info><loc-token/><loc-message>Service Unit
'camel-simple-su
is already deployed</loc-message></msg-loc-info></task-status-msg>
               </task-result-details>
       </component-task-result-details>
</component-task-result>
       at
org .apache .servicemix .common.BaseServiceUnitManager.failure(BaseServiceUnitManager.java: 268)[152:s
rvicemix-common:2011.02.0.fuse-00-27]
       at
org .apache .servicemix .common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:67) [152:ser
icemix-common:2011.02.0.fuse-00-27]
       at
org .apache .servicemix .jbi.deployer.artifacts.ServiceUnitImpl.deploy(ServiceUnitImpl.java: 104)[148:
rg.apache.servicemix.jbi.deployer:1.5.0.fuse-00-27]
       at
org .apache .servicemix .jbi .deployer .impl.ServiceAssemblyInstaller.deploySUs(ServiceAssemblyInstalle
.java:207)[148:org.apache.servicemix.jbi.deployer:1.5.0.fuse-00-27]
       ... 13 more

Please help me out.

Regards
Guru

-----
Cheers
Guru
--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Using-the-servicemix-cxf-bc-as-endpoint-tp5019578p5019937.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to