Page 1 of 1

the Demo project

Posted: Fri Feb 03, 2012 10:48 am
by kossel
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

Re: the Demo project

Posted: Thu Feb 09, 2012 10:25 pm
by bpolster
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

Re: the Demo project

Posted: Fri Feb 10, 2012 9:40 pm
by kossel
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.

Re: the Demo project

Posted: Fri Feb 10, 2012 11:03 pm
by bpolster
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.

Re: the Demo project

Posted: Thu Jul 12, 2012 6:25 am
by Raul89
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.

Re: the Demo project

Posted: Mon Jul 16, 2012 4:08 am
by Raul89
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

Re: the Demo project

Posted: Thu Jul 19, 2012 10:37 am
by aazzolini
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.

Re: the Demo project

Posted: Mon Feb 08, 2016 12:16 pm
by yogesh12
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

projects

Posted: Sun Feb 28, 2016 11:38 am
by sumathi
Hi
How can i get sample project