You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Rocks Wang <wa...@mini88.net> on 2010/10/11 10:47:02 UTC

"java/samples" causes dependency conflict

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


RE: EXTERNAL: Re: "java/samples" causes dependency conflict

Posted by "Terlecki, Stephen" <st...@lmco.com>.
The integration with Shindig in Eureka Streams is at an adapter layer.  Our model is written to JPA, but the model works for Eureka Streams and is then adapted to shindig through the service handlers.  The JPA model itself wouldn't be totally portable, but it is a good reference.

I didn't realize that the sample model inside shindig was not JPA.  To be honest, I haven't looked too much at the sample model inside Shindig.

Steve T.

From: Mark Weitzel [mailto:weitzelm.ibm@gmail.com]
Sent: Monday, October 11, 2010 6:10 PM
To: dev@shindig.apache.org
Cc: Dave Johnson; Steve Terlecki; Terlecki, Stephen
Subject: EXTERNAL: Re: "java/samples" causes dependency conflict

Paul,
In addition to Dave, I think Steve Terlecki and the Eureka Streams team used JPA. Maybe there's something they might want to contribute back to replace samples.
On Mon, Oct 11, 2010 at 1:02 PM, Paul Lindner <li...@inuus.com>> wrote:
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<http://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 <wa...@mini88.net>> 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 -- lindner@inuus.com<ma...@inuus.com> -- linkedin.com/in/plindner<http://linkedin.com/in/plindner>


Re: "java/samples" causes dependency conflict

Posted by Mark Weitzel <we...@gmail.com>.
Paul,
In addition to Dave, I think Steve Terlecki and the Eureka Streams team used
JPA. Maybe there's something they might want to contribute back to replace
samples.

On Mon, Oct 11, 2010 at 1:02 PM, Paul Lindner <li...@inuus.com> wrote:

> 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 <wa...@mini88.net> 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 -- lindner@inuus.com -- linkedin.com/in/plindner
>

Re: "java/samples" causes dependency conflict

Posted by Paul Lindner <li...@inuus.com>.
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 <wa...@mini88.net> 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 -- lindner@inuus.com -- linkedin.com/in/plindner