I stumbled onto this question: how to set up glassfish-resource.xml and web.xml? which helped me to solve my issue. However, I almost completely bypassed it because there were no answers to it. Fortunately, I kept tabbing back and forth between my issue and re-reading his question and got to the last section of his question in which he posts his ultimate solution.
I'm going to leave a comment saying that it would be good to simply answer his own question. However, considering the age of the question and the last time the user has been seen, I think the likelihood of him returning is low. Should I answer his question with how I solved his solution while also adding maybe some descriptions as to why this is a factor or maybe what the issue was or is there any way to edit the question so as to give the questioner credit?