Hey Bruce,
With the change made to the setup_files.sh script to point to domain1, some of the required changes to spec2004-1 would not be occurring. I would do the following.
1. Shutdown the glassfish domain
2. Delete the /opt/glassfish3/glassfish/domains/spec2004-1 directory
3. Undo the domain directory changes you made to setup_files.sh to put spec2004-1 back in as the domain directory
4. Rerun the setup_files.sh script and capture the output of the script
See if the atomicity tests work, and if they don't post the output of the setup_files.sh script to the forum and we can take a look at it.
Thanks,
Andy