Trying to do and upgrade and getting the CAS error. Just wanting to see if anyone else has been getting that error. And if so what have you do to get it fixed.
javax.servlet.ServletException: Filter execution threw an exception
caused by: java.lang.IllegalAccessError: tried to access method com.atlassian.confluence.event.events.security.SecurityEvent.<init>(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V from class org.jasig.cas.client.integration.atlassian.Confluence35CasAuthenticator
I also have the same issue error message as above. My instance of Confluence seems to work fine after just refreshing from the error page.
However, it shows up again when logging in every time.
What version of the jar files are you using?
@Billy_Jones were you able to resolve the issue?
I am not no longer getting that error now after I updated my jar files and a slight modification to my seraph-config.xml
I mostly followed the guide here: https://www.surekhatech.com/blog/cas-integration-with-confluence
However I had to update the jars which you can get from maven
Currently I am using 3.6.2 and 3.5.1 respectively on Confluence 7.4.8
for the seraph-config.xml, I followed the instructions here: https://github.com/apereo/java-cas-client#modify-the-seraph-configxml
<!-- CAS:START - Java Client Confluence Authenticator --> <authenticator class="org.jasig.cas.client.integration.atlassian.ConfluenceCasAuthenticator"/> <!-- CAS:END -->
Hope this help!
@Peter Yeung and I found that after we enabled CAS using ConfluenceCasAuthenticator instead of Confluence35CasAuthenticator
1) logins with local account (i.e. non CAS) still work and that is good and
2) local (i.e. non-CAS) admin account is not able to access any pages under /admin/* (error below)
java.lang.ClassCastException: com.atlassian.confluence.security.seraph.ConfluenceUserPrincipal cannot be cast to com.atlassian.user.User at com.atlassian.confluence.security.ConfluenceGroupCache.getGroups(ConfluenceGroupCache.java:28) at com.atlassian.confluence.security.ConfluenceRoleMapper.seraphHasRole(ConfluenceRoleMapper.java:46) at com.atlassian.confluence.security.ConfluenceRoleMapper.hasRole(ConfluenceRoleMapper.java:41) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:186) at com.atlassian.confluence.web.filter.ConfluenceSecurityFilter.applyFilter(ConfluenceSecurityFilter.java:40)
Any ideas, suggestions what we can do to re-enable access to /admin/* for local (i.e. non CAS) admin users when using ConfluenceCasAuthenticator?
Phew, Atlassian Team 2021 blew by. With dozens of demos and a handful of keynotes, you may have missed some of the awesome Confluence Cloud sessions. Don't' worry, you can watch them all here or on Y...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event