Page 1 of 1

Unable to compile Admin project

Posted: Mon Apr 18, 2011 7:41 am
by eghosh01
I am getting the following error while running mvn compile or install on BroadleafCommerceAdmin 1.5


[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (flex) on project broadleaf-admin: An Ant BuildException has occured: The following error occurred while executing this line:
C:\Users\BroadleafCommerce\site\BroadleafCommerceAdmin\build.xml:13: java.lang.NoSuchMethodError: org.apache.maven.settings.RuntimeInfo.<init>(Lorg/apache/maven/settings/Settings;)V

Any help is appreciated

Re: Unable to compile Admin project

Posted: Wed Apr 20, 2011 4:53 am
by jefffischer
You appear to have a Maven version problem. I imagine you're trying to build from trunk. At the moment, trunk does not contain our latest 1.5 development code, so you would not be compiling for the GWT admin module (which is what I assume you're trying to do). This is not quite ready for prime time yet, but should be very soon. Refer to our product roadmap for more information on expected dates and features:

http://www.broadleafcommerce.org/jira/s ... dmap-panel

Re: Unable to compile Admin project

Posted: Mon May 09, 2011 9:20 am
by biswomohan
I am trying to build the project from Maven .But I am getting the exception

Code: Select all

[testng] BroadleafCommerce Test Suite
   [testng] Total tests run: 184, Failures: 0, Skips: 0
   [testng] ===============================================
   [testng]
   [testng] Exception in thread "Thread-1" java.lang.ExceptionInInitializerError
   [testng]    at java.io.File.deleteOnExit(File.java:939)
   [testng]    at net.sourceforge.cobertura.util.FileLocker.<init>(FileLocker.java:80)
   [testng]    at net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData(ProjectData.java:229)
   [testng]    at net.sourceforge.cobertura.coveragedata.SaveTimer.run(SaveTimer.java:31)
   [testng]    at java.lang.Thread.run(Thread.java:662)
   [testng] Caused by: java.lang.IllegalStateException: Shutdown in progress
   [testng]    at java.lang.Shutdown.add(Shutdown.java:62)
   [testng]    at java.lang.System$2.registerShutdownHook(System.java:1146)
   [testng]    at java.io.DeleteOnExitHook.<clinit>(DeleteOnExitHook.java:20)
   [testng]    ... 5 more
[junitreport] the file C:\Biswo\Programmes\Eclipse-Helio-Workspace\BroadleafCommerce\integration\target\test-reports\testng-results.xml is not a valid testsuite XML document
[junitreport] Transform time: 569ms
[cobertura-report] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
[cobertura-report] Cobertura: Loaded information on 683 classes.
[cobertura-report] Report time: 19135ms
[cobertura-report] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
[cobertura-report] Cobertura: Loaded information on 683 classes.
[cobertura-report] Report time: 2457ms


Other One is

Code: Select all

[INFO] --- maven-antrun-plugin:1.3:run (flex) @ broadleaf-admin ---
[INFO] Executing tasks
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] BroadleafCommerce ................................. SUCCESS [0.477s]
[INFO] core .............................................. SUCCESS [0.011s]
[INFO] BroadleafCommerceProfile .......................... SUCCESS [9.304s]
[INFO] BroadleafCommerceProfileWeb ....................... SUCCESS [3.693s]
[INFO] BroadleafCommerceFramework ........................ SUCCESS [11.066s]
[INFO] BroadleafCommerceFrameworkWeb ..................... SUCCESS [4.671s]
[INFO] module ............................................ SUCCESS [0.010s]
[INFO] BroadleafCommerceUSPSSchemas ...................... SUCCESS [11.047s]
[INFO] BroadleafCommerceUSPS ............................. SUCCESS [4.198s]
[INFO] BroadleafCommerceCyberSourceAPI ................... SUCCESS [34.881s]
[INFO] BroadleafCommerceCyberSource ...................... SUCCESS [3.781s]
[INFO] integration ....................................... SUCCESS [1:41.345s]
[INFO] site .............................................. SUCCESS [0.255s]
[INFO] BroadleafCommerceAdmin ............................ FAILURE [4.185s]
[INFO] BroadleafCommerceDemo ............................. SKIPPED
[INFO] BroadleafCommerceDemoLauncher ..................... SKIPPED
[INFO] distribute ........................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:09.499s
[INFO] Finished at: Tue May 10 00:33:44 IST 2011
[INFO] Final Memory: 37M/119M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (flex) on project broadleaf-admin: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] C:\Biswo\Programmes\Eclipse-Helio-Workspace\BroadleafCommerce\site\BroadleafCommerceAdmin\build.xml:13: java.lang.NoSuchMethodError: org.apache.maven.settings.RuntimeInfo.<init>(Lorg/apache/maven/settings/Settings;)V
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :broadleaf-admin


I want to use ORCLE instead of HSQL,so please suggest me the proper solution

Re: Unable to compile Admin project

Posted: Mon May 09, 2011 9:57 am
by biswomohan
I follwed the process which are avilable in your documention under Developers
Developing The Platform - Environment Setup
Upto Step 6's (b) there is no issue.
As directed on the (c)i.e
Right-click the "BroadleafCommerce" project and select "run as --> Maven install" to execute the maven build. Wait for the maven build to finish compiling and packaging all the projects. Maven should report the build as successful.
But I am getting build as unsuccessful .
The Error Message which I am getting

Code: Select all

 [testng] ===============================================
   [testng]     commerce-integrationtest
   [testng]     Tests run: 184, Failures: 0, Skips: 0
   [testng] ===============================================
   [testng]
   [testng]
   [testng] ===============================================
   [testng] BroadleafCommerce Test Suite
   [testng] Total tests run: 184, Failures: 0, Skips: 0
   [testng] ===============================================
   [testng]
   [testng] Exception in thread "Thread-1" java.lang.ExceptionInInitializerError
   [testng]    at java.io.File.deleteOnExit(File.java:939)
   [testng]    at net.sourceforge.cobertura.util.FileLocker.<init>(FileLocker.java:80)
   [testng]    at net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData(ProjectData.java:229)
   [testng]    at net.sourceforge.cobertura.coveragedata.SaveTimer.run(SaveTimer.java:31)
   [testng]    at java.lang.Thread.run(Thread.java:662)
   [testng] Caused by: java.lang.IllegalStateException: Shutdown in progress
   [testng]    at java.lang.Shutdown.add(Shutdown.java:62)
   [testng]    at java.lang.System$2.registerShutdownHook(System.java:1146)
   [testng]    at java.io.DeleteOnExitHook.<clinit>(DeleteOnExitHook.java:20)
   [testng]    ... 5 more
[junitreport] the file C:\Biswo\Programmes\Eclipse-Helio-Workspace\BroadleafCommerce\integration\target\test-reports\testng-results.xml is not a valid testsuite XML document
[junitreport] Transform time: 569ms
[cobertura-report] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
[cobertura-report] Cobertura: Loaded information on 683 classes.
[cobertura-report] Report time: 19135ms
[cobertura-report] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
[cobertura-report] Cobertura: Loaded information on 683 classes.
[cobertura-report] Report time: 2457ms
[INFO] Executed tasks
[INFO]
[INFO] --- maven-jar-plugin:2.2:jar (default-jar) @ integration ---
[INFO]
[INFO] --- maven-jar-plugin:2.2:test-jar (default) @ integration ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ integration ---
[INFO] Installing C:\Biswo\Programmes\Eclipse-Helio-Workspace\BroadleafCommerce\integration\target\integration-1.5.0-SNAPSHOT.jar to C:\Users\Dhakhinakali\.m2\repository\org\broadleafcommerce\integration\1.5.0-SNAPSHOT\integration-1.5.0-SNAPSHOT.jar
[INFO] Installing C:\Biswo\Programmes\Eclipse-Helio-Workspace\BroadleafCommerce\integration\pom.xml to C:\Users\Dhakhinakali\.m2\repository\org\broadleafcommerce\integration\1.5.0-SNAPSHOT\integration-1.5.0-SNAPSHOT.pom
[INFO] Installing C:\Biswo\Programmes\Eclipse-Helio-Workspace\BroadleafCommerce\integration\target\integration-1.5.0-SNAPSHOT-tests.jar to C:\Users\Dhakhinakali\.m2\repository\org\broadleafcommerce\integration\1.5.0-SNAPSHOT\integration-1.5.0-SNAPSHOT-tests.jar
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building site 1.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ site ---
[INFO] Installing C:\Biswo\Programmes\Eclipse-Helio-Workspace\BroadleafCommerce\site\pom.xml to C:\Users\Dhakhinakali\.m2\repository\org\broadleafcommerce\site\1.5.0-SNAPSHOT\site-1.5.0-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceAdmin 1.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: file://C:\Biswo\Programmes\Eclipse-Helio-Workspace\BroadleafCommerce\site\BroadleafCommerceAdmin/lib/xml-dir-listing/xml-dir-listing/0.2/xml-dir-listing-0.2.pom
Downloading: http://repo1.maven.org/maven2/xml-dir-listing/xml-dir-listing/0.2/xml-dir-listing-0.2.pom
[WARNING] The POM for xml-dir-listing:xml-dir-listing:jar:0.2 is missing, no dependency information available
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ broadleaf-admin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- javarebel-maven-plugin:1.0.5:generate (generate-rebel-xml) @ broadleaf-admin ---
[INFO] Processing org.broadleafcommerce:broadleaf-admin with packaging war
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ broadleaf-admin ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-antrun-plugin:1.3:run (flex) @ broadleaf-admin ---
[INFO] Executing tasks
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] BroadleafCommerce ................................. SUCCESS [0.477s]
[INFO] core .............................................. SUCCESS [0.011s]
[INFO] BroadleafCommerceProfile .......................... SUCCESS [9.304s]
[INFO] BroadleafCommerceProfileWeb ....................... SUCCESS [3.693s]
[INFO] BroadleafCommerceFramework ........................ SUCCESS [11.066s]
[INFO] BroadleafCommerceFrameworkWeb ..................... SUCCESS [4.671s]
[INFO] module ............................................ SUCCESS [0.010s]
[INFO] BroadleafCommerceUSPSSchemas ...................... SUCCESS [11.047s]
[INFO] BroadleafCommerceUSPS ............................. SUCCESS [4.198s]
[INFO] BroadleafCommerceCyberSourceAPI ................... SUCCESS [34.881s]
[INFO] BroadleafCommerceCyberSource ...................... SUCCESS [3.781s]
[INFO] integration ....................................... SUCCESS [1:41.345s]
[INFO] site .............................................. SUCCESS [0.255s]
[INFO] BroadleafCommerceAdmin ............................ FAILURE [4.185s]
[INFO] BroadleafCommerceDemo ............................. SKIPPED
[INFO] BroadleafCommerceDemoLauncher ..................... SKIPPED
[INFO] distribute ........................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:09.499s
[INFO] Finished at: Tue May 10 00:33:44 IST 2011
[INFO] Final Memory: 37M/119M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (flex) on project broadleaf-admin: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] C:\Biswo\Programmes\Eclipse-Helio-Workspace\BroadleafCommerce\site\BroadleafCommerceAdmin\build.xml:13: java.lang.NoSuchMethodError: org.apache.maven.settings.RuntimeInfo.<init>(Lorg/apache/maven/settings/Settings;)V
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :broadleaf-admin


I want to use Oracle database instead of HSQL.
Is there any configuration required is build.xml for HSQL(Rear Path Of HSQL directory)

Re: Unable to compile Admin project

Posted: Sat May 14, 2011 2:50 pm
by jefffischer
Just making sure you're aware, but the set of instructions that you're following are intended for people that are trying to work with the Broadleaf source itself. This is not the path someone would use if he/she was trying to setup an e-commerce site using Broadleaf. Instead, an implementation user would be interested in leveraging BLC in their own codebase, like what's described here:

http://www.broadleafcommerce.org/conflu ... se+-+Maven

Having said that, we are on the verge of delivering 1.5 M1, so the updated codebase in now in trunk. If you would like, you are welcome to update your local checkout and try the mvn install again.

As for Oracle, from the perspective of the Broadleaf demo, you would need to change the hibernate dialect specified in persistence-demo.xml and you would need to update the datasource defined in applicationContext-demo.xml. Also, you will need to add a maven dependency to the demo pom.xml for the Oracle driver jar. This jar is not available in the maven central repository, so you will have to download it yourself and install it in your maven local repository. Here's a description of how to do this:

http://maven.apache.org/plugins/maven-i ... -repo.html