Questions tagged [tomcat]

The tag has no usage guidance.

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

How do I deploy a .war file in Linux centos 7?

I'm wondering how can I deploy a .war file in linux centos 7. I know how to deploy it in glassfish as a domain but it's not what I need right now. There is a folder called webapps where the previous ...
achhainsan's user avatar
3 votes
3 answers
610 views

How can I remove everything except last n bytes from the file in Linux?

I've a Tomcat server where logs are stored as catalina.out. It's a pretty huge file and causes troubles a lot of times. Because of it taking too much space, other servers have to stop involunatarily. ...
achhainsan's user avatar
0 votes
1 answer
35 views

Creating a script that waits for a start/stop to finish

I'm trying to create a build script for an application that needs to be deployed to a remote server. The script needs to shutdown the running instance of tomcat, do some work (copying/moving files), ...
pbuchheit's user avatar
0 votes
1 answer
199 views

How do start Tomcat in a Docker container?

I just installed Docker and am learning to use it. I installed the Oracle Linux 9 Slim image and started it using docker run --name myContainer .... Next I went into the container using docker exec -...
Hussain Akbar's user avatar
0 votes
1 answer
77 views

HAProxy over Tomcat returns Error 403

I have an old server which runs a Tomcat service on port 8080. For various reasons (including securing the access from clients) I had to set up a HAProxy server in front of it, secured with a SSL ...
dr_'s user avatar
  • 28.8k
0 votes
0 answers
799 views

Failed to start tomcat.service after install Tomcat9 by YUM

I installed tomcat9 on my EC2 server using commands sudo su yum install tomcat9 Then I tried running the command: /usr/sbin/tomcat9 start Then the error message is: Failed to start tomcat.service: ...
quangkid's user avatar
  • 101
0 votes
0 answers
294 views

SSH authentication issues with Guacamole and Tomcat9 on Debian Bullseye

I have guacamole and tomcat9 installed on my Debian Bullseye. RDP Connections work without any Problem, SSH doesn't work at all. I am trying to connect with a Private Key. I got this from my Syslog: ...
bahsnub's user avatar
0 votes
0 answers
40 views

Enabling TLS1.1 on Tomcat9

On Ubuntu 22.04 I am trying to enable TLSv1.1 on Tomcat9 and openjdk-8-jdk I have added TLSv1.1 to Connector <Connector port="443" protocol="org.apache.coyote....
yurtesen's user avatar
  • 528
0 votes
0 answers
86 views

I'm unable to get tomcat connectors to work with apache "no match for /jk-status found"

I deployed a springboot application to tomcat, I managed to connect it to the db and now I can access it throw the browser. eg: "www.mydomain.com:8080/spring_app/api/myendpoint" will return ...
Matias Kupfer's user avatar
0 votes
0 answers
19 views

Not able to access my docker container application in Broser

I installed docker in RedHat8 and pull the centos8 image and create a container with port 8091:80 Shown Below. In that container, I installed java and tomcat, and I deployed my wars in tomcat at ...
Rajesh Gandhavarapu's user avatar
0 votes
0 answers
46 views

Downloading XML-Security error

I'm trying to download XML-security (2.0.4) on Linux (Amazon linux) in an effort to compile Shibboleth-SP. When I run the standard configure provided by the documentation (https://shibboleth.atlassian....
johhny's user avatar
  • 1
0 votes
0 answers
95 views

Tomcat start up expands JAVA symlink path to real absolute path

For setting up a path for binaries symlinks are the best way to go, however I encountered issues when the overlaying application uses this symlink sometimes goes for the exact absolute path. For eg: ...
SAGAR Nair's user avatar
0 votes
1 answer
36 views

Failing to tweak runtime options for Tomcat

(I tried Google first and got a million articles which were simply rehashes of the installation readme from tomcat). I am trying to change the Java command line used for running Tomcat9 on Ubuntu 20....
symcbean's user avatar
  • 5,110
1 vote
1 answer
2k views

Tomcat catalina.sh starts correctly but starting tomcat.service gives Permission denied

Background On RHEL 8 I have Apache Tomcat v8.5.78 installed under /opt/tomcat/. User & group of the directory is set to tomcat:tomcat, so is the directory's content. I can start Tomcat with $ ...
halloleo's user avatar
  • 529
1 vote
1 answer
607 views

Tomcat logrotate error: tomcat:1 bad rotation count '7 compress missingok size 5M }'

I have a standalone Tomcat installed on CentOS 8 and I am trying to rotate the catalina.out file. I have created a file named /etc/logrotate.d/tomcat with vim and added the following line: /opt/...
user518510's user avatar
0 votes
1 answer
741 views

run tomcat daemon with user other that root

im try create a container docker secure with alpine (rootfs) which allows me run web aplications java contained into tomcat8. In particular, what user should run the tomcat daemon as? i'm reading the ...
Félix's user avatar
  • 3
1 vote
1 answer
739 views

Systemd/rsyslog logging not working as expected

I've got a fairly vanilla Ubuntu 20.04LTS box where I've deployed Tomcat9 from repo. Out of the box, this appears to be configured to write its logs to /var/log/tomcat9/ and there are indeed log files ...
symcbean's user avatar
  • 5,110
0 votes
1 answer
371 views

Apache Web Server port 433 and Tomcat port 8080, redirect not working

I have a Java web application on CentOS on Google Cloud. I can access my web app with http://mydomain:8080. I wish https://mydomain (without 8080 in URL) to lead to application, but instead, I just ...
LosmiNCL's user avatar
0 votes
1 answer
1k views

logrotate not able to truncate catalina.out - actual answer

This is related to logrotate not able to truncate catalina.out which is incorrectly closed as a duplicate, even though the duplicate question describes a subtly different issue with a very different ...
Kevin Keane's user avatar
0 votes
1 answer
281 views

How to get mount --bind from Tomcat to effect the whole system?

I have a folder with a file /path/to/data/one/it_works.txt And I have an empty folder: /path/to/user/bob I have a script which should be executed by a web app in Tomcat which is: #!/bin/sh Source=&...
Matthias Ronge's user avatar
1 vote
0 answers
24 views

Installation And Unistallation Of Tomcat

I just installed the tomcat 10.0.12 using below command $ mkdir /opt/tomcat $ cd /opt/tomcat sudo wget https://dlcdn.apache.org/tomcat/tomcat-10/v10.0.12/bin/apache-tomcat-10.0.12.tar.gz $ tar xvzf ...
Aditya Kirad's user avatar
1 vote
1 answer
237 views

java.net.connectException: Connection Refused by apache

Recently we have updated our OS from RHEL 6.10 to RHEL 8.4. After the installation of RHEL 8.4, we installed our application which uses Apache internally. Please note that our application is ...
Learner's user avatar
  • 21
0 votes
0 answers
618 views

Tomcat 8.5.43 - shutdown.sh does not stop process

Team, we are using Tomcat 8.5.43, it starts application perfectly but while using shutdown.sh it does not work, I mean it gives below [alfresco@ind785 bin]$ ./shutdown.sh Using CATALINA_BASE: /opt/...
Iván Carvallo's user avatar
-4 votes
1 answer
390 views

Linux 'lsof' command return large value

I'm using a linux server with tomcat 9.0.24. When I stop the tomcat server, following output will return for 'lsof | wc -l' command fdmt@fdm-3-136 apache-tomcat-9.0.24]$ lsof | wc -l 1203 fdmt@fdm-3-...
Prasanna Deshappriya's user avatar
3 votes
1 answer
206 views

Tomcat unable to execute VBoxManage: NS_ERROR_FAILURE (0x80004005)

Today I've seen an issue similar to this one: VBoxManage: won't start virtuals machines NS_ERROR_FAILURE (0x80004005) but in a completely different inexplicable context I can describe here. In a ...
Valerio Bozz's user avatar
2 votes
2 answers
1k views

Where does the systemctl Tasks (limit=) come from and can I temporarily change it?

I am having trouble with Tomcat 9, openjdk 11.0.9.1 on ubuntu 18.04. I installed it using these instructions: https://linuxize.com/post/how-to-install-tomcat-9-on-ubuntu-18-04/ It worked fine for a ...
Jeff's user avatar
  • 41
0 votes
2 answers
98 views

kubernetes replicaSet shutdown policy

Kubernetes use TERM signal on count down replicaSet . this is so dangerous for my application . I use Tomcat application server and this application server has own shutdown mechanism for terminating ...
mah454's user avatar
  • 227
0 votes
2 answers
521 views

Use awk to pull a very specific section out of a file

I am trying to write a script (well, a one-liner really) to extract the important part of a debug log, so that people can easily send it to me instead of dragging me onto a conference call or having ...
Paul H's user avatar
  • 23
0 votes
1 answer
45 views

My main goal is to monitor Tomcat directory, if any user modify files in tomcat directory; print that user name in the log;

#!/bin/bash watchDir="$1" watchDir2="$2" date1=$(date '+%Y-%m-%d-%H:%M:%S') inotifywait -m -r --exclude \.log "$watchDir" "$watchDir2" -e attrib,delete,...
Srikanth Peddireddy's user avatar
0 votes
1 answer
268 views

Tomcat http to https

I am newbie to tomcat, in that case i had my website to work under http://myserver:8080/path/login/login.html I wanted to activate https with the port 8443 https://myserver:8443/path/login/login.html ...
Peutre's user avatar
  • 77
0 votes
0 answers
4k views

Tomcat error for missing APR library, even though it's installed

I'm running Tomcat 8.0.49, and set up an SSL connector. This is a connector that works in my other Tomcat instances, which are at version 7.x. Connecting to the instance via a web browser hangs, and ...
Burvil's user avatar
  • 13
0 votes
0 answers
69 views

Status(UP/DOWN) of Session based Application hosted on Tomcat server in UNIX

I need to check the status (UP/DOWN) of an application (https://w45ra0377.abc.com:12345) that is hosted on a server in UNIX. This is a session authenticated application. I tried with the below CURL ...
Srinivas B's user avatar
0 votes
2 answers
581 views

How to run an app automatically on reboot for different user?

I have a ec2 machine/redhat with Tomcat installed. I want only userX to start this app, not ec2-user. However, ec2 automatically boots with ec2-user after restart. How can I make my userX to execture ...
Rebecca's user avatar
  • 103
0 votes
1 answer
6k views

How to get process id from output of ps -ef | grep 'tomcat'?

I want to kill tomcat process and hence used command - ps -ef | grep 'tomcat' and it returns following big output and there I can see 3 pids - oracle 76220 218600 3 May16 pts/2 00:40:14 /...
Alpha's user avatar
  • 137
0 votes
0 answers
148 views

Disabling WARNING LOGS in tomcat server

When i am starting tomcat i am getting so many of WARNING MESSAGES like File not found: DerbyLocale.jar is missing like that, but i do not require those jars for my application. How can i disable ...
Polavarapu Rajasekhar's user avatar
-2 votes
1 answer
424 views

Tomcat failed to start when shut down port changed to -1

When I tried to change tomcat shut down port from 8005 to -1 and starting tomcat, it did not start and threw an "invalid port number" exception. Is there any process for changing tomcat shutdown port ...
Polavarapu Rajasekhar's user avatar
0 votes
1 answer
66 views

Is tomcat installed?

I have an Ubuntu studio 16.10. I tried to install tomcat 7 by using the command sudo apt-get install tomcat7. I tried tomcat8 too, but after the following sudo apt-get install tomcat7 Reading ...
beegee Assem's user avatar
0 votes
1 answer
340 views

Tomcat Ghostcat exploitable through apache webserver reverse proxy?

I would like to know if the ghostcat bug can be exploited through an Apache web server reverse proxy setup. This is our web server config. <VirtualHost *:80> ServerName 192.168.178.1 ...
elements518's user avatar
0 votes
1 answer
1k views

Can't reach Tomcat default page in localhost:8080 for Ubuntu 16.04 Docker container

I'm trying to run a simple Tomcat server. But I can't see the Tomcat default page. 1) I ran this command to run the container docker run -it --entrypoint bash e36658dffbd8 2) I opened up localhost:...
merry-go-round-one's user avatar
0 votes
0 answers
400 views

Unavailable port 443 after reboot

I am new in Linux. I have installed on my Debian server Tomcat9. Tomcat is running after OS reboot, but port 443 is not listen. I can run tomcat/bin/shutdown.sh a then tomcat/bin/startup.sh and then ...
Kamil Novák's user avatar
0 votes
0 answers
19 views

Grails web application loses connection to postgres database, what could be causing this?

I am running Postgres on a Ubuntu instance with Tomcat as my application server. Suddenly my deployed applications are no longer connecting to their respective database. Looking at the logs catalina....
Mike Croteau's user avatar
0 votes
0 answers
1k views

logrotate wildcard generating empty files

I discovered that using wildcard with logrotate give me empty files. I would like to find a solution for not having those empty files created. Many thanks for your help The extract of my /etc/...
Peutre's user avatar
  • 77
0 votes
1 answer
73 views

CPU utilisation of Tomcat8 is high in Linux machine

I have a web portal and it is consuming high CPU. We have taken thread tump and checked the Catalina log during the time of issue and we couldn't find the root cause of the same. Is there any way that ...
Ebison J's user avatar
1 vote
1 answer
1k views

Securing Tomcat-Server where to set deployXML = false?

For Securing my Apache Tomcat server on Ubuntu Server 18.04 LTS, I wanted to set attribute deployXML = false, but I don't know in which xml file. In the tomcat folder, I have the files server.xml / ...
beard black's user avatar
0 votes
1 answer
244 views

Tomcat Access Log understanding like Logs like failed Access or attemps logs from User

I installed Apache Tomcat on my Ubuntu server. The next step is, I want to interpret the access logs. However I didn't really understand the logs. Like POST / GETS, what do they mean? I really want to ...
beard black's user avatar
1 vote
1 answer
6k views

Why am I getting HTTP Status 404 - Not Found?

I'm very new to Artifactory. I just got Artifactory Tomcat started on my webserver using RHEL 7. When I try to access my page: http://myPage:8081/artifactory/webapp/#/home, I get: HTTP Status 404 ...
casper1111's user avatar
0 votes
2 answers
643 views

Using FreeBSD Ports & Packages, Installing Tomcat on FreeBSD 12 installs Java 8 rather than my already-installed Java 12

On FreeBSD 12, I already installed Java 12 successfully using: sudo pkg install openjdk12 And I edited etc/fstab as directed by the text emitted by that installer. Then I set the PATH to include ...
Basil Bourque's user avatar
1 vote
2 answers
241 views

Tomcat startup script output not available with piping (grep)

I'm completely puzzled by this behavior of Tomcat 9.0.21 startup script catalina.sh: # following line added by me echo "CATALINA_HOME" # following line added by me echo $have_tty if [ $have_tty -eq ...
Juraj Martinka's user avatar
0 votes
1 answer
761 views

Red Hat Configuration of Tomcat 8 - ${JAVA_OPTS} keyword not recognized

I'm trying to configure tomcat8 on Red Hat Enterprise Linux 7. I get the configuration file from a Debian version (that I have set up), which is: [...] JAVA_OPTS='-Djava.awt.headless=true' JAVA_OPTS=...
Bastian Nanchen's user avatar
0 votes
2 answers
246 views

Tomcat9 Enable Manager Page for multiple services

To enable manager page for some webservice running on port 8999, i have copied the manager directory from webapps to port 8999's appbase i.e., webapps2. The manager page opens fine on port 8999 but ...
AVS's user avatar
  • 773