[
https://issues.apache.org/jira/browse/TUSCANY-3637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12893997#action_12893997
]
ant elder commented on TUSCANY-3637:
------------------------------------
I'm trying to work out how you're running this and as there is
org.apache.tuscany.maven.plugin.TuscanyRunMojo in the classpath i'm guessing
you've added the Tuscany maven plugin to itest/jms/oneway. That by default uses
the Tuscany base jar which does not include the jms binding so you need to add
that as a separate plugin dependency. Once you do that it still wont work and
will fail with a connectionFactory not found exception. Thats because there
needs to be a way to configure the ActiveMQ broker with the required JMS
resources, the itest uses the jndi.properties file but that does not get added
to the Maven plugin classpath. I'm not sure what the best way to do that is,
still thinking about it, but for now you can just add another dependency to the
plugin for a jar that contains a jndi.properties file, one simple way do that
is to add the itest project itself, that gives the following plugin definition
which works for me:
<plugins>
<plugin>
<groupId>org.apache.tuscany.maven.plugins</groupId>
<artifactId>maven-tuscany-plugin</artifactId>
<version>2.0-M5</version>
<dependencies>
<dependency>
<groupId>org.apache.tuscany.sca.shades</groupId>
<artifactId>tuscany-jms</artifactId>
<version>2.0-M5</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-core</artifactId>
<version>5.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>itest-jms-oneway</artifactId>
<version>2.0-M5</version>
</dependency>
</dependencies>
</plugin>
</plugins>
> Tuscany JMS binding doesn't work with active mq
> -----------------------------------------------
>
> Key: TUSCANY-3637
> URL: https://issues.apache.org/jira/browse/TUSCANY-3637
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA JMS Binding Extension
> Affects Versions: Java-SCA-2.0-M5
> Environment: Tuscany 2.0 M5.
> Windows XP SP3
> JDK 1.6
> Reporter: zhaoyi
>
> When deploy a service with JMS binding, Tuscany will throw an exception for
> the jms composite file.
> [INFO] Trace
> java.lang.IllegalStateException: org.oasisopen.sca.ServiceRuntimeException:
> [Con
> tribution: file:tuscany-sca-2.0-SNAPSHOT-src/itest/j
> ms/oneway/target/itest-jms-oneway.jar, Artifact:
> oneway/OneWayService.composite]
> - Element {http://docs.oasis-open.org/ns/opencsa/sca/200912}binding.jms
> cannot
> be processed. (Line number = -1
> Column number = -1
> System Id = null
> Public Id = null
> Location Uri= null
> CharacterOffset = -1
> )
> at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:173)
> at
> org.apache.tuscany.maven.plugin.TuscanyRunMojo.execute(TuscanyRunMojo
> .java:105)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> ...
> The composite file is:
> <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
> targetNamespace="http://itest"
> name="OneWayServiceComposite">
> <component name="OneWayService">
> <implementation.java
> class="org.apache.tuscany.sca.binding.jms.OneWayServiceImpl"/>
> <service name="OneWayService">
> <binding.jms>
> <destination jndiName="DestQueueA" create="always"/>
> </binding.jms>
> </service>
> </component>
> </composite>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.