I've been trying for a couple of days now but I can't seem to HotSwapAgent to work in my Spring-Boot application I'm developing in Netbeans 13 Java 17, newer Spring-Boot. The closest I've been able to achieve is getting HSA to run but when I make changes to a class it doesn't reload properly.
I've tried using different JVM's and versions, different versions of Spring-Boot, different versions of HSA but nothing has worked.
I see HSA getting initialized, TreeWatcherNIO, TomcatPlugin, JacksonPlugin, HibernatePlugin, SpringPlugin all getting initialized in classloader ParallelWebappClassLoader but when I make a change to a file I get a bunch of IllegalStateExceptions for different classes and files
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load
[javax.enterprise.util.AnnotationLiteral]
[javax.enterprise.util.AnnotationLiteral]
[org.apache.deltaspike.core.api.config.view.metadata.ViewConfigResolver]
[hotswap-agent.properties]
[io.undertow.server.handlers.resource.ResourceManager]
[hotswap-agent.properties]
Does anyone have something close to this setup running fine to help me get going?