Questions tagged [tomcat]
Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies.
289
questions
0
votes
0
answers
28
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 ...
1
vote
0
answers
48
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 ...
0
votes
0
answers
110
views
WebSockets and NGINX proxy_read_timeout
I'm struggling with a strange WebSocket issue in my Vaadin application described at the following question https://stackoverflow.com/questions/74408660/vaadin-23-websockets-recovery-logic
I use NGINX ...
0
votes
0
answers
84
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....
0
votes
0
answers
82
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 ...
2
votes
0
answers
469
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.
...
0
votes
0
answers
132
views
Migration from WAS to Tomcat
Currently we are in process of migrating from WAS to Tomcat 9, but stuck with MQ issue. We are trying to connect to MQ through client mode.
But somehow connection are not going through to MQ. In ...
0
votes
0
answers
279
views
Apache shows 404 but on localhost Spring app works
I've installed Tomcat 9, Apache httpd 2.4.6, and Let's Encrypt for SSL, on Centos 7 on the Google Cloud instance. It's the second time I'm doing this configuration so I was using the similar ...
0
votes
0
answers
553
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:...
1
vote
0
answers
97
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:
/...
0
votes
1
answer
2k
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 ...
0
votes
1
answer
2k
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 ...
0
votes
0
answers
347
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:...
0
votes
1
answer
175
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=&...
2
votes
1
answer
548
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....
2
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 ...
0
votes
1
answer
240
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 ...
0
votes
1
answer
5k
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 ...
0
votes
1
answer
77
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 ...
0
votes
1
answer
338
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/...
0
votes
1
answer
1k
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=...
0
votes
1
answer
14k
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]...
0
votes
1
answer
2k
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 - ...
0
votes
1
answer
4k
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 ...
0
votes
1
answer
160
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 ...
1
vote
1
answer
310
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 ...
0
votes
1
answer
856
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 ...
0
votes
0
answers
53
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-...
1
vote
1
answer
3k
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 ...
0
votes
0
answers
28
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 ...
1
vote
1
answer
274
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.
1
vote
1
answer
315
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-...
1
vote
1
answer
111
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 ...
1
vote
1
answer
6k
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 ...
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. ...
0
votes
1
answer
1k
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 ...
2
votes
3
answers
9k
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 ...
1
vote
1
answer
761
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 ...
0
votes
1
answer
8k
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.
...
0
votes
1
answer
56
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.
0
votes
0
answers
111
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: ...
0
votes
0
answers
171
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 ...
0
votes
1
answer
233
views
Tomcat server is not detecting JARs
I am running a Tomcat server for my project. I kept my required JARs in ROOT/WEB-INF/classes.
But when I start my server and send some requests, I am getting classNotFoundExceptions. Although, when I ...
0
votes
1
answer
593
views
Tomcat 9 change port number
Could anyone help me to solve this issue?
Recently setting up the geo-server for storing the data, did couple research and was told need to change the port number from 8080 to 80 in tomcat because of ...
0
votes
1
answer
725
views
Tomcat crashed with unexpected error
Tomcat server crashed with the unexpected error detected by the java virtual machine. And hs_err_pid.log file was also generated during the crash.
hs_err_pid log file captured 'V [libjvm.so+...
2
votes
1
answer
30
views
How to reset JDPA environmental variable on UBUNTU 18.04?
I set Tomcat debug mode port in Intellij. However, because could not see it running I set it again from the terminal. Since then I cannot run debug at all.
I tried to solve by deleting my settings ...
0
votes
1
answer
8k
views
How to get access to the WEB-INF/views/some.jsp? spring mvc
I successfully deployed my webapp to the Tomcat localhost. My app has 2 pages: localhost:8080/spring-mvc and localhost:8080/home. The first page has a link to the second. When I start my app, it ...
0
votes
0
answers
71
views
Intellij tomcat Input Console
I have a project in Intellij with tomcat server.
In this project I have a thread with a localshell who read console input (System.in).
In Eclipse I can typing in my console and localshell read system....
1
vote
2
answers
1k
views
403 issue in Chrome only
I've been banging my head trying to figure out a 403 issue only with Chrome.
I have a application running in tomcat8 and I front it with Nginx. The machine are hosted with a client and I suspect maybe ...
0
votes
1
answer
1k
views
MariaDB, tomcat connection pool access denied Error
First of all, I am sorry, I am not good at English.
Hi! I have some problems about connecting mariaDB from Java web project using tomcat connection pool and JNDI.
Here are Exception logs from ...