Hi Freeman,
Thanks for the help.
You gave me the pointer where to look.
We did find 'servicemix.log', instead of karaf.log.
But good that it had the error description saying following
Unable to create application context for
[org.apache.servicemix.osgi-sample], unsatisfied dependencies: none
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to
load type: org.apache.servicemix.jms.endpoints.JmsConsumerEndpoint. Reason:
java.lang.ClassNotFoundException:
org.apache.servicemix.jms.endpoints.JmsConsumerEndpoint; nested exception is
java.lang.ClassNotFoundException:
org.apache.servicemix.jms.endpoints.JmsConsumerEndpoint
Since this servicemix4 and uses OSGI bundle, we had missed to place
'org.apache.servicemix.jms.endpoints' in 'import-packages' of META-INF.MF
So we have place this entry inside pom.xml, which reflected in 'META-INF.MF'
file on maven build
<Import-Package>
org.apache.servicemix.file,
org.apache.servicemix.bean,
org.apache.servicemix.common.osgi,
org.apache.servicemix.components.util,
org.apache.servicemix.jms,
org.apache.servicemix.jms.endpoints,
org.apache.servicemix.ftp,
org.apache.activemq,
*
</Import-Package>
Now problem solved with this.
Thank you very much.
Regards,
Prakash
Freeman Fang wrote:
>
> Hi,
>
> Do you see any exception from log when you deploy your osgi-sample
> bundle?
> You can find the log from $SMX4_HOME/data/log/karaf.log
>
> Freeman
> On 2010-3-3, at 下午9:10, pshettyk wrote:
>
>>
>> Hi,
>>
>> I am using ServiceMix 4.0, getting strange problem.
>>
>> In spring file 'jms:consumer' is NOT working. Below is the defination.
>> <jms:consumer service="ns:JMSConsumerService"
>> endpoint="jms"
>> targetService="ns:beanService"
>> targetEndpoint="endpoint"
>> destinationName="mybroker"
>> connectionFactory="#connectionFactory" />
>>
>> But 'jms:endpoint' is working. Below is the defination
>> <jms:endpoint service="ns:JMSConsumerService"
>> endpoint="jms"
>> targetService="ns:beanService"
>> targetEndpoint="endpoint"
>> role="consumer"
>> destinationStyle="queue"
>> jmsProviderDestinationName="mybroker"
>> connectionFactory="#connectionFactory" />
>>
>> In console of servicemix/osgi, it is showing like this for
>> 'jms:consumer'.
>> [ 229] [Active ] [Failed ] [ 60] osgi-sample (1.0.0)
>>
>> Here '[Failed ] ' is from 'spring' header.
>>
>> I have check with 'servicemix.apache.org/jms/1.0/servicemix-
>> jms.xsd'. This
>> says 'jms:consumer' is spring based endpoint and 'jms:endpoint' is
>> NON-Spring endpoint.
>>
>> Moreover I have added following bean defination at the begining of
>> the file
>> <!-- use this special class to register the endpoints with the
>> NMR -->
>> <bean class="org.apache.servicemix.common.osgi.EndpointExporter" />
>>
>> Could you please let me know the reason for this. And let me know
>> the fix
>> for this.
>>
>> Similarly 'ftp:poller' and 'ftp:sender' is not working.
>> Here also please let me know the fix.
>>
>> Onemore thing.
>> How to get the more info(any error message) for [Failed] for
>> [ 229] [Active ] [Failed ] [ 60] osgi-sample (1.0.0)
>> in servicemix/osgi console
>>
>>
>> Thanks in advance.
>>
>> -Prakash
>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/In-Servicemix-4.0%2C-jms%3Aconsumer-is-NOT-working%2C-but-jms%3Aendpoint-is-working.-Why--tp27767991p27767991.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>
>
> --
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
>
>
>
--
View this message in context:
http://old.nabble.com/In-Servicemix-4.0%2C-jms%3Aconsumer-is-NOT-working%2C-but-jms%3Aendpoint-is-working.-Why--tp27767991p27778468.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.