Hi, I am using Jetspeed 2.2.1 and I want to integrate jetspeed to CAS. I put casclient version 2.1.1 in jetspeed/WEB-INF/lib. I have read following: - http://portals.apache.org/jetspeed-2/deployguide/config-sso.html - https://issues.apache.org/jira/browse/JS2-1055 - http://www.mail-archive.com/[email protected]/msg12556.html
I have configured my system according to instructions. When I navigate to http://localhost:8080/jetspeed/portal/caslogin I got CAS login page as expected. But there are two problems: 1. During startup I am getting this in output: user: null user: null not in j2 db user: null not created Nov 7, 2010 8:15:35 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jetspeed threw exception java.lang.NullPointerException at org.apache.jetspeed.security.impl.UserManagerImpl.getSubject(UserManagerImpl.java:130) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy156.getSubject(Unknown Source) at org.apache.jetspeed.security.impl.cas.CASPortalFilter.doFilter(CASPortalFilter.java:106) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) 2. I have the same output when I navigate to http://localhost:8080/jetspeed/portal/ My web.xml looks like: <filter> <filter-name>CAS Filter</filter-name> <filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class> <init-param> <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name> <param-value>https://drazenk:8443/cas/login</param-value> </init-param> <init-param> <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name> <param-value>https://drazenk:8443/cas/serviceValidate</param-value> </init-param> <init-param> <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name> <param-value>drazenk:8080</param-value> </init-param> </filter> <filter> <filter-name>PortalFilter</filter-name> <filter-class>org.apache.jetspeed.security.impl.cas.CASPortalFilter</filter-class> </filter> <filter-mapping> <filter-name>CAS Filter</filter-name> <url-pattern>/portal/caslogin/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>PortalFilter</filter-name> <url-pattern>/portal/*</url-pattern> </filter-mapping> I should mention that I want public area of my portal without user login, and other, protected, part of portal. But, it seems that CASPortalFilter do not work in public area of my portal. Does anybody can help me?
