I've written a Servlet that queries a database and displays the results. I'm developing in IntelliJ Ultimate but it doesn't deploy the MySQL jar file to the GlassFish domain lib directory. I was getting a ClassNotFound exception until I manually copied it to the domain lib directory, which fixed the problem. Below are some screenshots of my environment. I really am stuck on this.
In the image above on the right is the database window, I am able to connect to the database in Intellij.
The Below image shows the dependencies window. MySQL is listed.
I have no idea why the MySQL library is not getting deployed with the application.