cancel
Showing results for 
Search instead for 
Did you mean: 

missing required pieces when using keembay

goingcrazy
Champ in-the-making
Champ in-the-making
I'm trying to use CAS authentication in alfresco and i've completed all steps that I've found. My issue is that I get the error:

SEVERE: Exception starting filter Authentication Filter
java.lang.NoClassDefFoundError: org/alfresco/config/ConfigService
   at com.keembay.alfresco.web.app.servlet.CASAuthenticationFilter.init(CASAuthenticationFilter.java:251)
   at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
   at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
…..

I believe this is because in the keembay-alfresco-cas.jar it attempts to import org.alfresco.config.ConfigService;
and org.alfresco.i18n.I18NUtil…. but in the alfresco-core-3.4.d.jar these no longer exist. I've read that these were removed as of 3.3…..

Has anyone gotten the keembay-alfresco-cas.jar working for any alfresco after 3.3????? How did you do it? I'm lost with my next move.
7 REPLIES 7

mikeh
Star Contributor
Star Contributor
The config jar has moved to Spring Surf, so I suspect the keembay code needs rebuilding with an updated classpath.

I don't know anything about keembay, so you'd have to contact the original developer.

Thanks,
Mike

goingcrazy
Champ in-the-making
Champ in-the-making
Thanks for the comment Mike- Do you have any ideas on ways to authenticate using CAS other than the keembay jar?

right now i'm attempting to use

   <filter>
      <filter-name>Authentication Filter</filter-name>
      <description>Authentication filter mapped only to faces URLs. Other URLs generally use proprietary means to talk to the AuthenticationComponent</description>
      <filter-class>com.keembay.alfresco.web.app.servlet.CASAuthenticationFilter</filter-class>
    <init-param>
        <param-name>cas.user.label</param-name>
        <param-value>edu.yale.its.tp.cas.client.filter.user</param-value>
    </init-param>
   </filter>

Do you have a different suggestion for newer alfresco versions that aren't compatible with the keembay jar?

p.s. here is the code incase you were curious:
http://keembay.com/alfresco/extras/CASAuthenticationFilter.java

Can you give me the exact location of where those files moved to? i'll attempt to recompile and test with new paths

mikeh
Star Contributor
Star Contributor
I know as much about CAS as I do about keembay I'm afraid.

The updated jar is spring-surf-core-configservice-1.0.0.CI-SNAPSHOT.jar

Thanks,
Mike

goingcrazy
Champ in-the-making
Champ in-the-making
For anyone looking for the updated code for keembay I located someone who's updated it here:

http://akselsarchitecture.blogspot.com/2010/09/cas-sso-for-alfresco-33-and-share.html

These have the changed file paths for alfresco 3.3+ …. Now i have the pleasure of tracking down all of the dependant jar files and building it Smiley Sad

goingcrazy
Champ in-the-making
Champ in-the-making
For anyone who has interest! I can't get this to compile.. i add the required reference jars to the project and it won't find the import statements….. Does anyone have this updated .java jar file!? pleaseeeeeee Smiley Happy

goingcrazy
Champ in-the-making
Champ in-the-making
I had to edit all include files manifest files and add name: org/alfresco/etc

(Replace org/alfresco/etc with the correct names)

once you do this, the jar files should be found by eclipse

rock_tu
Champ on-the-rise
Champ on-the-rise
Hello,I have faced the same problem with you,the alfresco version that I using is 4.2.e,do you have solved the problem?if yes,could you give me a solution,thank you in advance!