Me appServer is set to -tomcat in gradle.properties, which is the correct appServer
****************************************** cas.version=6.1.0-SNAPSHOT springBootVersion=2.2.0.RC1 appServer=-tomcat executable=false gradleVersion=5.6.2 tomcatVersion=9.0.16 group=org.apereo.cas sourceCompatibility=11 targetCompatibility=11 jibVersion=1.6.0 # Location of the downloaded CAS shell JAR shellDir=build/libs ivyVersion=2.4.0 gradleDownloadTaskVersion=3.4.3 gradleMavenPluginVersion=3.8.4 gradleLogVersion=0.1.0 ********************************************* Thanks. 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/cb4a50a0-3dfc-933e-d9e1-6f6485b1a22b%40um.es.
