I got it running now. I run as follow:
./validator.sh -classpath jboss-jca.jar my.rar
But there are errors in the log as follow:
Severity: ERROR
Section: 19.4.2
Description: A ResourceAdapter must implement a "public int hashCode()" method.
Code: org.jboss.resource.deployment.DummyResourceAdapter
Severity: ERROR
Section: 19.4.2
Description: A ResourceAdapter must implement a "public boolean equals(Object)" method.
Code: org.jboss.resource.deployment.DummyResourceAdapter
The 'jboss-jca.jar' is from Jboss EAP 5. Seems I can't use it in Jboss EAP 6 and have to create the new RAR myself?