Error starting CAS 5.x (conflicting module versions, Groovy)

179 views
Skip to first unread message

Paul Chauvet

unread,
Feb 6, 2017, 3:13:41 PM2/6/17
to cas-...@apereo.org

Hello all,

 

We’re in the process of rolling out CAS 5.x.  Things were deploying fine in our test environment, and we moved on to UI customizations, but sometime recently when building from source it has caused an error which prevents Tomcat from deploying the .war file.

 

I’ve attached the Catalina log export, but the root issue appears to be in this line:

Caused by: groovy.lang.GroovyRuntimeException: Conflicting module versions. Module [groovy-jsr223 is loaded in version 2.4.8 and you are trying to load version 2.4.7

 

The same error happens now on deployment in Tomcat, even for builds that worked perfectly fine several weeks ago.  We are using Gradle for building the CAS .war.  Our CAS-5 build was made for us by Unicon, and all we were working on is some UI changes.  I thought it might have been those UI changes, but even the exact version provided for us by Unicon for v5 doesn’t work anymore.

 

If other info is needed (build.gradle files or something else), please let me know.  Any thoughts or ideas on this would be greatly appreciated! 

 

Paul Chauvet

Information Security Officer

State University of New York at New Paltz

845-257-3828

chau...@newpaltz.edu

emlogo

 

catalina-error.txt

Misagh Moayyed

unread,
Feb 6, 2017, 3:20:00 PM2/6/17
to cas-...@apereo.org

An exact version would be helpful.

 

--Misagh

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
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/CY4PR2001MB1062B1AB7814984B01D9BBDEA7400%40CY4PR2001MB1062.namprd20.prod.outlook.com.

image001.png

mrcasa bengaluru

unread,
Feb 6, 2017, 3:40:11 PM2/6/17
to cas-...@apereo.org
I have exactly the same issue with the recent 5.1.0-RC2-SNAPSHOT.

I use gradlew bundled 3.2.1 version with CAS while I use 3.3 with another private project. Not sure if this is related. At the this time. although the code compiles, it fails at runtime with the same message as above.

Caused by: groovy.lang.GroovyRuntimeException: Conflicting module versions. Module [groovy-jsr223 is loaded in version 2.4.7 and you are trying to load version 2.4.8
    at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl$DefaultModuleListener.onModule(MetaClassRegistryImpl.java:512) ~[groovy-2.4.7.jar!/:2.4.7]


To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
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+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/002901d280b6%245fa92710%241efb7530%24%40unicon.net.

Misagh Moayyed

unread,
Feb 6, 2017, 3:52:17 PM2/6/17
to cas-...@apereo.org

I’d understand if you had this issue against 5.1 snapshots, in which case you just need to force-update snapshots [and file issues if you still see it]. Always compare git SHAs with the repo if you’re unsure. Snapshots may be updated multiple times a day so don’t just rely dates.

 

But if you have this issue against a 5.0.x, that means you’re doing something in the overlay that should not be there. You want to make sure there is nothing in your overlay that references master or 5.1 SNAPSHOTs basically.

 

--Misagh

To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
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.

 

--

- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
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/CALpZ%2BOQ_O7_Yv%2BZZH2NspMQpyNt%3D2siXjiuYcvxF9BZT%3DaszxQ%40mail.gmail.com.

image001.png

Dmitriy Kopylenko

unread,
Feb 6, 2017, 3:55:42 PM2/6/17
to cas-...@apereo.org
I just want to add to what Misagh said.

If you have this in your cas/build.gradle: apply from: 'https://raw.githubusercontent.com/apereo/cas/master/gradle/overrides.gradle’ change it to apply from: 'https://raw.githubusercontent.com/apereo/cas/5.0.x/gradle/overrides.gradle’

Cheers,
D.
image001.png@01D280C3.417D8990

chauvetp

unread,
Feb 6, 2017, 4:18:52 PM2/6/17
to CAS Community, mmoa...@unicon.net
For some reason, my replies from my work email don't seem to be going through to here (though Google has accepted the messages).  I'll add my reply here which will hopefully go through:

We were using cas.version 5.0.0, and gradle.version 3.1 as set in the gradle properties.  I tried updating to 5.0.2 and gradle.version 3.2.1 as per the info in the gradle overlay template on github, but the same issue occurs.

Will look at the other suggestion from Misagh & Dimitry in a moment

- Paul Chauvet

chauvetp

unread,
Feb 6, 2017, 4:31:55 PM2/6/17
to CAS Community
I made the change Dimitriy suggested:
(If you have this in your cas/build.gradle: apply from: 'https://raw.githubusercontent.com/apereo/cas/master/gradle/overrides.gradle’ change it to apply from: 'https://raw.githubusercontent.com/apereo/cas/5.0.x/gradle/overrides.gradle’
)

All appears fine now, thanks Dimitiry & Misagh!

Paul Chauvet

unread,
Feb 7, 2017, 1:31:39 AM2/7/17
to cas-...@apereo.org

I sent a reply to this, but it doesn’t seem to have come through.  Apologies if anyone receives a duplicate.

 

We were using cas.version 5.0.0, and gradle.version 3.1 as set in the gradle properties.  I tried updating to 5.0.2 and gradle.version 3.2.1 as per the info in the gradle overlay template on github, but the same issue occurs.

 

 

Paul Chauvet

Information Security Officer

State University of New York at New Paltz

845-257-3828

chau...@newpaltz.edu

emlogo

Paul Chauvet

unread,
Feb 7, 2017, 1:31:40 AM2/7/17
to cas-...@apereo.org

Oops!  Sorry, can’t believe I forgot that.  From gradle.properties:

cas.version=5.0.0

gradle.version=3.1

sourceCompatibility=1.8

targetCompatibility=1.8

springboot.version=1.4.1.RELEASE

 

 

Paul Chauvet

Information Security Officer

State University of New York at New Paltz

845-257-3828

chau...@newpaltz.edu

emlogo

 

From: cas-...@apereo.org [mailto:cas-...@apereo.org] On Behalf Of Misagh Moayyed


Sent: Monday, February 6, 2017 3:20 PM
To: cas-...@apereo.org

Reply all
Reply to author
Forward
0 new messages