Questions tagged [tomcat]

a Java application server maintained by the Apache Software Foundation

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Relationship between Tomcat and JDBC Connection Pool

We have small application running which utilizes the Tomcat JDBC connection pool. Parameters are set as following MaxActive=20 maxTotal=250 removeAbandoned=true I am trying to understand the ...
0 votes
1 answer
29 views

How to add defined environment variable to a .service file

I'm installing Tomcat and one of the last steps requires to define a .service file for it. In that file I must define a line with Environment="JAVA_HOME=path_to_java" I already have a ...
0 votes
0 answers
58 views

Unable to connect to Ubuntu server using HTTPS

I have been stuck for days trying to setup https on a tomcat server but so far i had no luck. so i am trying form client: telnet IP_ADRESS 8443 -> Connect failed although on server things seems ...
0 votes
1 answer
35 views

Start Apache2 and Tomcat on Startup on Ubuntu

Apologies if this has been answered elsewhere, I know little about either of these services. At work, we have a server that is normally on all the time, but when the power goes out, it shuts off. Our ...
  • 1
0 votes
0 answers
52 views

Configure Tomcat9 in intelliJ

I installed tomcat9 on ubuntu20.04 from here https://linuxize.com/post/how-to-install-tomcat-9-on-ubuntu-20-04/#creating-systemd-unit-file my tomcat folder is in /opt. see image enter image ...
0 votes
1 answer
139 views

upgrade ubuntu16.04 to ubuntu20.04, manual installation of tomcat8 comes with java11, how to change this to java8

As Ubuntu20.04 doesn't have tomcat8 in default pkg, I am trying to install it manually using these commands: sudo wget -c http://launchpadlibrarian.net/366407131/tomcat8_8.5.30-1ubuntu1_all.deb http://...
0 votes
1 answer
583 views

How can I setup SSL in Tomcat9?

I have tried to install SSL on tomcat 9 on port 8443. However, I do not know if tomcat support pem or crt format SSL. I have made changes into server.xml but when start tomcat I am getting the below ...
-1 votes
1 answer
645 views

How to grep the lines between the parent tags [duplicate]

<login-config> <auth-method>DIGEST</auth-method> <realm-name>UserDatabase</realm-name> </login-config> I need to grep the lines between <login-config&...
0 votes
0 answers
740 views

How to start Tomcat 9 on Ubuntu 18.04 as a service in debug mode?

(looks like my question is evolving, after solving it I will edit it appropriately) As in the title. I can run Tomcat as a service, but I have no idea how to run it in debug mode. I've tried to run it ...
  • 410
1 vote
1 answer
3k views

Permission denied (publickey). while using SCP command

I have tried to copy some file in tomcat using SCP command scp ubuntu@xxxxxxx:/opt/apache-tomcat-9.0.48/conf/server.xml . ubuntu@xxxxxxx: Permission denied (publickey). help me to get out this Thank ...
0 votes
1 answer
1k views

Guide to set up Apache2 and Tomcat8.5 on an Ubuntu 18.04?

Does anyone know a good guide to set up Apache2 and Tomcat8.5 on an Ubuntu 18.04? (Including the Apache Tomcat Connectors: mod_jk)
1 vote
0 answers
819 views

Tomcat9 not starting after installation on Ubuntu 21.04

I installed Tomcat 9 using sudo apt-get install tomcat9 then de-installed tomcat9 using sudo apt-get --purge remove tomcat9. I then proceeded to reinstall tomcat9 using the apt-get install command. ...
  • 647
0 votes
0 answers
2k views

Tomcat 9 logging with log4j

Hello i want to configure the logging in Tomcat 9. I was following a tutorial about using log4j1.x. Seems that part relative to log4j is gone since Tomcat9. Im following this instructions taken from ...
0 votes
1 answer
446 views

How to install tomcat7 on Ubuntu 18.04.5 LTS using apt

I'm trying to install tomcat 7 on an Ubuntu VM. I've tried the following: sudo apt-get update sudo apt-get install tomcat7 but all I get is: Reading package lists... Done Building dependency tree ...
1 vote
2 answers
6k views

"The specified Server Location (Catalina Home) folder is not valid " apache netbeans 12 and Ubuntu 20.04

Installed Tomcat by following this link. Installed the latest Apache NetBeans from Ubuntu Software center, version 12.1. The installation of tomcat completes without any issues and I am able to access ...
0 votes
1 answer
372 views

Modify directory permissions for "others" in RPM

How to set write permissions for "others" in a .spec file for RPM As far as I understand "others" is a flag used for all users that are not the owner. I am trying to set the ...
0 votes
1 answer
3k views

Tomcat8: Where to find the appropriate container log file?

I am trying to install a webapp under Tomcat8 and get the error message in the file catalina.2020-30-09.log: org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to ...
0 votes
1 answer
296 views

I deleted and reinstalled Tomcat8, now it won't start ... says "tomcat not installed" ... how do I determine what's wrong?

I'm on Ubuntu 18.04 I "apt installed" tomcat8 and it was working fine ... until I messed up the configuration. So I "apt removed" it and manually deleted folders /usr/share/...
  • 101
1 vote
1 answer
3k views

Is it possible to install Apache Tomcat 8 on Ubuntu 20.04?

It seems that Ubuntu no longer ships Apache Tomcat 8 in the repos as of 20.04, there is only Apache Tomcat 9. I have a school assignment which requries we use Apache Tomcat 8. Is there a way to ...
  • 1,066
0 votes
1 answer
7k views

Failed to start tomcat: Unit tomcat.service not found

I am trying to start tomcat 8 on ubuntu 18.04 it gives me this error: root@Openkm:/home/becsa# service tomcat start Failed to start tomcat.service: Unit tomcat.service not found. root@Openkm:/home/...
1 vote
1 answer
917 views

Where to configure Memory (xmx) for Tomcat8?

After installing Tomcat (on Ubuntu 18.04) via apt install tomcat8, where to put the Java -Xmx option to increase available memory?
  • 3,723
0 votes
1 answer
3k views

Start Tomcat 9 on Ubuntu 18 error

I am trying to install apache-tomcat-9.0.33 on a 64 bit machine running Ubuntu 18.04.4 LTS. I followed the script given on https://linuxize.com/post/how-to-install-tomcat-9-on-ubuntu-18-04/. ...
1 vote
1 answer
312 views

Conflicts installing Tomcat by snap and by apt-get?

I've installed Tomcat 9 by snap install, it is working fine. But now I'm starting a course that begins installing Tomcat 8 and recommends to install it by apt-get, not snap. I want to do that to match ...
3 votes
1 answer
3k views

Moving log location for Tomcat 9 on Ubuntu 18.04

On a fresh instance in AWS of Ubuntu 18.04, I have installed tomcat9 through apt. I'm replacing a 14.04 Ubuntu install where i was running tomcat7. Due to the nature of my application, I have a very ...
  • 161
0 votes
0 answers
132 views

Is there any data transfer limit for Ubuntu?

I have developed a web application with Java which is deployed to tomcat and uses mysql as database. These softwares run on either in my developer computer which is Ubuntu 18.04 or in a server which ...
0 votes
0 answers
175 views

How to access ubuntu server with apache open meeting from internet

I'm new and selflerner. I have configured a apache open meeting in ubuntu 18.04. Ubuntu has been installed as VM guest using windows server 2016. Open meeting is running on ubuntu local host properly. ...
0 votes
1 answer
534 views

Install tomcat 9 on ubuntu server 18.04.3

I tried following this: https://linuxize.com/post/how-to-install-tomcat-9-on-ubuntu-18-04/ in the last part of the heading Step3: Install Tomcat when I run the command: sudo useradd -r -m -U -d /opt/...
  • 101
0 votes
2 answers
2k views

Cannot Unzip a .tar.gz file

So, I am trying to install apache tomcat, upon me trying to unzip the tar file i am getting this error. gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: ...
3 votes
1 answer
9k views

How to solve "Error running Tomcat server(Ubuntu): Port out of Range problem." problem?

I am trying practice Java servlet where I need Tomcat server. I choose IntelliJ as my IDE which is throwing me popup message: I used this configuration: And this is what's inside Tomcat's server.xml ...
  • 1,082
1 vote
1 answer
5k views

How to link Tomcat server config in Intellij IDEA?

In Java class, my sir told me to link Tomcat server config which is inside Xampp folder. But his OS was Windows and things were different on my side since I use Ubuntu 19.04. I installed "xampp-linux-...
  • 1,082
0 votes
2 answers
13k views

How can I add some lines to the ~/.bashrc file in Ubuntu?

I am new to programming, I wanted to download and setup Apache Tomcat on my Ubuntu. I copied the tar link from Apache. I then decompressed the file with tar xvzf Apache-tomcat.7.0.94.tar.gz Now I'm ...
0 votes
0 answers
2k views

shutdown.sh[3324]: PID file found but either no matching process was found or the current user does not have permission

I get the following in the journalctl -xe reply after attempting to start tomcat: shutdown.sh[3324]: PID file found but either no matching process was found or the current user does not have ...
0 votes
1 answer
2k views

403 with Tomcat manager

OS: Ubuntu 18.04 Tomcat version: 9 This my conf <Context antiResourceLocking="false" privileged="true" > <!-- <Valve className="org.apache.catalina.valves....
  • 349
0 votes
1 answer
24k views

How to remove tomcat 9 from ubuntu 18.04

I know this question has been asked a lot but I am facing some problems. When I upload a war file to tomcat I cant get to to start and i get this error FAIL - Application at context path [/fuseki] ...
1 vote
0 answers
395 views

443 8443 iptable redirection

Want to redirect 443 to tomcat 8443: sudo iptables -t nat -n -L PREROUTING --line-numbers num target prot opt source destination 1 DOCKER all -- 0.0.0.0/0 0.0....
  • 111
2 votes
1 answer
7k views

Tomcat 9 doesn't have tomcat.pid file

I've installed Tomcat 9 on Ubuntu 18.04, and trying to add it to service. However, unlike other users, tomcat.pid file doesn't exist anywhere. So my Tomcat service file generates an error. [Unit] ...
  • 137
0 votes
1 answer
88 views

Support for the tomcat8 package

On Ubuntu 16.04 I've been using the tomcat8 package. I enjoyed an automatic installation process and was guaranteed to receive packaged security updates for 5 years courtesy of Canonical. So, even ...
  • 412
1 vote
1 answer
6k views

java jdk 11, where is the jre folder?

I was installing tomcat 9 and when I have to browse for the jre folder, I am not able to find it! where is it?
1 vote
2 answers
4k views

Ubuntu 18.10 Tomcat8 catalina.out file path

In previosu version, I saw that the catalina.out file was created at /var/log/tomcat8/catalina.out location. As I was study for my current installation, Ubuntu 18.10 and last package version, I saw ...
  • 11
1 vote
1 answer
4k views

Unknown version of Tomcat was specified. Tomcat 9 Eclipse Java EE Ubuntu18.04

My ubuntu version is 18.04 My eclipse version is Eclipse Java EE IDE for Web Developers 2018-09 (4.9.0) Tomcat version is 9.0.13 I installed tomcat from this tutorial: www.digitalocean.com/community/...
0 votes
1 answer
2k views

How can I configure Tomcat 9 without apt-get installation?

I have installed my Tomcat 9 from this source. Just downloaded the tar.gz file and extracted it. Then I went into the ../conf/server.xml file to change the port from 8080 to 80. And then I started ...
  • 217
0 votes
0 answers
717 views

403 Access Denied on tomcat Server?

For example, to add the manager-gui role to a user named tomcat with a password of s3cret, add the following to the config file listed above. Note that for Tomcat 7 onwards, the roles required to use ...
4 votes
2 answers
15k views

Is there a way I can install tomcat7 on Ubuntu 18.04?

I would like to install tomcat7 (NOT tomcat8) on ubuntu 18.04. I figured I could enable the universe repo by doing the following sudo add-apt-repository universe however, when I try and do sudo apt-...
  • 41
0 votes
1 answer
5k views

Failed to start reload.service: Unit reload.service not found

I have added this in tomcat service : [Unit] Description=Apache Tomcat 8 Servlet Container After=syslog.target network.target [Service] User=tomcat Group=tomcat Type=forking Environment=CATALINA_PID=...
  • 1
1 vote
2 answers
263 views

Directory is not a directory, can't install psa [closed]

I'm trying to configure Tomcat on my server. I have short instruction: # /usr/local/psa/admin/sbin/tomcatmng --install-psa # /usr/local/psa/admin/sbin/tomcatmng --is-configured yes it's all, but I ...
0 votes
1 answer
52 views

On Ubuntu 16.04 with Eclipse Oxygen on my dev machine - should I use the distro Tomcat?

I am running Ubuntu 16.04 and want to use Eclipse Oxygen with a large Tomcat application. Should I just use the standard Tomcat that came with the Ubuntu distro? I have seen a lot of posts about ...
0 votes
1 answer
2k views

HTTP Status 500 Internal Server Error

After a lot of struggle, I have installed Tomcat8 on my Ubuntu. However it results in the following error when I access localhost:8080 HOW DO I FIX IT? Type Exception Report Message java.lang....
1 vote
0 answers
2k views

Tomcat start error in Ubuntu 16.04

After running: service tomcat start I got: Job for tomcat.service failed because the control process exited with error code. See "systemctl status tomcat.service" and "journalctl -xe" for details. ...
0 votes
1 answer
1k views

Can't enter in Manager App tomcat

I try to enter in Manager App tomcat directory, but after I enter password, I have Your connection to this site is not private In log catalina.out I can see this message: 08-Dec-2017 09:03:36....
  • 1
2 votes
2 answers
13k views

Can't start tomcat after installing it on Ubuntu 16.04: "Job for tomcat.service failed because the control process exited with error code."

I followed the steps https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-ubuntu-16-04 to install tomcat 8.5.24 on Ubuntu 16.04, till running sudo ufw allow 8080 in "Step ...
  • 23.8k

1
2 3 4 5