Questions tagged [tomcat10]

141 questions
1
vote
2 answers

ClassNotFoundException: org.apache.catalina.realm.JDBCRealm

I am trying To implement security for my application, so i added a Realm element to the application's context.xml file as following
mhussein76
  • 43
  • 1
  • 7
1
vote
1 answer

The requested resource [/jenkins] is not available

I installed JDK 11.0 and then installed Tomcat 10.0 and have set all Environment variables and placed jenkins.war file also. Now, localhost:8080 is running fine but localhost:8080/jenkins is not working. It gives error: HTTP Status 404 – Not…
Mohika
  • 11
  • 4
1
vote
0 answers

HttpServletRequest unable to get body of request

I'm trying to create a little test servlet (Tomcat 10) to accept simple "POST" messages, however no matter what I've tried the servlet never seems to get the body (json). I'm using Postman to send the messages (http). I've tried getReader() and…
Eric
  • 1,321
  • 2
  • 15
  • 30
1
vote
2 answers

Why Servlet.getContext(String) does not return null after undeploy

I am using tomcat-10(jakarta). According to the doc getContext(String) return null if context not exists or restricted access. But in practice is not correct. For example I have two web application with /app1 and /app2. After running I undeploy…
sancho
  • 598
  • 2
  • 8
  • 22
1
vote
1 answer

Getting error : org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: javax/validation/ValidatorFactory

I have a project Webservice with Hibernate in Eclipse (Tomcat v10.0 et java JDK 8). When I run, I got this error: " Servlet.service() for servlet [Jersey Web Application] in context with path [/musichall] threw exception…
lyly
  • 13
  • 3
1
vote
0 answers

HTTP 400 - Java spring-boot webapp with tomcat 10 is not working

I wanted to check if my application is running with Apache Tomcat 10.0.12. It works with Apache Tomcat 9.0.54 just fine. In the manager the application is marked as running. The logfiles also say the application was deployed. There are no…
Razilein
  • 33
  • 5
1
vote
1 answer

Tomcat 10 using HSM as PKCS11 keyStore for TLS

I'm trying to use TLS using a key in an HSM, in Tomcat v10.0.x . tl;dr: See my answer below with all the steps. Remainder is left below to allow search algorithms to find it. What I'm wondering is, a: (grand scheme of things) should this work, and…
rip...
  • 996
  • 5
  • 20
1
vote
1 answer

Error in Eclipse web.xml on empty project

Can anyone help me? I'm creating a new Dynamic Web Project on Eclipse 2021-06 with Apache Tomacat 10. I'm always receving errors in web.xml
1
vote
0 answers

Tomcat 10 deploy a legacy J2EE war through manager

Following the docs on Tomcat I had no problem either migrating my war during build or deploying it in the webapps-javaee directory; the migration went just fine. But I see no option in the manager to deploy a war as legacy; if you try to do that,…
Riccardo Cossu
  • 2,699
  • 1
  • 28
  • 47
1
vote
1 answer

what is the spring-web module compatible with tomcat 10

what is the spring-web module version compatible with tomcat 10? Spring web Application is running on tomcat 9.x and its fail with ClassCastException ad tomcat 10 using jakarta API. java.lang.ClassCastException:…
YN Raja
  • 11
  • 3
1
vote
1 answer

error WELD-001303: No active contexts for scope type jakarta.enterprise.context.SessionScoped

At tomcat9, Java8 -> No problem. I'm upgrade to tomcat 10, Java16 org.jboss.weld.se weld-se-core 4.0.0.Final
FixBug
  • 355
  • 2
  • 17
1
vote
0 answers

Tomcat - not shutting down properly - vjava.net.SocketException: Bad file descriptor - macbook

I am unable to showdown the Tomcat server successfully - getting the below SEVERE: Error stopping Catalina java.net.SocketException: Bad file descriptor at java.base/sun.nio.ch.Net.connect0(Native Method) at…
1
vote
1 answer

Unable to Start Tomcat 10.0 as window service on windows 10

Unable to start the tomcat from window service as well from Monitor Tomcat. OS - windows 10 Tomcat version - 10.0 Java - 1.8 where we can find System Event log or how can we debut why it is not starting Error: 31-Mar-2021 12:44:54.356 INFO [main]…
Palak Soni
  • 53
  • 1
  • 11
1
vote
1 answer

How do I install Java EE SDK?

I'm covering a chapter for university where I'm getting into servlets. The book requires me to copy a piece of code and run it in cmd. It won't run in cmd and the chapter vaguely explains how I can install Java EE. Here is the code and the…
1
vote
1 answer

Tomcat home directory environment variable

I'm currently editing the server.xml context paths and want to have a context path back to the original webapps directory. Is there an built in tomcat environment variable that points back to the tomcat installation directory like TOMCAT_HOME or…
Tacitus86
  • 1,314
  • 2
  • 14
  • 36
1 2
3
9 10