Questions tagged [tomcat9]

Version 9.x (August 2017 onwards) of the Apache Tomcat servlet container. Use only if your question is specifically related to features of this version.

Version 9.x (August 2017 onwards) of the Apache Tomcat servlet container.

Apache Tomcat is an open source servlet container developed by the Apache Software Foundation (ASF). It supports the 3.1, 2.3, 3.0, and 1.0 specifications1. Questions here should relate only to Tomcat Version 9.x.

Use only if your question is specifically related to features of this version. Just because you are using this version, doesn't mean you need this tag. Use in addition to or instead of this tag.

See for more information.

1170 questions
-1
votes
1 answer

expression language in jstl if statement not working

I am trying to understand why this piece of code never prints the method request when run on tomcat 9: <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="c"…
-1
votes
1 answer

How do i restrict JSP files in Tomcat 9 to only run in one subdirectory /jsp

I need to be able to restrict jsp to run from only /jsp for security reasons. Any way how?
zackhalil
  • 455
  • 3
  • 14
-1
votes
1 answer

Servlet program fails to launch command prompt using Runtime.getRuntime()

I have a simple servlet program running on apache-tomcat-9.0.38(Windows 10). The program tries to launch command prompt using following code (Not the exact code,) java.lang.Runtime.getRuntime().exec("cmd.exe /c start cmd.exe /k \"dir && ping…
Guru
  • 17
  • 1
  • 3
-1
votes
1 answer

Runs successfully in Tomcat7 but giving error in tomcat9 in centOS

I have a project in java. Which was currently running in Tomcat-7, JAVA-8 and postgres-9.3. I updated it to openjdk-11 and postgres-13 and tried to deploy it in tomcat9, but it is giving this error. javax.servlet.ServletException:…
Yesha Dave
  • 171
  • 1
  • 1
  • 7
-1
votes
1 answer

Getting a 403 for static resources in spring boot without using spring security

I have a spring boot application that is not using spring security at all, and when some requests come through for static resources, the server returns a 403. The spring boot application is running in a tomcat 9 server (not embedded). A lot of the…
pcroadkill
  • 75
  • 2
  • 14
-1
votes
1 answer

tomcat add certificate to truststore

I have java web application deployed on kuberneties cluster and runs on tomcat (tomcat:9.0.37) container. my application connect with ABC API and in order to connect to ABC API i need to have ABC API certificate in my trust store. for my local…
user1591156
  • 1,945
  • 4
  • 18
  • 31
-1
votes
1 answer

Why i am restart tomcat server then my user automatic logout in spring boot application?

i am very tired because my user always logout my springboot application. if restart tomcat server. My Application working fine without restart server but i am restart server then user automatic logout. i want to user always logged in which server…
-1
votes
1 answer

Tomcat9 application status is false and throwing 404 when trying to access the server path

I am starting the tomcat server from eclipse and I have manually copied .war file into tomcat C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps folder. But when I check the running status of app from tomcat application manager, I see…
aak
  • 107
  • 1
  • 4
  • 12
-1
votes
1 answer

Tomcat v9.0 Server Starting Error In Eclipse

I'm trying to run my dynamic web project , but the server won't to start and the only message i get is this "Server Tomcat v9.0 Server at localhost failed to start". Note : the server was working normally before that.
Yacine_Dev_Artist
  • 135
  • 1
  • 2
  • 9
-1
votes
3 answers

Custom Servlet Filter not getting applied to all resources

I have created a simple Filter class that adds some response headers to all the resources requested. I have created a jar file and added the same to tomcat lib folder. Also the filter is added to the web.xml for url mapping /* When I request the…
Rachit M Garg
  • 263
  • 4
  • 19
-1
votes
1 answer

CA certified .cert file on Tomcat 9 (Linux server) , tomcat command not working

The Keytool commands for Tomcat SSL includes self-signed certificates which doesn't work with my CA certified cert. I tried creating keystore and importing it with root, intermediate and server cert. On changing the connector port in…
gjosh
  • 135
  • 3
  • 18
-1
votes
1 answer

/opt/apache-tomcat-9.0.29/bin/catalina.sh: line 467: /opt/jdk-13.0.1/bin/java: No such file or directory on dockers, OS centos 8 minimal

I want to create a docker image with tomcat 9 with Oracle JDK 13 to deploy an application. Having error /opt/apache-tomcat-9.0.29/bin/catalina.sh`:Error line 467: /opt/jdk-13.0.1/bin/java: No such file or directory on dockers, OS centos 8…
-1
votes
1 answer

A child container failed during start - Problem whith Tomcat 9 and Netbeans

I need your help whith this problem in Netbeans and Tomcat 9 when I need started the Tomcat, java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component…
-1
votes
4 answers

Spring-boot logo not loading on console, how to start application on tomcat server?

This is a Simple Microservice built using spring-boot. The application is working fine when I execute as Java Application. But when I run on Server i.e. Tomcat Server v8.5 the Server shows Started & Syncnorized but in console, the spring-boot logo…
Lakk14
  • 81
  • 1
  • 5
-1
votes
1 answer

Why does my installation of Tomcat not work?

I have a problem regarding the installation of Apache-Tomcat. I've downloaded the Zip-File Picture Download Page , unpacked it and saved it, set the environmental variables JAVA-HOME (set the value to jdk) , JRE_HOME (set the value to jre) and…
Alina
  • 21
  • 5
1 2 3
77
78