Thursday, April 29, 2010

Bugzilla and Testopia on Ubuntu

This was done on Ubuntu 9.10, Bugzilla 3.4.6 and Testopia 2.3.1

Bugzilla

unzip tar to /var/www or similar, then do the
./checksetup.pl --check-modules

Manually install the missing required modules as described.

Then, if you get a
Attempt to reload DateTime.pm aborted.
Compilation failed in require at Bugzilla/Util.pm line 53.
BEGIN failed--compilation aborted at Bugzilla/Util.pm line 53.
Compilation failed in require at Bugzilla/Hook.pm line 26.
BEGIN failed--compilation aborted at Bugzilla/Hook.pm line 26.
Compilation failed in require at Bugzilla/Config.pm line 37.
BEGIN failed--compilation aborted at Bugzilla/Config.pm line 37.
Compilation failed in require at Bugzilla.pm line 38.
BEGIN failed--compilation aborted at Bugzilla.pm line 38.
Compilation failed in require at ./checksetup.pl line 101.

it seems to be the List:MoreUtils and DateTime::Locale that's missing:

/usr/bin/perl install-module.pl List::MoreUtils
/usr/bin/perl install-module.pl DateTime::Locale

Now, the
./checksetup.pl
works!

Edit the localconfig file a little. Set $db_pass and $webservergroup to what's
relevant for your system, 'bugs' and 'www-data' respectively in my case.

Again, do
./checksetup.pl

Time to access the web interface:
http://localhost/bugzilla-3.4.6/index.cgi

Installing Testopia
Unzip the tar to /var/www/bugzilla-3.4.6/

Then,
patch -p0 -i extensions/testopia/patch-3.4.4

./checksetup.pl

Install any missing required modules, e.g.
/usr/bin/perl install-module.pl JSON
/usr/bin/perl install-module.pl Text::Diff
/usr/bin/perl install-module.pl GD::Graph3d

./checksetup.pl
adds the missing tables. Now I can see the Testopia links at the bottom of the Bugzilla pages.

Thursday, April 22, 2010

Eclipse and Tomcat and Maven

The optimal setup of a maven / eclipse / tomcat web project is setup as follows:
  • [Download and install java 1.6]
  • [Download and install Eclipse Galileo JEE]
  • [Download and install Tomcat 6.0.x]
  • Download SysDeo (eclipse-)plugin from http://www.eclipsetotale.com/tomcatPlugin.html
  • Extract the zip to ECLIPSE_HOME/plugins
  • [Re-]start eclipse with -clean option
  • Set Tomcat version and home in Preferences - Tomcat
  • Make sure Eclipse default JRE is a JDK
  • Set your Eclipse project to be a Tomcat project: Project Properties - Tomcat
  • Set a context path
  • Set the Subdirectory to use as web app root to /src/main/webapp
  • Activate DevLoader
  • Check all jars, then uncheck test classes and servlet-api.jar
  • Copy DevLoader.zip from ECLIPSE_HOME/plugins/SYSDEO to TOMCAT_HOME/lib and rename it to .jar