Im trying to add CAS (http://www.jasig.org/cas) to a DSPace XMLUI 1.5.2
installation, but im getting an error, when I try to access the site.
The error is:
javax.servlet.ServletException: Servlet execution threw an exception
org.dspace.app.xmlui.cocoon.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:142)
org.dspace.app.xmlui.cocoon.DSpaceCocoonServletFilter.doFilter(DSpaceCocoonServletFilter.java:244)
org.apache.cocoon.servlet.multipart.MultipartFilter.doFilter(MultipartFilter.java:131)
*root cause*
java.lang.NoClassDefFoundError: Could not initialize class
org.dspace.authenticate.AuthenticationManager
org.dspace.app.xmlui.utils.ContextUtil.obtainContext(ContextUtil.java:100)
org.dspace.app.xmlui.aspect.general.AuthenticatedSelector.select(AuthenticatedSelector.java:100)
org.apache.cocoon.sitemap.impl.DefaultExecutor.invokeSelector(DefaultExecutor.java:89)
org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectNode.java:78)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:78)
I have followed this "guide" -
https://sourceforge.net/tracker/index.php?func=detail&aid=2812747&group_id=19984&atid=319984
In short it is:
1. Added this patch, that creates the file:
src/org/dspace/eperson/CASAuthentication.java -
https://sourceforge.net/tracker/index.php?func=detail&aid=1601221&group_id=19984&atid=319984
2. Made changes to dspace.cfg
- plugin.sequence.org.dspace.eperson.AuthenticationMethod = \
org.dspace.eperson.CASAuthentication
- cas.server.url= https://xxxxx.xxx.xx/login
cas.validate.url= https://xxxxx.xxx.xx/serviceValidate
cas.logout.url= https://xxxxx.xxx.xx/logout
## Create e-persons for no matching user in dspace
webui.cas.autoregister = true
3. Made changes to different pom.xml files -
https://sourceforge.net/tracker/index.php?func=detail&aid=2812747&group_id=19984&atid=319984
4. Cleared Tomcat webapps folder.
5. mvn clean -> mvn package -> ant update.
6. I can see that maven is downloading the casclient from the
repository: Downloading:
http://repo1.maven.org/maven2/cas/casclient/2.1.1/casclient-2.1.1.jar
and the .jar file is installed in the different lib folders
Any idea why it's not working? Running Redhat ES_5_64.
Thanks,
--
Venlig hilsen | Kind Regards
Tonny Hjelmberg Laursen
Systemadministrator
CBS Library IT
Copenhagen Business School
Solbjerg Plads 3 (D2.30), DK-2000 Frederiksberg
Tel.: (+45) 3815 3697 | Mob.: (+45) 2427 3242 | thl....@cbs.dk
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech