Problems on custom install

Hello

I try to install on a existing system (Ubuntu 8.04 LTS) according to
installation guide
(http://www.djigzo.com/documents/installation-guide.pdf).
What i found so far :

- "Ant" is complaining if the openjdk-6-jdk package is not installed
so i added this to the openjdk-6-jre package.

- The required package "jetty" is by default only available with
version 5.1 on Ubuntu 8.04 LTS not version 6.1 as used in the VM
appliance.

- The path in the docu is /usr/local/djigzo while the appliance uses
/usr/share/djigzo. This is a little bit confusing and makes it harder
to compare if something goes wrong.

- If i extract both the djigzo-src* and the djigzo-web* from the
website and start ant it does not work eg. throw some error about
"djigzo.jar not found". If i first only extract djigzo-src* start ant
and then extract djigzo-web* in the same directory and start ant again
it seams to work.

Thanks for any help

Andreas

Hi Andreas,

> - "Ant" is complaining if the openjdk-6-jdk package is not installed
> so i added this to the openjdk-6-jre package.

This is probably caused because you system was not a complete fresh
Ubuntu 8.04 install. I have tested the installation procedure
meticulously over and over again. Did you get this error when installing
the .tar files or when trying to build the sources?

> - The required package "jetty" is by default only available with
> version 5.1 on Ubuntu 8.04 LTS not version 6.1 as used in the VM
> appliance.

That's why on page 7 (Install and configure Jetty) of the installation
guide Jetty will be downloaded from the Djigzo website:

wget http://www.djigzo.com/downloads/jetty6_6.1.17_all.deb

You can also download Jetty directly from
http://dist.codehaus.org/jetty/ but at the time of writing they did not
have a .deb build of the latest version.

If you want you can use Jetty 5.1 but this has not been tested.

> - The path in the docu is /usr/local/djigzo while the appliance uses
> /usr/share/djigzo. This is a little bit confusing and makes it harder
> to compare if something goes wrong.

The reason for this is that application installed in /usr/share should
only be installed using dpkg (ie. the package should be manageable by
the Debian package manager). The Djigzo .deb packages can be removed
ussing dpkg and adhere to the Debian policy. If you manually install
Djigzo you should not install it into /usr/share. The standard location
for manually installed applications is /usr/local.

> - If i extract both the djigzo-src* and the djigzo-web* from the
> website and start ant it does not work eg. throw some error about
> "djigzo.jar not found". If i first only extract djigzo-src* start ant
> and then extract djigzo-web* in the same directory and start ant again
> it seams to work.

The "developers-guide.pdf" shows you the steps you need to take to build
the source. You do not need to extract the web src in the same
directory. Quote from "developers-guide"

"The djigzo­web project requires the jar file generated by the djigzo
project. It is therefore required that
djigzo project is build first. The djigzo­web build.xml ant script
contains a relative reference to the
djigzo jar file so if the two directories do not have the same parent
directory, or the djigzo directory is
named differently, you should change the “"djigzo.jar" ant property."

Kind regards,

Martijn Brinkers

lst_hoe02(a)kwsoft.de wrote:

···

Hello

I try to install on a existing system (Ubuntu 8.04 LTS) according to
installation guide
(http://www.djigzo.com/documents/installation-guide.pdf).
What i found so far :

- "Ant" is complaining if the openjdk-6-jdk package is not installed
so i added this to the openjdk-6-jre package.

- The required package "jetty" is by default only available with
version 5.1 on Ubuntu 8.04 LTS not version 6.1 as used in the VM
appliance.

- The path in the docu is /usr/local/djigzo while the appliance uses
/usr/share/djigzo. This is a little bit confusing and makes it harder
to compare if something goes wrong.

- If i extract both the djigzo-src* and the djigzo-web* from the
website and start ant it does not work eg. throw some error about
"djigzo.jar not found". If i first only extract djigzo-src* start ant
and then extract djigzo-web* in the same directory and start ant again
it seams to work.

Thanks for any help

Andreas

_______________________________________________
Users mailing list
Users(a)lists.djigzo.com
http://lists.djigzo.com/lists/listinfo/users

--
Djigzo open source email encryption

Zitat von Martijn Brinkers <martijn(a)djigzo.com>:

Hi Andreas,

- "Ant" is complaining if the openjdk-6-jdk package is not installed
so i added this to the openjdk-6-jre package.

This is probably caused because you system was not a complete fresh
Ubuntu 8.04 install. I have tested the installation procedure
meticulously over and over again. Did you get this error when
installing the .tar files or when trying to build the sources?

It was merely a additional warning when starting "ant" without any
input. Maybe it would even work without fixing it.
Tested on fresh install: If one first install openjdk-6 and then ant
the warning "Unable to locate tools.jar" appear. This can be fixed by
first install ant or by installing openjdk-6-jdk...
Strange but more of a bug in the dependencies.

- The required package "jetty" is by default only available with
version 5.1 on Ubuntu 8.04 LTS not version 6.1 as used in the VM
appliance.

That's why on page 7 (Install and configure Jetty) of the
installation guide Jetty will be downloaded from the Djigzo website:

wget http://www.djigzo.com/downloads/jetty6_6.1.17_all.deb

You can also download Jetty directly from
http://dist.codehaus.org/jetty/ but at the time of writing they did
not have a .deb build of the latest version.

If you want you can use Jetty 5.1 but this has not been tested.

I try to stay as close to distribution packages as possible to get
security updates delievered. So my intention was to use the supplied
one, but it seams there are differences for the config file syntax :frowning:
I have still not managed to get jetty 5 to supply djigzo web interface.

BTW there seams to some security problem regarding version 6 and 7 of
jetty dated from mid oktober this year.

- The path in the docu is /usr/local/djigzo while the appliance uses
/usr/share/djigzo. This is a little bit confusing and makes it harder
to compare if something goes wrong.

The reason for this is that application installed in /usr/share
should only be installed using dpkg (ie. the package should be
manageable by the Debian package manager). The Djigzo .deb packages
can be removed ussing dpkg and adhere to the Debian policy. If you
manually install Djigzo you should not install it into /usr/share.
The standard location for manually installed applications is
/usr/local.

Can you maybe explain shortly what the .deb installation does? Is
there any Postfix configuration going on at install-time or is it
"safe" to install on a machine with already customized Postfix and
PostgreSQL?

- If i extract both the djigzo-src* and the djigzo-web* from the
website and start ant it does not work eg. throw some error about
"djigzo.jar not found". If i first only extract djigzo-src* start ant
and then extract djigzo-web* in the same directory and start ant again
it seams to work.

The "developers-guide.pdf" shows you the steps you need to take to
build the source. You do not need to extract the web src in the same
directory. Quote from "developers-guide"

Hmm, yes. I only tried to go step by step through the installation
guide which explain on page 3 to extract both to /usr/local/djigzo and
start "ant" in that directory. Sorry but i'm totaly java noob.

"The djigzo­web project requires the jar file generated by the
djigzo project. It is therefore required that
djigzo project is build first. The djigzo­web build.xml ant script
contains a relative reference to the
djigzo jar file so if the two directories do not have the same
parent directory, or the djigzo directory is
named differently, you should change the “"djigzo.jar" ant property."

I think i really should resort to the .deb install.

Many Thanks

Andreas

Hi Andreas,

It was merely a additional warning when starting "ant" without any
input. Maybe it would even work without fixing it.
Tested on fresh install: If one first install openjdk-6 and then ant
the warning "Unable to locate tools.jar" appear. This can be fixed by
first install ant or by installing openjdk-6-jdk...
Strange but more of a bug in the dependencies.

Ah yes you are right. It is just a warning and can be ignored (ANT works
without it). I have not noted this in the installation guide because I
wanted to keep it concise. I will make a foot-note of it in the
installation manual.

> BTW there seams to some security problem regarding version 6 and 7 of
> jetty dated from mid oktober this year.

> I try to stay as close to distribution packages as possible to get
> security updates delievered. So my intention was to use the supplied
> one, but it seams there are differences for the config file syntax :frowning:
> I have still not managed to get jetty 5 to supply djigzo web interface.
> BTW there seams to some security problem regarding version 6 and 7 of
> jetty dated from mid oktober this year.

It is possible to use Jetty 5 but some changes are required. Afaik Jetty
5 is not supported by Ubuntu security (is it?)

The found problems are afaik not problematic with Djigzo. The new
release of Djigzo will use the latest Jetty.

Can you maybe explain shortly what the .deb installation does? Is
there any Postfix configuration going on at install-time or is it
"safe" to install on a machine with already customized Postfix and
PostgreSQL?

The Debian installer is almost similar to the manual installation. The
installation path is different (like you have mentioned) and some files
are flagged as configuration files. This means that when you uninstall
Djigzo the configuration files are not removed (if you also want to
remove the conf files you must purge). If you manually change any of the
configuration files the debian installer will warn about this when you
install a new version of Djigzo. The debian installer does not overwrite
your existing Postfix files. You need to configure Postfix yourself (see
the quick install guide).

···

--
Djigzo open source email encryption

Zitat von Martijn Brinkers <martijn(a)djigzo.com>:

Hi Andreas,

It was merely a additional warning when starting "ant" without any
input. Maybe it would even work without fixing it.
Tested on fresh install: If one first install openjdk-6 and then
ant the warning "Unable to locate tools.jar" appear. This can be
fixed by first install ant or by installing openjdk-6-jdk...
Strange but more of a bug in the dependencies.

Ah yes you are right. It is just a warning and can be ignored (ANT
works without it). I have not noted this in the installation guide
because I wanted to keep it concise. I will make a foot-note of it
in the installation manual.

BTW there seams to some security problem regarding version 6 and 7 of
jetty dated from mid oktober this year.

I try to stay as close to distribution packages as possible to get
security updates delievered. So my intention was to use the supplied
one, but it seams there are differences for the config file syntax :frowning:
I have still not managed to get jetty 5 to supply djigzo web interface.
BTW there seams to some security problem regarding version 6 and 7 of
jetty dated from mid oktober this year.

It is possible to use Jetty 5 but some changes are required. Afaik
Jetty 5 is not supported by Ubuntu security (is it?)

The found problems are afaik not problematic with Djigzo. The new
release of Djigzo will use the latest Jetty.

Can you maybe explain shortly what the .deb installation does? Is
there any Postfix configuration going on at install-time or is it
"safe" to install on a machine with already customized Postfix and
PostgreSQL?

The Debian installer is almost similar to the manual installation.
The installation path is different (like you have mentioned) and
some files are flagged as configuration files. This means that when
you uninstall Djigzo the configuration files are not removed (if you
also want to remove the conf files you must purge). If you manually
change any of the configuration files the debian installer will warn
about this when you install a new version of Djigzo. The debian
installer does not overwrite your existing Postfix files. You need
to configure Postfix yourself (see the quick install guide).

Hello Martijn

Thanks for your patience...

I will try to start fro scratch with the following:
- Jetty 6 packges form http://dist.codehaus.org/jetty/jetty-6.1.21/
- The .deb's from your site
- And the rest from Ubuntu repository

Regards

Andreas

lst_hoe02(a)kwsoft.de wrote:

Thanks for your patience...

No problem :slight_smile:

I will try to start fro scratch with the following:
- Jetty 6 packges form http://dist.codehaus.org/jetty/jetty-6.1.21/
- The .deb's from your site
- And the rest from Ubuntu repository

Yes that's the easiest solution. Using the .deb files makes it easier to
upgrade to new versions of Djigzo.

Kind regards,

Martijn Brinkers

···

--
Djigzo open source email encryption