How to build Jbilling from source with PostgreSQL on STS Tool
Posted By : Shivam Gupta | 03-Jun-2014
Prerequisite Software
Java 6+
Grails 1.3.4
PostgreSQL 8+
First you need to download jbilling-community-3.0.2-src.zip and after downloading extract this file to get all source files.Follows following instructions for building jbilling from source
1.Import Jbilling project on sts under grail1.3.4 version
2.Create a user, database, and grant all privileges into PostgreSQL relational database
create user jbilling; create database jbilling_test; grant all on database jbilling_test to jbilling;
3.Create a dump of the test database
pg_dump -U jbilling --clean jbilling_test > jbilling_test.sql pg_dump -c -U jbilling jbilling_staging > db-backup-`date +%Y%m%d-%H%M`.sql
4.Uncommenting configuration parameters for PostgreSQL,commenting configuration parameters for HSQL in enterprise/grails-app/conf/DataSource.groovy file
5.Compile the source code using following commands
clean compile compile prepare-test
Note: If you get error like Execute failed: java.io.IOException: Cannot run program "liquidbase-2.0.5/liquibase": java.io.IOException: error=13, Permission denied then change permissions for liquidbase-2.0.5/liquibase file and repeat step 5
6.Run-app this application it takes some time for deployment Note:If you get Exception while run-app like NullPointerException, BeanCreationException etc then you need to rename enterprise\java\src\jbilling.properties~HEAD to enterprise\java\src\jbilling.properties and repeat step 6.
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Shivam Gupta
Shivam is a bright java developer with experience in building enterprise applications using Flex and Java. He is also well versed with Groovy and Grails development.