Tiur LG //Softbless 8 Years Ago Hi,I follow your instruction step by step, with same exact step and version. On the log it is saying something about hotswap agent.But I don't know to test it.What i have tried is :- Creating custom portlet (Hello world). Changing the java file, and save it, but the changes is not reflected when i refresh browser. can you share projects files that you use for testing?basically i don't know whether it is not working, OR i don't know how to test it. Please sign in to reply. Reply as... Cancel Enrique Valdes Lacasa Tiur LG //Softbless 8 Years Ago Hello Tiur. Right, so I believe that when you start the Tomcat bundle using the patched JRE, the first lines that come up in the log are something like: HOTSWAP AGENT: 9:25:49.414 INFO (org.hotswap.agent.HotswapAgent) - Loading Hotswap agent {0.3.0-SNAPSHOT} - unlimited runtime class redefinition.HOTSWAP AGENT: 9:25:50.031 INFO (org.hotswap.agent.config.PluginRegistry) - Discovered plugins: [Hotswapper, WatchResources, AnonymousClassPatch, Spring, Jersey2, Jetty, ZK, Logback, JSF, Seam, ELResolver, OsgiEquinox, WebObjects, Weld].Are you using Eclipse and Maven as well? If you give more details of your environment setup, I will try to get the same as yours and help you from there.Also, if you just share the hello world portlet that you are using (like only the Java class), I could see if it works in my station and provide you feedback on testing. Please sign in to reply. Reply as... Cancel Tiur LG //Softbless Enrique Valdes Lacasa 8 Years Ago I am using Liferay Developer Studio (Eclipse derivative i think).Last night i add autoHotswap=true to the argument, now it is working for *.java file the argument now become : -XXaltjvm=dcevm -javaagent:C:\env\tools\hotswap-agent.jar=autoHotswap=true,disablePlugin=hibernate,disablePlugin=proxy,disablePlugin=tomcat -Xmx1024m -XX:MaxPermSize=256mAnd i also need to make configuration in server configuration on Liferay Developer studio to become : Publishing > select "Never Publish Automatically"But the problem now, the *.jsp file is not reloaded.I googled, and found reference that saying something about adding this in on file hotswap-agent.properties :watchResources=${basedir}/src/main/resources dan extraWebappContext=${basedir}/src/main/webapp/htmlbut i haven't tried it.Did your configuration could reload the *.jsp file? Please sign in to reply. Reply as... Cancel Enrique Valdes Lacasa Tiur LG //Softbless 8 Years Ago - Edited Hello Tiur,Greetings on making it work. No, I am not able to reload JSPs instantly yet but it would be great to have that. I will give those hotswap agent properties a shot.By the way, I had the Publishing option as "Automatically publish when resources change" and it was still reloading the Java classes instantly. So I am not sure if "Never publish automatically" is strictly required. Since you were able to make it work, I will add your findings to the article. I will also post updates if I am able to reload JSPs as well.Regards. Please sign in to reply. Reply as... Cancel
Enrique Valdes Lacasa Tiur LG //Softbless 8 Years Ago Hello Tiur. Right, so I believe that when you start the Tomcat bundle using the patched JRE, the first lines that come up in the log are something like: HOTSWAP AGENT: 9:25:49.414 INFO (org.hotswap.agent.HotswapAgent) - Loading Hotswap agent {0.3.0-SNAPSHOT} - unlimited runtime class redefinition.HOTSWAP AGENT: 9:25:50.031 INFO (org.hotswap.agent.config.PluginRegistry) - Discovered plugins: [Hotswapper, WatchResources, AnonymousClassPatch, Spring, Jersey2, Jetty, ZK, Logback, JSF, Seam, ELResolver, OsgiEquinox, WebObjects, Weld].Are you using Eclipse and Maven as well? If you give more details of your environment setup, I will try to get the same as yours and help you from there.Also, if you just share the hello world portlet that you are using (like only the Java class), I could see if it works in my station and provide you feedback on testing. Please sign in to reply. Reply as... Cancel Tiur LG //Softbless Enrique Valdes Lacasa 8 Years Ago I am using Liferay Developer Studio (Eclipse derivative i think).Last night i add autoHotswap=true to the argument, now it is working for *.java file the argument now become : -XXaltjvm=dcevm -javaagent:C:\env\tools\hotswap-agent.jar=autoHotswap=true,disablePlugin=hibernate,disablePlugin=proxy,disablePlugin=tomcat -Xmx1024m -XX:MaxPermSize=256mAnd i also need to make configuration in server configuration on Liferay Developer studio to become : Publishing > select "Never Publish Automatically"But the problem now, the *.jsp file is not reloaded.I googled, and found reference that saying something about adding this in on file hotswap-agent.properties :watchResources=${basedir}/src/main/resources dan extraWebappContext=${basedir}/src/main/webapp/htmlbut i haven't tried it.Did your configuration could reload the *.jsp file? Please sign in to reply. Reply as... Cancel Enrique Valdes Lacasa Tiur LG //Softbless 8 Years Ago - Edited Hello Tiur,Greetings on making it work. No, I am not able to reload JSPs instantly yet but it would be great to have that. I will give those hotswap agent properties a shot.By the way, I had the Publishing option as "Automatically publish when resources change" and it was still reloading the Java classes instantly. So I am not sure if "Never publish automatically" is strictly required. Since you were able to make it work, I will add your findings to the article. I will also post updates if I am able to reload JSPs as well.Regards. Please sign in to reply. Reply as... Cancel
Tiur LG //Softbless Enrique Valdes Lacasa 8 Years Ago I am using Liferay Developer Studio (Eclipse derivative i think).Last night i add autoHotswap=true to the argument, now it is working for *.java file the argument now become : -XXaltjvm=dcevm -javaagent:C:\env\tools\hotswap-agent.jar=autoHotswap=true,disablePlugin=hibernate,disablePlugin=proxy,disablePlugin=tomcat -Xmx1024m -XX:MaxPermSize=256mAnd i also need to make configuration in server configuration on Liferay Developer studio to become : Publishing > select "Never Publish Automatically"But the problem now, the *.jsp file is not reloaded.I googled, and found reference that saying something about adding this in on file hotswap-agent.properties :watchResources=${basedir}/src/main/resources dan extraWebappContext=${basedir}/src/main/webapp/htmlbut i haven't tried it.Did your configuration could reload the *.jsp file? Please sign in to reply. Reply as... Cancel Enrique Valdes Lacasa Tiur LG //Softbless 8 Years Ago - Edited Hello Tiur,Greetings on making it work. No, I am not able to reload JSPs instantly yet but it would be great to have that. I will give those hotswap agent properties a shot.By the way, I had the Publishing option as "Automatically publish when resources change" and it was still reloading the Java classes instantly. So I am not sure if "Never publish automatically" is strictly required. Since you were able to make it work, I will add your findings to the article. I will also post updates if I am able to reload JSPs as well.Regards. Please sign in to reply. Reply as... Cancel
Enrique Valdes Lacasa Tiur LG //Softbless 8 Years Ago - Edited Hello Tiur,Greetings on making it work. No, I am not able to reload JSPs instantly yet but it would be great to have that. I will give those hotswap agent properties a shot.By the way, I had the Publishing option as "Automatically publish when resources change" and it was still reloading the Java classes instantly. So I am not sure if "Never publish automatically" is strictly required. Since you were able to make it work, I will add your findings to the article. I will also post updates if I am able to reload JSPs as well.Regards. Please sign in to reply. Reply as... Cancel
Lokesh Arora 7 Years Ago Hi, I am trying to setup DCEVM on my machine, configuration is fine but it doesn't reload the java classes. I am using following resources:DCEVM installer: DCEVM-light-8u92-installer.jarjava version: jdk1.8.0_73IDE: Eclipse Spring tool suite 3.7.2.RELEASEserver : Tomcat 8.5.3I am using external run.cmd to pass some more attributes to tomcat.passing DCEVM altjvm property in run.cmd like below:set "CATALINA_OPTS=%CATALINA_OPTS% -XXaltjvm=dcevm -javaagent:C:\BLKDeveloper\dcevm\hotswap-agent.jar=autoHotswap=true"Server starts properly showing the hotswap agent registering the base packages. Remote debug also works fine, but whenever I try to make any change in the java class, changes are not reloaded, not even restarting the server. Just to mention during the build I create the jars bundled in war files.can you help me out what could be the issue??Thanks in advance. Please sign in to reply. Reply as... Cancel
SAP Hybris 5 Years Ago For windows setup use this link https://blogs.sap.com/2018/11/01/hotswap-with-hybris-a-free-open-source-alternative-to-jrebel/ Please sign in to reply. Reply as... Cancel
Ganesh Puli 5 Years Ago Hi, I am trying to setup DCEVM with Hotswap agent on my machine for , configuration is fine but it doesn't reload the java classes . I am using following resources: Liferay Portal version 6.2.4 CE ga5/Liferay Portal version 6.2.4 CE ga2 (with these versions i tried) DCEVM installer: DCEVM-light-7u79-installer.jar java version: Java 7u79 IDE: Eclipse(neon) with liferay ide 3.2. server : Tomcat 7.0.42 ant: apache-ant-1.8.2 Please sign in to reply. Reply as... Cancel