your going to have to provide more info if you need some help
More info would be nice, but on meantime have a look at : https://docs.jboss.org/author/display/AS7/How+do+I+migrate+my+application+from+AS5+or+AS6+to+AS7
Specially the new JNDI from JEE6. I found out that lookups like: context.lookup("XAConnectionFactory") won't work anymore on JBAS7. You now have to qualify:
"java:comp/env", "java:module/env", or
"java:jboss/env", depending on the context.
Give it a try