Page 1 of 1

Running for the first time - java.lang.NoClassDefFound

Posted: Fri Jan 30, 2015 11:35 pm
by robertwynkoop
I did a install. Went fine.

When I try to run I get: java.lang.NoClassDefFoundError: org/sonatype/aether/graph/DependencyFilter

Code: Select all

Error stacktraces are turned on.
Scanning for projects...
------------------------------------------------------------------------
Reactor Build Order:

ecommerce
core
admin
site
                                                                       
------------------------------------------------------------------------
Building ecommerce 1.0
------------------------------------------------------------------------

--- maven-site-plugin:3.0:run (default-cli) @ ecommerce-website ---
Logging to org.slf4j.impl.SimpleLogger(org.mortbay.log) via org.mortbay.log.Slf4jLog
Error injecting: org.apache.maven.reporting.exec.DefaultMavenReportExecutor
java.lang.NoClassDefFoundError: org/sonatype/aether/graph/DependencyFilter
   at java.lang.Class.getDeclaredConstructors0(Native Method)

I'm building and running from Netbeans and JDK 7. Most of the doc seem to talk about running the jetty goal. I only have run.

Anyone have any ideas.

Robert Wynkoop

Re: Running for the first time - java.lang.NoClassDefFound

Posted: Sat Jan 31, 2015 10:26 am
by phillipuniverse
Execute a full maven install from the root before you try running. That is almost definitely the problem.

Re: Running for the first time - java.lang.NoClassDefFound

Posted: Sat Jan 31, 2015 9:43 pm
by robertwynkoop
Thanks, I had done that. I was confused about what to run.

Netbeans 8.0.2 had configured two main projects, one for the BroadleafCommerce(root pom) and one for DemoSite. I then had to open the site pom as a project and run the jetty goal from there.

Additionally I wanted to MySql. I had to add the MySql jdbc connector to the Site pom and Admin pom.

I now have a demo site up and running. Thanks.


Robert Wynkoop

Re: Running for the first time - java.lang.NoClassDefFound

Posted: Mon Feb 08, 2016 12:17 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

Re: Running for the first time - java.lang.NoClassDefFound

Posted: Mon Feb 08, 2016 12:19 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 and glassfish