Bug 965515 - SY quickstart validate-xml JBDS errors/warnings
Summary: SY quickstart validate-xml JBDS errors/warnings
Keywords:
Status: MODIFIED
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: Examples, SwitchYard
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: DR4
: ---
Assignee: Douglas Palmer
QA Contact: ppecka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-21 10:22 UTC by ppecka
Modified: 2023-05-15 19:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
You will see warning messages in JBoss Developer Studio's "Problems" view after you import a validate-xml quick start as a Maven project.
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SWITCHYARD-1652 0 Major Reopened SY quickstart validate-xml JBDS errors/warnings 2015-07-28 12:36:44 UTC
Red Hat Issue Tracker SWITCHYARD-1654 0 Major Closed SY Editor validator erroneously reports errors for missing transformers 2015-07-28 12:36:43 UTC
Red Hat Issue Tracker SWITCHYARD-2385 0 Major Resolved Cleanup problems/warnings when importing quick starts into JBDS 2015-07-28 12:36:43 UTC

Description ppecka 2013-05-21 10:22:00 UTC
Description of problem:
Warnings/Errors found in JBDS "Problems" View, right after quickstart is imported as maven project.

steps to reproduce:
1. Start JBDS
2. import existing maven project
3. Window / Show View / Problems
4. check for errors

Actual results:

Required transformation missing: from="java:java.lang.String" to="{urn:switchyard-quickstart:validate-xml:0.1.0}orderAck".  switchyard.xml  /switchyard-quickstart-validate-xml/src/main/resources/META-INF Unknown SwitchYard

Required transformation missing: from="{urn:switchyard-quickstart:validate-xml:0.1.0}order" to="java:java.lang.String". switchyard.xml  /switchyard-quickstart-validate-xml/src/main/resources/META-INF Unknown SwitchYard

schema_reference.4: Failed to read schema document 'orders.base', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.   orders.xsd  /switchyard-quickstart-validate-xml/src/main/resources/xsd  line 6  XML Schema Problem

src-resolve: Cannot resolve the name 'base:order.base' to a(n) 'element declaration' component. orders.xsd  /switchyard-quickstart-validate-xml/src/main/resources/xsd  line 8  XML Schema Problem

Unused Capability: The "Camel Route" capability is configured on the project, but is not required by any SwitchYard binding or implementation types used in the project.    switchyard.xml  /switchyard-quickstart-validate-xml/src/main/resources/META-INF Unknown SwitchYard


Expected results:
No warnings/errors in JBDS

Additional info:

Comment 1 JBoss JIRA Server 2013-08-16 18:28:47 UTC
Brian Fitzpatrick <bfitzpat> made a comment on jira SWITCHYARD-1652

Patch fixes the unnecessary component reference in the pom

Comment 2 JBoss JIRA Server 2013-08-19 16:05:31 UTC
Brian Fitzpatrick <bfitzpat> made a comment on jira SWITCHYARD-1652

PR removes unneeded camel component from pom, which eliminates the warning seen when importing the project in the tooling. The transformation errors will be resolved by the PR for SWITCHYARD-1654.

Comment 3 JBoss JIRA Server 2013-08-23 18:30:12 UTC
Rob Cernich <rcernich> made a comment on jira SWITCHYARD-1654

pushed

Comment 4 JBoss JIRA Server 2013-08-27 14:02:04 UTC
Keith Babo <kbabo> made a comment on jira SWITCHYARD-1652

pushed

Comment 8 Andrej Podhradsky 2013-11-18 12:09:57 UTC
After importing the quickstart 'validate-xml' there are the following error:

src-resolve: Cannot resolve the name 'base:order.base' to a(n) 'element declaration' component.

in /switchyard-quickstart-validate-xml/src/main/resources/xsd/orders.xsd

Comment 9 Rob Cernich 2013-11-18 15:50:11 UTC
It appears the schemaLocation attribute for the imported base schema in orders.xsd is set to orders.base where I think it should be orders-base.xsd.

Comment 10 Brian Fitzpatrick 2013-11-26 15:41:01 UTC
Andrej, I am also seeing the issue with the orders.xsd when I import using the most recent version of the SwitchYard tooling. This has nothing to do with the SY tooling itself and something to do with how Eclipse is validating the use of the XML Catalog element. Even if I import the catalog as provided by the quickstart into Eclipse (File->Import, XML->XML Catalog) it's not finding the order.base for the substitution group. 

This is going to require some further investigation I'm afraid.

Comment 11 Rob Cernich 2013-12-02 17:23:28 UTC
The remaining issue is not related to the tooling.  As I stated above, the issue can be fixed by updating the schemaLocation attribute from orders.base to orders-base.xsd (i.e. change it to the actual schema location).

Comment 12 Brian Fitzpatrick 2013-12-02 17:27:47 UTC
That's true, but then the quickstart doesn't run for me. It fails with errors.

Comment 13 Rob Cernich 2013-12-02 17:33:33 UTC
You'll need to update the catalog file as well.  Or...Instead of updating the XSD, you could update the readme to tell users to add the catalog file packaged with the quickstart to their list of catalogs (preferences, XML->XML Catalog, then add a catalog entry, specifying the catalog in the xsd folder).

Comment 14 JBoss JIRA Server 2013-12-03 00:00:32 UTC
Brian Fitzpatrick <bfitzpat> updated the status of jira SWITCHYARD-1652 to Reopened

Comment 15 JBoss JIRA Server 2013-12-03 00:00:32 UTC
Brian Fitzpatrick <bfitzpat> made a comment on jira SWITCHYARD-1652

Reopening to address some XML validation errors

Comment 16 JBoss JIRA Server 2013-12-03 00:01:07 UTC
Brian Fitzpatrick <bfitzpat> made a comment on jira SWITCHYARD-1652

Patch fixes the schema validation errors.

Comment 17 Andrej Podhradsky 2014-01-21 19:07:32 UTC
Rob or Brian, could you describe me what's the correct workaround, please?

Comment 18 Rob Cernich 2014-01-21 19:14:47 UTC
Andrej, I think you need to add src/main/resources/xsd/catalog.xml to your XML Catalog preferences (Window->Preferences..., under XML).  This will allow the Eclipse XML validator to resolve the schemaLocation, orders.base.  In other words, you need to configure Eclipse to use the same catalog file that the runtime will use during execution.  Hope that helps.

Comment 19 JBoss JIRA Server 2014-06-16 23:52:02 UTC
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1654 to Closed

Comment 20 Douglas Palmer 2014-10-24 16:04:48 UTC
Updated the quickstart to remove errors/warnings. Added instructions to the Readme on how to configure the XML catalog in eclipse.

Comment 21 JBoss JIRA Server 2014-11-17 15:38:48 UTC
Douglas Palmer <dpalmer> updated the status of jira SWITCHYARD-2385 to Reopened


Note You need to log in before you can comment on or make changes to this bug.