Deployment on Glassfish => ordering of xml elements is important

We got the J2EE Application runnable on the WebSphere 6.1 with manually created
deployment descriptors ( by the help of Netbeans ).

Now I created the descriptors for Glassfish. Deployment issued a lot of warnings about
wrong child elements for "ejb" in the sun-ejb-jar.xml.

Checking file:/users/trinomic/ewer/entw/J2EE-JKASSA/jkassa/trunk/config/server/customers/drb/test/deployment/glassfish/ejb-jar/META-INF/sun-ejb-jar.xml...
The content of element type "ejb" must match "(ejb-name,jndi-name?,ejb-ref*,resource-ref*,resource-env-ref*,service-ref*,message-destination-ref*,pass-by-reference?,cmp?,principal?,mdb-connection-factory?,jms-durable-subscription-name?,jms-max-messages-load?,ior-security-config?,is-read-only-bean?,refresh-period-in-seconds?,commit-option?,cmt-timeout-in-seconds?,use-thread-pool-id?,gen-classes?,bean-pool?,bean-cache?,mdb-resource-adapter?,webservice-endpoint*,flush-at-end-of-method?,checkpointed-methods?,checkpoint-at-end-of-method?)". [149]
XML validation finished.

After looking and trying to validate in NetBeans I didn't find anything wrong, but there
was the
element before the 's.
This caused the error.
When moving after the 's, deployment could
continue ...