Questions tagged [tomcat]

Use this tag for questions about Apache Tomcat (or simply Tomcat, formerly also Jakarta Tomcat) which is an open source Servlet Container developed by the Apache Software Foundation (ASF). Most questions should also include a tag specifying the operating system.

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

Tomcat error "The requested resource ... is not available" with spring's GetMapping()

I am making spring app using Tomcat 10.1, Maven and Eclipse IDE. I run my app and see index.jsp, but if i enter path "/refer" (from GetMapping("/refer")), i want to get hello_world....
Behemoth's user avatar
0 votes
0 answers
23 views

Spring Boot App immediately stops running with no errors, 'Closing JPA EntityManagerFactory for persistence unit 'default''

I have just created a Spring Boot application with a generic model/service/dto/controller/repository and wanted to test it for the first time on a mysql database. When I run the application, it offers ...
clara bella's user avatar
0 votes
0 answers
17 views

Is there any way I can debug the war deployment process of the tomcat?

Tomcat is deploying a A war but not the B war, both the wars consists of same servlets and configs I have two wars, that is A and B both of them consist of same servlets, to differentiate them I have ...
adi's user avatar
  • 1
0 votes
0 answers
23 views

Jsp file not found

I have to get the view of my jsp file using the url i have created. after resolving all recommended steps like adding tomcat embed dependency in my pom.xml file on my Spring Boot project. I'm still ...
Kowshika's user avatar
0 votes
0 answers
8 views

Web Service Deployment Issues: Incorrect URL Redirect and EPR Error

As a novice in the field of web services, I am currently in the initial stages of my project development using Eclipse, Axis, and Tomcat. I encountered a challenge when attempting to execute my class, ...
evelyn's user avatar
  • 21
0 votes
0 answers
16 views

How to forward Apache requests to Tomcat for a specific subdirectory?

I'm trying to integrate Tomcat into an existing Apache environment on a Ubuntu 22.04 server. Apache has been working great and now I have installed Tomcat, have set up ports, and have gotten ...
MBU's user avatar
  • 399
0 votes
1 answer
29 views

HTTP Status 500 – Internal Server Error about ServletUtilities

I am trying to make a Web Service using Tomcat 10 and jdk11 on centos. but I got HTTP Status 500 – Internal Server Error, and show An error occurred at line: [703] in the jsp file: [/index.jsp] It's ...
georgetovrea's user avatar
0 votes
0 answers
53 views

I get a 404 error when requesting tomcat server in IntellijeIdea

I have a problem. I'm trying to set up a simple springMVC application, I do everything exactly according to the instructions, but for some reason everything always breaks for me. this is git: https://...
Зюбин Владислав's user avatar
0 votes
0 answers
19 views

Unable to replay jenkins pipeline, crumb error

I have a Jenkins pipeline which is fairly complicated with multiple shared libraries. I can run and rebuild the pipeline with no issues. However when it comes to replaying the pipeline I am hit with ...
Lee's user avatar
  • 1
0 votes
2 answers
76 views

JDBC driver not found inside tomcat docker image

I have a spring framework web application and I'm trying to deploy it into production using tomcat with docker image. I searched about this error and found out there are two possible errors. The first ...
uranium235's user avatar
0 votes
0 answers
17 views

A recent change in Tomcat 8 on Amazon Linux has caused a problem with compression

I have a Tomcat webapp (used as an API for REST services) running on Amazon Linux, and it has been up and running for several years. (It's Tomcat 8). I apply software updates regularly (sudo yum ...
Flarosa's user avatar
  • 1,341
0 votes
0 answers
32 views

How to install SSL certificate on Tomcat 9 using only .crt files [closed]

im trying to install SSL in my production server. I'm using Tomcat 9 to serve an application in Spring Boot. The company has the domain with GoDadddy and I've recieved a .zip with 4 files: ...
Mateo Rada's user avatar
0 votes
0 answers
11 views

Running a springboot api using Tomcat and getting slow query error

I am running a springboot api on Apache Tomcat. The api is being consumed by a mobile app, but the app tends to be slow once alot of users login and start using the app, when a few users are logged in,...
iamdeed's user avatar
  • 360
0 votes
1 answer
46 views

java.lang.IllegalArgumentException: Filter must not be null

With Springboot update from 2.7.2 to 3.2.0 ,now Filter class started throwing exception Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat at org....
Subodh Joshi's user avatar
  • 12.9k
0 votes
0 answers
37 views

Tomcat mapperContextRootRedirectEnabled attribute is not working

Within Tomcat 9 I am trying to enable mapperContextRootRedirectEnabled. This is a common attributes within context.xml. https://tomcat.apache.org/tomcat-9.0-doc/config/context.html I found this ...
user22553624's user avatar
0 votes
0 answers
23 views

How to forbid the Redirection when the url contains the folder name under the `build` folder of Frontend project?

I have a WEB application. When I try to access: https://{myDomain.com}//example.com/..;/assets The browser will bring me to another domain: example.com/..;/assets After my research, i found there ...
Daxia Xu's user avatar
-3 votes
0 answers
33 views

Implement Netbeans with Tomcat & Spring boot [closed]

I'm building a netbeans application which uses Spring boot & tomcat sever 9. I have built a .war file, and when its been deployed to my TomCat server it will only display the index.html page. I ...
jfc9419's user avatar
0 votes
0 answers
22 views

Spring Boot 3, tomcat SizeLimitExceededException [duplicate]

I am currently making a backend for my fileShare client, which is according to my plans would be something like onedrive or nextcloud in the end. I am creating the backend in Spring Boot 3.1.4 under ...
Bence Hérincs's user avatar
-2 votes
1 answer
55 views

Docker Tomcat Container giving 404 while running servlet

I am getting this error when I run my Docker container built using my application's war file: HTTP Status 404 – Not Found Description The origin server did not find a current representation for the ...
KP Singh's user avatar
  • 344
0 votes
1 answer
49 views

In eclipse when I try to create a Servlet by implementing the Servlet interface then the annotation method does not create the correct link on running

import java.io.IOException; import javax.servlet.Servlet; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet....
user20470572's user avatar
-1 votes
0 answers
19 views

Tomcat giving 503 server unavailable while accessing Context path

I am new to Tomcat, my use case is setting two different environments in one server and accessing the environments by changing the URL path. Ultimate goal: www.mycompany.com: Access the qa webapp ...
user101's user avatar
  • 137
1 vote
0 answers
26 views

org.infinispan.CLUSTER : ISPN000474: Error processing request 0@host-a-25374

Infinispan finds the 2 nodes of the cluster - but exchanging data between the nodes is failing. org.infinispan.CLUSTER : ISPN000474: Error processing request 0@host-a-25374 java.lang....
kgg's user avatar
  • 21
0 votes
3 answers
60 views

Mysql getting disconnected from application during populating

Recently i got mac m1 i am running a product which uses [email protected] installed through homebrew, the data from the product is connected successfully to mysql and started populating but nearing the end of ...
hariharan baskaran's user avatar
0 votes
0 answers
44 views

why do I have a lot of tomcat threads in timed_waiting state

In my spring boot application, I took the thread dump at different intervals and the thread remained in timed_Waiting state in all of them, where exactly are they getting blocked ? If they are in ...
Vaibhav Gupta's user avatar
0 votes
0 answers
32 views

Tomcat can't see my Spring app when I run it

I am trying to build a simple Restful service with Spring but without Spring Boot. I made config classes and then I tried to test controller but it is never triggered by request. I tried java servlets ...
buchs's user avatar
  • 11
0 votes
0 answers
21 views

How to deploy only selective webapps out of many webapps available in tomcat/webapps

I have ui and backend webapps placed under tomcat/webapps folder. I am separating them out, for ex- if the node type chosen as backend i don't want to deploy the ui webapps at backend node and vice ...
arunK's user avatar
  • 398
-1 votes
1 answer
33 views

Troubleshooting 404 Error After Upgrading Java and Tomcat [closed]

I upgraded my Java application from version 8 to 17. I also updated Tomcat to version from 9 t0 10.1.16. Tomcat starts successfully, but I cannot get a response from Postman. I receive an HTTP Status ...
Rajanithi J's user avatar
0 votes
0 answers
24 views

Why is the Tomcat BIO Connector inefficient? [duplicate]

While studying Spring, I was curious about how Multi-Thread works when many users connect at the same time. I realized that it is Tomcat, not Spring, that receives requests and allocates threads. ...
White Piano's user avatar
-3 votes
0 answers
33 views

Rest services fail after Linux update [closed]

I'm running several Java/Tomcat web applications that use REST services (from the javax.ws.rs.core package). These are all mature web applications that have been working reliably for years. The ...
Flarosa's user avatar
  • 1,341
0 votes
0 answers
34 views

Tomcat: Can't start tomcat after upgrade it on Centos: "Unit tomcat.service entered failed state.." [closed]

I have install apache-tomcat-10.1.16 on Centos ,then start tomcat, then start tomcat ,didn't get any error sudo systemctl start tomcat but wen i check tomcat status as below, $ sudo systemctl ...
andrew's user avatar
  • 13
0 votes
0 answers
34 views

Azure Java Web App get JSONObject from curl request

I am building a Java web app (JDK 17, Jakarta EE, Tomcat 10) and am using org.json to make a curl request to the PetFinder API. When I deploy a .war file to my Azure Web App I get the Exception ...
Marc Hauschildt's user avatar
0 votes
1 answer
18 views

Allowing HTTPS connections to my Tomcat application on EC2 via a domain

I'm running a Tomcat application on Amazon EC2 and I have a domain to point to the IP address. I can connect via HTTP to the IP fine but I want to connect via HTTPS. Firstly I self-signed a ...
Nanor's user avatar
  • 2,452
0 votes
1 answer
38 views

How to save all logs printed by System.out.println to ta file in Tomcat 9

I have some windows product, which comes as .exe file. When I run it, it has tomcat 9 server with some webapp inside and it runs the tomcat via startup.bat in the background. Running startup.bat in ...
Zlelik's user avatar
  • 560
0 votes
0 answers
18 views

Tomcat Started/Stopped with errors, return code: 1

Tomcat Started/Stopped with errors, return code: 1 Make sure you have Java JDK or JRE installed and the required ports are free Check the "/xampp/tomcat/logs" folder for more information I ...
Grant Esteban's user avatar
0 votes
1 answer
55 views

How to set up an SSL certificate for Tomcat in Ubuntu

I am using https://zerossl.com for the certificate, they provide me these files: ca_bundle.crt certficate.crt private.key Then I run these commands To generate a p12 file openssl pkcs12 -export -in ...
Hector's user avatar
  • 39
0 votes
0 answers
15 views

Tomcat Cors as been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status

I have set up a Tomcat 7 for an older app on a Windows 2016 server I am getting this error:Access to XMLHttpRequest at 'api.timstestite.com' from origin 'timstestite.com' has been blocked by CORS ...
Tim Morford's user avatar
-2 votes
1 answer
61 views

Replacing Tomcat with Undertow in Vaadin + Spring boot project - ERR_CONNECTION_CLOSED

I want to replace Tomcat with undertow. Everything seems fine but there is no error and any other information that something is wrong when I try to conenct to rest api or vaadin views. Only browser ...
Jason The Dynamite's user avatar
0 votes
0 answers
41 views

Import class in file jsp [duplicate]

A class that is in src/main/webapp/WEB-INF/classes and the .jsp file doesn't read that class. I have a class called DbUtilities in src/main/webapp/WEB-INF/classes directory. The index.jsp file doesn't ...
Tommaso Pastorelli's user avatar
-1 votes
0 answers
58 views

Error when deploy spring boot project to Tomcat [duplicate]

I have a spring boot project and I want to deploy it to Tomcat webapps. I already run project successfully on intelliJ and build it to war package. But when I pasted the package into webapps folder of ...
Le Duy's user avatar
  • 1
0 votes
0 answers
14 views

Tomcat Guacamole IPv6 locahost on Remote host

I've successfully installed and configured guacamole 1.5.2 in Tomcat 9.0.78 and I can login to the entire system. From guacamole, after I've accessed a remote pc, for example via ssh, in the User ->...
Marcofe's user avatar
  • 41
1 vote
1 answer
39 views

Why the NullPointerException is coming in index.jsp file the <s:a> tag is not working

HTTP Status 500 – Internal Server Error Type Exception Report Message An exception occurred processing [/index.jsp] at line [31] Description The server encountered an unexpected condition that ...
Majjari Sravanthi's user avatar
-1 votes
1 answer
40 views

Connecting to a remote MySql DB from Spring Boot application

I'm running into a strange issue with a spring application. The application runs on a Tomcat application server and connects to a remote MySql database using a spring datasource. For testing purposes, ...
pbuchheit's user avatar
  • 1,431
0 votes
0 answers
27 views

Tomcat: what server.xml connectors are required for a reverse proxy?

I having a working Tomcat app (Alfresco) on port 8080, which I instead need to run on port 443, forwarded from Apache (Apache is already handling lots of other SSL endpoints on this server). This ...
QF0's user avatar
  • 343
0 votes
0 answers
69 views

Validate client certificate in Spring boot 3

Java application is using Spring Boot 3 and Java 17 having some REST API exposed. When the API call is made, only for specific endpoint, I want to extract the client certificate and validate it. Curl ...
Anthony Vinay's user avatar
0 votes
1 answer
32 views

Service running without bean class in Tomcat, camel

I have limited knowledge of Java and tomcat and I am going through a service code base running on Apache tomcat, The service is using camel as the middleware integration framework. For one of the rest ...
rdhaundiyal's user avatar
0 votes
0 answers
38 views

Apache HttClient with Proxy not working in the Tomcat

I have a web application, made using Jsf and Apache HttpClient. When trying to consume an Api that requires a Proxy for communication, if I run the code via the command line on the server it works, ...
Emmanuel Thadeu Souza Trindade's user avatar
0 votes
0 answers
14 views

tomcat stop processing after approx 4 minutes

We have one tomcat whenever we restart tomcat , then tomcat accept request for 4 min approx after 4 min it stop processing request we have increased thread count, checked catalina logs but didnt found ...
amby's user avatar
  • 1
0 votes
0 answers
20 views

Tomcat sample application doesn't start

I'm trying to run this sample tomcat web application with apache-tomcat-9.0.82 and java 8 I've moved the sample.war file to the recommended folder. Opened powershell with admin privileges: PS C:\...
IDK's user avatar
  • 361
-1 votes
0 answers
36 views

Is there a way to embed a web server in a Spring application? (no Spring Boot)

I have a spring application that is not using Spring Boot. I want to deploy this application as a fat jar with an embedded web server (e.g. tomcat). Can I do that? When I googled this, I only found ...
André Ferraz's user avatar
0 votes
1 answer
26 views

Where to store PDFs in Tomcat

I think this problem might have been asked in a similar way, but I don't get a satisfying answer. I am trying to build a web project using MySQL and Tomcat, where a user can upload PDFs (in the future ...
qwhjrfbgeegbgwdv's user avatar

1
2 3 4 5
862