Questions tagged [tomcat]
The tomcat tag has no usage guidance.
183
questions
0
votes
1
answer
23
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 ...
1
vote
1
answer
33
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 ...
0
votes
1
answer
45
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 ...
0
votes
0
answers
13
views
Tomcat looking for the classpath in the wrong place
I have installed tomcat 9 on CentOS 7, location is /opt/tomcat. It works. But when I wanted to shut it down and to start it again when I used shutdown.sh in my /opt/tomcat/bin folder, I got the error:
...
0
votes
1
answer
128
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 ...
0
votes
1
answer
74
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=&...
1
vote
0
answers
20
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 ...
1
vote
1
answer
32
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 ...
0
votes
0
answers
174
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/...
-4
votes
1
answer
123
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-...
3
votes
1
answer
144
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 ...
2
votes
2
answers
518
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 ...
0
votes
2
answers
52
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 ...
0
votes
2
answers
142
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 ...
0
votes
1
answer
32
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,...
0
votes
1
answer
62
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
...
0
votes
0
answers
2k
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 ...
0
votes
0
answers
37
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 ...
0
votes
2
answers
155
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 ...
0
votes
1
answer
2k
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 /...
0
votes
0
answers
79
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 ...
-2
votes
1
answer
207
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 ...
0
votes
1
answer
36
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 ...
0
votes
1
answer
284
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
...
0
votes
1
answer
962
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:...
0
votes
0
answers
258
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 ...
0
votes
0
answers
17
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....
0
votes
0
answers
607
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/...
0
votes
1
answer
23
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 ...
0
votes
1
answer
824
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 / ...
0
votes
1
answer
143
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 ...
1
vote
1
answer
4k
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 ...
0
votes
2
answers
553
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 ...
1
vote
2
answers
155
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 ...
0
votes
1
answer
512
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=...
0
votes
2
answers
210
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 ...
0
votes
1
answer
148
views
Multiple Web Servers over a Single IP, Using Apache as a Reverse Proxy
How can I run multiple servers over a single IP, Using apache reverse proxy.
Basically I want to configure an apache proxy for atlassian products like follows:
https://jira.domain.com ProxyPass to ...
0
votes
0
answers
2k
views
How do I resolve 'CAS is unavailable' error?
I am managing a web based application hosted on RHEL Machine, the is Active Directory Services hosted on Window Server 2016, authentication trust is established with LDAP/App integration.
All has ...
0
votes
1
answer
6k
views
-bash: ./catalina.sh: No such file or directory
Using SSH, I want to execute catalina.sh to start a Tomcat server (from my client Mac terminal).
I log in without any issue.
Then, I do:
[site /home/public]$ cd $CATALINA_HOME/bin
and on Enter I ...
0
votes
0
answers
143
views
Apache, Tomcat : Load balancing not working with 2nd server
I am working on load balancing 2 servers which have different domain names. Currently, it's working good for Server1, where load-balancing configuration and 1 instance of Tomcat is present, but not ...
0
votes
1
answer
647
views
Apache, Tomcat : Loadbalancing not working, failed to connect with Tomcat
I am working on loadbalancing 2 servers. Both of them are on different domain names. I have configured load balancing for them according. Currently, I am getting failed to make connection. What am I ...
3
votes
1
answer
6k
views
logrotate not able to truncate catalina.out [duplicate]
I'm running tomcat server in my centos machine. I've following content in my /etc/logrotate.d/tomcat file:
/log/apache-tomcat/catalina.out{
copytruncate
daily
size 256M
rotate 8
missingok
...
1
vote
1
answer
13k
views
Tomcat startup.sh file works but starting tomcat.service does not [duplicate]
Short Story:
When running 'sudo systemctl start tomcat', it seems to call shutdown.sh immediately after startup.sh:
Feb 03 19:36:49 xxxxx startup.sh[10285]: Tomcat started.
Feb 03 19:36:49 xxxxx ...
0
votes
0
answers
3k
views
How to config HTTPS on Apache tomcat
I have installed the Apache Tomcat/7.0.76 on centos7.
I want to enable SSL on the tomcat.
I have root, intermediate, domain certificate. Like this
85163c004aa3625d.crt gd_bundle-g2-g1.crt gdig2....
0
votes
0
answers
4k
views
redirect url to another url in tomcat 7
I am using Tomcat 7 which have 3 applications in its webapps (app1, app2, app3). My problem is with app3 which is no longer in use now and I want to redirect it to another url.
Like,
when user hits ...
0
votes
0
answers
386
views
Can't start tomcat in digital ocean's CentOS server?
I am trying to configure a CentOs server in DigitalOcean. I have followed all those steps mentioned in their website.This is the link of various steps to configure server. DigitalOcean. I followed all ...
1
vote
1
answer
108
views
Disable Tomcat Session persistence using sed or perl
I need to disable Tomcat session persistence as I have implemented SpringSession on my Spring (not Spring Boot) Application.
I've tried using sed and perl to edit multiple lines in the context.xml ...
1
vote
0
answers
742
views
request.getRemoteHost() returns IP address instead of FQDN
I am designing a servlet in which I would like to determine the fully qualified domain name (FQDN) of the client. I am attempting to use javax.servlet.HttpServletRequest.getRemoteHost() in order to ...
0
votes
1
answer
413
views
Create dialog based on console output
I would like to display a dialog box using zenity or dialog or something similar based on a specific string displayed in console window?
Background:
I have created a wrapper shell script which calls ...
0
votes
1
answer
347
views
Strict-Transport Header HSTS
I need to configure the HSTS (HTTP Strict-Transport Header) in Linux. I have added the following on the Tomcat/Conf Web.xml file:
httpHeaderSecurity
org.apache.catalina.filters....