Questions tagged [catalina]

Catalina is Tomcat's component that interacts with Java servlets. For questions about macOS Catalina, please use the [macos-catalina] tag.

Catalina is Tomcat's servlet container. Catalina implements Sun Microsystems' specifications for servlet and JavaServer Pages (JSP).

Tomcat is actually composed of a number of components, including a Tomcat JSP engine and a variety of different connectors, but its core component is called Catalina. Catalina provides Tomcat's actual implementation of the servlet specification; when you start up your Tomcat server, you're actually starting Catalina.

Read more

358 questions
1
vote
1 answer

Tomcat Restart Error - BalancerFilter

I am trying to setup an SSL for Tomcat and when I restart the service I get the following issues in the log: ... org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter BalancerFilter java.lang.NoClassDefFoundError:…
Matt Rowles
  • 7,721
  • 18
  • 55
  • 88
1
vote
1 answer

How to prevent Apache Tomcat JNDI Realm configured for AD authentication redirecting to cloud-based controllers

I am using a vendor-provided configuration of Apache Tomcat that utilizes JNDI Realms to connect to Active Directory to perform user authentication. Part of the configuration includes specifying the connectionUrl and an optional alternateUrl for…
Greg M
  • 35
  • 1
  • 6
1
vote
1 answer

Tomcat/Spring webapp running on Windows 10 is unable to start

ZKTeco BioSecurity (Access Control web based application) running on java/Tomcat/Spring is unable to launch. $PATH = C:\Program Files\BioSecurity\MainResource\ From the log files located at $PATH/tomcat/logs/, I see the following…
Chu N
  • 11
  • 2
1
vote
0 answers

Apache Tomcat 10.1 Unable to delete temporary files

We just upgraded Tomcat from 9.0 to 10.1, and Java from 8 to 11. everything is running fine except now we are having temp files pile up in Apache Software Foundation\Tomcat 10.1\work\Catalina\localhost\root. This is causing 502 errors after Java…
1
vote
2 answers

MissingServletRequestParameterException intermittently being thrown even though request parameter is provided

I've got a Spring Boot 2.7.3 app with the following controller defined: @RestController @EnableAutoConfiguration public class TrainController { @CrossOrigin(origins = "http://localhost:3000") @RequestMapping(value = "/trains/history",…
James Pizzurro
  • 365
  • 1
  • 3
  • 10
1
vote
0 answers

why am I getting HttpsURLConnectionOldImpl with java.protocol.handler.pkgs set to org.apache.catalina.webresources?

My Tomcat 9 + Java 11 application has the java.protocol.handler.pkgs property set to org.apache.catalina.webresources. A previous developer has put the following line: HttpsURLConnection con = (HttpsURLConnection) new URL(protocol + hostname +…
Martin
  • 11
  • 2
1
vote
1 answer

Disable Spring Boot File Uploading

A pretty basic API initialized with Spring Boot + Tomcat which serves multiple (4) endpoints. This API is exposed to public and receives requests in those endpoints only. None of those are for File uploading. We are monitoring the API and noticed…
gaxelac
  • 61
  • 5
1
vote
0 answers

How to get a custom name of Session cookie configured on context.xml

I have a REST Service that receives an HttpServletRequest and I need to load the session cookies for this object. If there is no change, I can load by the name which is JSESSIONID, but this name can be changed in the context.xml as it is in the…
Rui Rocha
  • 33
  • 7
1
vote
1 answer

Tomcat Catalina context - add existing servlet to context

I would like to add an existing servlet to a context and it works, when I use (Main.java): Tomcat.addServlet(ctx, "MyServlet", new MyServlet()); ctx.addServletMappingDecoded("/url_pattern", "MyServlet") However, I have annotations inside servlet to…
1
vote
1 answer

How to reference environment variable in tomcat-users.xml?

I've tried setting a username in tomcat-users.xml with combination of variable expansion and JAVA_OPTS. However, it does not seem to work as it would for server.xml. Is there a simple way to achieve this? I saw an example using confd, but feel like…
Dawn555
  • 85
  • 1
  • 1
  • 12
1
vote
1 answer

Tomcat start and stop : java.lang.NoSuchMethodError: javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader

When I start tomcat from cmd like "start catalina", another cmd terminal opens and then the error given below iis taken. How can this be fixed? ... SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal…
Denisa
  • 125
  • 4
  • 16
1
vote
1 answer

Embedded Tomcat Hardening - How to alter/override Advertised server information in Spring boot?

I've been digging how to do 'tomcat hardening' on embedded tomcat and I can't find a way to alter these 3 catalina server info properties: server.info, server.built, server.number Is there a way to alter those 3 properties in spring…
Pory
  • 71
  • 5
1
vote
0 answers

geoserver.war deployment error in Tomcat8

I am trying to use geoserver-2.17.2-war on Apache Tomcat 8 in ubuntu 18.04 server. I am able to upload geoserver.war file to the application server’s webapps directory. However, I am not able to start geoserver. The error message got is: FAIL -…
bdur
  • 341
  • 1
  • 8
  • 17
1
vote
2 answers

System.getProperty("catalina.base") only for Tomcat?

Does System.getProperty("catalina.base") give only the Tomcat home, or does it also work on servers like GlassFish or WebSphere? System.getProperty("catalina.base") gives me the following path: C:\Tomcat 6.0
vivekj011
  • 1,129
  • 3
  • 16
  • 23
1
vote
0 answers

where is org.apache.catalina.servlet4preview.http.HttServletResponse?

This is insane, but which package (artifact) holds org.apache.catalina.servlet4preview.http.HttServletResponse? Is it obsolete? I can import org.apache.catalina.servlet4preview.http.HttpServletRequest just fine. I already have as dependencies…
Tihomir Mitkov
  • 846
  • 1
  • 11
  • 20