i am having the same exact problem trying to do a lookup of just "ConnectionFactory". what version of jboss are you running? i am using 2.4.1. any help would greatly be appreciated!
If i remember correctly it's because you've got the standard j2ee.jar on your classpath and the jndi is out of date. try putting jboss-j2ee.jar on your classpath instead.