Hello,
Java melody is not capturing anymore the SQL traffic : we used it for several years to monitor an production application based on embedded Tomcat without having this kind of problem.
There was no error in the log but after putting Java melody logged in debug I had the following error :
DEBUG 2024-02-27 11:52:25,861 [main] [][] net.bull.javamelody [] - rebinding datasource java:comp/env/jdbc/<datasource> failed, skipping it
javax.naming.OperationNotSupportedException: Context is read only
at org.apache.naming.NamingContext.checkWritable(NamingContext.java:1004) ~[tomcat-embed-core-9.0.83.jar:9.0.83]
at org.apache.naming.NamingContext.bind(NamingContext.java:923) ~[tomcat-embed-core-9.0.83.jar:9.0.83]
at org.apache.naming.NamingContext.rebind(NamingContext.java:230) ~[tomcat-embed-core-9.0.83.jar:9.0.83]
at org.apache.naming.NamingContext.rebind(NamingContext.java:246) ~[tomcat-embed-core-9.0.83.jar:9.0.83]
at org.apache.naming.SelectorContext.rebind(SelectorContext.java:237) ~[tomcat-embed-core-9.0.83.jar:9.0.83]
But it's didn't give much detailed on the reason of this error.
Best Regards
Loïc