I solved this but I am not entirely sure what the problem is yet. I was running both the client and the server on the same linux machine. The machine was behind another linux machine that was acting as a NAT. It appears that for some reason (even though in jndi.properties i specified localhost) the client was trying to contact the gateway machine. I solved this by adding "buzztroll.mcs.anl.gov" before localhost in /etc/hosts.
If anyone understands why this happened I would appreciate any insite.