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ó:
> Try running java -jar /path/to/cas.war
> 
> It kinda looks like you compiled with embedded tomcat, if correct and
> you want to run it in tomcat you need to change the appServer type and
> recompile
> 
> 
> On Thursday, October 17, 2019 at 9:26:55 AM UTC-6, moncada wrote:
> 
>     Hello everyone,
> 
>     I am Ubuntu Bionic whith Tomcat 9.0.16 and CAS 6.1.0-SNAPSHOT
> 
>     I build the war with the command via overlay:
> 
>     build.sh package
> 
>     I copy cas.war in the webapps directory here is the log:
> 
>     2019-10-17 17:19:27,064 INFO
>     
> [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator]
> 
>     - <Configuration files found at [/etc/cas/config] are [[file
>     [/etc/cas/config/cas.properties]]] under profile(s) [[standalone]]>
>     2019-10-17 17:19:27,246 INFO
>     [org.apereo.cas.web.CasWebApplicationServletInitializer] - <The
>     following profiles are active: standalone>
>     2019-10-17 17:19:46,297 DEBUG
>     [org.apereo.cas.support.saml.OpenSamlConfigBean] - <Initialized
>     OpenSaml
>     successfully.>
>     2019-10-17 17:19:46,613 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-17 17:19:46,659 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-17 17:19:46,703 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
> 
> 
>     
> jar:file:/var/lib/tomcat9/webapps/cas/WEB-INF/lib/tomcat-catalina-9.0.27.jar!/org/apache/catalina/valves/RemoteIpValve.class
> 
> 
>     
> jar:file:/var/lib/tomcat9/webapps/cas/WEB-INF/lib/tomcat-embed-core-9.0.27.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.
> 
>     -- 
>     Juan Carlos Giménez Moncada
>     Ticarum / Universidad de Murcia
>     Campus de Espinardo
>     30100 Murcia
> 
> -- 
> - Website: https://apereo.github.io/cas
> - Gitter Chatroom: https://gitter.im/apereo/cas
> - List Guidelines: https://goo.gl/1VRrw7
> - Contributions: https://goo.gl/mh7qDG
> ---
> You received this message because you are subscribed to the Google
> Groups "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/487a6e30-4d9c-498f-a340-d9c74cfa576c%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/487a6e30-4d9c-498f-a340-d9c74cfa576c%40apereo.org?utm_medium=email&utm_source=footer>.

-- 
Juan Carlos Giménez Moncada

Tfno. 668 889 980

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/5fb39085-1d1d-5340-2b53-45d8ef247735%40um.es.

Reply via email to