[jbosstools-issues] [JBoss JIRA] (JBIDE-20541) wildfly-jts-application-component-2 quickstart fails to validate

Rob Stryker (JIRA) issues at jboss.org
Wed Sep 16 02:09:00 EDT 2015


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

Rob Stryker commented on JBIDE-20541:
-------------------------------------

Version 10.x of the wildfly quickstarts has fixed the first issue (regarding the iiop schemaLocation)  but has not fixed the xml content. 

The eap7 quickstarts seem to have fixed both issues. I'm not sure if this was a merge error or not. 

> wildfly-jts-application-component-2 quickstart fails to validate 
> -----------------------------------------------------------------
>
>                 Key: JBIDE-20541
>                 URL: https://issues.jboss.org/browse/JBIDE-20541
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: server
>    Affects Versions: 4.3.0.CR1
>            Reporter: Rob Stryker
>
> See https://issues.jboss.org/browse/WFLY-5250 for followup. 
> The above quickstart fails to validate in eclipse. It has the following lines in it:
> {code}
> <jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
>                xmlns="http://java.sun.com/xml/ns/javaee"
>                xmlns:iiop="urn:iiop"
>                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-ejb3-2_0.xsd
>                   http://java.sun.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-spec-2_0.xsd
>                   urn:iiop jboss-ejb-iiop_1_0.xsd"
>                version="3.1"
>                impl-version="2.0">
>     <assembly-descriptor>
>         <iiop:iiop>
>             <ejb-name>InvoiceManagerEJBImpl</ejb-name>
>             <iiop:binding-name>jts-quickstart/InvoiceManagerEJBImpl</iiop:binding-name>
>         </iiop:iiop>
>     </assembly-descriptor>
> </jboss:ejb-jar>
> {code}
> The key line to note is:
> {code}
>                   urn:iiop jboss-ejb-iiop_1_0.xsd"
> {code}
> Using relative paths cannot guarantee the resolution of a dependent schema. I suggest you replace this with:
> {code}
> urn:iiop http://www.jboss.org/schema/jbossas/jboss-ejb-iiop_1_0.xsd"
> {code}
> However, even once that is fixed, the quickstart still has other problems. For one example:
> {code}
> cvc-complex-type.2.4.a: Invalid content was found starting with element 'iiop:iiop'. One of '{"http://
>  java.sun.com/xml/ns/javaee":security-role, "http://java.sun.com/xml/ns/javaee":method-
>  permission, "http://java.sun.com/xml/ns/javaee":container-transaction, "http://java.sun.com/xml/ns/
>  javaee":interceptor-binding, "http://java.sun.com/xml/ns/javaee":message-destination, "http://
>  java.sun.com/xml/ns/javaee":exclude-list, "http://java.sun.com/xml/ns/javaee":application-
>  exception}' is expected.
> {code}
> I strongly suggest someone test the quickstart in JBossTools and help come up with a descriptor that passes validation. 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list