Page 1 of 1

problem with getting started with Broadleaf Framework.

Posted: Fri Nov 04, 2011 8:49 am
by parthiv_jani
Hi all,

i am new to blf framework, i read about this framework and i am interested to learn more on blf framework...
i downloaded 1.5.0.m2 distribution of blf framework....run the demo application come with the downloaded distridution..
then i followed the steps what are suggested on the http://www.broadleafcommerce.org/confluence/display/core/Eclipse+-+Maven.

the only change that i did on pom.xml is
<dependency>
<groupId>org.broadleafcommerce</groupId>
<artifactId>broadleaf-profile-web</artifactId>
<version>1.5.0-M2</version>
</dependency>

instead of

<dependency>
<groupId>org.broadleafcommerce</groupId>
<artifactId>broadleaf-profile-web</artifactId>
<version>1.1.0-GA</version>
</dependency>
other things are same as suggested on given link.

when i am compiling and running in eclipe, i got errors....the complete stacktrace/console output is given bellow.

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building demoapp Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Missing artifact metadata for javax.servlet:servlet-api:jar:5.1
[INFO]
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ demoapp ---
[INFO] Deleting file set: D:\Eclipse Ganymede\broadleaf_framework\demoapp\target (included: [**], excluded: [])
[INFO]
[INFO] --- maven-resources-plugin:2.4.1:resources (default-resources) @ demoapp ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 9 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ demoapp ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-war-plugin:2.1-alpha-1:inplace (default-cli) @ demoapp ---
[INFO] Generating webapp in source directory[D:\Eclipse Ganymede\broadleaf_framework\demoapp\src\main\webapp]
[INFO] Assembling webapp[demoapp] in [D:\Eclipse Ganymede\broadleaf_framework\demoapp\src\main\webapp]
[INFO] Processing war project
[INFO] Webapp assembled in[642 msecs]
[INFO]
[INFO] --- maven-resources-plugin:2.4.1:resources (default-resources) @ demoapp ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 9 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ demoapp ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.4.1:testResources (default-testResources) @ demoapp ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\Eclipse Ganymede\broadleaf_framework\demoapp\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ demoapp ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-jetty-plugin:6.1.22:run (default-cli) @ demoapp ---
[INFO] Configuring Jetty for project: demoapp Maven Webapp
[INFO] Webapp source directory = D:\Eclipse Ganymede\broadleaf_framework\demoapp\src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = D:\Eclipse Ganymede\broadleaf_framework\demoapp\target\classes
2011-11-04 18:17:57.519:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
[INFO] Context path = /broadleafdemo
[INFO] Tmp directory = determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides = none
[INFO] web.xml file = D:\Eclipse Ganymede\broadleaf_framework\demoapp\src\main\webapp\WEB-INF\web.xml
[INFO] Webapp directory = D:\Eclipse Ganymede\broadleaf_framework\demoapp\src\main\webapp
[INFO] Starting jetty 6.1.22 ...
2011-11-04 18:17:57.596:INFO::jetty-6.1.22
2011-11-04 18:17:58.039:INFO::No Transaction manager found - if your webapp requires one, please configure one.
2011-11-04 18:17:58.943:INFO:/broadleafdemo:Set web app root system property: 'blAdmin.root' = [D:\Eclipse Ganymede\broadleaf_framework\demoapp\src\main\webapp]
2011-11-04 18:17:58.964:INFO:/broadleafdemo:Initializing log4j from [D:\Eclipse Ganymede\broadleaf_framework\demoapp\src\main\webapp\WEB-INF\log4j.properties]
2011-11-04 18:17:59.025:INFO:/broadleafdemo:Initializing Spring root WebApplicationContext
2011-11-04 18:17:59.026:WARN::failed org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@626fd2{/broadleafdemo,D:\Eclipse Ganymede\broadleaf_framework\demoapp\src\main\webapp}: java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
2011-11-04 18:17:59.026:WARN::failed ContextHandlerCollection@232697: java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
2011-11-04 18:17:59.026:WARN::failed HandlerCollection@1bab2c3: java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
2011-11-04 18:17:59.026:WARN::Error starting handlers
java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocationAwareLog.java:159)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
at org.broadleafcommerce.extensibility.web.MergeContextLoaderListener.contextInitialized(MergeContextLoaderListener.java:41)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:105)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:562)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:317)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:247)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:423)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:158)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
2011-11-04 18:17:59.046:INFO::Started SelectChannelConnector@0.0.0.0:8080
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 10 seconds.

i think i am facing this error due to some jars are get conflicted. but i am not getting any way to solve this.

Please help me out of this problem, and execute me for my bad english.
Thanks in Advance

Re: problem with getting started with Broadleaf Framework.

Posted: Fri Nov 11, 2011 12:19 pm
by Theo Schumacher
Hi I have had a similar problem. I have added slf4j-api-1.6.1.jar in the classpath and it worked.
Theo