Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tomcat]

The tag has no usage guidance.

0
votes
1answer
21 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
0answers
42 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
1answer
267 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
0answers
23 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
1answer
28 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 ...
0
votes
1answer
239 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 ...
0
votes
1answer
483 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
0answers
216 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
0answers
74 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
0answers
164 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
1answer
36 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
0answers
130 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 ...
1
vote
0answers
30 views

Tomcat server cannot be reached remotedly [closed]

So I just installed tomcat on my Ubuntu server (16.04). I specified tomcat to use port 60001 by modifying server.xml: <Connector port="60001" protocol="HTTP/1.1" connectionTimeout="...
0
votes
1answer
175 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
1answer
69 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....
2
votes
0answers
829 views

tomcat9 - 401 Unauthorized error trying to log into tomcat manager app [closed]

I can't log into the manager apps. During a fresh install, I followed the instructions for editing the tomcat-users.xml, restarted tomcat Role are configured like so: <role rolename="tomcat"/...
0
votes
2answers
644 views

SELinux blocks tomcat web application to load Java native library (JNI) from /tmp folder

I have a Centos 7 with Tomcat installed and tomcat user ls -l /var/lib/tomcat total 0 drwxrwxrwx. 5 root tomcat 84 Jul 3 13:18 webapps SELinux is enforcing and a Java web application which tries ...
0
votes
2answers
92 views

Accessing different servers with same domain name

I have a Linux Server (Ser1) on which an application is running on Apache and tomcat using proxy. This server has a registered domain name abc.web.example. Because of traffic, company has taken ...
-2
votes
1answer
558 views

How to install Apache Tomcat 9 using apt-get?

I am trying to install Apache Tomcat using apt-get but it produces this error: apt-get install tomcat9 Reading package lists... Done Building dependency tree Reading state information... Done ...
1
vote
1answer
36 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 ...
0
votes
1answer
236 views

copy folder permission to another server

I have the next problem, i have 2 servers (debian) and each one have install tomcat. The first server (192.168.0.100) have installed tomcat with their default permissions in every folder (and that’s ...
2
votes
1answer
1k views

Error starting tomcat7.service in arch linux

The os is running is Arch Linux x86-64. I'm trying to start tomcat7.service via systemctl start tomcat7.service, but it throws a error message: Job for tomcat7.service failed because the control ...
0
votes
2answers
893 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/...
-1
votes
1answer
743 views

Apache2 as reverse proxy not working?

Hello I am trying to setup apache2 as reverse proxy on Ubuntu. For the backed I have tomcat 7. For the configuration file /etc/apache2/sites-enabled/example.co.conf <VirtualHost *:80> ...
0
votes
0answers
681 views

How to configure apache as reverse proxy for HTTPS tomcat7 backend?

I have configured my tomcat7 to use letsencrypt SSL successfully on port 8443. Now I want to accept for 443 port only I am using apache2 in front of it. I added virtual host and this is the content on ...
1
vote
1answer
2k views

Tomcat8's “Silence” process using 100% CPU. What is this process?

After hitting some performance issues with one of our servers, I observed a Tomcat8 process called "Silence" using 100% continuously. I tried to find information about it on Google, but searching for ...
0
votes
1answer
659 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 ...
1
vote
1answer
904 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?
-2
votes
1answer
406 views

Linux Machine time mismatch with all other logs time [closed]

I have deployed multiple wars on QA environment but when I am doing date command on my Linux machine, it is showing Correct PST time that I have set but in the logs I am getting different time. Same ...
2
votes
1answer
1k views

Logrotate Tomcat log file

I am writing Tomcat log with this setting: Log configured using an AccessLogValve in server.xml Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs/access" prefix="access" ...
2
votes
0answers
16 views

Java web application fails on one instance and passes on another with the same version

I am running a java web application on tomcat on a docker container on Ubuntu on two machines. Both have the same OS version Linux version 3.19.0-77-generic (buildd@lcy01-03) (gcc version 4.8.4 (...
0
votes
1answer
508 views

change user to sudo(root) after login to other server

i have 2 servers(Linux 2.6.32-696.el6.x86_64) suppose fe1 and fe2. i need to run a command (service tomcat start/stop) on fe2 from fe1 but it requires sudo as root. Command that i am using for sudo ...
0
votes
1answer
178 views

HTTPD using same port multiple times

I am running 3 tomcat in cluster ( different httpd & AJP13 ports ) with a apache in the front. It looks like only one tomcat stays up and other two error out in jkstatus manager The error logs ...
0
votes
0answers
42 views

Using CSF (or other app) to block access to tomcat manager based on URL and ip address

I am using CSF on my linux VPS. I want to restrict access to the tomcat manager based on if an ip other than my home ip (my home ip is in the csf.allow file) tries to reach the tomcat manager. In CSF (...
0
votes
1answer
1k views

Remove OpenJDK/JRE and installed Oracle JDK, now Tomcat fails

I am running a Centos7 system for Tomcat. Everything was working properly using Tomcat 8.5 and OpenJDK but the dev wants to use Oracle JDK. So, I yum autoremove the JDK files and then downloaded the ...
1
vote
1answer
2k views

how to access catalina.sh file of tomcat8 in amazon linux

I have installed tomcat 8 using yum. Now I need to make some changes in catalina.sh file but I'am unable to locate it. it would be helpful if anyone could tell me the pathway or how to access the file....
-1
votes
0answers
909 views

IPTables, multiple network interfaces, NAT and routing over 2 networks

I've had a look at and I can't see a similar enough issue so please let me know if I've missed one. The Set Up I have a server with two network cards, eth0 and eth1 for two different networks. The ...
0
votes
1answer
407 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
votes
1answer
301 views

Does Tomcat with Kerberos need a keytab file linked with a specific user?

We are trying to setup a tomcat server on RHEL 6.5 to use Kerberos authentication. We have tried to follow this guide, but it seems more appropriate for a Windows implementation. In our environment, ...
3
votes
2answers
5k views

Tomcat - How does the setenv.sh work?

I don't think my question has been asked before (not exactly anyway, if it has, apologies). I am using Tomcat 7 on CentOS 7. In my tomcat/bin/setenv.sh file I have set: export TEST="test" Then I ...
0
votes
1answer
427 views

How to upgrade tomcat8 server on ubuntu?

I'm running ubuntu xenial 16.04. Running aptitude install tomcat8 results in a tomcat version of 8.0.32. But the current release is 8.0.46. How can I force an aptitude install or upgrade with exactly ...
2
votes
1answer
3k views

Starting Tomcat 8 on Raspbian - Job for tomcat8.service failed

I am having trouble setting up Tomcat 8 on my Pi 3, running Raspbian. I've installed Java 8 and Tomcat 8 but it refuses to start up. I started by ensuring Java 8 was installed. pi@raspberrypi:~$ ...
2
votes
1answer
4k views

NGINX not passing all request headers to Tomcat

I have a CentOS system running NGINX with Tomcat behind it. NGINX has SSL enabled and is only used to push the connection to Tomcat. Pretty much everything is working just fine except certain request ...
1
vote
2answers
741 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
5k views

Tomcat 8 limit size of Catalina.out

I have Tomcat 8 and my Catalina.out log is 3GB large, it takes a lot of space. In $CATALINA_HOME/conf/ I have logging.properties that contains: 1catalina.org.apache.juli.AsyncFileHandler.level = FINE ...
1
vote
2answers
438 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
1answer
725 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
1answer
403 views

Installing Apache Tomcat on CentOS giving read error on Wget

I have a remote VM to which I connect using SSH. Now i need to install Tomcat 8 for which I run wget command wget http://mirror.fibergrid.in/apache/tomcat/tomcat-8/v8.5.14/bin/apache-tomcat-8.5.14....
0
votes
1answer
111 views

Folder name in path variable is repeated

I am fairly new to linux and have been facing this issue and was wondering if something can help resolve it. So when I try to shutdown Tomcat, this is the error I am getting. As you can see 'bin' is ...
0
votes
1answer
899 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 "...