Questions tagged [tomcat8.5]

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

-1
votes
0answers
6 views

How to do inter-war communication in Apache Tomcat 8.5.5 without using Redis? [on hold]

Trying to communicate through multiple war's in a web project, need to know how to communicate with them without using redis.
0
votes
0answers
15 views

tomcat 8.5 with ssl option causes IOException

I have used tomcat 7 for my project for months. And now I want to migrate to tomcat 8.5, but the same setting(server.xml) for tomcat 7 does not work for 8.5. I found a sample configuration in server....
0
votes
0answers
9 views

How to configure EBS tomcat8 to use log4j2

I'm trying to re-configure Tomcat8 to use log4j2 instead of JUL for its internal logging using their official guide: https://tomcat.apache.org/tomcat-8.0-doc/logging.html#Using_Log4j and this ...
0
votes
0answers
13 views

Trying to deploy a Maven Project on Apache tomcat 8.5 in AmazonEC2 machine and when i deploy WAR file on apache server ERROR:

Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/DiagnosticCentre]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org....
1
vote
0answers
31 views

Why am I getting org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4 exception?

I'm copying data into excel sheet with Apache Poi. I want to copy from D column to G column as same sheet. But when I'm trying to copy from D column to G column I'm getting exception - INFO [http-...
0
votes
0answers
5 views

Configuring protection domain for .war file in catalina.policy results in MalformedURLException error

I'm trying to use Tomcat's Security Manager with my web application but I keep getting the following error message: java.security.policy: error adding Entry: java.net.MalformedURLException: ...
-2
votes
1answer
22 views

I am getting Exception java.util.LinkedHashMap cannot be cast to java.util.List on console

Controller Class Method @RequestMapping(value="generics",method=RequestMethod.POST,produces="application/json",consumes="application/json") public String generics(@RequestBody List<Object> ...
0
votes
2answers
33 views

Problem with running simple Servlet class

Hello can someone help me with configuring tomcat + ubuntu + servlet + IntelliJ I start with: List item New Project->Java Enterprise->Web Application(4.0) Project Name File->New->Servlet Code ...
0
votes
0answers
14 views

Unable to access my deployed application through brower

Installed maven and tomcat on same RHEL server. Then deployed a war file to tomcat successfully, but unable to access the app on browser. Tried accessing the url as mentioned in pom.xml, but no luck. ...
0
votes
3answers
86 views

Tomcat8.5 and Openjdk11 NoClassDefFoundError: Could not initialize class org.apache.cxf.attachment.AttachmentUtil

I am migrating a Java Application to OpenJDK11 which is running on Tomcat 8.5. Application and tomcat starts withount any problem. With JDK1.8 I don't have any exception or error But when calling ...
0
votes
1answer
37 views

Can not read JSESSIONID cookie after setting cookie-config to httpOnly and secure in web.xml

I have added the following configuration in my webapp application web.xml <session-config> <cookie-config> <path>/</path> <http-only>true</http-...
1
vote
0answers
25 views

Tomcat 8.5 response.getWriter() returns null occasionally

I'm using Tomcat 8.5.23 in production with Servlets (with Spring autowiring capabilities if relevant) response.getWriter() return null in production occasionally (without any special issues/restart/...
0
votes
0answers
26 views

Eclipse: Restarting Tomcat gives port error

I set the TomCat 8.5.39 server in eclipse ... whenever I start it, it works properly but at the time of restarting it causes an error of port. so I changed all ports of tomcat, then if I start it will ...
0
votes
1answer
19 views

Tomcat not starting in eclipse - no timeout issue - PFB logs

Tomcat starting from command prompt but not from eclipse. No problem shown in logs. logs shows server started successfully. Tomcat staring from command prompt but not from eclipse. No problem shown in ...
0
votes
2answers
36 views

jsp:getProperty null when enctype=“multipart/form-data” attribute is used

According to Sending additional data with multipart, request.getParameter; cannot use with enctype="multipart/form-data". At process.jsp, I didn't use request.getParameter. But jsp:getProperty return ...
0
votes
0answers
31 views

tomcat 8.5 goes down multiple times

tomcat8.5 crashes offen with following memory leaks. I am using java 1.8 and jasperreports-3.7.6. Tried increasing heap memory & metaspace, still no luck. 04-Mar-2019 19:55:33.708 SEVERE [...
0
votes
1answer
57 views

**java.lang.OutOfMemoryError: Java heap space with Spring 4, Hibernate 4, My Sql connector 8.1 and tomcat 8.5** when using **My SQL 5.7.23*

Here is the exception Details : - java.lang.OutOfMemoryError: Java heap space at com.mysql.jdbc.Buffer.<init>(Buffer.java:57) at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:2087)...
0
votes
0answers
14 views

Tomcat 8.5 Cookie subdomain wild card

Since Tomcat 8.5 it is not possible to use wild card domains ".domain.com", or I couldn't find out how. There is a solution, to use the LegacyCookieProcessor. But for that I have to edit the context....
3
votes
1answer
134 views

Number of Active Sessions in Tomcat

I have my web services jar file deployed under webapps\nyx\WEB-INF\services in my tomcat server. Now I am trying to get no of active sessions using below code inside a web service method. MBeanServer ...
0
votes
0answers
16 views

Tomcat 8.5 not running for HalloWorld in Eclipse (Tomcat 7.0 works) - server failed to start

I am new in Java EE and want to start a simple HalloWorld in Eclipse. With Tomcat 7.0 it works, but not with Tomcat 8.5. I always end Tomcat 7.0 before started the application on 8.5, tried several ...
3
votes
3answers
120 views

How to configure a maximum duration of an application session in Tomcat?

I need to configure a maximum duration of an application session in Tomcat to 24 hours. I was not able to find the appropriate configuration in the documentation: https://tomcat.apache.org/tomcat-8....
3
votes
1answer
452 views

Tomcat + Spring Boot + 'javax.websocket.server.ServerContainer' not found

I am trying to deploy a Spring Boot (2.0.5) web application (war) with web sockets to a Tomcat 8.5.37 server, it previously worked with Tomcat 7. My web socket configuration is throwing the exception ...
0
votes
0answers
176 views

java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.compiler.EncodingDetector

I have installed tomcat 8.5.37 on Centos server and opening server at 8081 port I am getting error as `Message java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.compiler....
0
votes
0answers
16 views

Eclipse 2018-09 + Tomcat 8.5 hot code replace is broken, how to fix?

My Spring MVC app works fine at first, but then as soon as any code or template change is made, it returns 404 (DispatcherServlet not found). It works fine again after it is restarted. I am using ...
0
votes
0answers
69 views

Cannot configure Http 2 in Embedded Tomcat with Spring Boot 1.5.17

I am trying to configure HTTP 2 for my Spring Boot project that runs in the Embedded Tomcat Server 8.5.34 but I am unable to do so. I have followed this SO Thread but couldn't achieve that. My Server ...
0
votes
0answers
27 views

Unable to deploy war file to Tomcat 8.5

When I uploaded a war file to remote Tomcat 8.5 server it is not starting, and the logs shows this 03-Dec-2018 20:11:26.544 INFO [http-nio-8080-exec-36] org.apache.catalina.core.ApplicationContext....
0
votes
0answers
25 views

Catch (tomcat/spring) webapp stop/shutdown event

I working a spring(integration) webapp in tomcat 8.5. I need to catch any event about the stop/shutdown (something what will notice: the webapp will stop), before the shutdown/stop process begin. Why?...
0
votes
0answers
291 views

Tomcat8 constantly displays the https-jsse-nio-443-exec log

I have a problem with the data mapping in logs of Tomcat. There are the same information in the logs and it’s unusable. Could you please check and advise me how set and get correct data in the logs? ...
2
votes
1answer
45 views

Documentum.cmis.too many open files error

We have deployed our application on rhel 7 from rhel 6 and after deployment we are seeing following error in the catalina.properties, due to this my vm link is getting down frequently. We are using ...
0
votes
0answers
15 views

Tomcat access for log files getting revoked

We have our tomcat application which is deployed via chef configurations. But however after every deployment the log files access are getting revoked to -rw-r----- instead of -rwxr-xr-x. I have all ...
0
votes
1answer
267 views

An error occurred during installation: No such plugin: cloudbees-folder

An error occurred during installation: No such plugin: cloudbees-folder (While installing Jenkins suggested plugins getting the error on windows 10)
0
votes
1answer
130 views

Tomcat connection pool ThrowableCallStack issue

Found following logs sometimes in Tomcat8.5. When we observe error stacktrace we didn't found any connection leak in the code but the log is captured for sometimes. I am unable to recognize whether ...
0
votes
0answers
13 views

Tomcat8.5 starting with security manager

I am new to this forum, I have a question regarding my openam5.5 application to run with the security manager in Tomcat container i.e., “Tomcat starting with security manager for Openam application”. ...
0
votes
0answers
153 views

Unable to compile class for JSP with Tomcat 8.5,Java 8 and Eclipse Photon 4.8.0

I am using Java 8, Tomcat 8.5 and Eclipse Photon 4.8.0 When I run tomcat server and hit JSP page it gives following error: SEVERE: Compilation error org.eclipse.jdt.internal.compiler.classfmt....
0
votes
0answers
147 views

Tomcat won't deploy war because of error nested exception is java.lang.NoSuchMethodError: javax/persistence/SynchronizationType;

I am trying to deploy a spring boot application (bundled as war) in tomcat. While starting up the tomcat, it throws error Post-processing of merged bean definition failed; nested exception is java....
0
votes
0answers
156 views

javax.servlet.ServletException: Resource configuration class com.mypkg.MyClass is not a subclass of class javax.ws.rs.core.Application

I'm getting this error when trying to load my jersey class with tomcat 8.5 25-Oct-2018 16:02:16.635 SEVERE [https-jsse-nio-8443-exec-3] org.apache.catalina.core.StandardWrapperValve.invoke Allocate ...
0
votes
0answers
64 views

How to install Servlet after installing Tomcat 8.5 on EasyApache 4?

I am having the issue of uploading my Java web application on server. I have installed Tomcat 8.5 on EasyApache 4. But now i am unable to install servlet on WHM as there is no option to install ...
0
votes
0answers
10 views

Finding out URL from a Tomcat JDBCRealm validate request

In a Tomcat 8.5 web application, protected by normal Tomcat authentication, where one WAR file is served under different Alias, how can I find out the domain name inside a JDBCRealm subclass? The ...
0
votes
3answers
255 views

Jersey response's reason phrase is inconsistent in tomcat 7 and 8.5

I'm using Tomcat 8.5 in one server and Tomcat 7 in different server and I have the following jersey resource: @Path("main") public class MyResource { @POST @Path("path") @Produces(MediaType....
0
votes
0answers
99 views

not able to deploy application in tomcat server 8.5

i tried deploying application in tomcat server 8.5,but deployment is not successfull.I get the below error 03-Oct-2018 16:54:46.837 INFO [https-jsse-nio-443-exec-72] org.apache.catalina.startup....
0
votes
0answers
257 views

Spring MVC Application Deployment on Tomcat

I'm having an issue running a spring MVC application on a stand-alone tomcat server. I am using Spring MVC (webmv)ver. 4.2.2, tomcat8.5 (8.5.33), and building with Maven. The significant files in my ...
0
votes
1answer
888 views

Tomcat 8.5 context path not working correctly

I have an application with the name cat_tiger.war that gets deployed as localhost:8080/cat_tiger but I want to change the context path to localhost:8080/cat/lion/ instead. I've added the META-INF/...
0
votes
0answers
19 views

Tomcat8 web application memory leak : jasper compiler WstxInputFactory

Working on memory leak of my webapp on tomcat8. I find out how to correct some leaks using ContextListener : threadlocal JDBC driver Mongo DB connection... After all a PrallelWabappClassLoader are ...
0
votes
1answer
28 views

Unable to create simple java restapi in eclipse

I am following this link for creating a simple Java restApi in Eclipse: https://www.youtube.com/watch?v=5jQSat1cKMo. However, I am getting a 404 response and console reports an error of java.lang....
2
votes
0answers
37 views

Is there a risk adding new (unused) jars to running tomcat

I'm using Tomcat8.5 in production and I have several applications in webapps Is there a risk before loading (and restarting) new application version, just adding new (which will currently be unused) ...
0
votes
0answers
27 views

Unable to find digest.sh on Tomcat

Seems like a stupid question, but I am unable to find digest.sh file in Tomcat 8.5. I used following command to install tomcat sudo yum install tomcat8 tomcat8-webapps tomcat8-admin-webapps tomcat8-...
1
vote
0answers
210 views

Unexpected behavior difference between Nio and Nio2 connectors in Tomcat 8.5

I've run across some peculiar behavior with the NIO2 connector in Tomcat 8.5.23 Here is how I am using it: <Connector port="8443" protocol="org.apache.coyote.http11.Http11Nio2Protocol" ...
1
vote
0answers
193 views

how change catalina.properties file if it is read only in embedded tomcat using intellij idea

I am trying to set a property in catalina.properties file but it is read-only file how to change this file using intellij idea I want to add following property tomcat.util.http.parser....
0
votes
1answer
121 views

Tomcat 8.5.23 org.apache.catalina.LifecycleException: A child container failed during start

I'm trying to run an embedded tomcat application via java web start. The Application runs fine on eclipse but causes problems when launched as a web start file. This is the error I am facing now. ...
0
votes
1answer
127 views

Grails 3.3.3 war deployed on tomcat 8.5 issue with closed jdbc connection

When I run the war file in the container, it appears as the connection dropped on the server side (default idle timeout there is 8h) leads to exceptions (root cause: connection already closed / the ...

http://mssss.yulina-kosm.ru