[
https://jira.jboss.org/jira/browse/JBIDE-5694?page=com.atlassian.jira.plu...
]
Viacheslav Kabanovich commented on JBIDE-5694:
----------------------------------------------
Erik, you are right, org.jboss.ide.eclipse.as.core has a new version of jboss_5_1.xsd
committed by Denis in November 2009. So, why the new version does not support content
assist and the old one does? I think I have found the cause. Code in jboss_5_1.xsd has
line
<xsd:include
schemaLocation="http://www.jboss.org/j2ee/schema/jboss-common_5_1.xsd
"/>
which means that for jboss-common_5_1.xsd it goes to that public site, and gets its old
version that misses definition of webservice-descriptionType, as the result schema is not
correct and that may be a cause of content assist failure.
If this line is replaced with
<xsd:include schemaLocation="jboss-common_5_1.xsd "/>
than new version (also committed by Denis) is taken from the same folder, schema is
consistent and content assist works.
support validation/code-completion for JBoss 5.x deployment
descriptors
-----------------------------------------------------------------------
Key: JBIDE-5694
URL:
https://jira.jboss.org/jira/browse/JBIDE-5694
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: XML Structured Editor
Affects Versions: 3.1.0.CR1
Reporter: Erik Mattheis
Assignee: Viacheslav Kabanovich
Priority: Minor
Fix For: 3.1.0.CR2, 3.2.next
I've noticed some issues trying to create/edit schema-based deployment descriptors.
For instance, with the jboss.xml file below, validation seems to work, but code-completion
does not:
<?xml version="1.0" encoding="UTF-8"?>
<jboss
xmlns="http://www.jboss.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss_5_1.xsd"
version="5.1">
</jboss>
The same goes for the jboss-web.xml file below:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web
xmlns="http://www.jboss.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss-web_5_1.xsd"
version="5.1">
</jboss-web>
For the following test-ds.xml file, code-completion works but I get a warning about
referenced file errors:
<?xml version="1.0" encoding="UTF-8"?>
<datasources
xmlns="http://www.jboss.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss-ds_5_0.xsd">
</datasources>
The *-jboss-beans.xml files for the new microcontainer are also a pain, since there's
no public schema document available and the namespaces in the XML are all JBoss URNs. It
would be a big help if these had tooling support.
--
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