[forge-issues] [JBoss JIRA] (FORGE-1215) Switchyard service promotion issues
R Searls (JIRA)
jira-events at lists.jboss.org
Thu Sep 19 16:16:04 EDT 2013
[ https://issues.jboss.org/browse/FORGE-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12805940#comment-12805940 ]
R Searls commented on FORGE-1215:
---------------------------------
With the update to 2.0.0.Alpha12 for furnace and forge the call to
project.getFacet(PackagingFacet.class).createBuilder().build(); fails with msg
INFO: < Stopping container [org.switchyard.forge:switchyard-forge-plugin,1.0.0-SNAPSHOT] [/home/rsearls/.windup]
[ERROR] Error executing Maven.
[ERROR] zip file closed
But once this cmd is working again. The issue for the report will be seen.
> Switchyard service promotion issues
> -----------------------------------
>
> Key: FORGE-1215
> URL: https://issues.jboss.org/browse/FORGE-1215
> Project: Forge
> Issue Type: Bug
> Components: Plugin API
> Affects Versions: 2.0.0.Alpha12
> Environment: Fedora 16
> java 1.7.0
> maven 3.1.0
> Reporter: R Searls
> Attachments: service-promotion_Alpha12.zip
>
>
> This issue is in the plugin-switchyard code.
> A created service can not be promoted until the service classes are compiled.
> The underlying code does not see the service until it is compile. There is
> code in the generated switchyard maven project pom.xml to introspect class files.
> The generated XML in the switchyard.xml file of a promoted service is not
> correct. A service element as a direct child of composite element is required,
> but is not generated.
> ------- switchyard.xml contents that is generated for a promoted service -----------
> <?xml version="1.0" encoding="UTF-8"?>
> <switchyard xmlns="urn:switchyard-config:switchyard:1.0">
> <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
> name="myProject"
> targetNamespace="urn:switchyard:application:myProject">
> <component name="SimpleListener">
> <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0"
> class="jbossesb.services.service.SimpleListenerBean"/>
> <service name="SimpleListener">
> <interface.java interface="jbossesb.services.service.SimpleListener"/>
> </service>
> </component>
> </composite>
> </switchyard>
> ------- switchyard.xml contents that is needed for a promoted service --------------
> <?xml version="1.0" encoding="UTF-8"?>
> <switchyard xmlns="urn:switchyard-config:switchyard:1.0">
> <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
> name="myProject"
> targetNamespace="urn:switchyard:application:myProject">
> <service name="SimpleListener" promote="SimpleListener">
> <binding.sca/>
> </service>
> <component name="SimpleListener">
> <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0"
> class="jbossesb.services.service.SimpleListenerBean"/>
> <service name="SimpleListener">
> <interface.java interface="jbossesb.services.service.SimpleListener"/>
> </service>
> </component>
> </composite>
> </switchyard>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the forge-issues
mailing list