[jbosstools-issues] [JBoss JIRA] (JBIDE-22141) jboss-app.xml validate problem in JBDS 8.0.0.GA.

Rob Stryker (JIRA) issues at jboss.org
Thu Apr 21 14:26:00 EDT 2016


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

Rob Stryker commented on JBIDE-22141:
-------------------------------------

It seems that jboss-app_7_0.xsd is supportive of jee6, and so the version flag must be version="6". 

In addition to that, it seems the current schema for jboss-app:moduleType does not use the jee:moduleType as a base, so you need to have xml like this:

{code}
<?xml version="1.1" encoding="UTF-8"?>
<jboss-app version="6" xmlns="http://www.jboss.com/xml/ns/javaee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xmlns:jbee="http://www.jboss.com/xml/ns/javaee"
	xmlns:jee="http://java.sun.com/xml/ns/javaee"
	xsi:schemaLocation="
      http://www.jboss.com/xml/ns/javaee
      http://www.jboss.org/schema/jbossas/jboss-app_7_0.xsd">
      <jee:display-name>Test</jee:display-name>
      <jee:module>
      	<jee:web>
	      	<jee:web-uri>myweb.war</jee:web-uri>
	      	<jee:context-root>SomeRoot</jee:context-root>
      	</jee:web>
      </jee:module>
      <jbee:distinct-name>MyDistinct</jbee:distinct-name>
      <jbee:module>
      	<jbee:service>bundled.sar</jbee:service>
      </jbee:module>
</jboss-app>
{code}

I have tested and it seems to deploy properly in wildfly 10.  I would imagine it should also work for eap6.4. 

> jboss-app.xml validate problem in JBDS 8.0.0.GA.
> ------------------------------------------------
>
>                 Key: JBIDE-22141
>                 URL: https://issues.jboss.org/browse/JBIDE-22141
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 4.2.3.Final
>            Reporter: xu zhang
>            Assignee: Rob Stryker
>             Fix For: 4.4.x
>
>
> Create "jboss-app.xml" from attachment of article "https://access.redhat.com/solutions/268733" in JBDS 8.0.0, error shows:
> ~~~
> No grammar constraints (DTD or XML Schema) referenced in the document.
> ~~~
> Customer wants JBDS to validate "jboss-app.xml" correctly.
> Please let us know if it will be resolved in the next release/patch.



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


More information about the jbosstools-issues mailing list