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
15 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
42 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 ...
0
votes
0answers
14 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
13 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
32 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
21 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
13 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
25 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
1answer
31 views

How to get memory utilization status in Ubuntu of Apache Tomcat threads?

I just installed Apache Tomcat and i can see the status of tomcat threads count by using given commands (ps -o nlwp PID) but I am not able to see the status of memory utilization according to Tomcat ...
-4
votes
0answers
24 views

Tomcat 9 app CPU peaks

I've recently installed Tomcat 9 together with Java 10 on 4 VCPU VMS with 4GB of RAM. Currently, I am running 2 applications under 2 instances of tomcat server which means that I have separate tomcat ...
0
votes
0answers
30 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
7 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
38 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
40 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
29 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
31 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
24 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
33 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
89 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
22 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
45 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
19 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
22 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
81 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
157 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
16 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
56 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
0answers
73 views

tomcat execute cgi script from subdirectory of root

i have a tomcat server that can already execute scripts with cgi if the html is in the root directory. But when i want to execute a script from a subdirectory of the root i get a 404. i have ...
0
votes
1answer
37 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
191 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
93 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 ...
0
votes
1answer
23 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
42 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
9 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
71 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
22 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
171 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
30 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
343 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
13 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
354 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
149 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 ...
0
votes
0answers
10 views

404 error when accessing servlets in tomcat via apache2

I have my virtual host set up like this: <VirtualHost *:80> DocumentRoot /var/www/example <Directory /var/www/example> DirectoryIndex index.html ...
1
vote
1answer
263 views

Tomcat Tomcat/9.0.8 error java.lang.NoClassDefFoundError: javax/management/MBeanServerNotification

i am getting the following error when starting my java spring application > `16-Jul-2018 12:00:02.108 WARNING [http-nio-8080-exec-4] org.apache.catalina.loader.WebappClassLoaderBase....
0
votes
1answer
32 views

Apache: Loading external resources

I have two Tomcats on two different servers (machines) working in the same network deploying the same application. The application has a .xml descryptor that loads external folder with configs, images,...
0
votes
1answer
28 views

Apache Load Balance wrong balancing

I have 2 backend servers on the same network and 2 Tomcats on both machines with the same application. Additionally, I have a main machine where I load my app and which choses to which worker requests ...
1
vote
1answer
64 views

Can't access tomcat on remote linux server

I have a remote linux server at 192.168.168.1 (subnet mask /24) which has tomcat installed and running. I know it's running because when I SSH to it and do "wget localhost:8080" I get: Resolving ...
0
votes
1answer
85 views

Is it possible to run Java web application using Nginx server only without tomcat server ?

I am having Java web application (with RESTful webservices). Currently it is running on tomcat server. Is it possible to run Java web application using Nginx server only without tomcat server ??  ...