Stack Exchange Network

Stack Exchange network consists of 174 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]

Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies released under the Apache License version 2. The Tomcat project started at Sun Microsystems and was donated by Sun to the Apache Software Foundation in 1999.

0
votes
0answers
29 views

Systemctl start tomcat fails most of the time to start tomcat

If I run a specific tomcat folder it runs 100% of the time. If I run a second test folder (tomcat2) it will only run maybe 10% of the time. In other words it seems to succeed a small portion of the ...
0
votes
0answers
10 views

tomcat server user login denied instead of providing correct passsword username

I am trying to implement basic authentication in tomcat server (version 8.5.x). Here is what I have done the changes. tomcat-users.xsd <xs:schema xmlns="http://www.w3.org/2001/XMLSchema" ...
0
votes
1answer
21 views

My website had many redirects loop after using nginx https

I recently added an ssl certificate to my site. It worked but sometime had error "too many redirects loop" in the browsers. I don't have much experience with servers and i setup it following an online ...
2
votes
2answers
353 views

systemctl stops Tomcat service immediately after start

I asked first this question on StackOverflow, but it seems that this site is a better fit. I am setting up a web app environment to run Java apps. The environment is supposed to be: AWS EC2 Ubuntu ...
0
votes
0answers
21 views

IIS url write to tomcat with windows authentication SSO

are there any ways to pass authentication info from the user's account in windows to Tomcat via IIS Url rewrite? Tomcat will be doing the authentication against the AD with the auth info that came ...
0
votes
0answers
11 views

Tomcat Java error (Java/Tomcat noob)

Have an old java site archive that I'm trying to spin up to see what could be done to "convert" it to php, but I'm terrible when it comes to Java and Tomcat. Dropped the .jsp files in to the webroot ...
0
votes
0answers
58 views

Error deploying large WAR file on tomcat 9, at startup

JRE Version:1.8.0_191-b12 Tomcat version: 9.0.13 Windows 10 I have a large WAR file (300MB) several hundred of files, classes, struts actions etc. When I start Tomcat 9.0.13 from a Windows Service I ...
1
vote
0answers
35 views

fail2ban and tomcat8 log filtered localhost_access_log : No such file or directory

this is my first question on serverfault ;) My conf : Debian 9.6, tomcat 8.5.14.0, fail2ban 0.9.6-2 I have created a tomcat8 filter to detect multiple 404 error /etc/fail2ban/filter.d/tomcat.conf ...
0
votes
1answer
27 views

RHEL 7.5 and Tomcat 8.5 on Azure, not listening on public address

I have created a RHEL 7.5 hosted on Azure and I have installed Tomcat 8.5 in it. I have configured Tomcat server.xml as following: <Connector port="8080" protocol="HTTP/1.1" address="0.0.0.0" ...
0
votes
1answer
103 views

haproxy hide backend url

Is it possible to hide the backend server's URL path, using haproxy? The backend server's URL path is https://backend:8443/backend_url(/.*) I would like to keep the URL path in the browser as always ...
0
votes
1answer
71 views

Let's encrypt certificate permissions

I am using webmin + virtualmin to host and manage websites. There is Let's encrypt module to configure automatic SSL certificate renewal in some period of time. Certificates are placed in user's home ...
-1
votes
0answers
28 views

ocsp stapling via proxy on tomcat

I have a Tomcat 7.0.70 web server running on RHEL 6.9 which sits behind a proxy, I need to forward tomcat ocsp requests (those are Http requests to ocsp responder on port 80 ) to a proxy and then to ...
0
votes
0answers
16 views

DigitalOcean: deploying war file fine, but no dependencies are downloaded

I have a VPS on DigitalOcean I try to deploy an app to. I have Tomcat and Maven installed there and I have copied the local .war file to /tomcat/webapps. After restart the .war gets unpackaged fine. ...
0
votes
1answer
48 views

DigitalOcean VPS Tomcat server: can't configure port 80 and multiple domain names

I have a VPS (droplet) on DigitalOceanI'm trying to configure 80 port and several domain names for my server. After reading some questions and answers I edited my server.xml file like this: <?xml ...
0
votes
0answers
92 views

apache guacamole displays a blank page and nothing else

I've been trying to install apache guacamole on my centos 7 server, using this script: https://sourceforge.net/projects/guacamoleinstallscript/ Unfortunately, it doesn't seem to work; when I try to ...
0
votes
0answers
35 views

Docker - handle multiple Tomcat containers

I have the following setup in the company I am working: A Linux server running Tomcat with multiple contexts of the same java webapp. Although the webapp running on each context is pretty much the ...
0
votes
0answers
27 views

How to fix the issue to start httpd? [duplicate]

ERROR: httpd: Syntax error on line 354 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_jk_apache_2.0.Linux_64.so into server: /etc/httpd/modules/mod_jk_apache_2.0.Linux_64.so: ...
0
votes
0answers
69 views

NGINX reverse proxy to Tomcat is not woking

I am trying to setup NGINX as a reverse proxy of Tomcat in a cantos 7 AWS VPS. Nginx version: nginx/1.12.2, Tomcat version: 9.0.12. My nginx.conf is: user nginx www; worker_processes auto; error_log ...
0
votes
0answers
16 views

Tomcat with a different JDBCRealm per URL

I'd like to set up Tomcat 8.5 to serve a WAR file under different domains. The application then delivers different content based on the URL. This is easy via the HttpServletRequest. Right now I'm ...
0
votes
0answers
124 views

java.io.UnixFileSystem.getBooleanAttributes0(Native Method)

My OS=CentOS Jdk + Tomcat 8.5 + mod_jk connector Here is error: HTTP Status 500 – Internal Server Error Type Exception Report Message Servlet execution threw an exception Description The server ...
0
votes
1answer
41 views

URL Redirection to different, secure site

This was originally posted to StackOverflow: https://stackoverflow.com/questions/52538874/url-redirection-to-different-secure-site I'm looking for some help with URL Redirection. I am hosting a ...
0
votes
1answer
33 views

Apache 2.4 Heartbeat Flow

I have recently upgraded from Apache 2.2 to 2.4 and am looking into changing the proxy method used by the server from the basic mod_proxy to mod_lbmethod_heartbeat in mod_proxy_balancer. I am using an ...
1
vote
1answer
44 views

Does the application server TomEE support EJB 2?

The Situation We have legacy JavaEE software which still uses EJB 2. We want to upgrade to a modern application server for security reasons. The Question Currently at the top of our short list of ...
-2
votes
1answer
41 views

server not listening on port 5432 [duplicate]

My localhost is Apache Tomcat. The server is not accepting connections and I am getting error message connection to localhost refused on GeoServer and PostgreSQL 9.5 on port 5432. I used the ...
0
votes
0answers
40 views

Use existing response body for CGI HTTP errors (Tomcat 8)

We are using a custom servlet in Tomcat via the org.apache.catalina.servlets.CGIServlet class. Everything seems to be going fine so far - we can access the required endpoint. However, the program ...
0
votes
1answer
178 views

Putting Tomcat on Port 80 on Amazon Linux 2 (iptables?)

I'm configuring a new EC2 instance, which will be running Tomcat, and I want it accessible on Port 80. Within Amazon Linux 1, the primary strategy I saw people using was to use iptables to do port ...
0
votes
0answers
69 views

Apache mod_cache cache misses

Somehow I can't get Apache's mod-cache to work as I want. I want it to cache a proxy call to my tomcat server which is a jsp file. The jsp file displays the current time so I can notice if I get a ...
0
votes
2answers
75 views

Spring endpoints work with IP but not domain name. How to fix?

I have a Spring Boot application deployed in a VPS. I packaged it as a war and deployed it through the Tomcat manager (<IP>:<Tomcat port>/manager/html). It works if I access the endpoints ...
0
votes
0answers
50 views

Showing error message after Tomcat LockOutRealm error / user lock

I'm using JDBCRealm + LockOutRealm in Tomcat (8, but could switch to 9). This is working all fine, but if a user locks himself out, this is only visible in the logs, not the user facing login error ...
3
votes
0answers
23 views

How to filter external HTTP requests using on remote host location and GET parameters with Tomcat8?

I have a tomcat 8 web applications server and it has a running application (/app). This /app can be accessed from both internal and external HTTP GET requests but 1 request from external should be ...
0
votes
0answers
454 views

browser says my server uses an unsupported protocol

I am making my site into https site. Got a Comodo certificate. Browser says: "This site can’t provide a secure connection" abs-appsupport.hhs.int.state.dp.us uses an unsupported protocol. ...
-1
votes
1answer
289 views

Nginx configuration for multiple domains and same application

I have the following scenario: A single application that will serve several different domains, on a single server, and a single context of a single Tomcat instance. (The DNS of all domains are ...
0
votes
0answers
19 views

Deployed application connection aborted

We connect to the client server via the configured tunnel. There we have apache-tomcat-8.5.32 as the web server. We are trying to deploy the java web application after the upgrade. An application is ...
0
votes
0answers
30 views

Saving Output shown in Separate window when starting tomcat with gs_startup.bat on windows

I have installed tomcat with secure setting (i.e. there is password encryption when starting the server) I use gs_startup.bat to start tomcat but after the password validation is done a separate ...
0
votes
0answers
98 views

Systemctl start embeded Tomcat fail

I have a java project with embedded Tomcat 8.5. I have add a new service to sytemd to run it as a service in CentOS 7.2. When I use "systemctl start app.service" to start the server, the program will ...
0
votes
1answer
50 views

How to set the DirectoryIndex on a tomcat Apache server to serve website?

I am using an Apache Tomcat server, that I want to host my website on. I have copied the contents of my website to /opt/bitnami/apache-tomcat/webapps/ROOT, however when I go to the homepage, I am ...
0
votes
0answers
341 views

Where should I set context path for Tomcat?

My regular question about Tomcat. Tomcat docs about <Context>. It is NOT recommended to place elements directly in the server.xml file. But This attribute must only be used when ...
0
votes
1answer
100 views

Why Nginx is so much faster than Apache in this environment?

We have a web application with a java backend and a tomcat frontend server. Before the tomcat there is an Apache. Both of them are on one host. The backend is on another host. Web browsers communicate ...
1
vote
1answer
26 views

Changing Atlassian Bitbucket path

My setup: I'm running both Jira and Bitbucket [5.12.0] on my Ubuntu 18.04 server. I've tried to change the urls for both apps to be: 192.168.1.77:8080/jira and 192.168.1.77:7990/bitbucket respectively....
0
votes
1answer
65 views

Auto-unpacking WARs doesn't work

I have trouble with auto-unpacking WAR-files in Tomcat. My Host descriptor at server.xml (defaultHost="mp.org"): <Host name="mp.org" appBase="/var/www/mp/target/web/" unpackWARs="true" ...
0
votes
0answers
10 views

Configure HTTPS Link for JavaEE app Tomcat

I am in a bit of a situation. I need to configure a webapp to be accessible via a secure link. I am a developer and there is a different person for system admin and servers but said person is MIA and ...
0
votes
0answers
15 views

Tomcat hangs after setting the certificates

I'm trying to set up some certificates on Tomcat for using SSL. After a few failures using Apache APR, I decided using NIO. After settinng the file name and its password, tomcat starts correctly and ...
-3
votes
1answer
105 views

Failed to set Up SSL on Tomcat 9 on AWS EC2

I am following this guide to setup ssl on my Tomcat 9 hosted on AWS EC2 (Ubuntu 16.04.5 LTS). Version: java-8-oracle , apache-tomcat-9.0.10 Key created at /home/ubuntu : ubuntu@ip-x-x-x-x:~$ sudo ...
0
votes
1answer
25 views

Why tomcat AJP connector need to send GET_BODY_CHUNK message to Apache mod_jk

Why tomcat AJP connector need to send GET_BODY_CHUNK message to Apache mod_jk while reading request body. Why doesn’t it make use of Request Content-Length header already sent to it to decide how much ...
0
votes
0answers
186 views

Cannot kill tomcat7.exe on Windows 7

I have run into a situation where I cannot restart the Tomcat7 service on Windows 7, because I cannot actually kill the Tomcat process (tomcat7.exe). This is new, but I can't work out what has changed ...
0
votes
0answers
38 views

Echo HTTP headers in tomcat possible?

I am currently on tomcat 8.5.31 and observing that tomcat instances are not returning "Content-Type" header in response even if it was sent in the request. This behavior is potentially breaking system ...
-3
votes
1answer
491 views

How to redirect from port 80 to port 8443 using Tomcat and iptables

I have the following iptable entry: REDIRECT tcp -- anywhere anywhere tcp dpt:http redir ports 8443 In my server.xml, I have only the following connector: <Connector ...
0
votes
0answers
17 views

Tomcat fiilter traffic basing on bad mime type

I have spotted recently a large amount of malicious traffic causing throwing an errors on our Grails app. It is hosted via tomcat: ERROR grails.plugin.cache.web.filter.simple....
0
votes
0answers
503 views

Tomcat 8.5: No global web.xml found (CATALINA_BASE not the same as CATALINA_HOME)

Is this expected behaviour? Will the global web.xml not be picked up in the deployment scenario where CATALINA_HOME (tomcat installation) and CATALINA_BASE (webapp home) are not the same? The ...
-2
votes
1answer
231 views

Nginx loadbalancing in same ip but different ports

Nginx(80) and two tomcat(8080,18080) were installed on one server. And i try to loadbalancing is it possible? I can proxy pass 80 to 8080, but can't to 18080. Why is this ??T.T http{ upstream ...