Page 2 of 2

Re: Broadleaf - Ant BuildException - Error instrumenting classes

Posted: Mon Jun 21, 2010 2:05 am
by logicallimit
I was going through some more opensource products and came across "Liferay". What an awesome product they have made. Such an easy deployment like cutting butter cubes with hot knife. They have got pre-bundled packages of their product with all the requisite jar files and corresponding server on which it is supposed to run. Just download and get set go. and they have got superb documentation in the form of administration guide and quick instllation. Really awesome.

I'll highly recommend broadleaf to have a look the way they are releasing their products and their administration guide. Though I could never set up my development environment with Broadleaf as my queries remained unanswered. Still I believe broadleaf looks like a very promising product. Please release your product keeping in mind developer and deployer convenience. Package has to carry each and every jar file on which it has dependency within the complete package. Test the deployment of released package on various systems wrt to development environment. And please do see the administration guide of "liferay portal" and provide similar kind of documentation for your product.

Do let me know if I can help in anyways in bringing out these kind of documentation. I'll be more than happy to contribute in it. Somebody from broadleaf management has to seriously look into the development environment setup easiness and documentation. This will really take not too much of your effort but would save a lot of for users. Your are doing so much of good work but lack of strong standard documentation directly from your organization is what I feel a serious problem.

Re: Broadleaf - Ant BuildException - Error instrumenting classes

Posted: Sun Jun 27, 2010 3:56 pm
by jefffischer
As part of 1.1-M3 and beyond, we have simplified the launch process for the demo and the admin. This lessens the complexity for the try-out phase of the product. As for actually building the product, or more importantly, building your own application on top of the product, we plan to have additional and more in-depth development guides (including Eclipse) for our 1.1 release.

Re: Broadleaf - Ant BuildException - Error instrumenting classes

Posted: Fri Jun 10, 2011 7:35 pm
by logicallimit
I took an attempt again yesterday to build the Broadleaf commerce again by using the "mvn install" command. And unfortunately the same error occurred again. But this time I have been watching the console very carefully for two things. First, any error. Secondly, if the processing halts for too long while downloading a dependency. When I was building yesterday, the second thing occured once, i.e., the black dos prompt screen stuck at a point for a very very long time while downloading a dependency jar file. I terminated the screen and ran the install command again. All earlier files that were downloaded were skipped and probably that file where the dos screen halted was also assumed to be downloaded. (This is my guess only). Processing of downloading files started after the point where dos screen was closed by me. But at the end test run failed giving same instrumentation problem. Note that, in this setup I used the default .m2 repository location in my Windows XP SP3 system. This default path unfortunately contains spaces in the folder name "Documents And Settings". I guess this could be another reason for build failure.

Software versions used:
* JDK 1.5 (http://java.sun.com/javase/downloads/index_jdk5.jsp)
* Maven 2.2.1 (http://archive.apache.org/dist/maven/binaries/)
* Ant 1.7.1 (http://ant.apache.org/bindownload.cgi)
* Flex 3.4 SDK (http://opensource.adobe.com/wiki/displa ... k/Flex+SDK)

I attempted again today but with following changes:
1. I followed the instruction in the url http://ericlefevre.net/wordpress/2007/02/21/changing-maven-local-repository/ to change the default .m2 repository location. The idea is to set it to a path which does not carries spaces in folder names. One can also refer to url http://maven.apache.org/guides/mini/guide-configuring-maven.html.
2. I followed the maven installation instruction given at maven site http://maven.apache.org/download.html#Installation for my environment "Windows 2000/XP". I set up all environment variables like M2_HOME, M2 exactly as mentioned.
3. Set ant variable ANT_HOME by following the instructions at http://ant.apache.org/manual/index.html.
4. Set JAVA_HOME correctly.
5. Add bin folders of java, maven and ant to the "Path" variable like this; %JAVA_HOME%\bin;%M2_HOME%\bin;%ANT_HOME%\bin
6. Change the "flex.sdk.dir" path in build.properties under "BroadleafCommerceAdmin" module at location "BroadleafCommerce\src\site\BroadleafCommerceAdmin" to the root folder where you unzipped/installed the flex sdk.
7. Change the "maven.home" path in build.properties under "src" directory at location "BroadleafCommerce\src" to the root folder where you unzipped/installed the maven.
8. I again downloaded the "-with-dependencies" distribution of the Broadleaf Commerce framework from site to be doubly sure that I have latest code. Although, I downloaded the build yesterday also and attempted on the same yesterday which actually failed.
9. I again ran "mvn install" command from src directory of build. This time it halted for 2-3 minutes while downloading but it the continued. This could happen due to internet connectivity issue. So be careful for this halting issue. And it built successfully and all the tests were also completed successfully. Following is the summary of screen:

[INFO] ------------------------------------------------------------------------
[INFO] Building distribute
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing H:\Projects\BroadleafCommerce\src\distribute\pom.xml to H:\Projects\DependencyT
sitory\org\broadleafcommerce\distribute\1.1.1-GA\distribute-1.1.1-GA.pom
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] BroadleafCommerce ..................................... SUCCESS [2.531s]
[INFO] core .................................................. SUCCESS [0.032s]
[INFO] BroadleafCommerceProfile .............................. SUCCESS [5.406s]
[INFO] BroadleafCommerceProfileWeb ........................... SUCCESS [1.407s]
[INFO] BroadleafCommerceFramework ............................ SUCCESS [3.297s]
[INFO] BroadleafCommerceFrameworkWeb ......................... SUCCESS [2.406s]
[INFO] module ................................................ SUCCESS [0.016s]
[INFO] BroadleafCommerceUSPSSchemas .......................... SUCCESS [7.968s]
[INFO] BroadleafCommerceUSPS ................................. SUCCESS [1.141s]
[INFO] BroadleafCommerceCyberSourceAPI ....................... SUCCESS [35.781s]
[INFO] BroadleafCommerceCyberSource .......................... SUCCESS [5.797s]
[INFO] integration ........................................... SUCCESS [1:19.016s]
[INFO] site .................................................. SUCCESS [0.015s]
[INFO] BroadleafCommerceAdmin ................................ SUCCESS [2:17.266s]
[INFO] BroadleafCommerceDemo ................................. SUCCESS [21.922s]
[INFO] BroadleafCommerceDemoLauncher ......................... SUCCESS [4:27.265s]
[INFO] distribute ............................................ SUCCESS [0.078s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 minutes 32 seconds
[INFO] Finished at: Sat Jun 11 12:52:18 IST 2011
[INFO] Final Memory: 37M/63M
[INFO] ------------------------------------------------------------------------
H:\Projects\BroadleafCommerce\src>


So, this is all what I followed and how it resulted in successfull build. I hope my contribution will help in the product documentation. If Broadleaf feels considers it to be useful and correct, I'll be happy to see these steps incorporated in the official documentation.

Cheers!