You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Enosh Mogire <en...@gmail.com> on 2019/08/20 07:44:09 UTC

Tomcat 9 Getting Started

Hello,

I trust that your week is well and that this email finds you well. My name
is Enosh and I am a newbie to the system. I recently started a personal
learning project with DHIS2 and I needed to install the Apache servlet but
I keep on getting this error(attached screenshot). Please advise
accordingly on how to solve this issue. Thank you.

Best,

*Enosh Nyarige*
Student | Computer Science |
African Leadership University <https://www.alueducation.com/>

2nd Floor | Kigali Heights
Kigali |  Rwanda
Phone | +250 736 133 041 / +254 702 139 994
Skype: Nyarige Enosh

Re: Tomcat 9 Getting Started

Posted by Enosh Mogire <en...@gmail.com>.
Olaf, Chris and Bernd,

Thank you all for the help, I managed to bypass the error by the
recommendations you gave me and now I am able to run the Tomcat server.
Thanks again and cheers!

Best,

*Enosh Nyarige*
Student | Computer Science |
African Leadership University <https://www.alueducation.com/>

2nd Floor | Kigali Heights
Kigali |  Rwanda
Phone | +250 736 133 041 / +254 702 139 994
Skype: Nyarige Enosh


On Tue, Aug 20, 2019 at 5:39 PM Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Olaf and Enosh,
>
> On 8/20/19 06:37, Olaf Kock wrote:
> > On 20.08.19 12:28, Enosh Mogire wrote:
> >> When I execute ls -la /opt/tomcat this is what I get
> >>
> >> enosh@hp:~$ ls -la /opt/tomcat total 36 drwxr-xr-x 3 tomcat
> >> tomcat 4096 Aug 20 08:55 . drwxr-xr-x 7 root   root   4096 Aug 19
> >> 10:53 .. drwxr-xr-x 9 tomcat tomcat 4096 Aug 14 10:31
> >> apache-tomcat-9.0.22 -rw-r--r-- 1 tomcat tomcat  220 Apr  4  2018
> >> .bash_logout -rw-r--r-- 1 tomcat tomcat 3771 Apr  4  2018
> >> .bashrc lrwxrwxrwx 1 tomcat tomcat   32 Aug 13 08:50 latest ->
> >> /opt/tomcat/apache-tomcat-9.0.14
> >
> > so indeed you've extracted the archive into a subdirectory: You'll
> > find /opt/tomcat/apache-tomcat-9.0.22/conf if you're looking for
> > it. You can move all of the content of the apache-tomcat-9.0.22
> > folder up one level, or adjust your chmod command or the cd that
> > you executed before. You'll just find the content that you expect
> > one folder further down.
> >
> > Seeing the link in your directory, you should correct it, e.g.
> >
> > rm /opt/tomcat/latest ln -s /opt/tomcat/apache-tomcat-9.0.22
> > /opt/tomcat/latest cd /opt/tomcat/latest
> >
> > and continue from there. That directory will have the conf and all
> > of the other directories you expect.
>
> I highly recommend using Olaf's suggestion of separating the
> "concept" of the Tomcat installation directory (/opt/tomcat or
> /opt/tomcat/latest if you prefer) with the actually location of the
> un-tarred Tomcat distribution (e.g. /opt/tomcat/apache-tomcat-x.y.x).
>
> I would also highly recommend that you take a look at the RUNNING.txt
> file that comes with Tomcat with particular attention to the "Advanced
> Configuration - Multiple Tomcat Instances" section. Even if you don't
> intent to run multiple Tomcat instances simultaneously, you might want
> to consider using a "split" Tomcat for ease of upgrading Tomcat in the
> future.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl1cFDEACgkQHPApP6U8
> pFh6mhAAp4SFHxrcuneIMD5RSl0wk6odPky1BT+UQ1JumObYX4FSYEz7MM/bFeOI
> mYM8GJtUGxPA8U9fhYpxHRMTBANiSHiSrNe0fUKM/OVpduh3OGtf0WUZ1STplilb
> 0OdMNuclDvPkuA7NHtTeW+Pr3UIPVoTy1hD2MkQ33vXPfi4BeRciSn1y20Cj/89c
> YxmCar00BGgzXWmq9XBnOk2p+Sa3Aew2X76Og4E97RbcFLZnk2BQllko3E/qW0tW
> sTH4YKGJe70uwqLIXbXX8FnEs4aqrtYIT7fWU6PxVz9b8fiWQgqRZD3vAaNYPoyk
> DJbG7LGogkj0Tki0GwRup5PCb/Oq7YT1hV7gzNiTLZ5r4x2qijgPD0rsCLPQaiaP
> LxYRUSfNsBPfw/MtPafZYzrv3jMymPvm0OBrND2E85JXyEO2QFYYXpPIEuC2bIwh
> CjJJzY4GQgbZRhwAFdPk0u8wBL3gfEVih3oQR59lUKwveSu3a2XaB5hN+23Efrql
> Qf99FzDs5P5o9rPXZrYNBtulGx9z5irk7eszFFloYivbnK6fa0AYsBtGbZSLiLME
> HYAO8Yg8B8cwe5/SvdnK7k55lrxWGJwxYlxTkBt09O9dA77e7UOMBvawlAdL7za0
> 35/8TcjJIOPxuz9jW0ymHhJeC3cVdyZpOm0L7f7dtdotb5ak/as=
> =4Gkm
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat 9 Getting Started

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Olaf and Enosh,

On 8/20/19 06:37, Olaf Kock wrote:
> On 20.08.19 12:28, Enosh Mogire wrote:
>> When I execute ls -la /opt/tomcat this is what I get
>> 
>> enosh@hp:~$ ls -la /opt/tomcat total 36 drwxr-xr-x 3 tomcat
>> tomcat 4096 Aug 20 08:55 . drwxr-xr-x 7 root   root   4096 Aug 19
>> 10:53 .. drwxr-xr-x 9 tomcat tomcat 4096 Aug 14 10:31
>> apache-tomcat-9.0.22 -rw-r--r-- 1 tomcat tomcat  220 Apr  4  2018
>> .bash_logout -rw-r--r-- 1 tomcat tomcat 3771 Apr  4  2018
>> .bashrc lrwxrwxrwx 1 tomcat tomcat   32 Aug 13 08:50 latest -> 
>> /opt/tomcat/apache-tomcat-9.0.14
> 
> so indeed you've extracted the archive into a subdirectory: You'll
> find /opt/tomcat/apache-tomcat-9.0.22/conf if you're looking for
> it. You can move all of the content of the apache-tomcat-9.0.22
> folder up one level, or adjust your chmod command or the cd that
> you executed before. You'll just find the content that you expect
> one folder further down.
> 
> Seeing the link in your directory, you should correct it, e.g.
> 
> rm /opt/tomcat/latest ln -s /opt/tomcat/apache-tomcat-9.0.22
> /opt/tomcat/latest cd /opt/tomcat/latest
> 
> and continue from there. That directory will have the conf and all
> of the other directories you expect.

I highly recommend using Olaf's suggestion of separating the
"concept" of the Tomcat installation directory (/opt/tomcat or
/opt/tomcat/latest if you prefer) with the actually location of the
un-tarred Tomcat distribution (e.g. /opt/tomcat/apache-tomcat-x.y.x).

I would also highly recommend that you take a look at the RUNNING.txt
file that comes with Tomcat with particular attention to the "Advanced
Configuration - Multiple Tomcat Instances" section. Even if you don't
intent to run multiple Tomcat instances simultaneously, you might want
to consider using a "split" Tomcat for ease of upgrading Tomcat in the
future.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl1cFDEACgkQHPApP6U8
pFh6mhAAp4SFHxrcuneIMD5RSl0wk6odPky1BT+UQ1JumObYX4FSYEz7MM/bFeOI
mYM8GJtUGxPA8U9fhYpxHRMTBANiSHiSrNe0fUKM/OVpduh3OGtf0WUZ1STplilb
0OdMNuclDvPkuA7NHtTeW+Pr3UIPVoTy1hD2MkQ33vXPfi4BeRciSn1y20Cj/89c
YxmCar00BGgzXWmq9XBnOk2p+Sa3Aew2X76Og4E97RbcFLZnk2BQllko3E/qW0tW
sTH4YKGJe70uwqLIXbXX8FnEs4aqrtYIT7fWU6PxVz9b8fiWQgqRZD3vAaNYPoyk
DJbG7LGogkj0Tki0GwRup5PCb/Oq7YT1hV7gzNiTLZ5r4x2qijgPD0rsCLPQaiaP
LxYRUSfNsBPfw/MtPafZYzrv3jMymPvm0OBrND2E85JXyEO2QFYYXpPIEuC2bIwh
CjJJzY4GQgbZRhwAFdPk0u8wBL3gfEVih3oQR59lUKwveSu3a2XaB5hN+23Efrql
Qf99FzDs5P5o9rPXZrYNBtulGx9z5irk7eszFFloYivbnK6fa0AYsBtGbZSLiLME
HYAO8Yg8B8cwe5/SvdnK7k55lrxWGJwxYlxTkBt09O9dA77e7UOMBvawlAdL7za0
35/8TcjJIOPxuz9jW0ymHhJeC3cVdyZpOm0L7f7dtdotb5ak/as=
=4Gkm
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 9 Getting Started

Posted by Enosh Mogire <en...@gmail.com>.
Okay lemme try and thanks for the help so far

On Tue, Aug 20, 2019, 12:37 Olaf Kock <to...@olafkock.de> wrote:

> On 20.08.19 12:28, Enosh Mogire wrote:
> > When I execute ls -la /opt/tomcat this is what I get
> >
> > enosh@hp:~$ ls -la /opt/tomcat
> > total 36
> > drwxr-xr-x 3 tomcat tomcat 4096 Aug 20 08:55 .
> > drwxr-xr-x 7 root   root   4096 Aug 19 10:53 ..
> > drwxr-xr-x 9 tomcat tomcat 4096 Aug 14 10:31 apache-tomcat-9.0.22
> > -rw-r--r-- 1 tomcat tomcat  220 Apr  4  2018 .bash_logout
> > -rw-r--r-- 1 tomcat tomcat 3771 Apr  4  2018 .bashrc
> > lrwxrwxrwx 1 tomcat tomcat   32 Aug 13 08:50 latest ->
> > /opt/tomcat/apache-tomcat-9.0.14
>
> so indeed you've extracted the archive into a subdirectory: You'll find
> /opt/tomcat/apache-tomcat-9.0.22/conf if you're looking for it. You can
> move all of the content of the apache-tomcat-9.0.22 folder up one level,
> or adjust your chmod command or the cd that you executed before. You'll
> just find the content that you expect one folder further down.
>
> Seeing the link in your directory, you should correct it, e.g.
>
> rm /opt/tomcat/latest
> ln -s /opt/tomcat/apache-tomcat-9.0.22 /opt/tomcat/latest
> cd /opt/tomcat/latest
>
> and continue from there. That directory will have the conf and all of
> the other directories you expect.
>
> Olaf
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat 9 Getting Started

Posted by Olaf Kock <to...@olafkock.de>.
On 20.08.19 12:28, Enosh Mogire wrote:
> When I execute ls -la /opt/tomcat this is what I get
>
> enosh@hp:~$ ls -la /opt/tomcat
> total 36
> drwxr-xr-x 3 tomcat tomcat 4096 Aug 20 08:55 .
> drwxr-xr-x 7 root   root   4096 Aug 19 10:53 ..
> drwxr-xr-x 9 tomcat tomcat 4096 Aug 14 10:31 apache-tomcat-9.0.22
> -rw-r--r-- 1 tomcat tomcat  220 Apr  4  2018 .bash_logout
> -rw-r--r-- 1 tomcat tomcat 3771 Apr  4  2018 .bashrc
> lrwxrwxrwx 1 tomcat tomcat   32 Aug 13 08:50 latest ->
> /opt/tomcat/apache-tomcat-9.0.14

so indeed you've extracted the archive into a subdirectory: You'll find
/opt/tomcat/apache-tomcat-9.0.22/conf if you're looking for it. You can
move all of the content of the apache-tomcat-9.0.22 folder up one level,
or adjust your chmod command or the cd that you executed before. You'll
just find the content that you expect one folder further down.

Seeing the link in your directory, you should correct it, e.g.

rm /opt/tomcat/latest
ln -s /opt/tomcat/apache-tomcat-9.0.22 /opt/tomcat/latest
cd /opt/tomcat/latest

and continue from there. That directory will have the conf and all of
the other directories you expect.

Olaf


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 9 Getting Started

Posted by Enosh Mogire <en...@gmail.com>.
When I execute ls -la /opt/tomcat this is what I get

enosh@hp:~$ ls -la /opt/tomcat
total 36
drwxr-xr-x 3 tomcat tomcat 4096 Aug 20 08:55 .
drwxr-xr-x 7 root   root   4096 Aug 19 10:53 ..
drwxr-xr-x 9 tomcat tomcat 4096 Aug 14 10:31 apache-tomcat-9.0.22
-rw-r--r-- 1 tomcat tomcat  220 Apr  4  2018 .bash_logout
-rw-r--r-- 1 tomcat tomcat 3771 Apr  4  2018 .bashrc
-rw-r--r-- 1 tomcat tomcat 8980 Apr 16  2018 examples.desktop
lrwxrwxrwx 1 tomcat tomcat   32 Aug 13 08:50 latest ->
/opt/tomcat/apache-tomcat-9.0.14
-rw-r--r-- 1 tomcat tomcat  807 Apr  4  2018 .profile


Kind Regards,

*Enosh Nyarige*
Student | Computer Science |
African Leadership University <https://www.alueducation.com/>

2nd Floor | Kigali Heights
Kigali |  Rwanda
Phone | +250 736 133 041 / +254 702 139 994
Skype: Nyarige Enosh


On Tue, Aug 20, 2019 at 12:24 PM Olaf Kock <to...@olafkock.de> wrote:

>
> On 20.08.19 10:14, Enosh Mogire wrote:
> > So after installing and extracting the Tomcat archive file, I needed to
> set
> > the required permissions on the files through the commands bellow
> >
> > enosh@hp:~$ sudo chgrp -R tomcat /opt/tomcat
> > enosh@hp:~$ cd /opt/tomcat/
> > enosh@hp:/opt/tomcat$ sudo chmod -R g+r conf
> >
> > The last command returns an error (chmod: cannot access 'conf': No such
> > file or directory) and it is where I am stuck. Please advise accordingly,
> > thank you.
>
> What do you see when you execute
>
> ls -la /opt/tomcat
>
> ?
>
> It might be that you're just extracting into yet another subdirectory,
> e.g. /opt/tomcat/apache-tomcat-9.0.24/
>
> Olaf
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat 9 Getting Started

Posted by Olaf Kock <to...@olafkock.de>.
On 20.08.19 10:14, Enosh Mogire wrote:
> So after installing and extracting the Tomcat archive file, I needed to set
> the required permissions on the files through the commands bellow
>
> enosh@hp:~$ sudo chgrp -R tomcat /opt/tomcat
> enosh@hp:~$ cd /opt/tomcat/
> enosh@hp:/opt/tomcat$ sudo chmod -R g+r conf
>
> The last command returns an error (chmod: cannot access 'conf': No such
> file or directory) and it is where I am stuck. Please advise accordingly,
> thank you.

What do you see when you execute

ls -la /opt/tomcat

?

It might be that you're just extracting into yet another subdirectory,
e.g. /opt/tomcat/apache-tomcat-9.0.24/

Olaf



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 9 Getting Started

Posted by be...@daimler.com.
Hi Enosh,

Am Dienstag, den 20.08.2019, 10:14 +0200 schrieb Enosh Mogire:
[SNIP]
> So after installing and extracting the Tomcat archive file, I needed to set
> the required permissions on the files through the commands bellow
>
> enosh@hp:~$ sudo chgrp -R tomcat /opt/tomcat
> enosh@hp:~$ cd /opt/tomcat/
> enosh@hp:/opt/tomcat$ sudo chmod -R g+r conf
>
> The last command returns an error (chmod: cannot access 'conf': No such
> file or directory) and it is where I am stuck. Please advise accordingly,
> thank you.

With the last command you wanted to change the access rights
of the folder that does not exist.
This is is more ,,Linux getting started''.

Try this ==>
man chmod



--
Mit freundlichen Grüßen / Kind Regards/ नमस्ते(Namaste)
Bernd Schatz
ITI/FT - CoC Enterprise Platforms Services (PAI)
HPC Z252
Gebäude VDZ Ost 1.OG
Plieninger Str. 150
70567 Stuttgart

Bernd Schatz
Büro: +49 711 17 41463
Mobile: +49 151 5862 6591
FAX: +49 711 17 7904 1252
mailto:bernd.schatz@daimler.com
https://matter.i.daimler.com


If you are not the addressee, please inform us immediately that you have received this e-mail by mistake, and delete it. We thank you for your support.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 9 Getting Started

Posted by Enosh Mogire <en...@gmail.com>.
Thank you Olaf for the kind reminder and my apologies to the entire team. I
am working on a system development and I am using the District Health and
Information System (*DHIS2*)which is a client-server based system
architecture that an organization can use to keep track of records,
activities and reports. To be able to implement the system on a server, I
was advised to use Tomcat as the servlet container alongside PostgreSQL
database system.

So after installing and extracting the Tomcat archive file, I needed to set
the required permissions on the files through the commands bellow

enosh@hp:~$ sudo chgrp -R tomcat /opt/tomcat
enosh@hp:~$ cd /opt/tomcat/
enosh@hp:/opt/tomcat$ sudo chmod -R g+r conf

The last command returns an error (chmod: cannot access 'conf': No such
file or directory) and it is where I am stuck. Please advise accordingly,
thank you.

Best,

*Enosh Nyarige*
Student | Computer Science |
African Leadership University <https://www.alueducation.com/>

2nd Floor | Kigali Heights
Kigali |  Rwanda
Phone | +250 736 133 041 / +254 702 139 994
Skype: Nyarige Enosh


On Tue, Aug 20, 2019 at 9:48 AM Olaf Kock <to...@olafkock.de> wrote:

> On 20.08.19 09:44, Enosh Mogire wrote:
> > I trust that your week is well and that this email finds you well. My
> name
> > is Enosh and I am a newbie to the system. I recently started a personal
> > learning project with DHIS2 and I needed to install the Apache servlet
> but
> > I keep on getting this error(attached screenshot). Please advise
> > accordingly on how to solve this issue. Thank you.
>
> Welcome,
>
> please note that this list is read around the world, and people (like
> me) might not know acronyms like DHIS2.
>
> To help you, we'll need more details: "the Apache servlet" is not quite
> descriptive, and this mailing list strips attachments - as the error
> message most likely contains text: Please post the textual error message
> here, along with log file contents and steps to reproduce - ideally with
> everything required to reproduce the issue you're facing.
>
> Cheers,
>
> Olaf
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat 9 Getting Started

Posted by Olaf Kock <to...@olafkock.de>.
On 20.08.19 09:44, Enosh Mogire wrote:
> I trust that your week is well and that this email finds you well. My name
> is Enosh and I am a newbie to the system. I recently started a personal
> learning project with DHIS2 and I needed to install the Apache servlet but
> I keep on getting this error(attached screenshot). Please advise
> accordingly on how to solve this issue. Thank you.

Welcome,

please note that this list is read around the world, and people (like
me) might not know acronyms like DHIS2.

To help you, we'll need more details: "the Apache servlet" is not quite
descriptive, and this mailing list strips attachments - as the error
message most likely contains text: Please post the textual error message
here, along with log file contents and steps to reproduce - ideally with
everything required to reproduce the issue you're facing.

Cheers,

Olaf




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org