cancel
Showing results for 
Search instead for 
Did you mean: 

Can't not log in alfresco 4.2 Share, using CAS (although /alfresco work OK)

lacph
Champ in-the-making
Champ in-the-making
HI everybody,
I'm using Alfresco community 4.2e. I try to config my Alfresco to use CAS for SSO (I used this guide: http://www.softbless.com/en/SSO-Setting-CAS-Alfresco).
Everything look good with /alfresco, but not with /share. please advise.
After I enter my user name and password at CAS's log in page, it rediect back to alfresco share but show error:

A server error has occured.

There are a number of reasons why this could have happened:

    You have attempted to access a page that does not exist - check the URL in the address bar.
    You have attempted to access a page that is not accessible to you, such as a private Site dashboard.
    A valid page has been requested but the server was unable to render it due to an internal error - contact your administrator.
….
I try to config session cookie already, but not help (in web.xml):
####
<session-config>
   <tracking-mode>COOKIE</tracking-mode>
      <session-timeout>60</session-timeout>
   </session-config>
#########
Catalina.out say:
2014-05-12 00:34:39,105  ERROR [alfresco.web.site] [http-bio-443-exec-6] javax.servlet.ServletException: Filter execution threw an exception
java.lang.NoSuchMethodError: org.springframework.extensions.webscripts.connector.RemoteClient.<init>(Ljava/lang/StringSmiley WinkV
        at org.mycompany.cms.authentication.CasAlfrescoAuthenticator.authenticate(CasAlfrescoAuthenticator.java:60)
        at org.springframework.extensions.webscripts.connector.AuthenticatingConnector.handshake(AuthenticatingConnector.java:408)
        at org.springframework.extensions.webscripts.connector.AuthenticatingConnector.call(AuthenticatingConnector.java:155)
        at org.alfresco.web.site.servlet.SSOAuthenticationFilter.challengeOrPassThrough(SSOAuthenticationFilter.java:728)
        at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:463)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.jasig.cas.client.util.HttpServletRequestWrapperFilter.doFilter(HttpServletRequestWrapperFilter.java:62)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:196)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:93)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:724)
Thanks so much
4 REPLIES 4

kaynezhang
World-Class Innovator
World-Class Innovator

You've faced a compatibility problem between spring-webscripts-** jars. Try examinating

at org.mycompany.cms.authentication.CasAlfrescoAuthenticator.authenticate(CasAlfrescoAuthenticator.java:60)

it calls a method that dose not exist in your version of spring-webscripts-** jar file .

lacph
Champ in-the-making
Champ in-the-making
Hello kaynezhang
Thanks for your quick respond, but could you pls advise, how can I fix that. I am a sysAdmin, I do not understand more about programing.
Have a nice day.

kaynezhang
World-Class Innovator
World-Class Innovator
The jar package you download from http://www.softbless.com/en/SSO-Setting-CAS-Alfresco  is not compatibile with spring-webscripts-** jars in your alfresco version
You need to download source code from softbless and modify it according your spring-webscripts-** jars and  then rebuild it.

rock_tu
Champ on-the-rise
Champ on-the-rise
Hello kaynezhang Thank you for your idea,I have faced the same problem,then act on what's you said that I rebuild the cas-client-core-3.1.12.jar etc files,in this cas-client-core-3.1.12.jar file,during the rebuild process,it's appear the following error:
[INFO] Scanning for projects…
Downloading: http://localhost:8081/nexus/content/groups/public/org/jasig/cas/client/cas-client/3.1.12/cas-client-...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]  
[ERROR]   The project org.jasig.cas.client:cas-client-core:3.1.12 (C:\Users\ThinkPad\Desktop\alfresco\CAS\deployment\webapps\alfresco\WEB-INF\lib\cas-client-core-3.1.12\META-INF\maven\org.jasig.cas.client\cas-client-core\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not transfer artifact org.jasig.cas.client:cas-clientSmiley Tongueom:3.1.12 from/to nexus (http://localhost:8081/nexus/content/groups/public/😞 Connection refused: no further information and 'parent.relativePath' points at wrong local POM @ line 2, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
I have confuesd the problem for a long time,could you tell me why or where is need to modifyin these files also,thank you in advance!