shindig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franck tankoua <ftank...@gmail.com>
Subject Re: Adding database to Java Shindig
Date Mon, 12 Jul 2010 13:59:23 GMT
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.bogdanov@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.bogdanov@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.bogdanov@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-name>guice-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.bogdanov@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.bogdanov@epfl.ch>wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> 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>
>>>>>>>>> <id>all</id>
>>>>>>>>> <activation>
>>>>>>>>> <activeByDefault>true</activeByDefault>
>>>>>>>>> </activation>
>>>>>>>>> <modules>
>>>>>>>>> <module>features</module>
>>>>>>>>> <module>java/common</module>
>>>>>>>>> <module>java/gadgets</module>
>>>>>>>>> <module>java/social-api</module>
>>>>>>>>> <module>java/samples</module>
>>>>>>>>> <module>java/server</module>
>>>>>>>>> <module>extras</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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message