Tomcat config is incorrect The Tomcat server.xml has an incorrect configuration:

Keith Savage June 13, 2022

I just upgraded from 7.13.0 to 7.13.7  and I get the error in the subject. I have made the necessary changes but it is almost as if the server is not reading the server.xml

 

<Connector port="8090" connectionTimeout="20000" redirectPort="8443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol"
scheme="https" secure="true" proxyName="site.name" proxyPort="443"/>

nginx

location / {
client_max_body_size 100m;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8090;

 

1 answer

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 13, 2022

Think of this from Tomcat's point of view.  It has a server.xml file that is a) xml, and b) contains stuff it can read.

From that point of view, it seems like you have just jammed in a pile of extra text with no explanation.

Your problem is not that it is not reading it, it is that your addition is unreadable.

Keith Savage June 13, 2022

Are  your referring to the nginx and below? if so I was only showing my nginx configuration

Keith Savage June 13, 2022

thats not actually in the xml

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 14, 2022

A, ok, 

What is the error you are getting?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events