Hi, without embedded tomcat is not run. I put appServer blank and the
error is:
2019-10-18 10:37:32,074 WARN
[org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext]
- <Exception encountered during context initialization - cancelling
refresh attempt:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tomcatServletWebServerFactory' defined in class path
resource
[org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryConfiguration$EmbeddedTomcat.class]:
Initialization of bean failed; nested exception is
java.lang.NoSuchMethodError: 'void
org.apache.catalina.valves.RemoteIpValve.setHostHeader(java.lang.String)'>
2019-10-18 10:37:32,124 WARN
[org.springframework.boot.context.properties.migrator.PropertiesMigrationListener]
- <
The use of configuration keys that have been renamed was found in the
environment:
Property source 'bootstrapProperties':
Key: cas.authn.throttle.appcode
Replacement: cas.authn.throttle.app-code
Each configuration key has been temporarily mapped to its replacement
for your convenience. To silence this warning, please update your
configuration to use the new keys.
>
2019-10-18 10:37:32,170 ERROR
[org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter] - <
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt
was made from the following location:
org.springframework.boot.autoconfigure.web.embedded.TomcatWebServerFactoryCustomizer.customizeRemoteIpValve(TomcatWebServerFactoryCustomizer.java:186)
The following method did not exist:
'void
org.apache.catalina.valves.RemoteIpValve.setHostHeader(java.lang.String)'
The method's class, org.apache.catalina.valves.RemoteIpValve, is
available from the following locations:
jar:file:/usr/share/java/tomcat9-catalina-9.0.16.jar!/org/apache/catalina/valves/RemoteIpValve.class
It was loaded from the following location:
file:/usr/share/java/tomcat9-catalina-9.0.16.jar
Action:
Correct the classpath of your application so that it contains a single,
compatible version of org.apache.catalina.valves.RemoteIpValve
Thanks a lot :)
El 17/10/19 a las 18:20, MW escribió:
--
Juan Carlos Giménez Moncada
Tfno. 668 889 980