Hi All,
I am starting the tomcat server by passing the below params
set CATALINA_OPTS=-Xms512M -Xmx1024M -XXaltjvm=dcevm -javaagent:d:\programs\hotswap-agent-0.4.0-SNAPSHOT.jar
I starts the server by catalina jpda start
with autoHotswap=false in hotswap-agent.properties
When i starts tomcat , i gets the below
HOTSWAP AGENT: 16:51:5.048 INFO (org.hotswap.agent.HotswapAgent) - Loading Hotswap agent {0.4.0-SNAPSHOT} - unlimited runtime class redefinition.
Dynamic Code Evolution 64-Bit Server VM warning: JSR 292 is disabled in this JVM. Use -XX:+UnlockDiagnosticVMOptions -XX:+EnableInvokeDynamic to enable.
HOTSWAP AGENT: 16:51:5.292 INFO (org.hotswap.agent.config.PluginRegistry) - Plugin 'org.hotswap.agent.plugin.watchResources.WatchResourcesPlugin' initialized in ClassLoader 'sun.misc.Launcher$AppClassLoader@2edad4b8'.
HOTSWAP AGENT: 16:51:5.293 INFO (org.hotswap.agent.watch.nio.TreeWatcherNIO) - Registering directory target D:\programs\apache-tomcat-7.0.42\webapps\tops-1.0.0\WEB-INF\classes\META-INF via watched: D:\programs\apache-tomcat-7.0.42\webapps\tops-1.0.0\WEB-INF\classes
HOTSWAP AGENT: 16:51:5.310 INFO (org.hotswap.agent.config.PluginRegistry) - Discovered plugins: [Deltaspike, ELResolver, Gae, Hibernate3JPA, Hibernate3, Hibernate, Hotswapper, JavaBeans, JBossModules, Jersey2, Jetty, Mojarra, MyFaces, AnonymousClassPatch, Log4j2, Logback, OsgiEquinox, Proxy, Resteasy, ResteasyRegistry, Seam, Spring, WatchResources, WebObjects, Weld, WildFlyELResolver, ZK]
Listening for transport dt_socket at address: 8000
In the class level , D:\programs\apache-tomcat-7.0.42\webapps\tops-1.0.0\WEB-INF\classes i replaced one of my old class withe new class ,
But reloads the entire application once again , not hotswapping that particular class itself . any thougths ?
"Reloading context with name / started , ... "
I am using spring 3.2.3 , hibernate 4.3.6 , logback