Page 1 of 1

Spring social

Posted: Wed Dec 12, 2012 5:37 am
by broadleafer
Spring social code does not seems to be merged into the master branch. So if I get the code from the spring_social branch will I be also getting the latest code for everything else ?

Re: Spring social

Posted: Wed Dec 12, 2012 12:42 pm
by elbertbautista
Hi,

The Spring Social classes have been moved to 2.2, as of right now you can find it on the latest develop branch here:
https://github.com/BroadleafCommerce/Br ... ee/develop

A GA release of 2.2 will be coming soon

Re: Spring social

Posted: Fri Dec 14, 2012 12:15 am
by broadleafer
Hi

Thanks for the quick response :)

the link you gave here is of Broadleaf and not the demo site. The demo site is still using 2.1.0-SNAPSHOT ?

Where do i get the spring social version of demo site ?

Building the demosite in spring_social branch is not compiling and gives the following exception. I tried updating the blc version to <blc.version>2.2.0-SNAPSHOT</blc.version>. But that version does not exist.

Scanning for projects...
------------------------------------------------------------------------
Reactor Build Order:

ecommerce
core
admin
site

------------------------------------------------------------------------
Building ecommerce 1.0
------------------------------------------------------------------------

[clean:clean]

[install:install]
Installing /Users/simer/NetBeansProjects/DemoSite-spring_social/pom.xml to /Users/simer/.m2/repository/com/mycompany/ecommerce-website/1.0/ecommerce-website-1.0.pom

------------------------------------------------------------------------
Building core 1.0
------------------------------------------------------------------------
Downloading: http://www.broadleafcommerce.org/nexus/ ... tadata.xml

Downloading: http://www.broadleafcommerce.org/nexus/ ... APSHOT.pom

The POM for org.broadleafcommerce:broadleaf-framework:jar:2.1.0-SNAPSHOT is missing, no dependency information available
Downloading: http://www.broadleafcommerce.org/nexus/ ... tadata.xml

Downloading: http://www.broadleafcommerce.org/nexus/ ... APSHOT.pom

The POM for org.broadleafcommerce:broadleaf-profile:jar:2.1.0-SNAPSHOT is missing, no dependency information available
Downloading: http://www.broadleafcommerce.org/nexus/ ... APSHOT.jar
Downloading: http://www.broadleafcommerce.org/nexus/ ... APSHOT.jar


------------------------------------------------------------------------
Reactor Summary:

ecommerce ......................................... SUCCESS [0.566s]
core .............................................. FAILURE [4.505s]
admin ............................................. SKIPPED
site .............................................. SKIPPED
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 5.537s
Finished at: Fri Dec 14 15:01:59 EST 2012
Final Memory: 7M/79M
------------------------------------------------------------------------
Failed to execute goal on project core: Could not resolve dependencies for project com.mycompany:core:jar:1.0: The following artifacts could not be resolved: org.broadleafcommerce:broadleaf-framework:jar:2.1.0-SNAPSHOT, org.broadleafcommerce:broadleaf-profile:jar:2.1.0-SNAPSHOT: Could not find artifact org.broadleafcommerce:broadleaf-framework:jar:2.1.0-SNAPSHOT in public releases (http://www.broadleafcommerce.org/nexus/ ... /releases/) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/disp ... nException

After correcting the problems, you can resume the build with the command
mvn <goals> -rf :core

Re: Spring social

Posted: Fri Dec 14, 2012 10:38 am
by phillipuniverse
The 'develop' branch of DemoSite is pointing to 2.2.0-SNAPSHOT. I don't know if there is any version of the DemoSite that is pointing to 2.1.0-SNAPSHOT.

Also, if you want to point to snapshot versions of broadleaf, you will need to reference our internal snapshots nexus in your pom.xml:

Code: Select all

<repositories>
    <repository>
        <id>blc snapshots</id>
        <name>blc snapshots</name>
        <url>http://www.broadleafcommerce.org/nexus/content/repositories/snapshots/</url>
    </repository>
</repositories>


The "Spring Social Version" really just means "the version of Broadleaf that has Spring Social entities". We put all of this logic into the framework and didn't just segregate it to DemoSite which is why you will need the 2.2.0 version of the framework.

Re: Spring social

Posted: Fri Dec 14, 2012 10:47 am
by phillipuniverse
Ah I see the confusion here; the spring_social branch of DemoSite has not been brought up to date with 'develop' for a while (2+ months). I just merged develop into spring_social and pushed it out so that should be the latest version there.

However, you could just follow this tutorial to add it to your pre-existing demo site (http://www.broadleafcommerce.com/post/w ... ing-social). The only thing that the 'spring_social' branch on the DemoSite has is the code changes referenced in that tutorial.

Re: Spring social

Posted: Fri Dec 14, 2012 10:15 pm
by broadleafer
Spring_social branch is now compiling. Thanks heaps Phillip.

Re: Spring social

Posted: Mon Jan 21, 2013 12:42 pm
by broadleafer
Hi Phillip,

I tried the spring social documentation. I grabbed a copy of BroadleafSocialRegisterController and BroadleafSocialSignInAdapter and pasted them in the site.

I keep getting this error.

Code: Select all

HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoSuchMethodError: org.springframework.web.method.support.InvocableHandlerMethod.<init>(Lorg/springframework/web/method/HandlerMethod;)V

type Exception report

message Handler processing failed; nested exception is java.lang.NoSuchMethodError: org.springframework.web.method.support.InvocableHandlerMethod.<init>(Lorg/springframework/web/method/HandlerMethod;)V

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoSuchMethodError: org.springframework.web.method.support.InvocableHandlerMethod.<init>(Lorg/springframework/web/method/HandlerMethod;)V
   org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:972)
   org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
   org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   org.broadleafcommerce.cms.web.URLHandlerFilter.doFilterInternal(URLHandlerFilter.java:74)
   org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
   org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
   org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
   org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
   org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
   org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
   org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
   org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   org.broadleafcommerce.profile.web.core.security.SessionFixationProtectionFilter.doFilter(SessionFixationProtectionFilter.java:90)
   org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
   org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   org.broadleafcommerce.core.web.order.security.CartStateFilter.doFilter(CartStateFilter.java:86)
   org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   org.broadleafcommerce.profile.web.core.security.CustomerStateFilter.doFilter(CustomerStateFilter.java:147)
   org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
   o



Can you please suggest

Re: Spring social

Posted: Tue Jan 22, 2013 10:11 am
by broadleafer
Used 1.1.0.M1 for spring social instead. Version conflict issue I'm guessing. Probably shouldn't be using M1 but it will do for now.

Re: Spring social

Posted: Thu Apr 25, 2013 8:27 am
by aanyad
Is Spring social allows us to connect our applications with SaaS providers such as Facebook and Twitter ?
Is it?