[jboss-dev] DDs in the testsuite

Alexey Loubyansky alex at jboss.com
Mon Nov 20 13:12:04 EST 2006


I've checked in a testcase that validates EJB, WAR and EAR descriptors 
in the testsuite.
Not sure how useful it actually is assuming the DDs should be validated 
during deployment. But just to bring the issue to your attention.

Besides what I've fixed, the following are the problems found.


EJB-JAR.XML (6 out of 152 are invalid)

trunk\testsuite\output\resources\jca\inflowmdb\META-INF\ejb-jar.xml: 
cvc-complex-type.2.4.a: Invalid content was found starting with element 
'activation-config'. One of 
'{"http://java.sun.com/xml/ns/j2ee":transaction-type}' is expected. [14,29]

trunk\testsuite\output\resources\jcaprops\goodmdb\META-INF\ejb-jar.xml: 
cvc-complex-type.2.4.a: Invalid content was found starting with element 
'activation-config'. One of 
'{"http://java.sun.com/xml/ns/j2ee":transaction-type}' is expected. [16,29]

trunk\testsuite\output\resources\jcaprops\uppergoodmdb\META-INF\ejb-jar.xml: 
cvc-complex-type.2.4.a: Invalid content was found starting with element 
'activation-config'. One of 
'{"http://java.sun.com/xml/ns/j2ee":transaction-type}' is expected. [16,29]

trunk\testsuite\output\resources\jmx\undeploy\bad-inf\ejb-jar.xml: The 
content of element type "entity" is incomplete, it must match 
"(description?,display-name?,small-icon?,large-icon?,ejb-name,home?,remote?,local-home?,local?,ejb-class,persistence-type,prim-key-class,reentrant,cmp-version?,abstract-schema-name?,cmp-field*,primkey-field?,env-entry*,ejb-ref*,ejb-local-ref*,security-role-ref*,security-identity?,resource-ref*,resource-env-ref*,query*)". 
[32,16]
(this is one is expected to be bad)

trunk\testsuite\output\resources\messagedriven\jar\META-INF\ejb-jar.xml: 
cvc-enumeration-valid: Value '${test.messagedriven.transactionType}' is 
not facet-valid with respect to enumeration '[Bean, Container]'. It must 
be a value from the enumeration. [14,84]

trunk\testsuite\output\resources\messagedriven\jmscontainerinvoker\META-INF\ejb-jar.xml: 
cvc-enumeration-valid: Value '${test.messagedriven.transactionType}' is 
not facet-valid with respect to enumeration '[Bean, Container]'. It must 
be a value from the enumeration. [14,84]


WEB.XML (15 out of 36 are invalid)
The error actually appears to be in the schema
sch-props-correct.2: A schema cannot contain two global components with 
the same name; this schema contains two occurrences of 
'http://java.sun.com/xml/ns/j2ee,listenerType'. [722,40]

web-app_2_4.xsd defines type listenerType and includes j2ee_1_4.xsd 
which defines exactly the same type. Seems like a schema bug.


APPLICATION.XML (7 from 43 are invalid)

The problem is that the EARs don't include any standard module while 
they have to according to the schema but SARs.

trunk\testsuite\output\resources\classloader\concurrentloader\application.xml: 
The content of element type "application" is incomplete, it must match 
"(icon?,display-name,description?,module+,security-role*)". [7,15]

trunk\testsuite\output\resources\classloader\resource\application.xml: 
The content of element type "application" is incomplete, it must match 
"(icon?,display-name,description?,module+,security-role*)". [7,15]

trunk\testsuite\output\resources\deployers\jbas2904\ear\META-INF\application.xml: 
cvc-complex-type.2.4.b: The content of element 'application' is not 
complete. One of '{"http://java.sun.com/xml/ns/j2ee":display-name, 
"http://java.sun.com/xml/ns/j2ee":icon, 
"http://java.sun.com/xml/ns/j2ee":module}' is expected. [11,15]

trunk\testsuite\output\resources\jmx\invoker\ear\META-INF\application.xml: 
The content of element type "application" is incomplete, it must match 
"(icon?,display-name,description?,module+,security-role*)". [7,15]

trunk\testsuite\output\resources\jmx\loading\ext\application.xml: The 
content of element type "application" is incomplete, it must match 
"(icon?,display-name,description?,module+,security-role*)". [9,15]

trunk\testsuite\output\resources\kernel\deployment\dependspojoear\META-INF\application.xml: 
cvc-complex-type.2.4.b: The content of element 'application' is not 
complete. One of '{"http://java.sun.com/xml/ns/j2ee":display-name, 
"http://java.sun.com/xml/ns/j2ee":icon, 
"http://java.sun.com/xml/ns/j2ee":module}' is expected. [12,15]

trunk\testsuite\output\resources\util\scheduler\application.xml: The 
content of element type "application" is incomplete, it must match 
"(icon?,display-name,description?,module+,security-role*)". [9,15]



More information about the jboss-development mailing list