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.
42,427
questions
0
votes
0
answers
7
views
Tomcat in eclipse - 404 not found
I get this kind of error when I try to open primefaces project with tomcat. I have done the necessary operations on the tomcat homepage and there is no problem in the console. How can I solve it?enter ...
0
votes
1
answer
10
views
How to install tomcat server in GoDaddy Platform to rum my jsp pages? Also is there any way to get a free SSL certificate for GoDaddy domain?
I have bought a domain and web hosting from GoDaddy. I have added my full codes on cPanel but the JSP pages are not working. VPS option is there but it's very costly and is there any way to install ...
0
votes
0
answers
8
views
Accessing log files inside docker container
I have a tomcat Docker image -- source
This image has a sample war file that logs some data in a tomcat folder -- in the instance of this image in tomcat/logs
I am deploying this image as a web app ...
0
votes
0
answers
9
views
Eclipse throws Tomcat Server error if web.xml contains <servlet-mapping>..</servlet-mapping> lines
Can anyone help me with this Eclipse issue ?
The problem is if my java project contains web.xml with lines for servlet entry then it fails to compile the project and throws a Tomcat server error. ...
0
votes
0
answers
9
views
Apache 2 Proxy mode Spring boot and SSL
I have a server running a Spring boot application on port 8080, I want to connect it to Android application which is built using Ionic and Cordova.
There is also a web application built using Angular ...
0
votes
0
answers
15
views
how can i resolve Invalid property 'class.module.classLoader.resources' of bean class
i am debugging a spring mvc web project with jdk 11,springboot 2.5.12 and external tomcat 8.5,it report the errors below when i post a request to test spring beans(Parameter binding),but i found the ...
0
votes
0
answers
22
views
Applying SSL in Tomcat UnsatisfiedLinkError Issue
I'm trying to make http protocol into https protocol
To do this, I noticed that I need to apply SSL in tomcat.
install an SSL/TLS in Tomcat
I didn't follow this site but proceeded similarly.
First of ...
0
votes
0
answers
15
views
How to connect to the Connector referenced in server.xml in Tomcat?
I want to gracefully shutdown my spring boot application deployed on Tomcat and to overcome that issue I want to add custom ThreadPoolExecutor and Connector so that Tomcat can pick those up. Here is ...
0
votes
0
answers
19
views
Graceful shutdown of asynchronous processes running in java on tomcat
When sending SIGTERM to tomcat on Amazon ECS, is it possible to kill the process (so called graceful shutdown) waiting for the asynchronous process to terminate?
By setting unloadDelay in tomcat ...
-1
votes
0
answers
20
views
Hi All, I am trying to deploying my spring mvc project in tomcat 10 with existing javax dependency. but i am facing issue, Please try to help me [closed]
I am migrating my tomcat version from 9 to tomcat 10 and java 8 to 17, but I didn't used jakarta dependency instead of javax, because as per tomcat instruction if we used javax dependency then it will ...
0
votes
1
answer
17
views
Is tomcat empty project directory when redeploying a war?
I have a web project using third-party rich text editor. It support image upload and uploaded images are stored in project folder like ./myeditor/uploadimg by default. If I replace the project war ...
0
votes
0
answers
13
views
Apache Tomcat mod ajp
I am trying a very simple setup with "demo00" successfully working on Tomcat and accessible by public IP:Port/demo00. However when I try the virtual host below it fails to even find the ...
0
votes
0
answers
22
views
Tomcat gives a 404 when using Jersey on Eclipse
I'm following this tutorial https://www.javatpoint.com/jax-rs-example-jersey using Eclipse's Dynamic Web Project. The index page works fine, but the jersey part gives a 404. I tried the following urls:...
0
votes
0
answers
4
views
Redirect Tomcat
We have a running Tomcat (Apache Tomcat/9.0.37) without a Apache Web server.
Now we have several links ... like
http://servername:9090/folder/folder/index.xhtml
http://servername:9090/folder2/folder/...
0
votes
0
answers
12
views
Tomcat gives 404 after deploying a war file
I am successfully deploying my war file to tomcat but when I try to open it it gives me 404 error code.
Here are the logs from catalina.out file:
Aug 16, 2022 12:14:08 PM org.apache.catalina.startup....
0
votes
0
answers
25
views
Springboot dependency Tomcat embed el version upgraded to 10.0.23, But META-INF shows 10.0.22
Springboot project, I modified pom.xml, added dependency Tomcat embed el version to 10.0.23, But META-INF shows 10.0.22. Why is that?
Screenshot:
tomcat-embed-el is 10.0.23, but META-INF still shows ...
1
vote
1
answer
28
views
Why is Tomcat looking for jaxb jars in the wrong places?
I'm running Tomcat 9.0.64 in Spring Boot 2.7.1. I'm including 3 war files as classpath resources and adding them to Tomcat at runtime:
@Bean
public TomcatServletWebServerFactory ...
0
votes
1
answer
30
views
War external dependency overlay - move jars from WEB-INF/lib-new to WEB-INF/lib
I am working on a maven project with a war external dependency (let's call this war dependency WAR-DEP)
After the build and during the package phase I am taking the content of WAR-DEP and merging it ...
1
vote
1
answer
37
views
How to deploy JAX-RS RESTfull web services on tomcat 10?
I'm trying to create my first RESTFull web service application using java. I have postgres, netbeans 14, jdk-18.0.2 an tomcat 10 installed. I have created a maven java web application and some ...
0
votes
0
answers
32
views
Unexpected DEBUG logs in Tomcat catalina.out
My catalina.out file of Tomcat 8.0.30 is logging tons of DEBUG logs. I'm not sure why these DEBUG logs are getting logged in catalina.out and not in the log file configured for application. Why in ...
2
votes
2
answers
62
views
How to solve "Can't accesss "\" 404 not found", as Package a spring project and deploy in Tomcat
I use maven to package a spring boot project into a ROOT.war file. Then I remove all files under tomcat/webapps/** and move ROOT.war to this folder.
I run tomcat's startup.h script, and then I access ...
0
votes
0
answers
12
views
Tomcat images are not rendered
Actually, what is the problem, I wrote a WebFilter class that filters requests.
Here is that class:
@WebFilter(urlPatterns = "/*")
public class AuthenticationFilter implements Filter {
@...
0
votes
0
answers
20
views
Updating Apache Tomcat 8.5.X
I have Apache Tomcat 8.5.70 installed on Ubuntu 18.04.5, I want to update it to the latest version (8.5.81). I can't seem to find a way to do so without uninstalling the version I have and installing ...
0
votes
1
answer
27
views
Apache Tomcat Service Doesn't Recognize JAVA_HOME when installed NSIS - PowerShell Script
I'm making a NSIS installer for a program that requires Apache Tomcat 8 as Windows Service. JAVA_HOME is set as an environment variable in NSIS installer script, and I've made Powershell Script file ...
0
votes
0
answers
19
views
docker tomkat in docker container not displaying pages
there was a need to containerize my JavaEE application. I create a container for mysql, it works on logs. I create an application container, according to the logs everything works, it connects to the ...
0
votes
0
answers
38
views
class com.fasterxml.jackson.datatype.jsr310.JavaTimeModule cannot be cast to class com.fasterxml.jackson.databind.Module
I have a project running on JDK 8.
We would like to use the Microsoft Communication Services to start calls / record calls etc.
Microsoft has a sample here
The recording example states JDK 11 is ...
1
vote
1
answer
16
views
How to increase maximum HTTP header size for Java Spring Boot app hosted in Azure App Service (deployed as .WAR)?
We have a Java Spring Boot application hosted in an Azure App Service (Windows), and we need to increase the value of maxHttpHeaderSize on the Tomcat 9 server to probably around 32KB. I can't work out ...
0
votes
1
answer
67
views
How to increase maxPostSize in Spring Boot
I'm getting the following error when uploading a large file:
The multi-part request contained parameter data (excluding uploaded files) that exceeded the limit for maxPostSize set on the associated ...
-1
votes
0
answers
41
views
Spring boot java 17 rest app not working in tomcat 8
I have developed a spring boot REST full app in the java 18 version. I created a spring project as a war package. After deploying war in tomcat 8 the URL/URI is not working.
I tried the following way:
...
0
votes
0
answers
12
views
PersistenceException: No Persistence provider for EntityManager althoug it is present
currently, I want to develop a simple lib for Tomcat that when triggered it saves some values to a database. Therefore, I am using jpa/Hibernate.
My pom.xml looks like this:
<project xmlns="...
0
votes
0
answers
45
views
what does Map means in Map<String, ?> sharedState, Map<String, ?> options
so am learning jaas and in the method initialise in logincontext the method is declared as follows
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> ...
0
votes
0
answers
32
views
tomcat catalina.out file make again I already remove file using 'rm'
I already remove catalina.out file using 'rm'.
After then restart tomcat but it doesn't make the file again .
So, i make using 'vi' and restart tomcat .
But it doesn't write on new file ..
I don't ...
0
votes
1
answer
25
views
Geoserver SLD with custom font not loading the characters from the custom font
I migrated my SLD styles from a Geoserver 2.21.0 running on Jetty to a Geoserver 2.21.0 running on Tomcat 9, both are running Ubuntu Linux 22.04.
We created two custom fonts that work fine on Jetty, ...
0
votes
0
answers
29
views
Docker - Configuring a Datasource in a Docker Container
I have deployed a web application that runs in an Apache Tomcat server which uses a database into a container. I want to run the container by using CLI as:
docker run -dit -p 8080:8080 -e ENV_VAR='XYZ'...
0
votes
0
answers
15
views
Out of memory error in spring boot application [duplicate]
I used spring boot and I deploy spring boot as jar on Linux machine I faced below error
ERROR org.apache.juli.logging.DirectJDKLog.log:175- Failed to complete processing of a request
java.lang....
0
votes
0
answers
14
views
WSDL page can't open on localhost IP
I am developing banking web app and for using their web services I needed to using apache tomcat file that after running generate OTP .My terminal output after running startup.sh file is:
INFO: JK: ...
1
vote
0
answers
8
views
how to add policy file for the following in jaas
Am learning JAAS authorization.. I have 2 users admin and clients for admin the files associated with it are admin.java and adminfunctions.java and the principal name for admin is admin and for ...
-2
votes
0
answers
37
views
Unable to deploy java webapp on tomcat using VS Code
I am trying to import an eclipse made java web app into VS Code and then execute using tomcat server using community server connector.
Folder structure of my project is as follows:
ROOT
WebContent
...
1
vote
1
answer
44
views
Spring app with a lot of threads in TIMED_WAITING
The Issue
I have a lot of threads in the state "TIMED_WAITING" and I don't know why and how to debug it.
Debugging
I'm using spring-actuator + Grafana + Prometheus to monitor a lot of JVM + ...
1
vote
0
answers
31
views
Issue uploading a big size file with Tomcat9
I am developing a WebApp in GeneXus 17 U10 to upload reports in txt and impact the SQL database. The big problem is that when I upload a +10 GB file, it disappears, i mean, at the end of the upload, ...
0
votes
0
answers
30
views
Apache Tomcat and code execution time out for Spring MVC app
Is there any way to increase code execution timeout for Apache Tomcat 9? I have legacy Spring MVC app and it works fine when the app will gather small amount of data from the REST calls but when there ...
0
votes
0
answers
37
views
How to automatically logout user from Guacamole Webpage
I've been running Apache Guacamole for a few days now and I'm just testing around with it (latest version of server and webclient). A user X logs in and automatically connects to a machine with the ...
0
votes
1
answer
18
views
Override ParallelWebappClassLoader for one webapp
I need to set a custom wrapped classloader as ParallelWebappClassLoader for a one webapp only. Do I have a way to do that?
Also anyone have a idea how is the ParallelWebappClassLoader set as default ...
0
votes
0
answers
35
views
Tomcat embded server classnotfound exception
I am trying to create a emebded tomcat server for my jsp servlet application.
When I added the below dependency to the application, I am getting FileNotFoundException
exceptions while running the main ...
1
vote
1
answer
44
views
I have try to open process in cpp by using psapi library but *some process not openning* and I displaying it in webpage using tomcat server and jni
Problem 1
I try to open process in cpp by using psapi library but some SYSTEM process not opening and display it in webpage using tomcat server.
i am using jni to transfer data between cpp to java (...
0
votes
1
answer
41
views
Resolving: No suitable driver found for jdbc:mysql://localhost:3306/test error in a Maven web application using Tomcat
I am trying to run a test Maven web application (*.war file) that Inserts data into a mySQL database using tomcat. In the maven project itself I have added all the neccesary dependancies to do this. ...
1
vote
0
answers
13
views
Geoserver randomly drops logs file
Geoserver drops continuously a "logs" file at random. The logs file contains 'juli.xxxx-xx-xx.log' files. We don't make use of them but we can't get rid of it, don't know how to disable this ...
1
vote
0
answers
17
views
tomcat jaas - How to perform authoraisation with the following
so am studying jaas and performed authentication with it i need to perform authoraisation like allowing only a specified group of people and for my application there are only two gropups admin and ...
1
vote
1
answer
23
views
How to import external library from [tomcat_home]/lib in TOMCAT
I'm trying to apply external library in java project.
According to the API documentation, it shouldn't be located under reloadable classpath like WEB-INF/classes or WEB-INF/lib and the easiest way to ...
2
votes
1
answer
39
views
Redirect HTTP to HTTPS for Jenkins hosted on Tomcat server?
I have jenkins.war deployed on tomcat 9(on Linux) and configured it for http and https.
Configuration on server.xml
<Connector port="8080" protocol="HTTP/1.1"
...