Re: Adding database to Java Shindig

2010-07-15 Thread Evgeny Bogdanov

I moved service implementation and database related stuff
into Database  Shindig

Added tutorial on connecting database to shindig

Next will add a tutorial on making shindig work with
any database schema.

Should I remove the deprecated:


   How do I integrate a relational database with Shindig

Feel free to change ...
Evgeny

On 14.07.10 17:27, Henry Saputra wrote:

I think you can update the link in the Shindig wiki topic about rel database
integration at
https://cwiki.apache.org/SHINDIG/index.html#Index-HowdoIintegratearelationaldatabasewithShindig%253F

It already has a comment about being need for an update.

https://cwiki.apache.org/SHINDIG/index.html#Index-HowdoIintegratearelationaldatabasewithShindig%253F-
Henry

On Wed, Jul 14, 2010 at 8:10 AM, Evgeny Bogdanovevgeny.bogda...@epfl.chwrote:

   

Well, here is a first post how to use mysql database with java shindig.

http://vohtaski.blogspot.com/2010/07/java-shindig-how-to-add-your-own-social.html

Next post will be about connecting my own social database with shindig,
that I am doing now :)

If you find it useful, I can create a wiki page for it.
I also have a patch that does all the mentioned in post changes.
Should I upload it to jira or some other place?

Evgeny


On 13.07.10 21:56, John Hjelmstad wrote:

 

I'd be interested to see the Shindig Wiki, or some other official/easy to
find documentation (seems like Wiki is the consensus at this point
however?
what do others think?) updated with such information as well.

Many thanks,
John

On Tue, Jul 13, 2010 at 12:29 PM, Henry Saputrahenry.sapu...@gmail.com
   

wrote:
 



   

HI Evgeny,

A blog about this would be great. I be a lot other developers also
interested to hook up Shindig with their database.

- Henry

On Tue, Jul 13, 2010 at 12:49 AM, Evgeny Bogdanov
evgeny.bogda...@epfl.chwrote:



 

Thanks Franck for your help!

It seems as I found a solution (At least now I am able to login to the
database :))
I had to move all dependencies from samples/pom.xml to social/pom.xml,
if I only put dependency in social/pom.xml on artifactId = samples,
it didn't find the needed classes.

I will write a blog post on how and what I did, maybe it will
be useful for somebody.

Evgeny


On 12.07.10 18:25, franck tankoua wrote:



   

Hi Evgeny. I have my own guice module based on JPA.


On Mon, Jul 12, 2010 at 5:56 PM, Evgeny Bogdanov


 

evgeny.bogda...@epfl.ch
   


 

wrote:
   


   




 

The same problem is with a branches/2.0.x/

Franck, How did you add your own Guice JPA?





   

this is from my web.xml

  context-param
param-nameguice-modules/param-name
param-value
org.apache.shindig.common.PropertiesModule:
org.apache.shindig.gadgets.DefaultGuiceModule:
com.packagepath.MyJPAModule:
org.apache.shindig.gadgets.oauth.OAuthModule
 /param-value
/context-param



Did you also register it in web.xml




 

and added a module into profile all in shindig/pom.xml?

Actually I did not add anythinig to the all in the pom.xml.




   

Basically I am not using shindig-server but my own application web.xml


 

to
   


 

which I have add the shindig guice modules.
   

So I am not sure what you are trying to achieve but may be by
explaining
me
I can share better my experience with the JPA implementation.







 

Or did you add some dependencies?

I think I know what is going on. i have download a fresh shindig from
trunk




   

and I have done what you have said. It does not work either. It looks


 

like
   


 

you have forgot this in your stacktrace.
   

2010-07-12 18:21:32.312:INFO::No Transaction manager found - if your
webapp
requires one, please configure one.

After you configure the transaction manager it should not trash
anymore.

hope it helps

Sure I have added dependencies to hibernate





 

On 12.07.10 15:59, franck tankoua wrote:





   

http://svn.apache.org/repos/asf/shindig/branches/2.0.x/
http://svn.apache.org/repos/asf/shindig/branches/2.0.x/

On Mon, Jul 12, 2010 at 3:49 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.ch




 

wrote:




   





 

Where do you take shindig 2.0 release (I can't find it)? Or do you


   

mean
 


 

trunk here?
   


On 12.07.10 15:18, franck tankoua wrote:







   

I am using my own JPA implementation and the shindig 2.0 release.
things work fine so far.

I will try to add JPAModule and let you know. which version of


 

shindig
   


 

are
   

you using? the trunk version ?

On Mon, Jul 12, 2010 at 2:38 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.ch






 

wrote:






   





Re: Adding database to Java Shindig

2010-07-14 Thread Evgeny Bogdanov

Well, here is a first post how to use mysql database with java shindig.
http://vohtaski.blogspot.com/2010/07/java-shindig-how-to-add-your-own-social.html

Next post will be about connecting my own social database with shindig,
that I am doing now :)

If you find it useful, I can create a wiki page for it.
I also have a patch that does all the mentioned in post changes.
Should I upload it to jira or some other place?

Evgeny

On 13.07.10 21:56, John Hjelmstad wrote:

I'd be interested to see the Shindig Wiki, or some other official/easy to
find documentation (seems like Wiki is the consensus at this point however?
what do others think?) updated with such information as well.

Many thanks,
John

On Tue, Jul 13, 2010 at 12:29 PM, Henry Saputrahenry.sapu...@gmail.comwrote:

   

HI Evgeny,

A blog about this would be great. I be a lot other developers also
interested to hook up Shindig with their database.

- Henry

On Tue, Jul 13, 2010 at 12:49 AM, Evgeny Bogdanov
evgeny.bogda...@epfl.chwrote:

 

Thanks Franck for your help!

It seems as I found a solution (At least now I am able to login to the
database :))
I had to move all dependencies from samples/pom.xml to social/pom.xml,
if I only put dependency in social/pom.xml on artifactId = samples,
it didn't find the needed classes.

I will write a blog post on how and what I did, maybe it will
be useful for somebody.

Evgeny


On 12.07.10 18:25, franck tankoua wrote:

   

Hi Evgeny. I have my own guice module based on JPA.


On Mon, Jul 12, 2010 at 5:56 PM, Evgeny Bogdanov
 

evgeny.bogda...@epfl.ch
 

wrote:
   



 

The same problem is with a branches/2.0.x/

Franck, How did you add your own Guice JPA?



   

this is from my web.xml

  context-param
param-nameguice-modules/param-name
param-value
org.apache.shindig.common.PropertiesModule:
org.apache.shindig.gadgets.DefaultGuiceModule:
com.packagepath.MyJPAModule:
org.apache.shindig.gadgets.oauth.OAuthModule
 /param-value
/context-param



Did you also register it in web.xml


 

and added a module into profile all in shindig/pom.xml?

Actually I did not add anythinig to the all in the pom.xml.


   

Basically I am not using shindig-server but my own application web.xml
 

to
 

which I have add the shindig guice modules.

So I am not sure what you are trying to achieve but may be by explaining
me
I can share better my experience with the JPA implementation.





 

Or did you add some dependencies?

I think I know what is going on. i have download a fresh shindig from
trunk


   

and I have done what you have said. It does not work either. It looks
 

like
 

you have forgot this in your stacktrace.

2010-07-12 18:21:32.312:INFO::No Transaction manager found - if your
webapp
requires one, please configure one.

After you configure the transaction manager it should not trash anymore.

hope it helps

Sure I have added dependencies to hibernate



 

On 12.07.10 15:59, franck tankoua wrote:



   

http://svn.apache.org/repos/asf/shindig/branches/2.0.x/
http://svn.apache.org/repos/asf/shindig/branches/2.0.x/

On Mon, Jul 12, 2010 at 3:49 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.ch


 

wrote:


   




 

Where do you take shindig 2.0 release (I can't find it)? Or do you
   

mean
 

trunk here?


On 12.07.10 15:18, franck tankoua wrote:





   

I am using my own JPA implementation and the shindig 2.0 release.
things work fine so far.

I will try to add JPAModule and let you know. which version of
 

shindig
 

are
you using? the trunk version ?

On Mon, Jul 12, 2010 at 2:38 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.ch




 

wrote:




   





 

Thank you Franck for helping!

still the same
Does it work for you?


On 12.07.10 14:27, franck tankoua wrote:







   

what if you remove the space line before JPASocialModule?

On Mon, Jul 12, 2010 at 2:25 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.ch






 

wrote:






   






 

On 12.07.10 14:19, franck tankoua wrote:









   

Just out of curiosity. which version are you using?










 

Do you mean shindig? (latest trunk shindig)
$ mvn --version
Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
Java version: 1.6.0_20
Java home:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: mac os x version: 10.6.4 arch: x86_64 Family:
   

mac
 









   

could you paste also the web.xml param-value for your param-name
 

*
 

guice-modules* .










 

context-param
param-nameguice-modules/param-name

Re: Adding database to Java Shindig

2010-07-14 Thread Henry Saputra
I think you can update the link in the Shindig wiki topic about rel database
integration at
https://cwiki.apache.org/SHINDIG/index.html#Index-HowdoIintegratearelationaldatabasewithShindig%253F

It already has a comment about being need for an update.

https://cwiki.apache.org/SHINDIG/index.html#Index-HowdoIintegratearelationaldatabasewithShindig%253F-
Henry

On Wed, Jul 14, 2010 at 8:10 AM, Evgeny Bogdanov evgeny.bogda...@epfl.chwrote:

 Well, here is a first post how to use mysql database with java shindig.

 http://vohtaski.blogspot.com/2010/07/java-shindig-how-to-add-your-own-social.html

 Next post will be about connecting my own social database with shindig,
 that I am doing now :)

 If you find it useful, I can create a wiki page for it.
 I also have a patch that does all the mentioned in post changes.
 Should I upload it to jira or some other place?

 Evgeny


 On 13.07.10 21:56, John Hjelmstad wrote:

 I'd be interested to see the Shindig Wiki, or some other official/easy to
 find documentation (seems like Wiki is the consensus at this point
 however?
 what do others think?) updated with such information as well.

 Many thanks,
 John

 On Tue, Jul 13, 2010 at 12:29 PM, Henry Saputrahenry.sapu...@gmail.com
 wrote:



 HI Evgeny,

 A blog about this would be great. I be a lot other developers also
 interested to hook up Shindig with their database.

 - Henry

 On Tue, Jul 13, 2010 at 12:49 AM, Evgeny Bogdanov
 evgeny.bogda...@epfl.chwrote:



 Thanks Franck for your help!

 It seems as I found a solution (At least now I am able to login to the
 database :))
 I had to move all dependencies from samples/pom.xml to social/pom.xml,
 if I only put dependency in social/pom.xml on artifactId = samples,
 it didn't find the needed classes.

 I will write a blog post on how and what I did, maybe it will
 be useful for somebody.

 Evgeny


 On 12.07.10 18:25, franck tankoua wrote:



 Hi Evgeny. I have my own guice module based on JPA.


 On Mon, Jul 12, 2010 at 5:56 PM, Evgeny Bogdanov


 evgeny.bogda...@epfl.ch


 wrote:






 The same problem is with a branches/2.0.x/

 Franck, How did you add your own Guice JPA?





 this is from my web.xml

  context-param
 param-nameguice-modules/param-name
 param-value
 org.apache.shindig.common.PropertiesModule:
 org.apache.shindig.gadgets.DefaultGuiceModule:
 com.packagepath.MyJPAModule:
 org.apache.shindig.gadgets.oauth.OAuthModule
 /param-value
 /context-param



 Did you also register it in web.xml




 and added a module into profile all in shindig/pom.xml?

 Actually I did not add anythinig to the all in the pom.xml.




 Basically I am not using shindig-server but my own application web.xml


 to


 which I have add the shindig guice modules.

 So I am not sure what you are trying to achieve but may be by
 explaining
 me
 I can share better my experience with the JPA implementation.







 Or did you add some dependencies?

 I think I know what is going on. i have download a fresh shindig from
 trunk




 and I have done what you have said. It does not work either. It looks


 like


 you have forgot this in your stacktrace.

 2010-07-12 18:21:32.312:INFO::No Transaction manager found - if your
 webapp
 requires one, please configure one.

 After you configure the transaction manager it should not trash
 anymore.

 hope it helps

 Sure I have added dependencies to hibernate





 On 12.07.10 15:59, franck tankoua wrote:





 http://svn.apache.org/repos/asf/shindig/branches/2.0.x/
 http://svn.apache.org/repos/asf/shindig/branches/2.0.x/

 On Mon, Jul 12, 2010 at 3:49 PM, Evgeny Bogdanov
 evgeny.bogda...@epfl.ch




 wrote:









 Where do you take shindig 2.0 release (I can't find it)? Or do you


 mean


 trunk here?


 On 12.07.10 15:18, franck tankoua wrote:







 I am using my own JPA implementation and the shindig 2.0 release.
 things work fine so far.

 I will try to add JPAModule and let you know. which version of


 shindig


 are
 you using? the trunk version ?

 On Mon, Jul 12, 2010 at 2:38 PM, Evgeny Bogdanov
 evgeny.bogda...@epfl.ch






 wrote:












 Thank you Franck for helping!

 still the same
 Does it work for you?


 On 12.07.10 14:27, franck tankoua wrote:









 what if you remove the space line before JPASocialModule?

 On Mon, Jul 12, 2010 at 2:25 PM, Evgeny Bogdanov
 evgeny.bogda...@epfl.ch








 wrote:















 On 12.07.10 14:19, franck tankoua wrote:











 Just out of curiosity. which version are you using?












 Do you mean shindig? (latest trunk shindig)
 $ mvn --version
 Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
 Java version: 1.6.0_20
 Java home:
 /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x version: 10.6.4 arch: x86_64 Family:


 mac












 could you paste also the web.xml param-value for your
 param-name


 *


 guice-modules* .












 context-param
 

Re: Adding database to Java Shindig

2010-07-13 Thread Evgeny Bogdanov

Thanks Franck for your help!

It seems as I found a solution (At least now I am able to login to the 
database :))

I had to move all dependencies from samples/pom.xml to social/pom.xml,
if I only put dependency in social/pom.xml on artifactId = samples,
it didn't find the needed classes.

I will write a blog post on how and what I did, maybe it will
be useful for somebody.

Evgeny

On 12.07.10 18:25, franck tankoua wrote:

Hi Evgeny. I have my own guice module based on JPA.


On Mon, Jul 12, 2010 at 5:56 PM, Evgeny Bogdanovevgeny.bogda...@epfl.chwrote:

   

The same problem is with a branches/2.0.x/

Franck, How did you add your own Guice JPA?

 

this is from my web.xml

  context-param
param-nameguice-modules/param-name
param-value
org.apache.shindig.common.PropertiesModule:
org.apache.shindig.gadgets.DefaultGuiceModule:
com.packagepath.MyJPAModule:
org.apache.shindig.gadgets.oauth.OAuthModule
 /param-value
/context-param



Did you also register it in web.xml
   

and added a module into profile all in shindig/pom.xml?

Actually I did not add anythinig to the all in the pom.xml.
 

Basically I am not using shindig-server but my own application web.xml to
which I have add the shindig guice modules.

So I am not sure what you are trying to achieve but may be by explaining me
I can share better my experience with the JPA implementation.



   

Or did you add some dependencies?

I think I know what is going on. i have download a fresh shindig from trunk
 

and I have done what you have said. It does not work either. It looks like
you have forgot this in your stacktrace.

2010-07-12 18:21:32.312:INFO::No Transaction manager found - if your webapp
requires one, please configure one.

After you configure the transaction manager it should not trash anymore.

hope it helps

Sure I have added dependencies to hibernate

   

On 12.07.10 15:59, franck tankoua wrote:

 

http://svn.apache.org/repos/asf/shindig/branches/2.0.x/
http://svn.apache.org/repos/asf/shindig/branches/2.0.x/

On Mon, Jul 12, 2010 at 3:49 PM, Evgeny Bogdanovevgeny.bogda...@epfl.ch
   

wrote:
 



   

Where do you take shindig 2.0 release (I can't find it)? Or do you mean
trunk here?


On 12.07.10 15:18, franck tankoua wrote:



 

I am using my own JPA implementation and the shindig 2.0 release.
things work fine so far.

I will try to add JPAModule and let you know. which version of shindig
are
you using? the trunk version ?

On Mon, Jul 12, 2010 at 2:38 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.ch


   

wrote:


 




   

Thank you Franck for helping!

still the same
Does it work for you?


On 12.07.10 14:27, franck tankoua wrote:





 

what if you remove the space line before JPASocialModule?

On Mon, Jul 12, 2010 at 2:25 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.ch




   

wrote:




 





   

On 12.07.10 14:19, franck tankoua wrote:







 

Just out of curiosity. which version are you using?








   

Do you mean shindig? (latest trunk shindig)
$ mvn --version
Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
Java version: 1.6.0_20
Java home:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: mac os x version: 10.6.4 arch: x86_64 Family: mac







 

could you paste also the web.xml param-value for your param-name *
guice-modules* .








   

context-param
param-nameguice-modules/param-name
param-value
  org.apache.shindig.common.PropertiesModule:
  org.apache.shindig.gadgets.DefaultGuiceModule:
  org.apache.shindig.social.core.config.SocialApiGuiceModule:
  org.apache.shindig.social.sample.SampleModule:

  org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
  org.apache.shindig.gadgets.oauth.OAuthModule:
  org.apache.shindig.common.cache.ehcache.EhCacheModule:
  org.apache.shindig.sample.shiro.ShiroGuiceModule:
  org.apache.shindig.sample.container.SampleContainerGuiceModule:
  org.apache.shindig.extras.ShindigExtrasGuiceModule:
  org.apache.shindig.extras.as.ActivityStreamsGuiceModule
/param-value
/context-param








 

On Mon, Jul 12, 2010 at 2:04 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.ch






   

wrote:






 






   

Probably misunderstood you before ...
I did now:
$cd java/samples
$mvn
Build Successful


On 12.07.10 13:02, franck tankoua wrote:









 

were you able to successfully run mvn at /java/samples level?

On Mon, Jul 12, 2010 at 12:57 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.chwrote:











   

Sorry for spamming but I still can't get a working version.

This is what I did based on the suggestions here.

1) I've checked out a latest shindig version.
2) I added a 

Re: Adding database to Java Shindig

2010-07-13 Thread Henry Saputra
HI Evgeny,

A blog about this would be great. I be a lot other developers also
interested to hook up Shindig with their database.

- Henry

On Tue, Jul 13, 2010 at 12:49 AM, Evgeny Bogdanov
evgeny.bogda...@epfl.chwrote:

 Thanks Franck for your help!

 It seems as I found a solution (At least now I am able to login to the
 database :))
 I had to move all dependencies from samples/pom.xml to social/pom.xml,
 if I only put dependency in social/pom.xml on artifactId = samples,
 it didn't find the needed classes.

 I will write a blog post on how and what I did, maybe it will
 be useful for somebody.

 Evgeny


 On 12.07.10 18:25, franck tankoua wrote:

 Hi Evgeny. I have my own guice module based on JPA.


 On Mon, Jul 12, 2010 at 5:56 PM, Evgeny Bogdanovevgeny.bogda...@epfl.ch
 wrote:



 The same problem is with a branches/2.0.x/

 Franck, How did you add your own Guice JPA?



 this is from my web.xml

  context-param
 param-nameguice-modules/param-name
 param-value
 org.apache.shindig.common.PropertiesModule:
 org.apache.shindig.gadgets.DefaultGuiceModule:
 com.packagepath.MyJPAModule:
 org.apache.shindig.gadgets.oauth.OAuthModule
 /param-value
 /context-param



 Did you also register it in web.xml


 and added a module into profile all in shindig/pom.xml?

 Actually I did not add anythinig to the all in the pom.xml.


 Basically I am not using shindig-server but my own application web.xml to
 which I have add the shindig guice modules.

 So I am not sure what you are trying to achieve but may be by explaining
 me
 I can share better my experience with the JPA implementation.





 Or did you add some dependencies?

 I think I know what is going on. i have download a fresh shindig from
 trunk


 and I have done what you have said. It does not work either. It looks like
 you have forgot this in your stacktrace.

 2010-07-12 18:21:32.312:INFO::No Transaction manager found - if your
 webapp
 requires one, please configure one.

 After you configure the transaction manager it should not trash anymore.

 hope it helps

 Sure I have added dependencies to hibernate



 On 12.07.10 15:59, franck tankoua wrote:



 http://svn.apache.org/repos/asf/shindig/branches/2.0.x/
 http://svn.apache.org/repos/asf/shindig/branches/2.0.x/

 On Mon, Jul 12, 2010 at 3:49 PM, Evgeny Bogdanov
 evgeny.bogda...@epfl.ch


 wrote:






 Where do you take shindig 2.0 release (I can't find it)? Or do you mean
 trunk here?


 On 12.07.10 15:18, franck tankoua wrote:





 I am using my own JPA implementation and the shindig 2.0 release.
 things work fine so far.

 I will try to add JPAModule and let you know. which version of shindig
 are
 you using? the trunk version ?

 On Mon, Jul 12, 2010 at 2:38 PM, Evgeny Bogdanov
 evgeny.bogda...@epfl.ch




 wrote:









 Thank you Franck for helping!

 still the same
 Does it work for you?


 On 12.07.10 14:27, franck tankoua wrote:







 what if you remove the space line before JPASocialModule?

 On Mon, Jul 12, 2010 at 2:25 PM, Evgeny Bogdanov
 evgeny.bogda...@epfl.ch






 wrote:












 On 12.07.10 14:19, franck tankoua wrote:









 Just out of curiosity. which version are you using?










 Do you mean shindig? (latest trunk shindig)
 $ mvn --version
 Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
 Java version: 1.6.0_20
 Java home:
 /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x version: 10.6.4 arch: x86_64 Family: mac









 could you paste also the web.xml param-value for your param-name *
 guice-modules* .










 context-param
 param-nameguice-modules/param-name
 param-value
  org.apache.shindig.common.PropertiesModule:
  org.apache.shindig.gadgets.DefaultGuiceModule:
  org.apache.shindig.social.core.config.SocialApiGuiceModule:
  org.apache.shindig.social.sample.SampleModule:

  org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
  org.apache.shindig.gadgets.oauth.OAuthModule:
  org.apache.shindig.common.cache.ehcache.EhCacheModule:
  org.apache.shindig.sample.shiro.ShiroGuiceModule:

  org.apache.shindig.sample.container.SampleContainerGuiceModule:
  org.apache.shindig.extras.ShindigExtrasGuiceModule:
  org.apache.shindig.extras.as.ActivityStreamsGuiceModule
 /param-value
 /context-param










 On Mon, Jul 12, 2010 at 2:04 PM, Evgeny Bogdanov
 evgeny.bogda...@epfl.ch








 wrote:















 Probably misunderstood you before ...
 I did now:
 $cd java/samples
 $mvn
 Build Successful


 On 12.07.10 13:02, franck tankoua wrote:











 were you able to successfully run mvn at /java/samples level?

 On Mon, Jul 12, 2010 at 12:57 PM, Evgeny Bogdanov
 evgeny.bogda...@epfl.chwrote:













 Sorry for spamming but I still can't get a working version.

 This is what I did based on the suggestions here.

 1) I've checked out a latest shindig version.
 2) I added a Guice module
 

Re: Adding database to Java Shindig

2010-07-13 Thread John Hjelmstad
I'd be interested to see the Shindig Wiki, or some other official/easy to
find documentation (seems like Wiki is the consensus at this point however?
what do others think?) updated with such information as well.

Many thanks,
John

On Tue, Jul 13, 2010 at 12:29 PM, Henry Saputra henry.sapu...@gmail.comwrote:

 HI Evgeny,

 A blog about this would be great. I be a lot other developers also
 interested to hook up Shindig with their database.

 - Henry

 On Tue, Jul 13, 2010 at 12:49 AM, Evgeny Bogdanov
 evgeny.bogda...@epfl.chwrote:

  Thanks Franck for your help!
 
  It seems as I found a solution (At least now I am able to login to the
  database :))
  I had to move all dependencies from samples/pom.xml to social/pom.xml,
  if I only put dependency in social/pom.xml on artifactId = samples,
  it didn't find the needed classes.
 
  I will write a blog post on how and what I did, maybe it will
  be useful for somebody.
 
  Evgeny
 
 
  On 12.07.10 18:25, franck tankoua wrote:
 
  Hi Evgeny. I have my own guice module based on JPA.
 
 
  On Mon, Jul 12, 2010 at 5:56 PM, Evgeny Bogdanov
 evgeny.bogda...@epfl.ch
  wrote:
 
 
 
  The same problem is with a branches/2.0.x/
 
  Franck, How did you add your own Guice JPA?
 
 
 
  this is from my web.xml
 
   context-param
  param-nameguice-modules/param-name
  param-value
  org.apache.shindig.common.PropertiesModule:
  org.apache.shindig.gadgets.DefaultGuiceModule:
  com.packagepath.MyJPAModule:
  org.apache.shindig.gadgets.oauth.OAuthModule
  /param-value
  /context-param
 
 
 
  Did you also register it in web.xml
 
 
  and added a module into profile all in shindig/pom.xml?
 
  Actually I did not add anythinig to the all in the pom.xml.
 
 
  Basically I am not using shindig-server but my own application web.xml
 to
  which I have add the shindig guice modules.
 
  So I am not sure what you are trying to achieve but may be by explaining
  me
  I can share better my experience with the JPA implementation.
 
 
 
 
 
  Or did you add some dependencies?
 
  I think I know what is going on. i have download a fresh shindig from
  trunk
 
 
  and I have done what you have said. It does not work either. It looks
 like
  you have forgot this in your stacktrace.
 
  2010-07-12 18:21:32.312:INFO::No Transaction manager found - if your
  webapp
  requires one, please configure one.
 
  After you configure the transaction manager it should not trash anymore.
 
  hope it helps
 
  Sure I have added dependencies to hibernate
 
 
 
  On 12.07.10 15:59, franck tankoua wrote:
 
 
 
  http://svn.apache.org/repos/asf/shindig/branches/2.0.x/
  http://svn.apache.org/repos/asf/shindig/branches/2.0.x/
 
  On Mon, Jul 12, 2010 at 3:49 PM, Evgeny Bogdanov
  evgeny.bogda...@epfl.ch
 
 
  wrote:
 
 
 
 
 
 
  Where do you take shindig 2.0 release (I can't find it)? Or do you
 mean
  trunk here?
 
 
  On 12.07.10 15:18, franck tankoua wrote:
 
 
 
 
 
  I am using my own JPA implementation and the shindig 2.0 release.
  things work fine so far.
 
  I will try to add JPAModule and let you know. which version of
 shindig
  are
  you using? the trunk version ?
 
  On Mon, Jul 12, 2010 at 2:38 PM, Evgeny Bogdanov
  evgeny.bogda...@epfl.ch
 
 
 
 
  wrote:
 
 
 
 
 
 
 
 
 
  Thank you Franck for helping!
 
  still the same
  Does it work for you?
 
 
  On 12.07.10 14:27, franck tankoua wrote:
 
 
 
 
 
 
 
  what if you remove the space line before JPASocialModule?
 
  On Mon, Jul 12, 2010 at 2:25 PM, Evgeny Bogdanov
  evgeny.bogda...@epfl.ch
 
 
 
 
 
 
  wrote:
 
 
 
 
 
 
 
 
 
 
 
 
  On 12.07.10 14:19, franck tankoua wrote:
 
 
 
 
 
 
 
 
 
  Just out of curiosity. which version are you using?
 
 
 
 
 
 
 
 
 
 
  Do you mean shindig? (latest trunk shindig)
  $ mvn --version
  Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
  Java version: 1.6.0_20
  Java home:
  /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
  Default locale: en_US, platform encoding: MacRoman
  OS name: mac os x version: 10.6.4 arch: x86_64 Family:
 mac
 
 
 
 
 
 
 
 
 
  could you paste also the web.xml param-value for your param-name
 *
  guice-modules* .
 
 
 
 
 
 
 
 
 
 
  context-param
  param-nameguice-modules/param-name
  param-value
   org.apache.shindig.common.PropertiesModule:
   org.apache.shindig.gadgets.DefaultGuiceModule:
   org.apache.shindig.social.core.config.SocialApiGuiceModule:
   org.apache.shindig.social.sample.SampleModule:
 
 
  org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
   org.apache.shindig.gadgets.oauth.OAuthModule:
   org.apache.shindig.common.cache.ehcache.EhCacheModule:
   org.apache.shindig.sample.shiro.ShiroGuiceModule:
 
   org.apache.shindig.sample.container.SampleContainerGuiceModule:
   org.apache.shindig.extras.ShindigExtrasGuiceModule:
   org.apache.shindig.extras.as.ActivityStreamsGuiceModule
  /param-value
  /context-param
 
 
 
 
 
 
 
 
 
 
  On Mon, Jul 12, 2010 at 2:04 PM, Evgeny Bogdanov
  

Re: Adding database to Java Shindig

2010-07-12 Thread franck tankoua
were you able to successfully run mvn at /java/samples level?

On Mon, Jul 12, 2010 at 12:57 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.chwrote:

 Sorry for spamming but I still can't get a working version.

 This is what I did based on the suggestions here.

 1) I've checked out a latest shindig version.
 2) I added a Guice module
 org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
 into java/server/src/main/webapp/WEB-INF/web.xml
 3) I added java/samples into shindig/pom.xml for profile all
 profile
 idall/id
 activation
 activeByDefaulttrue/activeByDefault
 /activation
 modules
 modulefeatures/module
 modulejava/common/module
 modulejava/gadgets/module
 modulejava/social-api/module
 modulejava/samples/module
 modulejava/server/module
 moduleextras/module
 /modules
 /profile

 4) I compile the code with command
 mvn package -Dmaven.test.skip

 5) Than I go to the java/server and run mvn jetty:run

 However it can't find a class
 org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

 java.lang.RuntimeException: java.lang.ClassNotFoundException:
 org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule
at
 org.apache.shindig.common.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:63)

 I would be very happy if somebody could help or give a hint on what I am
 doing wrong

 Thanks in advance
 Evgeny




-- 
Franck


Re: Adding database to Java Shindig

2010-07-12 Thread Evgeny Bogdanov

Probably misunderstood you before ...
I did now:
$cd java/samples
$mvn
Build Successful

On 12.07.10 13:02, franck tankoua wrote:

were you able to successfully run mvn at /java/samples level?

On Mon, Jul 12, 2010 at 12:57 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.chwrote:

   

Sorry for spamming but I still can't get a working version.

This is what I did based on the suggestions here.

1) I've checked out a latest shindig version.
2) I added a Guice module
org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
into java/server/src/main/webapp/WEB-INF/web.xml
3) I added java/samples into shindig/pom.xml for profile all
profile
idall/id
activation
activeByDefaulttrue/activeByDefault
/activation
modules
modulefeatures/module
modulejava/common/module
modulejava/gadgets/module
modulejava/social-api/module
modulejava/samples/module
modulejava/server/module
moduleextras/module
/modules
/profile

4) I compile the code with command
mvn package -Dmaven.test.skip

5) Than I go to the java/server and run mvn jetty:run

However it can't find a class
org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

java.lang.RuntimeException: java.lang.ClassNotFoundException:
org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule
at
org.apache.shindig.common.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:63)

I would be very happy if somebody could help or give a hint on what I am
doing wrong

Thanks in advance
Evgeny

 



   


Re: Adding database to Java Shindig

2010-07-12 Thread franck tankoua
Just out of curiosity. which version are you using?
could you paste also the web.xml param-value for your param-name *
guice-modules* .




On Mon, Jul 12, 2010 at 2:04 PM, Evgeny Bogdanov evgeny.bogda...@epfl.chwrote:

 Probably misunderstood you before ...
 I did now:
 $cd java/samples
 $mvn
 Build Successful


 On 12.07.10 13:02, franck tankoua wrote:

 were you able to successfully run mvn at /java/samples level?

 On Mon, Jul 12, 2010 at 12:57 PM, Evgeny Bogdanov
 evgeny.bogda...@epfl.chwrote:



 Sorry for spamming but I still can't get a working version.

 This is what I did based on the suggestions here.

 1) I've checked out a latest shindig version.
 2) I added a Guice module
 org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
 into java/server/src/main/webapp/WEB-INF/web.xml
 3) I added java/samples into shindig/pom.xml for profile all
 profile
 idall/id
 activation
 activeByDefaulttrue/activeByDefault
 /activation
 modules
 modulefeatures/module
 modulejava/common/module
 modulejava/gadgets/module
 modulejava/social-api/module
 modulejava/samples/module
 modulejava/server/module
 moduleextras/module
 /modules
 /profile

 4) I compile the code with command
 mvn package -Dmaven.test.skip

 5) Than I go to the java/server and run mvn jetty:run

 However it can't find a class
 org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

 java.lang.RuntimeException: java.lang.ClassNotFoundException:
 org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule
at

 org.apache.shindig.common.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:63)

 I would be very happy if somebody could help or give a hint on what I am
 doing wrong

 Thanks in advance
 Evgeny










-- 
Franck


Re: Adding database to Java Shindig

2010-07-12 Thread Evgeny Bogdanov



On 12.07.10 14:19, franck tankoua wrote:

Just out of curiosity. which version are you using?
   

Do you mean shindig? (latest trunk shindig)
$ mvn --version
Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
Java version: 1.6.0_20
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: mac os x version: 10.6.4 arch: x86_64 Family: mac

could you paste also the web.xml param-value for your param-name *
guice-modules* .
   

context-param
param-nameguice-modules/param-name
param-value
  org.apache.shindig.common.PropertiesModule:
  org.apache.shindig.gadgets.DefaultGuiceModule:
  org.apache.shindig.social.core.config.SocialApiGuiceModule:
  org.apache.shindig.social.sample.SampleModule:
  org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
  org.apache.shindig.gadgets.oauth.OAuthModule:
  org.apache.shindig.common.cache.ehcache.EhCacheModule:
  org.apache.shindig.sample.shiro.ShiroGuiceModule:
  org.apache.shindig.sample.container.SampleContainerGuiceModule:
  org.apache.shindig.extras.ShindigExtrasGuiceModule:
  org.apache.shindig.extras.as.ActivityStreamsGuiceModule
/param-value
/context-param




On Mon, Jul 12, 2010 at 2:04 PM, Evgeny Bogdanovevgeny.bogda...@epfl.chwrote:

   

Probably misunderstood you before ...
I did now:
$cd java/samples
$mvn
Build Successful


On 12.07.10 13:02, franck tankoua wrote:

 

were you able to successfully run mvn at /java/samples level?

On Mon, Jul 12, 2010 at 12:57 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.chwrote:



   

Sorry for spamming but I still can't get a working version.

This is what I did based on the suggestions here.

1) I've checked out a latest shindig version.
2) I added a Guice module
org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
into java/server/src/main/webapp/WEB-INF/web.xml
3) I added java/samples into shindig/pom.xml for profile all
profile
idall/id
activation
activeByDefaulttrue/activeByDefault
/activation
modules
modulefeatures/module
modulejava/common/module
modulejava/gadgets/module
modulejava/social-api/module
modulejava/samples/module
modulejava/server/module
moduleextras/module
/modules
/profile

4) I compile the code with command
mvn package -Dmaven.test.skip

5) Than I go to the java/server and run mvn jetty:run

However it can't find a class
org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

java.lang.RuntimeException: java.lang.ClassNotFoundException:
org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule
at

org.apache.shindig.common.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:63)

I would be very happy if somebody could help or give a hint on what I am
doing wrong

Thanks in advance
Evgeny



 




   
 


   


Re: Adding database to Java Shindig

2010-07-12 Thread Evgeny Bogdanov

Thank you Franck for helping!

still the same
Does it work for you?

On 12.07.10 14:27, franck tankoua wrote:

what if you remove the space line before JPASocialModule?

On Mon, Jul 12, 2010 at 2:25 PM, Evgeny Bogdanovevgeny.bogda...@epfl.chwrote:

   


On 12.07.10 14:19, franck tankoua wrote:

 

Just out of curiosity. which version are you using?


   

Do you mean shindig? (latest trunk shindig)
$ mvn --version
Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
Java version: 1.6.0_20
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: mac os x version: 10.6.4 arch: x86_64 Family: mac

 

could you paste also the web.xml param-value for your param-name *
guice-modules* .


   

context-param
param-nameguice-modules/param-name
param-value
  org.apache.shindig.common.PropertiesModule:
  org.apache.shindig.gadgets.DefaultGuiceModule:
  org.apache.shindig.social.core.config.SocialApiGuiceModule:
  org.apache.shindig.social.sample.SampleModule:

  org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
  org.apache.shindig.gadgets.oauth.OAuthModule:
  org.apache.shindig.common.cache.ehcache.EhCacheModule:
  org.apache.shindig.sample.shiro.ShiroGuiceModule:
  org.apache.shindig.sample.container.SampleContainerGuiceModule:
  org.apache.shindig.extras.ShindigExtrasGuiceModule:
  org.apache.shindig.extras.as.ActivityStreamsGuiceModule
/param-value
/context-param


 


On Mon, Jul 12, 2010 at 2:04 PM, Evgeny Bogdanovevgeny.bogda...@epfl.ch
   

wrote:
 



   

Probably misunderstood you before ...
I did now:
$cd java/samples
$mvn
Build Successful


On 12.07.10 13:02, franck tankoua wrote:



 

were you able to successfully run mvn at /java/samples level?

On Mon, Jul 12, 2010 at 12:57 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.chwrote:





   

Sorry for spamming but I still can't get a working version.

This is what I did based on the suggestions here.

1) I've checked out a latest shindig version.
2) I added a Guice module
org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
into java/server/src/main/webapp/WEB-INF/web.xml
3) I added java/samples into shindig/pom.xml for profile all
profile
idall/id
activation
activeByDefaulttrue/activeByDefault
/activation
modules
modulefeatures/module
modulejava/common/module
modulejava/gadgets/module
modulejava/social-api/module
modulejava/samples/module
modulejava/server/module
moduleextras/module
/modules
/profile

4) I compile the code with command
mvn package -Dmaven.test.skip

5) Than I go to the java/server and run mvn jetty:run

However it can't find a class
org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

java.lang.RuntimeException: java.lang.ClassNotFoundException:
org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule
at


org.apache.shindig.common.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:63)

I would be very happy if somebody could help or give a hint on what I
am
doing wrong

Thanks in advance
Evgeny





 





   


 



   
 


   


Re: Adding database to Java Shindig

2010-07-12 Thread Evgeny Bogdanov

This is a full jetty log

$ mvn jetty:run
[INFO] Scanning for projects...
[INFO] 


[INFO] Building Apache Shindig Web App
[INFO]task-segment: [jetty:run]
[INFO] 


[INFO] Preparing jetty:run
[INFO] [enforcer:enforce {execution: enforce-java}]
[INFO] Setting property: classpath.resource.loader.class = 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.

[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound = 'false'.
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource to containers/default
[INFO] Copying 1 resource to config
[INFO] skip non existing resourceDirectory 
/Users/assistants/test_shindig/java/server/conf

[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 30 resources
[INFO] Copying 3 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
2010-07-12 14:36:40.296:INFO::Logging to STDERR via 
org.mortbay.log.StdErrLog

[INFO] [jetty:run {execution: default-cli}]
[INFO] Configuring Jetty for project: Apache Shindig Web App
[INFO] Webapp source directory = 
/Users/assistants/test_shindig/java/server/src/main/webapp

[INFO] Reload Mechanic: manual
[INFO] Classes = /Users/assistants/test_shindig/java/server/target/classes
[INFO] Context path = /
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file = 
/Users/assistants/test_shindig/java/server/src/main/webapp/WEB-INF/web.xml
[INFO] Webapp directory = 
/Users/assistants/test_shindig/java/server/src/main/webapp

[INFO] Starting jetty 6.1.22 ...
2010-07-12 14:36:40.313:INFO::jetty-6.1.22
2010-07-12 14:36:40.481:INFO::No Transaction manager found - if your 
webapp requires one, please configure one.
2010-07-12 14:36:40.802:WARN::Failed startup of context 
org.mortbay.jetty.plugin.jetty6pluginwebappcont...@73600b34{/,file:/Users/assistants/test_shindig/java/server/src/main/webapp/;file:/Users/assistants/test_shindig/content/;}
java.lang.RuntimeException: java.lang.ClassNotFoundException: 
org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule
at 
org.apache.shindig.common.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:63)
at 
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)

at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at 
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at 
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)

at org.mortbay.jetty.Server.doStart(Server.java:224)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
at 
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
at 
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
at 
org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
at 
org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
   

Re: Adding database to Java Shindig

2010-07-12 Thread franck tankoua
I am using my own JPA implementation and the shindig 2.0 release.
things work fine so far.

I will try to add JPAModule and let you know. which version of shindig are
you using? the trunk version ?

On Mon, Jul 12, 2010 at 2:38 PM, Evgeny Bogdanov evgeny.bogda...@epfl.chwrote:

 Thank you Franck for helping!

 still the same
 Does it work for you?


 On 12.07.10 14:27, franck tankoua wrote:

 what if you remove the space line before JPASocialModule?

 On Mon, Jul 12, 2010 at 2:25 PM, Evgeny Bogdanovevgeny.bogda...@epfl.ch
 wrote:




 On 12.07.10 14:19, franck tankoua wrote:



 Just out of curiosity. which version are you using?




 Do you mean shindig? (latest trunk shindig)
 $ mvn --version
 Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
 Java version: 1.6.0_20
 Java home:
 /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x version: 10.6.4 arch: x86_64 Family: mac



 could you paste also the web.xml param-value for your param-name *
 guice-modules* .




 context-param
 param-nameguice-modules/param-name
 param-value
  org.apache.shindig.common.PropertiesModule:
  org.apache.shindig.gadgets.DefaultGuiceModule:
  org.apache.shindig.social.core.config.SocialApiGuiceModule:
  org.apache.shindig.social.sample.SampleModule:

  org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
  org.apache.shindig.gadgets.oauth.OAuthModule:
  org.apache.shindig.common.cache.ehcache.EhCacheModule:
  org.apache.shindig.sample.shiro.ShiroGuiceModule:
  org.apache.shindig.sample.container.SampleContainerGuiceModule:
  org.apache.shindig.extras.ShindigExtrasGuiceModule:
  org.apache.shindig.extras.as.ActivityStreamsGuiceModule
 /param-value
 /context-param





 On Mon, Jul 12, 2010 at 2:04 PM, Evgeny Bogdanov
 evgeny.bogda...@epfl.ch


 wrote:






 Probably misunderstood you before ...
 I did now:
 $cd java/samples
 $mvn
 Build Successful


 On 12.07.10 13:02, franck tankoua wrote:





 were you able to successfully run mvn at /java/samples level?

 On Mon, Jul 12, 2010 at 12:57 PM, Evgeny Bogdanov
 evgeny.bogda...@epfl.chwrote:







 Sorry for spamming but I still can't get a working version.

 This is what I did based on the suggestions here.

 1) I've checked out a latest shindig version.
 2) I added a Guice module
 org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
 into java/server/src/main/webapp/WEB-INF/web.xml
 3) I added java/samples into shindig/pom.xml for profile all
 profile
 idall/id
 activation
 activeByDefaulttrue/activeByDefault
 /activation
 modules
 modulefeatures/module
 modulejava/common/module
 modulejava/gadgets/module
 modulejava/social-api/module
 modulejava/samples/module
 modulejava/server/module
 moduleextras/module
 /modules
 /profile

 4) I compile the code with command
 mvn package -Dmaven.test.skip

 5) Than I go to the java/server and run mvn jetty:run

 However it can't find a class
 org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

 java.lang.RuntimeException: java.lang.ClassNotFoundException:
 org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule
at



 org.apache.shindig.common.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:63)

 I would be very happy if somebody could help or give a hint on what I
 am
 doing wrong

 Thanks in advance
 Evgeny




























-- 
Franck


Re: Adding database to Java Shindig

2010-07-12 Thread Evgeny Bogdanov
Where do you take shindig 2.0 release (I can't find it)? Or do you mean 
trunk here?


On 12.07.10 15:18, franck tankoua wrote:

I am using my own JPA implementation and the shindig 2.0 release.
things work fine so far.

I will try to add JPAModule and let you know. which version of shindig are
you using? the trunk version ?

On Mon, Jul 12, 2010 at 2:38 PM, Evgeny Bogdanovevgeny.bogda...@epfl.chwrote:

   

Thank you Franck for helping!

still the same
Does it work for you?


On 12.07.10 14:27, franck tankoua wrote:

 

what if you remove the space line before JPASocialModule?

On Mon, Jul 12, 2010 at 2:25 PM, Evgeny Bogdanovevgeny.bogda...@epfl.ch
   

wrote:
 



   

On 12.07.10 14:19, franck tankoua wrote:



 

Just out of curiosity. which version are you using?




   

Do you mean shindig? (latest trunk shindig)
$ mvn --version
Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
Java version: 1.6.0_20
Java home:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: mac os x version: 10.6.4 arch: x86_64 Family: mac



 

could you paste also the web.xml param-value for your param-name *
guice-modules* .




   

context-param
param-nameguice-modules/param-name
param-value
  org.apache.shindig.common.PropertiesModule:
  org.apache.shindig.gadgets.DefaultGuiceModule:
  org.apache.shindig.social.core.config.SocialApiGuiceModule:
  org.apache.shindig.social.sample.SampleModule:

  org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
  org.apache.shindig.gadgets.oauth.OAuthModule:
  org.apache.shindig.common.cache.ehcache.EhCacheModule:
  org.apache.shindig.sample.shiro.ShiroGuiceModule:
  org.apache.shindig.sample.container.SampleContainerGuiceModule:
  org.apache.shindig.extras.ShindigExtrasGuiceModule:
  org.apache.shindig.extras.as.ActivityStreamsGuiceModule
/param-value
/context-param




 

On Mon, Jul 12, 2010 at 2:04 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.ch


   

wrote:


 




   

Probably misunderstood you before ...
I did now:
$cd java/samples
$mvn
Build Successful


On 12.07.10 13:02, franck tankoua wrote:





 

were you able to successfully run mvn at /java/samples level?

On Mon, Jul 12, 2010 at 12:57 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.chwrote:







   

Sorry for spamming but I still can't get a working version.

This is what I did based on the suggestions here.

1) I've checked out a latest shindig version.
2) I added a Guice module
org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
into java/server/src/main/webapp/WEB-INF/web.xml
3) I added java/samples into shindig/pom.xml for profile all
profile
idall/id
activation
activeByDefaulttrue/activeByDefault
/activation
modules
modulefeatures/module
modulejava/common/module
modulejava/gadgets/module
modulejava/social-api/module
modulejava/samples/module
modulejava/server/module
moduleextras/module
/modules
/profile

4) I compile the code with command
mvn package -Dmaven.test.skip

5) Than I go to the java/server and run mvn jetty:run

However it can't find a class
org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

java.lang.RuntimeException: java.lang.ClassNotFoundException:
org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule
at



org.apache.shindig.common.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:63)

I would be very happy if somebody could help or give a hint on what I
am
doing wrong

Thanks in advance
Evgeny







 






   



 




   


 



   
 


   


Re: Adding database to Java Shindig

2010-07-12 Thread Evgeny Bogdanov

The same problem is with a branches/2.0.x/

Franck, How did you add your own Guice JPA?
Did you also register it in web.xml
and added a module into profile all in shindig/pom.xml?

Or did you add some dependencies?

On 12.07.10 15:59, franck tankoua wrote:

http://svn.apache.org/repos/asf/shindig/branches/2.0.x/
http://svn.apache.org/repos/asf/shindig/branches/2.0.x/

On Mon, Jul 12, 2010 at 3:49 PM, Evgeny Bogdanovevgeny.bogda...@epfl.chwrote:

   

Where do you take shindig 2.0 release (I can't find it)? Or do you mean
trunk here?


On 12.07.10 15:18, franck tankoua wrote:

 

I am using my own JPA implementation and the shindig 2.0 release.
things work fine so far.

I will try to add JPAModule and let you know. which version of shindig are
you using? the trunk version ?

On Mon, Jul 12, 2010 at 2:38 PM, Evgeny Bogdanovevgeny.bogda...@epfl.ch
   

wrote:
 



   

Thank you Franck for helping!

still the same
Does it work for you?


On 12.07.10 14:27, franck tankoua wrote:



 

what if you remove the space line before JPASocialModule?

On Mon, Jul 12, 2010 at 2:25 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.ch


   

wrote:


 




   

On 12.07.10 14:19, franck tankoua wrote:





 

Just out of curiosity. which version are you using?






   

Do you mean shindig? (latest trunk shindig)
$ mvn --version
Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
Java version: 1.6.0_20
Java home:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: mac os x version: 10.6.4 arch: x86_64 Family: mac





 

could you paste also the web.xml param-value for your param-name *
guice-modules* .






   

context-param
param-nameguice-modules/param-name
param-value
  org.apache.shindig.common.PropertiesModule:
  org.apache.shindig.gadgets.DefaultGuiceModule:
  org.apache.shindig.social.core.config.SocialApiGuiceModule:
  org.apache.shindig.social.sample.SampleModule:

  org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
  org.apache.shindig.gadgets.oauth.OAuthModule:
  org.apache.shindig.common.cache.ehcache.EhCacheModule:
  org.apache.shindig.sample.shiro.ShiroGuiceModule:
  org.apache.shindig.sample.container.SampleContainerGuiceModule:
  org.apache.shindig.extras.ShindigExtrasGuiceModule:
  org.apache.shindig.extras.as.ActivityStreamsGuiceModule
/param-value
/context-param






 

On Mon, Jul 12, 2010 at 2:04 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.ch




   

wrote:




 





   

Probably misunderstood you before ...
I did now:
$cd java/samples
$mvn
Build Successful


On 12.07.10 13:02, franck tankoua wrote:







 

were you able to successfully run mvn at /java/samples level?

On Mon, Jul 12, 2010 at 12:57 PM, Evgeny Bogdanov
evgeny.bogda...@epfl.chwrote:









   

Sorry for spamming but I still can't get a working version.

This is what I did based on the suggestions here.

1) I've checked out a latest shindig version.
2) I added a Guice module
org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
into java/server/src/main/webapp/WEB-INF/web.xml
3) I added java/samples into shindig/pom.xml for profile all
profile
idall/id
activation
activeByDefaulttrue/activeByDefault
/activation
modules
modulefeatures/module
modulejava/common/module
modulejava/gadgets/module
modulejava/social-api/module
modulejava/samples/module
modulejava/server/module
moduleextras/module
/modules
/profile

4) I compile the code with command
mvn package -Dmaven.test.skip

5) Than I go to the java/server and run mvn jetty:run

However it can't find a class
org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

java.lang.RuntimeException: java.lang.ClassNotFoundException:
org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule
at




org.apache.shindig.common.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:63)

I would be very happy if somebody could help or give a hint on what
I
am
doing wrong

Thanks in advance
Evgeny









 







   




 





   



 




   


 



   
 


   


Re: Adding database to Java Shindig

2010-07-12 Thread franck tankoua
Hi Evgeny. I have my own guice module based on JPA.


On Mon, Jul 12, 2010 at 5:56 PM, Evgeny Bogdanov evgeny.bogda...@epfl.chwrote:

 The same problem is with a branches/2.0.x/

 Franck, How did you add your own Guice JPA?


this is from my web.xml

 context-param
param-nameguice-modules/param-name
param-value
org.apache.shindig.common.PropertiesModule:
org.apache.shindig.gadgets.DefaultGuiceModule:
com.packagepath.MyJPAModule:
org.apache.shindig.gadgets.oauth.OAuthModule
/param-value
/context-param



Did you also register it in web.xml
 and added a module into profile all in shindig/pom.xml?

 Actually I did not add anythinig to the all in the pom.xml.
Basically I am not using shindig-server but my own application web.xml to
which I have add the shindig guice modules.

So I am not sure what you are trying to achieve but may be by explaining me
I can share better my experience with the JPA implementation.



 Or did you add some dependencies?

 I think I know what is going on. i have download a fresh shindig from trunk
and I have done what you have said. It does not work either. It looks like
you have forgot this in your stacktrace.

2010-07-12 18:21:32.312:INFO::No Transaction manager found - if your webapp
requires one, please configure one.

After you configure the transaction manager it should not trash anymore.

hope it helps

Sure I have added dependencies to hibernate

 On 12.07.10 15:59, franck tankoua wrote:

 http://svn.apache.org/repos/asf/shindig/branches/2.0.x/
 http://svn.apache.org/repos/asf/shindig/branches/2.0.x/

 On Mon, Jul 12, 2010 at 3:49 PM, Evgeny Bogdanovevgeny.bogda...@epfl.ch
 wrote:



 Where do you take shindig 2.0 release (I can't find it)? Or do you mean
 trunk here?


 On 12.07.10 15:18, franck tankoua wrote:



 I am using my own JPA implementation and the shindig 2.0 release.
 things work fine so far.

 I will try to add JPAModule and let you know. which version of shindig
 are
 you using? the trunk version ?

 On Mon, Jul 12, 2010 at 2:38 PM, Evgeny Bogdanov
 evgeny.bogda...@epfl.ch


 wrote:






 Thank you Franck for helping!

 still the same
 Does it work for you?


 On 12.07.10 14:27, franck tankoua wrote:





 what if you remove the space line before JPASocialModule?

 On Mon, Jul 12, 2010 at 2:25 PM, Evgeny Bogdanov
 evgeny.bogda...@epfl.ch




 wrote:









 On 12.07.10 14:19, franck tankoua wrote:







 Just out of curiosity. which version are you using?








 Do you mean shindig? (latest trunk shindig)
 $ mvn --version
 Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
 Java version: 1.6.0_20
 Java home:
 /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
 Default locale: en_US, platform encoding: MacRoman
 OS name: mac os x version: 10.6.4 arch: x86_64 Family: mac







 could you paste also the web.xml param-value for your param-name *
 guice-modules* .








 context-param
 param-nameguice-modules/param-name
 param-value
  org.apache.shindig.common.PropertiesModule:
  org.apache.shindig.gadgets.DefaultGuiceModule:
  org.apache.shindig.social.core.config.SocialApiGuiceModule:
  org.apache.shindig.social.sample.SampleModule:

  org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
  org.apache.shindig.gadgets.oauth.OAuthModule:
  org.apache.shindig.common.cache.ehcache.EhCacheModule:
  org.apache.shindig.sample.shiro.ShiroGuiceModule:
  org.apache.shindig.sample.container.SampleContainerGuiceModule:
  org.apache.shindig.extras.ShindigExtrasGuiceModule:
  org.apache.shindig.extras.as.ActivityStreamsGuiceModule
 /param-value
 /context-param








 On Mon, Jul 12, 2010 at 2:04 PM, Evgeny Bogdanov
 evgeny.bogda...@epfl.ch






 wrote:












 Probably misunderstood you before ...
 I did now:
 $cd java/samples
 $mvn
 Build Successful


 On 12.07.10 13:02, franck tankoua wrote:









 were you able to successfully run mvn at /java/samples level?

 On Mon, Jul 12, 2010 at 12:57 PM, Evgeny Bogdanov
 evgeny.bogda...@epfl.chwrote:











 Sorry for spamming but I still can't get a working version.

 This is what I did based on the suggestions here.

 1) I've checked out a latest shindig version.
 2) I added a Guice module
 org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule:
 into java/server/src/main/webapp/WEB-INF/web.xml
 3) I added java/samples into shindig/pom.xml for profile all
 profile
 idall/id
 activation
 activeByDefaulttrue/activeByDefault
 /activation
 modules
 modulefeatures/module
 modulejava/common/module
 modulejava/gadgets/module
 modulejava/social-api/module
 modulejava/samples/module
 modulejava/server/module
 moduleextras/module
 /modules
 /profile

 4) I compile the code with command
 mvn package -Dmaven.test.skip

 5) Than I go to the java/server and run mvn jetty:run

 However it can't find a class
 org.apache.shindig.social.opensocial.jpa.spi.JPASocialModule

 java.lang.RuntimeException: java.lang.ClassNotFoundException: