facebook

XML validation [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #202835 Reply

    Marcus Beyer
    Member

    I have this in a merge file so that it gets merged into jboss.xml:

    <container-configurations>
    <container-configuration extends=”Standard CMP 2.x EntityBean”>
    <container-name>foobar</container-name>
    <commit-option>A</commit-option>
    <insert-after-ejb-post-create>true</insert-after-ejb-post-create>
    </container-configuration>
    </container-configurations>

    In jboss.xml I get a XML validation error that “commit-option” is not allowed here.

    I checked the DTD and “commit-option” is in there:

    <!ELEMENT container-configuration (container-name , call-logging?,
    invoker-proxy-binding-name?, sync-on-commit-only?,
    insert-after-ejb-post-create?, container-interceptors? ,
    instance-pool? , instance-cache? , persistence-manager? , web-class-loader? ,
    locking-policy? , container-cache-conf? , container-pool-conf? ,
    commit-option? , optiond-refresh-rate? , security-domain?, cluster-config?,
    depends*)>

    What’s wrong?

    thanx!
    Marcus

    #202836 Reply

    Marcus Beyer
    Member

    Ah, the order seems to be of importance. Sorry, I am not so good in reading DTDs 😉

    this works:

    <container-configurations>
    <container-configuration extends=”Standard CMP 2.x EntityBean”>
    <container-name>foobar</container-name>
    <insert-after-ejb-post-create>true</insert-after-ejb-post-create>
    <commit-option>A</commit-option>
    </container-configuration>
    </container-configurations>

    #202859 Reply

    Riyad Kalla
    Member

    No worries, no one can read them 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: XML validation [Closed]

You must be logged in to post in the forum log in