Unable to get it working on Tomcat 9 with Struts 2.

60 views
Skip to first unread message

Bharath Srinivasan

unread,
Aug 23, 2022, 11:49:18 AM8/23/22
to HotswapAgent
Hi I am Using Trava Open JDK 8. 

Got the tomcat to read hotswap-agent.properties. 
Had set the the following properties. 

  • extraClasspath=/Users/srinivasan-0963/builds/dev_resource/AdventNetBuilder/Sas/tomcat/webapps/ROOT/WEB-INF/classes
  • autoHotswap=true
  • autoHotswap.port=5005
  • LOGGER=debug
Got the following Debug Log messages when starting tomcat. 

----------> Parent Classloader:

java.net.URLClassLoader@44c8afef

 patched with plugin classes from agent classloader sun.misc.Launcher$AppClassLoader@18b4aac2.

HOTSWAP AGENT: 20:52:42.445 DEBUG (org.hotswap.agent.config.PluginConfiguration) - Classloader contains 'hotswap-agent.properties' at location 'file:/Users/srinivasan-0963/builds/dev_resource/AdventNetBuilder/Sas/tomcat/webapps/ROOT/WEB-INF/classes/hotswap-agent.properties'

HOTSWAP AGENT: 20:52:42.445 DEBUG (org.hotswap.agent.util.classloader.URLClassLoaderHelper) - Added extraClassPath URLs [file:/Users/srinivasan-0963/builds/dev_resource/AdventNetBuilder/Sas/tomcat/webapps/ROOT/WEB-INF/classes/] to classLoader ParallelWebappClassLoader

  context: ROOT

  delegate: false

-------

Compiled the classes and tried Copying  .class files alone and also tried com/././x.class to the extraClassPath folder mentioned above. Hot Reload did not happen. Ant pointers ?
Reply all
Reply to author
Forward
0 new messages