[
https://issues.jboss.org/browse/JBIDE-18319?page=com.atlassian.jira.plugi...
]
Rob Stryker commented on JBIDE-18319:
-------------------------------------
Most of the PRs were accepted by wfly. Our new PR is at pull/279
One thing to note here is the following:
http://wiki.eclipse.org/index.php/Using_the_XML_Catalog
Question: I've registered an XML Schema by namespace but XML files are still using
the 'xsi:schemaLocation' value. Why?
Answer: An explicitly specified schema location value takes precedence over XML Catalog
entries that are keyed by namespace.
So basically, if your jboss-ejb3.xml includes the xs:schemaLocation tag, validation will
try to use the remote file rather than the local catalog file. This appears to be a
feature, not a bug. (ugh) We advise you to remove the xs:schemaLocation from your xml
files if you want to use the local schema copies bundled with JBT / JBDS.
Error validating jboss-ejb3.xml
-------------------------------
Key: JBIDE-18319
URL:
https://issues.jboss.org/browse/JBIDE-18319
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: server
Affects Versions: 4.2.0.CR1
Reporter: Rob Stryker
Assignee: Rob Stryker
Fix For: 4.2.0.CR2
Cloned from:
https://issues.jboss.org/browse/WFLY-3189
I'm trying to configure code completion for jboss-ejb3.xml with schema, but fail to
do that due to the following validation error:
{noformat}
src-resolve: Cannot resolve the name 'javaee:jboss-ejb-beanType' to a(n)
'type definition' component. [33]
src-resolve: Cannot resolve the name 'javaee:jboss-ejb-jarType' to a(n) 'type
definition' component. [35]
src-resolve: Cannot resolve the name 'javaee:jboss-enterprise-beansType' to a(n)
'type definition' component. [37]
src-resolve: Cannot resolve the name 'javaee:assembly-descriptor-entry' to a(n)
'element declaration' component. [35]
src-resolve: Cannot resolve the name
'javaee:jboss-assembly-descriptor-bean-entryType' to a(n) 'type
definition' component. [39]
{noformat}
The jboss-ejb3.xml is quite simple:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<jboss:ejb-jar version="3.1" impl-version="2.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
xmlns:s="urn:security:1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd
http://www.jboss.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd">
<assembly-descriptor>
<s:security>
<ejb-name>*</ejb-name>
<s:security-domain>testsd</s:security-domain>
</s:security>
</assembly-descriptor>
</jboss:ejb-jar>
{code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)