Skip to main content

Questions tagged [tomcat]

Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies.

Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

How do I set up Geoserver on Debian 12 with Tomcat9?

My Nginx after running certbot (in sites-available/domain): server { listen 80; server_name your_domain.com; # Redirect all HTTP requests to HTTPS return 301 https://$host$request_uri;...
Michael Williams's user avatar
0 votes
0 answers
77 views

How to start tomcat at boot time as a systemd service?

This is my Unit file: # Systemd unit file for tomcat [Unit] Description=Apache Tomcat Web Application Container Wants=network.target After=syslog.target network-online.target [Service] Type=forking ...
ngong's user avatar
  • 109
0 votes
0 answers
30 views

Why doesn’t /etc/logrotate.d/tomcat run daily but will only take effect if I manual trigger it?

I have a Talend Data Stewardship application in my server and I would like to rotate the catalina.out log file. Thus, I referring https://dzone.com/articles/how-rotate-tomcat-catalinaout, and create a ...
Panadol Chong's user avatar
2 votes
1 answer
900 views

Tomcat runs from the command line, but will not start as a systemd service

I have built an Apache Tomcat 9.0.83 server on Oracle Linux 9 which will not start as a systemd service, but it does work if you run it from the command line. sudo su - tomcat /u01/tomcat/my_server/...
Big Ed's user avatar
  • 131
0 votes
1 answer
199 views

Does Apache and Tomcat support gMSA

I wonder if Apache and Tomcat support gMSA as "log on as" account for their corresponding Windows service. In latest Tomcat's documentation, there is only mention of "Domain User" ...
el_grom's user avatar
2 votes
0 answers
89 views

Setting up my first VPS

I am setting up my first VPS. I have managed to download and install Tomcat on the VPS. It is my first time using a VPS service and i am a bit lost. When I enter my VPS IP on the browser (just the IP ...
LearningToProgram's user avatar
0 votes
1 answer
218 views

tomcat app using virtual host not accessible outside local network

I use tomcat v8.5 on Windows Server 2019 to deploy my application using a virtual host. In server.xml: <Connector port="80" protocol="HTTP/1.1" connectionTimeout=...
SSSOF's user avatar
  • 3
0 votes
1 answer
223 views

Tomcat service on windows server 2019 starts automatically after being killed?

I have to regularly kill my tomcat service on a windows server 2019 in order to transfer new data into an MSSQL database. I have administrator privilages and have tried all methods I know to stop the ...
Robert Buckley's user avatar
0 votes
1 answer
200 views

Can I establish port forwarding with a remote server behind a load balancer?

I have an application on a remote development server that is running two separate nodes, each on a different port. Between those nodes and the actual front end is a load balancer. The problem I'm ...
pbuchheit's user avatar
  • 113
1 vote
1 answer
401 views

Huge amount of files in Fortify / Apache Tomcat temp directory

We are running a commercial software app (Fortify) on Apache Tomcat. We've asked the vendor, but so far no usable response. So I'm posting this here in case it's an issue with the underlying Apache ...
LeonZandman's user avatar
1 vote
1 answer
3k views

Unable to start Tomcat 10 with https connector

I have just installed tomcat 10 and tried to integrate a jks file that i have been using in a tomcat 9 installation with no issue, but i was unable to start the tomcat 10 with it. Can anyone please ...
SAAD K's user avatar
  • 11
1 vote
0 answers
206 views

Tomcat, NGINX, Vaadin, Spring Boot and LONG POLLING Push

I'm trying to properly configure LONG POLLING push with Vaadin (Java, Spring Boot), NGINX and Tomcat. Sometimes Push stops working, and I suspect it may be the reason of some misconfiguration in my ...
alexanoid's user avatar
  • 175
1 vote
0 answers
81 views

group access to a Vbox-shared exFAT file

My problem is, that my tomcat user cannot access a file on a mounted exFAT drive. Using a VM of Arch linux with kernel 6.1.12-1-MANJARO. The file to access shows up with ls: -rwxrwx--- 1 root vboxsf ...
ngong's user avatar
  • 109
0 votes
0 answers
194 views

show all certificates in a "Select a certificate" window

My situation I've configured Tomcat to prompt to select a certificate, however in that prompt window I can see only one certificate to select -------------------------------------- | https://www....
Jhon Gaido's user avatar
0 votes
0 answers
153 views

Tomcat failed to install after running script through user data of Ubuntu EC2 instance on AWS

This is the script I added to the user data: #!/bin/bash sudo apt update sudo apt upgrade -y sudo apt install openjdk-11-jdk -y sudo apt install tomcat10 tomcat10-admin tomcat10-docs tomcat10-common ...
codestein's user avatar
2 votes
0 answers
1k views

Getting Access is denied : java.io.FileNotFoundException while writing to file

Posting this question here cause it was closed on stackoverflow and considered as off topic I have a java web application. Some important info about the app: The web application runs on a service. ...
Mahmud Mridul's user avatar
0 votes
0 answers
766 views

Unable to start tomcat server with service start

I installed tomcat on ubuntu using the command: sudo apt install tomcat9 But I am unable to run it with any command like sudo service tomcat start sudo service tomcat9 start It gives an error tomcat9:...
nick shetty's user avatar
1 vote
0 answers
198 views

Tomcat does not allow URL with %00, is there a switch to turn off the check?

I am using Servlet and tomcat to build an HTTP Middleware that intercepts HTTP requests, logs them, and probably rewrites them. I notice that when the request URL contains %00 like the following: /...
Harper's user avatar
  • 123
0 votes
1 answer
4k views

Apache Web Server port 443 and Tomcat port 8080, redirect not working

I have a Java web application on CentOS on Google Cloud. I can access my web app with http://mydomain:8080. I wish https://mydomain (without 8080 in URL) to lead to application, but instead, I just ...
LosmiNCL's user avatar
0 votes
1 answer
3k views

Tomcat 9 not executing setenv.sh on start up

I've created setenv.sh to my CATALINA_BASE folder which is at /usr/share/tomcat9/ but the setenv.sh is in /usr/share/tomcat9/bin setenv.sh content: echo "HELLO ITS WORKING" export ...
willberthos's user avatar
0 votes
0 answers
659 views

Can't connect to Tomcat via Apache HTTP Server using mod_jk

Issue: I can't connect to my Apache Tomcat site through the Apache HTTP Server using the mod_jk. I can access the Tomcat website when I define the URL with the port number, example: http://localhost:...
robtot's user avatar
  • 163
0 votes
1 answer
262 views

Wants to run two webserver on tomcat at port 8080 and 7070 without opening this port in security group of EC2

I am running two webserver on tomcat version 9 using port 8080 and 7070 on same EC2 . 1st tomcat : <Connector port="7070" protocol="HTTP/1.1" connectionTimeout=&...
Rashmi Pandey's user avatar
2 votes
1 answer
1k views

Tomcat doesn't use latest Java version

I have Java 8 v171. Few month ago, I have installed Tomcat 8.5.50. Now, I need to upgrade my Java version. Now, I have Java 8 v171 and Java 8 v301. Output of java -version: java version "1.8....
Elikill58's user avatar
  • 157
3 votes
1 answer
2k views

Tomcat 400 Bad Request: How to accept < (less than sign) on URI?

When I send this request to Tomcat it is working http://example.org/?foo=%3Cbar/%3E But this one gives "400 Bad Request" http://example.org/?foo=<bar/> I do know that the request is ...
hschou's user avatar
  • 150
0 votes
1 answer
582 views

Apache tomcat 9 SSL connector: have to manually write https:// the first attempt on a browser

thanks in advance for any help. I've set up an apache tomcat 9 environment to access my site with an SSL certificate. The issue is that I need it to be able to access to the site by just typing in the ...
Julio Orrego's user avatar
0 votes
1 answer
8k views

Change default path for VS Code workspace files [workspaceStorage]?

I am desperately trying to debug a Java Tomcat application, run in a local network of an enterprise, using VS Code, and am using a Tomcat extension to do the job: The Tomcat extension saves a ...
Serhii's user avatar
  • 103
0 votes
1 answer
121 views

What happens when exception occurs in a thread in tomcat

I want to know how Tomcat works. As I know Tomcat assigns a thread when receiving a request from clients. Then what happens when exception occurs in a thread in tomcat? All threads in tomcat die due ...
mazend's user avatar
  • 123
0 votes
1 answer
511 views

What do I need to get rid of Permission denied error on Linux?

I have tomcat installed in /opt/tomcat and would like to get access to sub-folders for user 'mck'. mck@hp15-pc:/opt/tomcat$ ls bin ls: cannot open directory 'bin': Permission denied mck@hp15-pc:/opt/...
mck's user avatar
  • 1
0 votes
1 answer
3k views

selinux is preventing from execute access on the file centos

I want to launch the Tomcat service on CentOS with the cmdlet : systemctl start tomcat.service but i get the error Failed to start Apache ExecStart=/opt/tomcat/bin/startup.sh (code=exited, status=...
welwelwel's user avatar
0 votes
1 answer
17k views

I run Tomcat 9 and it keeps saying: GRAVE: A child container failed during start

GRAVE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]...
Light Blue's user avatar
0 votes
1 answer
3k views

Cannot connect to Tomcat server from outside network

I cannot connect to my Apache Tomcat server from outside network. I can do a localhost:8080 from a browser and it returns a page. I can also use the internal and public ip addresses and it works - ...
dashman's user avatar
  • 121
1 vote
1 answer
7k views

How to block a port on localhost?

Here's my scenario: I have an Apache load balancer in front of two Tomcats (this is on Windows). Periodically I'd like to ensure that traffic gets routed to a specific Tomcat. Stopping one Tomcat is ...
Johnny's user avatar
  • 255
0 votes
1 answer
201 views

tomcat with does start with SSL arguments for JMX

I have Tomcat 8.0.23 (I know, should be upgraded) running on CentOS and I need to set up JMX with authentication and SSL. I am able to connect with SSL and with password through SSL tunnel from my ...
Leos Literak's user avatar
1 vote
1 answer
369 views

Keeping the processes running even after exiting SSH to a windows machine

I am connecting to a remote machine through OpenSSH client from Windows 10. It is an Open SSH server installed on Windows server 2016. I usually run tomcat 7 from such ssh session. But, as soon as ...
Sara's user avatar
  • 111
0 votes
1 answer
1k views

Windows Service rundll32.exe always listening on port8080, even when stopped

I have a problem when i start my Java application by Spring (using tomcat), the port 8080 is allready listening by a service, which is "rundll32.exe", apparently a legitime file from system32, but ...
Lucian's user avatar
  • 1
0 votes
0 answers
83 views

Apache-tomcat stops at regular intervals

I need to start tomcat every morning. One thing I suspect is there is a crontab written to clear the Catalina.out at Midnight, does it lead to stopping of tomcat by any means? echo '' > /opt/apache-...
lancer's user avatar
  • 1
1 vote
1 answer
4k views

Tomcat service can't start: access denied

I am using Tomcat on a Windows server and faced a problem while updating the Tomcat version. The problem is that the assigned user doesn't have the rights to start Tomcat. Here are my attempts with ...
Ahmad Al-Khazraji's user avatar
0 votes
0 answers
31 views

Launch tomcat as service

I have a question, currently my webapp are launched as the service. They have added the webapp in the init.d and all app have an entry in init.d. For me this way is bad So for each webapp I have new ...
rab's user avatar
  • 13
1 vote
1 answer
350 views

Difference between httpd and tomcat

What is the generic difference between the two processes on a linux box ? I always thought they are the same thing, basically a web server so the users have some ui where they can make requests.
Cueisa's user avatar
  • 31
1 vote
1 answer
360 views

Restart ea-tomcat85 from crontab

I have written a script to restart tomcat service # timestamp ts=`date +%m-%d-%Y_%H:%M:%S` echo "$ts: Restarting ea-tomcat85..." &>> /home/account_name/restartservice.log ubic restart ea-...
AL̲̳I's user avatar
  • 111
1 vote
1 answer
171 views

Tomcat 7 starts up my SSL-secured port without erroring, but is still not publicly accessible. How do I debug this?

At my job I have been tasked with securing a website (http -> https) I am new to this, so forgive me if my terminology is wrong. I've spent the past week setting up Tomcat's keystores and configuring ...
Falcondance's user avatar
1 vote
1 answer
8k views

Apache Guacamole Invalid Login

Very new to Guacamole but I do understand how it works. I'm fairly certain I've installed and configured everything correctly but I am getting an invalid login message when I try to log in, even with ...
hiddensquid's user avatar
1 vote
1 answer
2k views

sometimes nginx return 501 error

I have a problem that nginx returns 501 error or 200 OK for same requests. I don't know why. I guess nginx doesn't have enough connections for upstream.(I connect nginx and tomcat by reverse proxy. ...
JYS's user avatar
  • 11
1 vote
1 answer
2k views

How to configure Tomcat to use SSL encryption with the private key stored on a remote server?

I want to know if there is a way to configure Tomcat server.xml to use the SSL encryption with a private key stored remotely on a server I can imagine the server configuration would be something like ...
Cristian Gabor's user avatar
3 votes
3 answers
11k views

Add TomCat to XAMPP installation

Months ago I've instelled XAMPP to my windows 10 computer with only: Apache MySQL but now, I need install TOMCAT. Actually I have 3 projects on my htdocs froder, what would be the best way to add ...
Vrian7's user avatar
  • 165
1 vote
1 answer
919 views

Can't find X-Frame-Options in Tomcat 8.0.12

I have Tomcat 8.0.12 installed on a Centos 7 server and I am trying to set the "X-Frame-Options" to tighten security. I do not see it in web.xml or server.xml. Is there somewhere else to set it? Does ...
ErnieAndBert's user avatar
0 votes
1 answer
9k views

Tomcat failed to start on Netbeans

I have a problem with starting Apache Tomcat 9 from Netbeans 11 (on 8.2 version I had the same troubles. Where I used Apache Tomcat 8). What I have tried: Removed quotation marks in catalina.bat. ...
B.Frederik's user avatar
0 votes
1 answer
94 views

How to install TLS certificate on tomcat that way so it is able to connect to two-way-ssl application

I'm trying to integrate with webservice that uses two-way ssl. And I need to install the TLS certificate on my tomcat. Tomcat version is 8.5. TLS certificate is in .p12 format.
miyav miyav's user avatar
0 votes
0 answers
130 views

trouble in eclipce with tomcat

i want to start tomcat server in eclipse and I got this message: I got this error message in the console sept. 22, 2019 7:55:32 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: ...
yasser elalami's user avatar
0 votes
0 answers
297 views

Tomcat 8.5 does not start as a service in a Windows environment within VMWare

I have installed tomcat 8.5 on a windows machine inside a VMWare with OpenJDK11 from AdoptOpenJDK. When I start tomcat from command prompt the server starts up without any issues. However, when I ...
Andrews's user avatar
  • 119

1
2 3 4 5 6