Hi to everybody, I'm new to servicemix and i've problems in deploying a jms
jca-consumer service unit. My application is formed by a jms client which
invokes some web services through servicemix. If I use the standard jms
consumer i've no problem, everything works fine. Now I'd like to make the
message flow transactional, but I don't understand where is the problem. Can
anyone help me??

Here is my jca-consumer configuration:

<beans xmlns:jms="http://servicemix.apache.org/jms/1.0";
       xmlns:progetto="http://mycompany.com/rr/schemas";
       xmlns:amq="http://activemq.org/config/1.0";
       xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance";
       xsi:schemaLocation="http://servicemix.apache.org/jms/1.0
http://servicemix.apache.org/schema/servicemix-jms-2009.01.xsd
       http://activemq.org/config/1.0
http://activemq.apache.org/schema/core/activemq-core-5.2.0.xsd
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>


<jms:jca-consumer service="progetto:JmsConsumer"
                  endpoint="ConsumerEndpoint"
                  targetService="progetto:photoRouter"
                  jms102="true"
                  connectionFactory="#connectionFactory"
                  marshaler="#marshaler"
                  resourceAdapter="#ra"
                  activationSpec="#as" />
                  
    <bean id="ra" class="org.apache.activemq.ra.ActiveMQResourceAdapter" >
                <property name="serverUrl"
value="tcp://localhost:61216?jms.redeliveryPolicy.maximumRedeliveries=3&amp;jms.asyncDispatch=true&amp;jms.useAsyncSend=true"
/>
        </bean> 
                
        <bean id="as" class="org.apache.activemq.ra.ActiveMQActivationSpec" >
                <property name="destination" value="queue/A/SOAP" />
                <property name="destinationType" value="javax.jms.Queue"/>
        </bean> 

<bean id="connectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL" value="tcp://localhost:61216" />
        </bean>
        
        <bean id="marshaler"
class="org.springframework.ws.ServiceMixJmsConsumer.marshaler.PhotoJMSMarshaler"/>

</beans>

Here is the exception thrown by ServiceMix at the startup:

ERROR - JmsComponent                   -
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
[Fatal Error] :1:1: Content is not allowed in prolog.

<component-task-result>
<component-name>servicemix-jms</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>Unable to parse result string</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<loc-token/>
<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.checkPendingComponents(AutoDeploymentService.java:526)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateSharedLibrary(AutoDeploymentService.java:313)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
        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>


Thank you in advance for the attention.

Mattia
-- 
View this message in context: 
http://www.nabble.com/Problems-deploying-servicemix-jms%3Ajca-consumer-tp25663382p25663382.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to