Page 1 of 1

BLC 1.6 How to enable jrebel?

Posted: Fri May 25, 2012 7:41 am
by nvivian
Hi

I'm running BLC locally using the 1.6.0-GA archetype and I was wondering if anyone has got jrebel working - I foolishly assumed this would just be a matter of starting the admin app using the jetty-demo-jrebel target, but this just gives a 404 error in a popup after login - something about problem accessing /admin/utility.service NOT_FOUND

(I've tried with the 1.5.4-GA release as well with the same result)

Love to know what other people's mileage has been

Regards

Re: BLC 1.6 How to enable jrebel?

Posted: Fri May 25, 2012 10:35 am
by phillipuniverse
You actually have it right; jetty-demo-jrebel will start up the site with Jrebel. However, if you're trying to hotswap your classes in the admin as well as the server, you need to be in GWT hosted mode which is the gwt-debug-jrebel. This is currently configured to start up the server on port 8888 and wait until you hook up the debugger on port 8001. So you would run the ant task, hook up a debugger to port 8001 in Eclipse, and then the site starts up. Then you can access localhost:8888/broadleafdemo/admin.html.

As to the problem you're seeing, that is related to the 4.6 version of Jrebel. If you scale back to an older 4.5 version (I'm currently using 4.5.4) then that problem will not appear.

Re: BLC 1.6 How to enable jrebel?

Posted: Fri May 25, 2012 11:17 am
by phillipuniverse
One other caveat. The gwt-debug-jrebel task does not depend on the start-db task (which jetty-demo-jrebel does) so you'll need to run the start-db ant task first so the HSQL db starts up

Re: BLC 1.6 How to enable jrebel?

Posted: Fri May 25, 2012 11:32 am
by nvivian
+1 to pverheyden that gets me further along :)

Now how do I get jrebel to monitor changes to the core module so that changes to say MyCompanyProductImpl.java are picked up which I guess is my goal for all this playing around...

I had to use Firefox 10 to get the GWT widget working:- the one for Chrome is broken

I'm starting the site-war project as well - it sites on port 8080 whereas the admin is elsewhere...

One thing I notice is that all that debugging mode makes mouseing around really slow:- page refreshes crawl YMMV