Page 1 of 1

How to activate JRebel? Or JRebel Alternative? [SOLVED]

Posted: Wed Nov 28, 2012 5:02 pm
by skystar3
I have configured my site with JRebel with the following tutorial http://docs.broadleafcommerce.org/curre ... Setup.html

but when starting the site ant task jetty-demo-jrebel i am getting the following log:

Buildfile: C:\Users\Ahmad\eclipse-workspace\DemoSite\site\build.xml
start-db:
[echo] Starting Data Base...
jetty-demo-jrebel:
[artifact:mvn] #############################################################
[artifact:mvn] JRebel 4.5.4 (201201061156)
[artifact:mvn] (c) Copyright ZeroTurnaround OU, Estonia, Tartu.
[artifact:mvn] Over the last 1 days JRebel prevented
[artifact:mvn] at least 0 redeploys/restarts saving you about 0 hours.
[artifact:mvn] YOU DO NOT HAVE A VALID JREBEL LICENSE!
[artifact:mvn]
[artifact:mvn] Please run JRebel Configuration Wizard to apply for
[artifact:mvn] evaluation license.
[artifact:mvn]
[artifact:mvn] If you think you should not see this message contact
[artifact:mvn] support@zeroturnaround.com or check that you have your
[artifact:mvn] license file in the same directory as the JAR file.
[artifact:mvn] The following plugins are disabled at the moment:
[artifact:mvn] * Apache MyFaces plugin (set -Drebel.myfaces_plugin=true to enable)
[artifact:mvn] Reloads JSF configuration and reconfigures managed beans.
[artifact:mvn] * Click plugin (set -Drebel.click_plugin=true to enable)
[artifact:mvn] Reloads menu.xml menu definitions of Apache Click projects.
[artifact:mvn] * JRuby Plugin (set -Drebel.jruby_plugin=true to enable)
[artifact:mvn] * Jersey plugin (set -Drebel.jersey_plugin=true to enable)
[artifact:mvn] Reloads Jersey configuration from Java annotations.
[artifact:mvn] * Lift plugin (set -Drebel.lift_plugin=true to enable)
[artifact:mvn] Supports reloading singleton objects that extend RestHelper, MVCHelper,
[artifact:mvn] LiftScreen or Wizard.
[artifact:mvn] * Oracle ADF Core plugin (set -Drebel.adf_core_plugin=true to enable)
[artifact:mvn] JRebel ADF Core Plugin
[artifact:mvn] * Oracle ADF Faces plugin (set -Drebel.adf_faces_plugin=true to enable)
[artifact:mvn] JRebel ADF Faces Plugin
[artifact:mvn] * Seam-Wicket plugin (set -Drebel.seam_wicket_plugin=true to enable)
[artifact:mvn] Integration with load time weaving seam annotations to wicket classes
[artifact:mvn] (-javaagent:<path-to-jboss-seam-wicket-jar>)
[artifact:mvn] * WebObjects plugin (set -Drebel.webobjects_plugin=true to enable)
[artifact:mvn] WebObjects JRebel Plugin
[artifact:mvn] #############################################################
[artifact:mvn] JRebel: A newer version '5.1.1' is available for download
[artifact:mvn] JRebel: from http://www.zeroturnaround.com/jrebel/upgrade/
[artifact:mvn] Listening for transport dt_socket at address: 8000
[artifact:mvn] [INFO] Scanning for projects...
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] ------------------------------------------------------------------------
[artifact:mvn] [INFO] Building site 1.0
[artifact:mvn] [INFO] ------------------------------------------------------------------------
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] --- keytool-maven-plugin:1.2:clean (clean) @ site ---
[artifact:mvn] [INFO] Keystore file 'C:\Users\Ahmad\eclipse-workspace\DemoSite\site\target\mycompany\WEB-INF\blc-example.keystore' deleted successfully.
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] --- keytool-maven-plugin:1.2:genkey (genkey) @ site ---
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ site ---
[artifact:mvn] [debug] execute contextualize
[artifact:mvn] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[artifact:mvn] [INFO] Copying 16 resources
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] --- javarebel-maven-plugin:1.0.5:generate (generate-rebel-xml) @ site ---
[artifact:mvn] [INFO] Processing com.mycompany:site with packaging war
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ site ---
[artifact:mvn] [INFO] Nothing to compile - all classes are up to date
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] --- maven-war-plugin:2.1.1:exploded (default-cli) @ site ---
[artifact:mvn] [INFO] Exploding webapp
[artifact:mvn] [INFO] Assembling webapp [site] in [C:\Users\Ahmad\eclipse-workspace\DemoSite\site\target\mycompany]
[artifact:mvn] [INFO] Processing war project
[artifact:mvn] [INFO] Copying webapp resources [C:\Users\Ahmad\eclipse-workspace\DemoSite\site\src\main\webapp]
[artifact:mvn] [INFO] Webapp assembled in [1243 msecs]
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] >>> jetty-maven-plugin:8.1.5.v20120716:run (default-cli) @ site >>>
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] --- keytool-maven-plugin:1.2:clean (clean) @ site ---
[artifact:mvn] [INFO] Keystore file 'C:\Users\Ahmad\eclipse-workspace\DemoSite\site\target\mycompany\WEB-INF\blc-example.keystore' deleted successfully.
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] --- keytool-maven-plugin:1.2:genkey (genkey) @ site ---
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ site ---
[artifact:mvn] [debug] execute contextualize
[artifact:mvn] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[artifact:mvn] [INFO] Copying 16 resources
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] --- javarebel-maven-plugin:1.0.5:generate (generate-rebel-xml) @ site ---
[artifact:mvn] [INFO] Processing com.mycompany:site with packaging war
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ site ---
[artifact:mvn] [INFO] Nothing to compile - all classes are up to date
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ site ---
[artifact:mvn] [debug] execute contextualize
[artifact:mvn] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[artifact:mvn] [INFO] skip non existing resourceDirectory C:\Users\Ahmad\eclipse-workspace\DemoSite\site\src\test\resources
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ site ---
[artifact:mvn] [INFO] No sources to compile
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] <<< jetty-maven-plugin:8.1.5.v20120716:run (default-cli) @ site <<<
[artifact:mvn] [INFO]
[artifact:mvn] [INFO] --- jetty-maven-plugin:8.1.5.v20120716:run (default-cli) @ site ---
[artifact:mvn] [INFO] Configuring Jetty for project: site
[artifact:mvn] [INFO] Webapp source directory = C:\Users\Ahmad\eclipse-workspace\DemoSite\site\target\mycompany
[artifact:mvn] [INFO] Reload Mechanic: automatic
[artifact:mvn] [INFO] Classes = C:\Users\Ahmad\eclipse-workspace\DemoSite\site\target\mycompany\WEB-INF\classes
[artifact:mvn] [INFO] Context path = /
[artifact:mvn] [INFO] Tmp directory = C:\Users\Ahmad\eclipse-workspace\DemoSite\site\target\tmp
[artifact:mvn] [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[artifact:mvn] [INFO] Web overrides = none
[artifact:mvn] [INFO] web.xml file = file:/C:/Users/Ahmad/eclipse-workspace/DemoSite/site/target/mycompany/WEB-INF/web.xml
[artifact:mvn] [INFO] Webapp directory = C:\Users\Ahmad\eclipse-workspace\DemoSite\site\target\mycompany
[artifact:mvn] 2012-11-28 16:46:43.626:INFO:oejs.Server:jetty-8.1.5.v20120716


Also have this file YOU DO NOT HAVE A VALID JREBEL LICENSE.error under site folder

So how to activate JRebel then?

Re: How to activate JRebel?

Posted: Thu Nov 29, 2012 7:37 am
by denis
Hi,

First of all do you have a valid JRebel licence?
Then you have to configure the path to Jrebel jar into build.properties :

Code: Select all

jrebel.path=D:/Kazan/eclipse/plugins/org.zeroturnaround.eclipse.embedder_5.0.1.RELEASE-201207191833/jrebel/jrebel.jar

Re: How to activate JRebel? Or JRebel Alternative?

Posted: Thu Nov 29, 2012 9:19 am
by skystar3
Hi Denis,

Unfortunately i don't have a valid license, is there any free version of JRebel? or is there any free alternative that we can configure it with Broadleaf?

Does anybody tried DCEVM? if yes, then how to configure it with broadleaf?

Re: How to activate JRebel?

Posted: Thu Nov 29, 2012 10:37 am
by phillipuniverse
Jrebel comes with a free 14-day trial (http://zeroturnaround.com/software/jrebel/download/) but that's about it.

We have not really investigated any other JRebel alternatives. DCEVM looks pretty interesting. If you want to try it alternatives and report back, we would love to hear about it. I believe that they would all work similar to JRebel in that you just specify a jar to the -javaagent JVM argument (in your case it might be dcevm.jar instead of jrebel.jar). I do know we have made some specific changes to BLC to resolve problems we ran into with JRebel specifically reloading classes. Don't know if those would translate to any alternatives.

Re: How to activate JRebel? Or JRebel Alternative?

Posted: Tue Dec 04, 2012 11:31 am
by skystar3
OK....Followed the installation from here http://ssw.jku.at/dcevm/binaries/

then i have added this new ant

Code: Select all

<target name="jetty-demo-dcevm" depends="start-db">
         <delete dir="war/WEB-INF/lib"/>
         <artifact:mvn mavenHome="${maven.home}" fork="true">
            <jvmarg value="-XX:MaxPermSize=256M" />
            <jvmarg value="-Xmx512M" />
            <jvmarg value="-Xdebug" />
            <jvmarg value="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" />
            <jvmarg value="-Drebel.root=${project.root}" />
            <jvmarg value="-Dlogs.dir=${logs.dir}" />
            <jvmarg value="-noverify" />
            <jvmarg value="-javaagent:${dcevm.path}" />
            <arg value="compile"/>
            <arg value="war:exploded"/>
            <arg value="jetty:run"/>
         </artifact:mvn>
      </target>




copied dcevm.jar from the lib/ext/ and put it under /Users/Adam/dcevm/

and added this in the build.properties

Code: Select all

dcevm.path=/Users/Adam/dcevm/dcevm.jar


Now how do i know it is working correctly, i have changed the greeting in the header.html file to Heloooo in order to test it, but nothing changed upon changing the text!

Is anything i am doing wrong here?

BTW how can i configure my account here in this forum to send me an email when i have new reply to my thread?

Re: How to activate JRebel? Or JRebel Alternative?

Posted: Tue Dec 04, 2012 2:51 pm
by phillipuniverse
Not really sure, don't have any experience with decvm. After looking at this a little more carefully, it looks like it's very different than JRebel and instead uses a modified JVM. So rather than using it as a -javaagent JVM parameter (which is how JRebel works) you're actually replacing the whole Java VM to instead use decvm (hence the 'vm' in the name). Maybe try the to form-fit this tutorial: http://blog.rafaelsanches.com/2012/02/0 ... ity-dcevm/

Re: How to activate JRebel? Or JRebel Alternative?

Posted: Tue Dec 04, 2012 5:30 pm
by phillipuniverse
Also, you can subscribe to a topic by looking at the very bottom of the page and hitting the "Subscribe Topic" link.

http://cl.ly/image/260c3w1G0c40

Re: How to activate JRebel? Or JRebel Alternative?

Posted: Wed Dec 05, 2012 10:40 am
by skystar3
I tried to adapt it with this tutorial http://blog.rafaelsanches.com/2012/02/02/spring-mvc-velocity-dcevm/
but it seems it still not working!?

I want to ask you if i have jRebel configured correctly with a valid license, and made some changes in the html files like header.html for example, can i be able to see the changes right away with jRebel?

Re: How to activate JRebel? Or JRebel Alternative?

Posted: Wed Dec 05, 2012 11:19 am
by phillipuniverse
Yup. You can always just get a free trial license of JRebel (the 14-day trial that they offer) to verify. But that's what I do locally and it works great.

Re: How to activate JRebel? Or JRebel Alternative?

Posted: Wed Dec 05, 2012 11:44 am
by skystar3
Thank you it works like a charm :)