case-management 6.x

155 views
Skip to first unread message

alain ubfc

unread,
Jun 10, 2019, 10:15:40 AM6/10/19
to CAS Community
Hello everyone,

I would like to install case-management 6.x but with every move I make:

./build.sh package

I have this error message:

Task :bootWar FAILED
:bootWar (Thread[Daemon worker Thread 2,5,main]) completed. Took 5.182 secs.

FAILURE
: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':runtimeClasspath'.
> Could not resolve org.apereo.cas:cas-mgmt-webapp-tomcat:5.3.6.
 
Required by:
      project
:
   
> Could not resolve org.apereo.cas:cas-mgmt-webapp-tomcat:5.3.6.
     
> Could not get resource 'https://oss.jfrog.org/artifactory/oss-snapshot-local/org/apereo/cas/cas-mgmt-webapp-tomcat/5.3.6/cas-mgmt-webapp-tomcat-5.3.6.pom'.
         
> Could not GET 'https://oss.jfrog.org/artifactory/oss-snapshot-local/org/apereo/cas/cas-mgmt-webapp-tomcat/5.3.6/cas-mgmt-webapp-tomcat-5.3.6.pom'. Received status code 409 from server:

In my file gradle.properties to know the version I go to the site http://repo1.maven.org/maven2/org/apereo/cas/cas-mgmt/


# Versions

# casmgmt.version=6.1.0-RC3-SNAPSHOT
casmgmt
.version=6.0.1
springBootVersion
=2.1.3.RELEASE

appServer
=-tomcat

sourceCompatibility
=11
targetCompatibility
=11

gradleVersion
=5.2.1

In my build.gradle file in dependency I have:

dependencies {
   
if (project.hasProperty("external")) {
       compile
"org.apereo.cas:cas-mgmt-webapp:${project.'casmgmt.version'}"
   
} else {
        compile
"org.apereo.cas:cas-mgmt-webapp${project.appServer}:${project.'casmgmt.version'}"
   
}       
        compile "org.apereo.cas:cas-management-webapp-support-ldap:${project.'cas.version'}"
}

Why do I have this error?

thank you so much

Best regards


alain ubfc

unread,
Jul 2, 2019, 6:01:25 AM7/2/19
to CAS Community

Hello,

Be careful in the build.gradle file add



compile
"org.apereo.cas: cas-server-support-json-service-registry: $ {project.'casmgmt.version '}"



instead of

compile "org.apereo.cas: case-management-webapp-support-ldap: $ {project.'cas.version '}"


thank you so much

Alexi Pascual

unread,
Jul 2, 2019, 10:03:58 AM7/2/19
to cas-...@apereo.org

Hi alain,

I solved the problem by adding:

    external = false

in gradle.properties

regards,


El 10-06-19 a las 10:15, alain ubfc escribió:
--
- 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 cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/ec74e817-9b35-4d57-9905-e4051fd49c79%40apereo.org.
-- 
Alexi

alain ubfc

unread,
Jul 2, 2019, 10:34:18 AM7/2/19
to cas-...@apereo.org
Thank you for your reply.

I put in my file : /opt/cas-management-overlay/gradle.properties

# Versions

casmgmt.version=6.1.0-RC4
springBootVersion=2.2.0.M3

appServer=-tomcat

sourceCompatibility=11
targetCompatibility=11

gradleVersion=5.4.1

external = false

How to do ?

Alain



--
______________________________________________________________
Alain Dos Reis - Pasquault
Adresse mail : alai...@gmail.com

Alexi Pascual

unread,
Jul 2, 2019, 11:48:02 AM7/2/19
to cas-...@apereo.org

With this parameter, you are sure to download all dependencies of cas-management. Now you can add the necessary dependencies in your build.gradle


dependencies {

    if (project.hasProperty("external")) {
        compile "org.apereo.cas:cas-mgmt-webapp:${project.'casmgmt.version'}"
    } else {
        compile "org.apereo.cas:cas-mgmt-webapp${project.appServer}:${project.'casmgmt.version'}"
    }
    compile "org.apereo.cas:cas-server-support-ldap:${project.'casmgmt.version'}"
    compile "org.apereo.cas:cas-server-support-json-service-registry:${project.'casmgmt.version'}"

}

remember to change 'cas.version' to 'casmgmt.version' when you configure dependencies on cas-management.

regards,

El 02-07-19 a las 10:34, alain ubfc escribió:

alain ubfc

unread,
Jul 3, 2019, 2:49:48 AM7/3/19
to cas-...@apereo.org
Thank you for your reply.
I put in the build.gradle file

dependencies {
     if (project.hasProperty ("external")) {
         compile "org.apereo.cas: case-mgmt-webapp: $ {project.'casmgmt.version '}"
     } else {
         compile "org.apereo.cas: case-mgmt-webapp $ {project.appServer}: $ {project.'casmgmt.version '}"
     }
         compile "org.apereo.cas: case-server-support-json-service-registry: $ {project.'casmgmt.version '}"
}

While I'm installing I have errors in Task: bootWar

Resource missing. [HTTP GET: https://repo.maven.apache.org/maven2/org/springframework/spring-aop/5.2.0.M2/spring-aop-5.2.0.M2.pom]
Resource missing. [HTTP HEAD: https://repo.maven.apache.org/maven2/org/springframework/spring-aop/5.2.0.M2/spring-aop-5.2.0.M2.jar]

See the attached
install.log file

I am attaching my tomcat log file and my proud cas-management log

File /var/log/tomcat8/catalina.out

and

File /var/log/cas-management/cas-management.log


2019-07-03 08:29:28,436 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: org.apache.catalina.valves.AccessLogValve.setMaxDays(I)V
2019-07-03 08:29:28,443 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: server.context-path
Replacement: server.servlet.context-path


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-07-03 08:29:28,463 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.customizeAccessLog(TomcatWebServerFactoryCustomizer.java:269)

The following method did not exist:

    org.apache.catalina.valves.AccessLogValve.setMaxDays(I)V

The method's class, org.apache.catalina.valves.AccessLogValve, is available from the following locations:

    jar:file:/usr/share/java/tomcat8-catalina-8.5.14.jar!/org/apache/catalina/valves/AccessLogValve.class

It was loaded from the following location:

    file:/usr/share/java/tomcat8-catalina-8.5.14.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of org.apache.catalina.valves.AccessLogValve

I am attaching my tomcat log file and my proud cas-management log

Do you have an idea ?

Thank you

Best regard

install.txt
catalina.out
cas-management.log
Reply all
Reply to author
Forward
0 new messages