I'm using JRebel for quite while.
In order to run w/ JRebel, you need to apply following patch:
### Eclipse Workspace Patch 1.0
#P magnolia-core
Index: src/main/java/info/magnolia/init/properties/SystemPropertySource.java
===================================================================
--- src/main/java/info/magnolia/init/properties/SystemPropertySource.java
(revision 55742)
+++ src/main/java/info/magnolia/init/properties/SystemPropertySource.java
(working copy)
@@ -45,6 +45,7 @@
public SystemPropertySource() {
super(System.getProperties());
+
getProperties().remove("com.zeroturnaround.bundled.org.apache.commons.logging.Log");
}
}
Since it's not really a fix, but rather workaround for Magnolia's overzealous
approach to instantiation of classes in system properties, this patch is not
going to be committed.
HTH,
Jan
On Mar 15, 2012, at 1:14 PM, Xavier Sampedro Valdelvira (via Magnolia Forums)
wrote:
> Hello.
>
> I have tried to migrate our project (empty webapp + blossom module) to 4.5.1.
>
> We start Magnolia in Maven Jetty and without JRevel java agent everything
> works fine.
>
> With JRebel however, we are getting this Exception on startup (full trace
> http://pastebin.com/STLM74Tr) :
>
> Could not find a suitable constructor in
> com.zeroturnaround.bundled.org.apache.commons.logging.impl.SimpleLog. Classes
> must have either one (and only one) constructor annotated with @Inject or a
> zero-argument constructor that is not private.
> at
> com.zeroturnaround.bundled.org.apache.commons.logging.impl.SimpleLog.class(JRebel:76)
>
> That is Guice is unable to instantiate SimpleLog, sort of...
>
> Anyone has success starting 4.5.1 with JRebel?
>
> Cheers.
>
> Xavier
>
> --
> Context is everything:
> http://forum.magnolia-cms.com/forum/thread.html?threadId=09d25e41-8ad6-48f6-820f-4bb553093e32
>
>
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------