3 Replies Latest reply on Dec 30, 2015 3:11 PM by habouhassan

    Reference file contains error jboss-ejb3.xml

    habouhassan

      Hello there,

      Trying to create a very simple MDB with JBOSS EAP 6.4

      as per the documentation, I need to reference activemq-ra.rar adapter,

      created the file jboss-ejb3.xml:

      <jboss xmlns="http://www.jboss.com/xml/ns/javaee"

        xmlns:jee="http://java.sun.com/xml/ns/javaee"

        xmlns:mdb="urn:resource-adapter-binding">

        <jee:assembly-descriptor> 

          <mdb:resource-adapter-binding> 

            <jee:ejb-name>HelloWorldQueueMDB</jee:ejb-name> 

            <mdb:resource-adapter-name>activemq-rar.rar</mdb:resource-adapter-name> 

          </mdb:resource-adapter-binding> 

        </jee:assembly-descriptor>

      </jboss>

       

      Got error from Jboss Visual Studio (Eclipse) on first line as Reference file contains error, full error message:

       

      DescriptionResourcePathLocationType
      Referenced file contains errors (jar:file:/C:/Users/Public/Public Tools/jboss-devstudio-8.1.0/studio/plugins/org.jboss.tools.as.catalog_3.0.3.Final-v20150325-0035-B129.jar!/schema/xsd/jboss-ejb3-2_0.xsd).  For more information, right click on the message in the Problems View and select "Show Details..."jboss-ejb3.xml/HelloWorldMDB/ejbModule/META-INFline 1XML Problem

      The details says:

      cannot resolve the name "javaee:jboss-ejb-beanType" to a(n) 'type definition' component

       

      Is it something with Eclipse or configuration error somewhere??

      your help is highly appreciated!

      thanks.