[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-5444) ESB jboss-esb.xml schema location needs fixing

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Thu Jan 21 05:51:19 EST 2010


    [ https://jira.jboss.org/jira/browse/JBIDE-5444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12507466#action_12507466 ] 

Viacheslav Kabanovich commented on JBIDE-5444:
----------------------------------------------

The ESB project wizard generates file

<jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.2.0.xsd" parameterReloadSecs="5">
</jbossesb>

It has attribute xmlns but misses attributes xmlns:xsi and xsi:schemaLocation. ESB files created by ESB File wizard, and even though the they use old schema location, content assist works because it is registered in org.eclipse.wst.xml.core.catalogContributions.

Attribute xmlns must contain namespace uri, not schema location. In particular case, when namespace uri coincides with schema location attributes xmlns:xsi and xsi:schemaLocation may be omitted. However, looking into jbossesb-1.0.1.xsd at new location, I see that it is the same old uri. So, I would recommend to generate file as follows:

<jbossesb
 xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd">
</jbossesb>

Here only the location part of xsi:schemaLocation (which maps uri to location) is replaced to the new valid value.


> ESB jboss-esb.xml schema location needs fixing
> ----------------------------------------------
>
>                 Key: JBIDE-5444
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-5444
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: esb
>    Affects Versions: 3.1.0.CR1
>            Reporter: Stelios Koussouris
>            Assignee: Viacheslav Kabanovich
>            Priority: Blocker
>             Fix For: 3.1.0.CR2
>
>
> When creating a new jboss-esb.xml file using JBoss Developer Studio autocompletion does not work because the generated file points to a schema location that does not exist. It seems the correct location is:
> http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd
> whilst JBDS uses by default
> http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list