Questions tagged [tomcat]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
23 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 ...
0
votes
2answers
1k views

Starting tomcat hangs on boot , but run successfully in command line

I installed tomcat9 on ubuntu 16.04, which start normally on command line, sudo /usr/local/tomcat9/startup.sh and all projects in webapps can be loaded. However, it always hangs on loading "...
1
vote
2answers
1k views

How do I directly expose apps running on a CentOS 7 web server?

How can I open a port and directly access a webapp running on tomcat on CentOS 7? Tomcat is running behind an apache httpd reverse proxy, but I want to directly access the apps running in tomcat by ...
0
votes
1answer
2k views

The server encountered an unexpected condition that prevented it from fulfilling the request

I have two amazon instances, I have uploaaded the same war in both instances, In one instance it is running properly(giving expected result) but in another instance it is giving the following error ...
0
votes
1answer
2k views

Unable to access tomcat from anywhere but localhost, no firewall, curl responds on localhost:8080

I have a fresh minimal installation of CentOS 7 that is running Tomcat on it. Im unable to pull up the site from anywhere via the browser but can see it trying to serve on 8080 from netstat. The ...
1
vote
2answers
1k views

Tomcat 8 doesn't start

Upgraded tomcat 6 to 8 on Centos 7. I get this error in logs: /usr/local/ctera/apache-tomcat-8.0.14/bin/catalina.sh: line 421: -Djava.endorsed.dirs=/usr/local/ctera/apache-tomcat-8.0.14/endorsed: ...
1
vote
2answers
28 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
1answer
28 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
2answers
20 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
2answers
2k views

Can not open tomcat default page CentOS

I have downloaded tomcat on my local box and when i try to run in the is the output which i have. Using CATALINA_BASE: /home/user/Downloads/apache-tomcat-8.0.23 Using CATALINA_HOME: /home/user/...
0
votes
2answers
42 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 ...
3
votes
1answer
7k views

Starting Tomcat Service when starting CentOS/RHEL/Fedora

I want to install tomcat 8 and run it at startup time I am following these tutorials: Install Tomcat 7 on CentOS, RHEL, or Fedora How to install Tomcat 8 on a CentOS 6 VPS I created the tomcat user:...
1
vote
2answers
3k views

Is there exists a PID for each tomcat service? If it exists, then can we find the service name from that PID of the running tomcat service?

I am working on linux server. I want to know whether there exists a PID for each tomcat service running on any server. If there exists a PID for a particular tomcat service, then can we find the ...
2
votes
1answer
1k views

How to configure Tomcat to serve at port 80 on root path?

I have an application running on a Tomcat server at http://example.com:8080/webapp. I would like my app to be accessible at http://example.com. How to remove the :8080/webapp path?
0
votes
1answer
2k views

Tomcat 8 503 Error with Apache2 mod_jk as Reverse Proxy

I'm following this guide to setup Tomcat 8 on Ubuntu Server 16.04 using Apache2's mod_jk module as a reverse proxy: https://www.digitalocean.com/community/tutorials/how-to-encrypt-tomcat-8-...
0
votes
1answer
39 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
0answers
204 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
0answers
23 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
2answers
61 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 ...
1
vote
2answers
589 views

I am not able to connect tomcat in my centos browser but it starting in terminal

When I typed ./startup.sh i am getting: Using CATALINA_BASE: /home/ashok/apache-tomcat-7.0.56 Using CATALINA_HOME: /home/ashok/apache-tomcat-7.0.56 Using CATALINA_TMPDIR: /home/ashok/apache-...
0
votes
1answer
712 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
0answers
123 views

Uncomment a connector in Tomcat server.xml using a bash script

I have a tomcat server.xml file looking like this: <?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license ...
0
votes
0answers
34 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
1answer
76 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
1answer
31 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
0answers
355 views

Configure Apache Web Server with Tomcat and trying to Deploy war file

I am not getting my project on my domain name. It gives me Apache Test Page instead of my project which i have added in webapps. I have my war file FINAL_WE.war in /opt/code/apache-tomcat-8.5.54/...
0
votes
1answer
213 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 ...
11
votes
1answer
43k views

Why is apache giving DNS lookup failures?

A CentOS 7 web server has tomcat serving up war files behind an apache httpd reverse proxy. This works perfectly when the WAR files are all server-side code. But when client side code (AngularJS in ...
-1
votes
1answer
545 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
0answers
154 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
0answers
13 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
0answers
279 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
1answer
17 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 ...
4
votes
1answer
26k views

CentOS 7 httpd failed to make connection with backend

In a CentOS 7 server with apache httpd 2.4 set up as an ssl reverse proxy for tomcat, I am getting an error indicating that httpd is not able to connect with tomcat. How can I resolve this error so ...
0
votes
1answer
453 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
1answer
70 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
1answer
3k 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
2answers
457 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
2answers
124 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 ...
4
votes
1answer
105 views

AWS EC2 infrastructure

I was on a job interview today and one question I faced was: I have my application running within a docker container on an EC2 instance (AWS Linux 64bit). The docker containers we use for the ...
0
votes
1answer
333 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
2answers
171 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 ...
1
vote
2answers
718 views

NGINX LoadBalancer not working, only pulling up default index.html site on LB, not upsteam servers

I setup an NGINX loadbalancer in front of 2 tomcat servers on a Cent7 system. When I try to pull them up from the LB, I just get the default index.html NGINX page from the default installation. I've ...
0
votes
2answers
4k views

Cannot run Tomcat server on browser?

I followed the guide in HERE to install Tomcat 8.0.36 (binary version) on my El Capitan by downloading it from its website but it gives me error when I try to start it through terminal. Please help! ...
0
votes
1answer
1k views

Deleting anything in webapps directory doesn't work using Apache Tomcat 7

I ran into an issue where rm doesn't delete anything from the webapps directory using Apache Tomcat 7, but rm does work in any other directory. The Tomcat service is down. Any ideas?
1
vote
1answer
398 views

I can't access my website using tomcat

I'm trying to create my own website using JSP, Tomcat... I'm trying to install Tomcat in Ubuntu (in my Cloud Instance) but I can't access my website. I trying to install Tomcat 9 and I'm using ...
19
votes
3answers
82k views

tomcat 8 will not start after initial install

I am trying to install tomcat on a new CentOS 7 virtual machine. I successfully installed apache httpd, and am able to get the apache test page when I type the ip of the virtual machine into a web ...
1
vote
1answer
199 views

How to export a bks keystore on Debian 7.9 wheezy

I need to generate a keystore.bks file to use for android development. I cannot figure out how to export a bks keystore without using a GUI tool. I have server space on Google Compute Engine which I ...
1
vote
4answers
18k views

Apache Tomcat not working

I have CentOS 6.4 installed on VMware. Recently installed Java SE8 and Apache Tomcat server but I cant't connect to the server by using `localhost:8080' browser says Unable to Connect. I have also ...
0
votes
2answers
3k views

Cannot run config.sh on server that is running Jira

I installed Jira on a Centos 7 VM. Jira is already running and it seems to be working well. I am trying to configure it to run through https. When I try to run config.sh I get an error that java is ...