You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2010/01/19 18:23:43 UTC

[jira] Resolved: (SMXCOMP-699) JMS component doesn't recognize the jca-consumer endpoint

     [ https://issues.apache.org/activemq/browse/SMXCOMP-699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved SMXCOMP-699.
------------------------------------------

    Resolution: Fixed

> JMS component doesn't recognize the jca-consumer endpoint
> ---------------------------------------------------------
>
>                 Key: SMXCOMP-699
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-699
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-jms
>    Affects Versions: servicemix-jms-2009.01, servicemix-jms-2009.02
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: servicemix-jms-2010.01
>
>
> When trying to deploy a JMS endpoint with the following xbean.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
>        xmlns:nanthrax="http://www.nanthrax.net">
>     <jms:jca-consumer service="nanthrax:test"
>         endpoint="consumer"
>         connectionFactory="#connectionFactory"
>         resourceAdapter="#ra"
>         activationSpec="#as"/>
>         
>     <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
>         <property name="brokerURL" value="tcp://localhost:61616"/>
>     </bean>
>     
>     <bean id="ra" class="org.apache.activemq.ra.ActiveMQResourceAdapter">
>         <property name="serverUrl" value="tcp://localhost:61616"/>
>     </bean>
>     
>     <bean id="as" class="org.apache.activemq.ra.ActiveMQActivationSpec">
>         <property name="destinationType" value="queue"/>
>         <property name="destination" value="my.queue"/>
>     </bean>
>        
> </beans>
> I got:
> <loc-message>Endpoint is not of type: [class org.apache.servicemix.jms.JmsEndpoint, class org.apache.servicemix.jms.endpoints.JmsConsumerEndpoint, class org.apache.servicemix.jms.endpoints.JmsProviderEndpoint] but is of type: class org.apache.servicemix.jms.endpoints.JmsJcaConsumerEndpoint</loc-message>
> <stack-trace><![CDATA[javax.jbi.management.DeploymentException: Endpoint is not of type: [class org.apache.servicemix.jms.JmsEndpoint, class org.apache.servicemix.jms.endpoints.JmsConsumerEndpoint, class org.apache.servicemix.jms.endpoints.JmsProviderEndpoint] but is of type: class org.apache.servicemix.jms.endpoints.JmsJcaConsumerEndpoint
>         at org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:59)
>         at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:97)
>         at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
>         at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
>         at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:520)
>         at org.apache.servicemix.jbi.framework.AutoDeploymentService.checkPendingSAs(AutoDeploymentService.java:473)
>         at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateComponent(AutoDeploymentService.java:289)
>         at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:251)
>         at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)
>         at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)
>         at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> ]]></stack-trace>
> </exception-info>
> </task-result-details>
> </component-task-result-details>
> </component-task-result>
> </jbi-task-result>
> </jbi-task>
>         at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>         at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>         at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:555)
>         at org.apache.servicemix.jbi.framework.AutoDeploymentService.checkPendingSAs(AutoDeploymentService.java:473)
>         at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateComponent(AutoDeploymentService.java:289)
>         at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:251)
>         at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)
>         at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)
>         at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> The problem is on the JmsComponent getEndpointClasses() method which doesn't contain the jca-consumer class.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.