ugh..

One could probably force use of of ehcache-core instead of ehcache like
this:

--- a/java/samples/pom.xml
+++ b/java/samples/pom.xml
@@ -140,7 +140,15 @@
       <groupId>org.hibernate</groupId>
       <artifactId>hibernate</artifactId>
       <version>3.2.6.ga</version>
+      <exclusions>
+        <!-- ehcache vs ehcache-core blow up -->
+        <exclusion>
+          <groupId>net.sf.ehcache</groupId>
+          <artifactId>ehcache</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
+
     <dependency>
       <groupId>org.hibernate</groupId>
       <artifactId>hibernate-annotations</artifactId>


Can you test?

Otherwise it might be a fun project to convert the samples to use JPA...
(Paging snoopdave who did this for roller....)


On Mon, Oct 11, 2010 at 1:47 AM, Rocks Wang <[email protected]> wrote:

> Hi all,
>
>
>
> I was trying to test samples following the instructions given by
>
> https://cwiki.apache.org/confluence/display/SHINDIG/Connect+mysql+database+t
> o+shindig
>
> However it's not smooth, when I was running Jetty, guice injection failed
> due to "NoSuchMethodException", I found that it's because Hibernate
> (introduced by samples) depends on ehcache 1.2.3 which conflicts with
> ehcache-core-2.2.0.jar (used by shindig).
>
> I've tried to add "net.sf.ehcache: ehcache" into "exclusions", however
> "ehcache-1.2.3.jar" is still going into the .war file every time I rebuild
> the project.
>
> I can work around it by manually deleting ehcache-1.2.3.jar every time, but
> it's really boring.
>
> I am not proficient in Maven, is there anyone here can help me with this
> problem?
>
>
>
> Regards,
>
> Rocks
>
>


-- 
Paul Lindner -- [email protected] -- linkedin.com/in/plindner

Reply via email to