Error deploying large WAR file on tomcat 9, at startup

JRE Version:1.8.0_191-b12 Tomcat version: 9.0.13 Windows 10 I have a large WAR file (300MB) several hundred of files, classes, struts actions etc. When I start Tomcat 9.0.13 from a Windows Service I get the following error when I try to access the application via a URL: 21-Nov-2018 12:49:42.544 SEVERE [http-nio-9090-exec-1] org.apache.catalina.core.StandardHostValve.invoke Exception Processing /workflow/ java.lang.SecurityException: … Read more

Logs when shutting down tomcat, what should I do with it?

Iget the following when I shutdown tomcat 9.0.24. Should I do something about it or should I do nothing because tomcat is shutting down anyway? 13-Sep-2019 07:59:06.145 INFO [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance. 13-Sep-2019 07:59:06.146 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“https-jsse-nio2-8443”] 13-Sep-2019 07:59:06.152 INFO … Read more

Tomcat with IIS behind Cloudflare reverse proxy unable to connect

I’m running Tomcat 9 with IIS 10 using AJP13 by following this guide. Everything works as long as it’s not proxied through Cloudflare. However, once I proxy it, I’m getting the following error in the isapi_redirect.log. [info] jk_open_socket::jk_connect.c (816): connect to 104.27.142.45:8009 failed (errno=60) [info] ajp_connect_to_endpoint::jk_ajp_common.c (1065): (tomcat01) Failed opening socket to (104.27.142.45:8009) (errno=60) [error] … Read more

ubuntu18.04 tomcat9 doesnt start application when started via systemd

first of all: I am no Tomcat expert, so please bear with me. Currently I’m facing an issue when I reboot the aforementioned server. The tomcat application is not available (404 not found) when automatically started. As soon as I stop the Tomcat via systemd and start it manually via “/usr/share/tomcat9/bin/catalina.sh” the configured application (from … Read more

Clustering/Session Replication tomcat 9 two different machine

I’m trying to configure Session Replication on two tomcats on separate EC2 (AWS) instances. I can’t find any example on internet of such configuration. I’ve prepared configuration in accordance with this documentation: cluster-howto tomcat 1: <Cluster className=”org.apache.catalina.ha.tcp.SimpleTcpCluster” channelSendOptions=”8″ channelStartOptions = “3”> <Manager className=”org.apache.catalina.ha.session.DeltaManager” expireSessionsOnShutdown=”false” notifyListenersOnReplication=”true”/> <Channel className=”org.apache.catalina.tribes.group.GroupChannel”> <Membership className=”org.apache.catalina.tribes.membership.StaticMembershipService”> <LocalMember className=”org.apache.catalina.tribes.membership.StaticMember” uniqueId=”{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0}”/> <Member className=”org.apache.catalina.tribes.membership.StaticMember” port=”4110″ … Read more

Tomcat9 keep running under user tomcat9 even after change in /etc/default/tomcat9 file

I want run tomcat9 with a user different from the default, and searching the web, I found out that I can configure this in the file /etc/default/tomcat. In this file, I change the lines with TOMCAT9-USER and TOMCAT9_GROUP and change to the desired user and group I wish tomcat9 was running under. After that, I … Read more

Apache redirection not working the way it is expected

I have a website say example.com and want to redirect everything from http to https. Also I have additional requirement of redirecting http://example.com (and https://example.com) to https://example.com/Portal/loginpage. In addition, I have many applications that need to be accessible at URLs like https://example.com/app1, /app2, /support etc that should not be redirected to https://example.com/Portal/loginpage. OS is CentOS … Read more