In case JBoss AS 7 gives you  an exception like this...


Caused by: Unexpected character '=' (code 61); expected a semi-colon after the reference for entity 'characterSetResults'
 at [row,col {unknown-source}]: [9,106]
        at [jboss-as-server-7.1.2.Final.jar:7.1.2.Final]
        ... 5 more forgot to escape JDBC URL in your datasource definition.


Replace & with &  (as & is a start of XML entity) and that should fix it.