| Summary: | switchyard-plugin adds xmlns:xmlns namespace, which is not valid | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Fuse Service Works 6 | Reporter: | Jiri Sedlacek <jsedlace> | ||||
| Component: | SwitchYard | Assignee: | David Ward <dward> | ||||
| Status: | MODIFIED --- | QA Contact: | Matej Melko <mmelko> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 6.0.0 | CC: | apodhrad, atangrin, dward, ldimaggi, oskutka, soa-p-jira, tasato | ||||
| Target Milestone: | DR1 | ||||||
| Target Release: | 6.1.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: |
For projects using a BPEL service, switchyard-plugin adds an invalid namespace definition "xmlns:xmlns namespace".
To workaround this problem, assign the default namespace explicitly in your project using BPEL.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | Type: | Bug | |||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Bug Depends On: | 1085860 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
it sometimes happens also if root tag is in default namespace and someother tag is in default namespace too - then xmlns:xmlns is attached to this tag (I saw this on validates or transforms tags) Just to confirm - adding the default namespace - as you show in the switchyard2.xml file you attached - does this avoid the issue in 100% of the cases? no, it can happen on other element with default namespace inside of document, I haven't found a cause yet. It's due to the bpel-component dragging in saxonhe and xalan into build classpath. I will reply with more detail and another workaround in a sec. Before I get into details, I want to reiterate that this only occurs with projects which include a dependency on switchyard-component-bpel (i.e. they use a BPEL service).
I can eliminate this error with the following exclusions:
<dependency>
<groupId>org.switchyard.components</groupId>
<artifactId>switchyard-component-bpel</artifactId>
<exclusions>
<exclusion>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
</exclusion>
<exclusion>
<groupId>net.sourceforge.saxon</groupId>
<artifactId>saxonhe</artifactId>
</exclusion>
</exclusions>
</dependency>
Unfortunately, this only works because the reproducer project doesn't actually use the BPEL implementation. Using the above exclusions on a project which dose use BPEL results in an error. Interestingly enough, the bpel-service quickstarts do not exhibit this issue an they do not use the default (xmlns="...") namespace. There must be a combination or ordering of dependencies for BPEL projects which makes this possible, but I haven't been able to isolate it yet. For the time being, I would recommend the workaround of assigning the default namespace explicitly in projects which use BPEL.
*** Bug 1047938 has been marked as a duplicate of this bug. *** |
Created attachment 837178 [details] reproducer After processing switchyard.xml by switchyard-plugin (version 1.1.1-p2-redhat-1) it adds xmlns:xmlns="..." namespace definition, which is not valid according to specification and processing fails. Project for reproducing the issue is attached, there are two switchyard.xml file: switchyard.xml - problem can be reproduced with this one switchyard2.xml - equivalent file, root element defined in default namespace - this one can be processed.