I have created classpath.xml in resources. these are the contents of the
file:

<classpath><library>errorhandling</library></classpath>

This solved the problem of deploying the component in smx/hoydeploy
It deployed successfully.

But now it does not identify any of the services that I have put in the
file. All these services are tested. They work fine. But now I get following
type of error :

DEBUG - SecuredBroker                  - send exchange with secure broker
WARN  - DefaultBroker                  - ServiceName
({http://servicemix.in2m.com/operations/updateprofile}RoutingService)
specified for routing, but can't find it registered
WARN  - DefaultBroker                  - ServiceName
({http://servicemix.in2m.com/operations/updateprofile}RoutingService)
specified for routing, but can't find it registered
ERROR - DeadLetterChannel              - Failed delivery for exchangeId:
ID-gpratibha.site/39564-1218168469331/0-6. On delivery attempt: 0 caught:
org.apache.servicemix.camel.JbiException:
javax.jbi.messaging.MessagingException: Could not find route for exchange:
InOut[
  id: ID:192.168.2.64-11ba07e0b6d-4:21
  status: Active
  role: provider
  service:
{http://servicemix.in2m.com/operations/updateprofile}RoutingService
  in: <?xml version="1.0" encoding="UTF-8"?><request
xmlns="http://www.finicity.com";>
        <updateUserProfile>
                <userName>sandeep333</userName>
                <firstName>saxena</firstName>
                <lastName>mukul</lastName>
                <emailAddress>[EMAIL PROTECTED]</emailAddress>
        </updateUserProfile>
</request>
] for service:
{http://servicemix.in2m.com/operations/updateprofile}RoutingService and
interface: null
org.apache.servicemix.camel.JbiException:
javax.jbi.messaging.MessagingException: Could not find route for exchange:
InOut[
  id: ID:192.168.2.64-11ba07e0b6d-4:21
  status: Active
  role: provider
  service:
{http://servicemix.in2m.com/operations/updateprofile}RoutingService
  in: <?xml version="1.0" encoding="UTF-8"?><request
xmlns="http://www.finicity.com";>
        <updateUserProfile>
                <userName>sandeep333</userName>
                <firstName>saxena</firstName>
                <lastName>mukul</lastName>
                <emailAddress>[EMAIL PROTECTED]</emailAddress>
        </updateUserProfile>
</request>
] for service:
{http://servicemix.in2m.com/operations/updateprofile}RoutingService and
interface: null
        at
org.apache.servicemix.camel.ToJbiProcessor.process(ToJbiProcessor.java:111)
        at
org.apache.servicemix.camel.JbiEndpoint$1.process(JbiEndpoint.java:57)
        at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
        at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
        at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
        at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
        at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
        at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
        at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
        at
org.apache.servicemix.camel.CamelJbiEndpoint.handleActiveProviderExchange(CamelJbiEndpoint.java:101)
        at
org.apache.servicemix.camel.CamelJbiEndpoint.process(CamelJbiEndpoint.java:74)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: javax.jbi.messaging.MessagingException: Could not find route for
exchange: InOut[
  id: ID:192.168.2.64-11ba07e0b6d-4:21
  status: Active
  role: provider
  service:
{http://servicemix.in2m.com/operations/updateprofile}RoutingService
  in: <?xml version="1.0" encoding="UTF-8"?><request
xmlns="http://www.finicity.com";>
        <updateUserProfile>
                <userName>sandeep333</userName>
                <firstName>saxena</firstName>
                <lastName>mukul</lastName>
                <emailAddress>[EMAIL PROTECTED]</emailAddress>
        </updateUserProfile>
</request>
] for service:
{http://servicemix.in2m.com/operations/updateprofile}RoutingService and
interface: null
        at
org.apache.servicemix.jbi.nmr.DefaultBroker.sendExchangePacket(DefaultBroker.java:297)
        at
org.apache.servicemix.jbi.security.SecuredBroker.sendExchangePacket(SecuredBroker.java:88)
        at
org.apache.servicemix.jbi.container.JBIContainer.sendExchange(JBIContainer.java:830)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.doSend(DeliveryChannelImpl.java:395)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:470)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:442)
        at
org.apache.servicemix.camel.ToJbiProcessor.process(ToJbiProcessor.java:91)
        ... 24 more
DEBUG - DefaultExceptionPolicyStrategy - Finding best suited exception
policy for thrown exception org.apache.servicemix.camel.JbiException
DEBUG - DefaultExceptionPolicyStrategy - Using Exception[ [class
java.lang.Throwable] -> [SetBody[ Expression[null]],
To[service:http://servicemix.in2m.com/operations/updateprofile/ResponseGeneratorService?mep=in-out]]]
as the exception policy

If I give the same flow in another camel SU, it works where I am not using
shared library but just the routing. 


Am I missing something in classpath? 

Please help

Pratibha
-- 
View this message in context: 
http://www.nabble.com/Shared-library-problem-tp18849955p18885455.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to