![]() ![]() ![]() The rebel.xml file is created, with the classpath configuration pointing to the WEB-INF/classes of the project in the plugin SDK.īut when I alter my portlet class, nothing happen in the portal : the class is compiled by the IDE in $/portlets/myproject/docroot/WEB-INF/classes, but never deployed to my app server. Next step, I add the jrebel nature to one of my portlet projects. (c) Copyright ZeroTurnaround OU, Estonia, Tartu. JRebel: Starting logging to file: C:\Documents and Settings\utilisateur\.jrebel\jrebel.log The java agent seems to ben installed, as I can see the following log lines : Then I add my liferay server to jrebel managed servers through the JRebl perspective. I also use Liferay IDE plugin for Eclipse.Įverything goes smooth during jrebel plugin installation. Reload your browser, and voila! Instant changes! No redeploy!.Make some Java code changes to your app and click Save in your IDE.Deploy the WAR to the Liferay /deploy folder.Start Tomcat with the liferay/tomcat/bin/startup.sh script (startup.bat on Windows).Liferay Plugins SDK: docroot/WEB-INF/src/rebel.xml.You can also generate the rebel.xml file with a Maven goal. Create a rebel.xml file that will be deployed in the runtime classpath of the WAR:Note that if you install the JRebel plugin for Eclipse, IntelliJ 8/9, IntelliJ X, or NetBeans) you can right click on the project and have the IDE generate the file.On Windows, add the following to the LIFERAY_HOME/tomcat/bin/setenv.bat file:.On Mac, add the following to the LIFERAY_HOME/tomcat/bin/setenv.sh script:.On the Mac, I find it's best to do this inside the $HOME/.MacOSX/ist file: JRebel is often used through an IDE like IntelliJ and Eclipse but can be used without an IDE. It is not an IDE plugin, framework, application server, or custom JVM. JRebel skips the rebuild, restart, and redeploy cycle common in Java development. Set the REBEL_HOME environment variable. JRebel is a JVM plugin that allows developers to reload code changes instantly.For example, on the Mac: /Applications/ZeroTurnaround/JRebel Install JRebel to it's default location. JRebel allows for newly compiled code to be redeployed without restarting the application.The JRebel documentation is quite good, but here are some quick instructions for how to get started with JRebel and the Liferay Tomcat bundle: I'm hooked! Over the past 6 years of portlet development, this product could have saved me COUNTLESS hours of development time waiting for redeploys. Simply put, this product is a MUST HAVE for Liferay portlet developers. Needless to say, redeploying WARs is part of the very fabric of a Liferay portlet developer's life, so I knew that I had to give this product a try with my next ICEFaces 2 portlet with PortletFaces Bridge.Īnd to my utter amazement. If you have templates which depend on Scala code thats reloaded by JRebel, it might be that the templates by default are not. Jevgeni described the benefits of JRebel, a JVM-plugin that makes it possible for Java developers to instantly see any code change made to an app without redeploying. One of the exhibitors there was and I had the privilege of sitting next to founder Jevgeni Kabanov over dinner one night. Back in April of this year I had the opportunity to speak at the CON-FESS conference in Vienna, Austria. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |