I am sorry that I posted in this forum, as JCA clearly has nothing to bo with my problem. I was tired when creating the post.
I have solved the problem my self. It turns out that the DTD of the document I was trying to transform was not well formed. It seems that while JBoss tries to validate the xml-document before parsing, Tomcat does not.