Hot Swap Agent doesn't work with Java 8 and To

2019-08-27 12:59发布

问题:

I have a question about hot swap agent. I configured it with java 8 and tomcat 8.0.26 64 bit. When I start server under Eclipse I got some errors:

Caused by: compile error: cannot find constructor org.apache.catalina.webresources.FileResource(org.apache.catalina.webresources.StandardRoot,java.lang.String,java.io.File,boolean)

and

Caused by: org.hotswap.agent.javassist.NotFoundException: getResource(..) is not found in org.apache.catalina.loader.WebappClassLoader

I put more detailed stack trace if it's needed.

I red that hot swap has problems with tomcat 8 to 8.0.23 version, but newer versions should work. I'm using 0.3 version of Hot Swap Agent. Any ideas?