I have managed to configure PostgreSQL as the JDBC repository for CAS 4.1.0-SNAPSHOT. Attached is my deployerConfigContext.xml. Datasource configuration is OK - the database logs suggest that queries are being executed.
When I provide correct username and password credentials, it gives me the audit message : *" 'principal' cannot be null ", *as seen at the end of the log trace below. I cannot see what is missing in my configuration. Am I required to declare an explicit credentialResolver bean ? Is there anything else missing ? Any help would be greatly appreciated. Raju *Jan 02, 2015 3:30:25 PM org.apache.catalina.startup.Catalina load* *INFO: Initialization processed in 1153 ms* *SLF4J: Class path contains multiple SLF4J bindings.* *SLF4J: Found binding in [jar:file:/run/media/rkaria/4c07e2b4-fa7e-4022-9369-2f871b8998e6/opt/pivotal-tc-server-developer-3.0.0.RELEASE/cas4/webapps/A2GoCAS4/WEB-INF/lib/cas-server-core-4.1.0-20141230.191548-284.jar!/org/slf4j/impl/StaticLoggerBinder.class]* *SLF4J: Found binding in [jar:file:/run/media/rkaria/4c07e2b4-fa7e-4022-9369-2f871b8998e6/opt/pivotal-tc-server-developer-3.0.0.RELEASE/cas4/webapps/A2GoCAS4/WEB-INF/lib/cas-server-core-4.1.0-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]* *SLF4J: Found binding in [jar:file:/run/media/rkaria/4c07e2b4-fa7e-4022-9369-2f871b8998e6/opt/pivotal-tc-server-developer-3.0.0.RELEASE/cas4/webapps/A2GoCAS4/WEB-INF/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]* *SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.* *SLF4J: ILoggerFactory to be used for logging is: org.slf4j.impl.Log4jLoggerFactory* *SLF4J: Actual binding is of type [org.slf4j.impl.CasLoggerFactory]* *SLF4J: The following set of substitute loggers may have been accessed* *SLF4J: during the initialization phase. Logging calls during this* *SLF4J: phase were not honored. However, subsequent logging calls to these* *SLF4J: loggers will work as normally expected.* *SLF4J: See also http://www.slf4j.org/codes.html#substituteLogger* *SLF4J: org.reflections.Reflections* *2015-01-02 15:30:33,645 WARN [org.jasig.cas.services.InMemoryServiceRegistryDaoImpl] - <Runtime memory is used as the persistence storage for retrieving and persisting service definitions. Changes that are made to service definitions during runtime will be LOST upon container restarts.>* *2015-01-02 15:30:33,704 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 1 services.>* *2015-01-02 15:30:34,498 INFO [org.jasig.cas.util.AutowiringSchedulerFactoryBean] - <Starting Quartz Scheduler now>* *Jan 02, 2015 3:30:35 PM org.apache.catalina.startup.Catalina start* *INFO: Server startup in 9156 ms* *2015-01-02 15:30:53,947 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <Beginning ticket cleanup.>* *2015-01-02 15:30:53,950 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <0 expired tickets found to be removed.>* *2015-01-02 15:30:53,950 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <Finished ticket cleanup.>* *2015-01-02 15:31:23,558 INFO [org.jasig.cas.web.flow.InitialFlowSetupAction] - <Setting path for cookies to: /A2GoCAS4/ >* *2015-01-02 15:32:34,079 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.>* *2015-01-02 15:32:34,079 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 1 services.>* *2015-01-02 15:32:53,487 INFO [com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN* *=============================================================* *WHO: [email protected]+password* *WHAT: 'principal' cannot be null.* *Check the correctness of @Audit annotation at the following audit point: execution(public abstract transient org.jasig.cas.authentication.Authentication org.jasig.cas.authentication.AuthenticationManager.authenticate(org.jasig.cas.authentication.Credential[]))* *ACTION: TICKET_GRANTING_TICKET_NOT_CREATED* *APPLICATION: CAS* *WHEN: Fri Jan 02 15:32:53 EST 2015* *CLIENT IP ADDRESS: 127.0.0.1* *SERVER IP ADDRESS: 127.0.0.1* *=============================================================* -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
deployerConfigContext.xml
Description: XML document
