Questions tagged [tomcat]
196 questions
19
votes
3 answers
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 browser on another computer in the network. But I…
CodeMed
- 5,079
- 45
- 100
- 147
17
votes
1 answer
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 this case) is included alongside server-side code…
CodeMed
- 5,079
- 45
- 100
- 147
16
votes
1 answer
How to avoid /usr/bin/env being marked in systemd logs as the executable
I've created a systemd service to run a tomcat application based on the information found in this article. The short version of the article recommends avoiding the shell script wrappers, and executing java directly, with the appropriate environment…
Josh Smeaton
- 451
- 3
- 10
10
votes
3 answers
Tomcat 7 not producing log output to catalina.out on RHEL7
I have a RHEL7 server with Apache Tomcat 7.0 installed and after a recent update to RHEL7.1 all of the logging to ${catalina.base}/logs/catalina.out was stopped. However I am receiving the logs inside journalctl.
If I type journalctl -u tomcat I do…
xterrez
- 101
- 1
- 1
- 4
8
votes
1 answer
KrbException: Fail to create credential. (63) - No service creds
I am working on setting up Tomcat 8.0.35 on Ubuntu 16.04 with Oracle Java 1.8.0_91-b14 (not openjdk) to use Kerberos authentication when authenticating to our Microsoft SQL database. The issue I am running into is that after running kinit as the…
TimBourne
- 81
- 1
- 3
6
votes
1 answer
how to add multiple roles to an admin user in Apache tomcat 8?
Recently i've installed an apache tomcat 8.
my tomcat-users.xml contains this:
I want to enable openning manager app…
Ali Golestan
- 317
- 2
- 4
- 21
6
votes
3 answers
Tomcat won't use setenv.sh
I have Tomcat installed as service.
It's CATALINA_HOME and CATALINA_BASE are same:
-Dcatalina.base=/usr/share/tomcat7 -Dcatalina.home=/usr/share/tomcat7
I added setenv.sh script to /usr/share/tomcat7/bin with next lines:
$ cat…
setevoy
- 894
- 4
- 15
- 28
5
votes
3 answers
How can I redirect ports 80 and 443 to 8080 and 8443 with iptables?
I'm looking at the documentation for a Tomcat 6 webapp called DSpace, specifically in regardds to running Running DSpace on Standard Ports (80 for http:// and 443 for https://)
I am trying to use "Method 1" which uses iptables to redirect traffic…
cwd
- 44,479
- 71
- 146
- 167
5
votes
2 answers
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 start tomcat via Terminal by running…
Rookie
- 151
- 1
- 1
- 4
5
votes
1 answer
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 headers are not making it to Tomcat.
Our Java…
saleetzo
- 570
- 2
- 9
- 23
4
votes
3 answers
Java version for Tomcat
I want to run my Tomcat with Java 7 but all I found about configuring it doesn't work. The management interface of Tomcat shows 1.6.0_24-b24 as Java version. The JAVA_HOME variable is empty.
% echo $JAVA_HOME
I understand that in this case Tomcat…
André Stannek
- 1,258
- 2
- 10
- 17
4
votes
1 answer
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 application (one application per container) connects to…
ryekayo
- 4,705
- 9
- 41
- 66
4
votes
2 answers
Two web servers running in one linux machine?
Problem: I have two web applications which were created by using JAVA and PYTHON respectively.
The JAVA application runs using Tomcat server on the port number 8000. The PYTHON application uses web.py and runs on the port number 8080. The Python…
VjyAnnd
- 51
- 3
4
votes
1 answer
httpd doesn't serve relative url from tomcat, why not?
In a CentOS 7 server, I am trying to set up httpd to act as a reverse proxy for tomcat. I have httpd running perfectly in the sense that I type in http/mydomain.com and it serves up static content located in the designated DocumentRoot. I also…
CodeMed
- 5,079
- 45
- 100
- 147
4
votes
1 answer
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 that httpd serves up the content generated by…
CodeMed
- 5,079
- 45
- 100
- 147