I am running Netbeans 18.
I created a Web application using ant in order to run JSPs and Servlets that connected to a MySQL database.
I am using a version 8 MySQL driver and have connected it as a library no success here.
I have tried placing the MySQL Connector jar file into WEB-INF/lib also no success.
I have also added the following
<path id="classpath">
<pathelement location="WEB-INF/lib/mysql-connector-java-8.0.30.jar"/>
</path> to the ANT build-impl.xml file with no success.
I have also connected to the database on the services tab with success but my application will not find the driver.
Can someone give some pointers as to how I go about fixing this please.