Just getting rid of the jndi.properties file solved this issue, however, not AS7 is having problem finding the TransactionManager. I put JBossTransactionManagerLookup in persistence.xml but that did not help either. Removing the transaction manager lookup completely did not help either.
Any pointers?