Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: twitter has already been registered error.

  1. #21
    Join Date
    Aug 2004
    Posts
    1,072

    Default

    Well, I can explain quickly why it stops there 4 times and complains later: That's because the configuration code doesn't create the actual beans in the context...it creates bean definitions. Later the container uses those bean definitions to create the actual beans and that's when you get the exception.

    As for explaining why you get the complaint at all...I'm not there yet. I see nothing obvious out of sorts in your bean listing, though.
    Craig Walls
    Spring Social Project Lead

  2. #22
    Join Date
    Jan 2009
    Location
    Huntington Beach, CA
    Posts
    718

    Default

    So, therefore it would create BeanDefinitions twice for the same "bean" but it will have the same bean name, so therefore in the Map, one would overwrite the other in the Map. Then after the BeanFactoryPostProcessors, during Instantiation and BeanPostProcessors, they would only instantiate and create a single instance, not dups.

    Also, the samples do not run on my machine. Running mvn tomcat:run or even just mvn package I get lots of errors.

    Here is a sample of those errors

    Code:
    [ERROR] class ExplicitSocialConfig
    [ERROR] /Users/bytor99999/Java/GitHubRepos/spring-social-samples/spring-social-showcase-sec/src/main/java/org/springframework/social/showcase/config/SocialConfig.java:[82,13] error: cannot find symbol
    [ERROR] class SocialConfig
    [ERROR] /Users/bytor99999/Java/GitHubRepos/spring-social-samples/spring-social-showcase-sec/src/main/java/org/springframework/social/showcase/linkedin/LinkedInProfileController.java:[38,13] error: cannot find symbol
    [ERROR] class LinkedInProfileController
    [ERROR] /Users/bytor99999/Java/GitHubRepos/spring-social-samples/spring-social-showcase-sec/src/main/java/org/springframework/social/showcase/linkedin/LinkedInProfileController.java:[38,79] error: cannot find symbol
    I can run the quickstart sample.

    Actually, sorry I know why they won't run. It is because they are pointing to BUILD-SNAPSHOT, not M2. Which means we can't access them through our Nexus artifactory. I will edit the poms to point to M2 and try again.

    Thanks

    Mark

  3. #23
    Join Date
    Jan 2009
    Location
    Huntington Beach, CA
    Posts
    718

    Default

    Hmm. the pom files are pointing to M2 and not SNAPSHOT. Strange, it should work.

    Mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •