Recently, I downloaded a web app which uses Ant-deploy.xml so I open it with Netbeans
IDE 8.2.
The problem is that whenever I changed something, for eg. the driver uses one which doesn't work for MYSQL version 8, it will gives me the message that the persistence.xml cannot be deleted when I did a clean and build.
Furthermore, after I changed the persistence xml, it keeps giving me the old message from Tomcat.server log which doesn't apply any more.
<quote>
<"jdbc:mysql://localhost:3306/music_store?autoReconnect=true&UseLegacyDatetimeCode=false&serverTimezone=UTC&useSSL=False"/>
</quote>
And here's the error message:
Caused by: Exception [EclipseLink-30009] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while trying to load persistence unit at url: file:/C:/Users//MusicStore-master/MusicStore-master/build/web/WEB-INF/classes/
Internal Exception: Exception [EclipseLink-30004] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.PersistenceUnitLoadingException
Exception Description: An exception was thrown while processing persistence.xml from URL: file:/C:/Users//MusicStore-master/MusicStore-master/build/web/WEB-INF/classes/
Internal Exception:
(1. The reference to entity "ampUseLegacyDatetimeCode" must end with the ';' delimiter.)
How do I refresh the
tomcat directory in this case?
Another strange thing is that Tomcat is residing at AppData Folder! And so any role etc has to be specified in the tomcat-user.xml there!
I am unfamiliar with ant-deploy.xml.
Can I know if I were to delete ant-deploy.xml will it affect running the app to see how it run?