the Demo project

Topics related to running, modifying, or working with the Broadleaf Commerce Demo application

Moderator: jocanas

kossel
Newbie
Newbie
Posts: 5
Joined: Fri Feb 03, 2012 10:36 am

the Demo project

Postby kossel » Fri Feb 03, 2012 10:48 am

Hi

I'm consider making a classic shopping cart plus some personal functions and I'm evaluating broadleaf.
I have read almost every documentation page and I have successfully deployed/ran the demo and the archtype project.
my problem is I dont't know how to start and I can't find a sample tutorial style document which tell me step by step to create/add a function.

now I'm considering to modify the demo store project (since I need most feature provided by demo site). but the demo project is in another structure (all in same project). my question is: is it possible to get the demo store project files which I can import to eclipse or netBeans and work on it straightly?

thanks

bpolster
Team Member
Team Member
Posts: 137
Joined: Fri Nov 20, 2009 1:40 am

Re: the Demo project

Postby bpolster » Thu Feb 09, 2012 10:25 pm

Kossel,

The demo code is publicly available on GitHub. You are welcome to fork that project.

Our recommendation is to use the demo as a reference and bring over things that you want into a project based on the Archetype structure. This will be more compatible with future Broadleaf upgrades and support a more maintainable programming model as your needs grow.

We've written some documentation to help you understand how to customize Broadleaf. You can find it on our documentation site, located here: http://www.broadleafcommerce.org/confluence/display/BLC15/Customizing+Functionality
Brian Polster
Broadleaf Commerce
bpolster@broadleafcommerce.org

kossel
Newbie
Newbie
Posts: 5
Joined: Fri Feb 03, 2012 10:36 am

Re: the Demo project

Postby kossel » Fri Feb 10, 2012 9:40 pm

thanks for your kindly replay. will there be a demo project which is based on the archtype? so I can fork that and just remove/change parts I dont want. instead of creating an empty archtype project them separate the actual demo project into different parts to adapt the archtype project.

bpolster
Team Member
Team Member
Posts: 137
Joined: Fri Nov 20, 2009 1:40 am

Re: the Demo project

Postby bpolster » Fri Feb 10, 2012 11:03 pm

I think you'll continue to see improvements that make it easier to get a project started. To date the framework has been mostly UI agnostic. The implementations that our team has been involved with have a creative team that has developed wireframes / html that needs to be integrated with the framework code. I see the need for some generic templates that could be utilized with the Archetype for more general purposes and suspect that we'll continue to improve in that regard.
Brian Polster
Broadleaf Commerce
bpolster@broadleafcommerce.org

Raul89
Newbie
Newbie
Posts: 5
Joined: Wed Jul 04, 2012 4:04 am

Re: the Demo project

Postby Raul89 » Thu Jul 12, 2012 6:25 am

Hi,
I had downloaded the latest demosite from github and have been constantly trying to customize it,the problem i am facing is when i instantiate a class for eg. CategoryServiceImpl or use sm functions of catalog service it always returns null pointer exception.The problem is all the implementations are in .class files and whenever in the error stacktrace i acces the line of error it says that no source is attached.Can you provide a solution to this?i have been stuck in this for a long time.

Raul89
Newbie
Newbie
Posts: 5
Joined: Wed Jul 04, 2012 4:04 am

Re: the Demo project

Postby Raul89 » Mon Jul 16, 2012 4:08 am

Hi,
The catalog controller was already in the demo site project whenever i try to use a method of catalog Service it says :
HTTP ERROR 500
Problem accessing /broadleafdemo/products/viewallproducts.htm. Reason:

Catalog Controller configured incorrectly - rootId category not found: null

Caused by:
java.lang.IllegalStateException: Catalog Controller configured incorrectly - rootId category not found: null
at org.broadleafcommerce.product.web.ProductController.findRootCategory(ProductController.java:63)
at org.broadleafcommerce.product.web.ProductController.viewProducts(ProductController.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)
at org.broadleafcommerce.cms.web.BroadleafProcessURLFilter.doFilterInternal(BroadleafProcessURLFilter.java:202)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at org.broadleafcommerce.profile.web.core.security.CustomerStateFilter.doFilter(CustomerStateFilter.java:151)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:112)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.broadleafcommerce.common.web.util.PrecompressedArtifactFilter.doFilter(PrecompressedArtifactFilter.java:55)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

Please help me finding a solution to this as the catalog controller was already in the project

aazzolini
Team Member
Team Member
Posts: 159
Joined: Thu Oct 13, 2011 11:47 am

Re: the Demo project

Postby aazzolini » Thu Jul 19, 2012 10:37 am

It seems that the default data isn't loading properly for you.

Use a tool like SQuirreL SQL to see that the BLC_CATEGORY table is properly populated after startup.

yogesh12
Newbie
Newbie
Posts: 6
Joined: Wed Feb 03, 2016 3:36 pm

Re: the Demo project

Postby yogesh12 » Mon Feb 08, 2016 12:16 pm

I am very familiar with netbeans and I want configure broadleaf commerce for netbeans so what are the precaution I have to take for configure broadleaf for netbeans

sumathi
Newbie
Newbie
Posts: 1
Joined: Sun Feb 28, 2016 11:29 am

projects

Postby sumathi » Sun Feb 28, 2016 11:38 am

Hi
How can i get sample project


Return to “Broadleaf Commerce Demo”

Who is online

Users browsing this forum: No registered users and 1 guest