This revision made January 19, 2010 16:31, by Felipe Gaúcho

Arena PUJ - Development Environment Configuration

Where is the project specification?

Would you like to know more about the project before to put your hands in the code jar? Here are the docs:

QuickStart - The code up and running in ~10 minutes

The following instructions were tested in Linux Ubuntu 9.10, but we assume it will work in other operational systems as well. If you have questions or problems during your local setup, please feel free to send an email to

Environment Setup

  • Put the $GLASSFISH_HOME/bin in your $PATH (%path% on windows). It is required by the Maven script;
  • Create a file called $HOME/.passwords directory, containing the following properties:
  • If you are using Windows, create the file %USERPROFILE%\.passwords and copy the above properties, but please change the DB_URL to:

Install MySql driver in Glassfish

You need to copy the MySql Connector/J jar file to the folder $AS_HOME/domains/domain1/lib/ext

This should be done manually and you should restart the server after copying the file. more...

  • Please check if you are using the default domain1, otherwise modify the above command according your Server domain name.

Checkout and build the source code

  hg clone 
  cd puj~arena 
  mvn clean install eclipse:eclipse

Done! Now you can import the project in your preferred IDE and play around the source code.

Start the MySql database

If the MySql database is not yet running, please turn it on:

  • Linux Users: /etc/rc.d/init.d/mysqld start
  • Windows Users: C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld

Building and deploying the application

  • Linux Users: use the profile -Phudson:
  cd puj~arena 
  asadmin start-domain
  mvn clean install -Phudson
  • Windows Users: use the profile -PhudsonWin:
  cd puj~arena 
  asadmin start-domain
  mvn clean install -PhudsonWin

Testing the application

If everything worked fine, you should be able to access the following URLs:

Quality assurance

Java Quality Assurance & Continuous integration

Our project has a Continuous Integration Server configured to check the quality of our work continuously. If there is any commit in the last hour, this server will build a clean copy of the source code and generates quality reports based on Findbugs and PMD. Please visit that server regularly to check if your code is sound and considered good quality.

Also, please be sure to have the following plugins installed in your preferred IDE:

Web Resources Quality Assurance

If you are producing a web-application, please install YSlow in the browser you use to validate the quality of your code. And other good practice is to do a functional test of your web-gui against the major browsers on the market (at least Firefox, IExplorer and Chrome). There are some online services to test a web application on different machine configurations and browser versions, like the popular

Web resources validation: a good quality indicator about our web resources are the W3C validations. Please apply your documents for validation and review the W3C warnings and recommendations before to commit the files:

Other good tools for cleanup & enhance the quality of your web resources are:


HTTP Protocol

RESTful Web-Services

Java EE


Difference compared to previous revision
<span>* [ JSLint] (javascript validator) =References= ==<span style="text-decoration:underline;color:green">HTTP Protocol== * [ Caching Tutorial ''for Web Authors and Webmasters''] ==</span>'''Arena PUJ - Development Environment Configuration''' [ [[image: title.png|right]]] [ [[image: project_partner_badge.gif|right]]] ... * [ How to GET a Cup of Coffee] * [ PUT or POST: The REST of the Story] * [ Common REST Mistakes] * [ Building Web Services the REST Way<span style="text-decoration:line-through;color:red">] * [ Common REST Design Pattern] * [ Resources about REST and RESTful Web services</span>] ==Java EE== * [ The Java EE 6 Tutorial]<span>
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2014, Oracle Corporation and/or its affiliates
(revision 20160708.bf2ac18)
Please Confirm