2 Replies Latest reply on Dec 7, 2016 4:12 AM by lhein

    Why Attribute 'id' was add by the jboss developer sudio

    tzachi.cohen

      Hi,

      I add import to my camel context xml, in this way, see in bold

       

      <beans xmlns="http://www.springframework.org/schema/beans"

          xmlns:aop="http://www.springframework.org/schema/aop"

          xmlns:context="http://www.springframework.org/schema/context"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans                     http://www.springframework.org/schema/beans/spring-beans-3.0.xsd                    http://camel.apache.org/schema/spring                     http://camel.apache.org/schema/spring/camel-spring.xsd                               http://www.springframework.org/schema/aop                      http://www.springframework.org/schema/aop/spring-aop-3.0.xsd                   http://www.springframework.org/schema/context                  http://www.springframework.org/schema/context/spring-context.xsd">

        

      <import  resource="ILBeans.xml"/>

       

      but when  I open the  source of the camel context an id was add to import by the jboss studio tool, and id seem invalid attribute for import, so I get this error

      Attribute 'id' is not allowed to appear in element 'import

       

      The tool change this line:

      <import  resource="ILBeans.xml"/>

       

      to this line:

       

      <import id="import-46170b7e-ef6d-4b91-b408-c4954a51f881" resource="ILBeans.xml"/>

       

       

      That seem failed pass the xsd validation as id isn't allowed in import attribute,

       

      please advise if they are any known solution for this,

       

      Thanks Tzachi,