大家好,我用CAS做单点登录,采用JDBC 认证方法,登录时报
ava.lang.NoSuchMethodError: org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenti
tionHandler.getPrincipalNameTransformer()Lorg/jasig/cas/authentication/handler
rincipalNameTransformer;
at org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler.auth
ticateUsernamePasswordInternal(QueryDatabaseAuthenticationHandler.java:44)
at org.jasig.cas.authentication.handler.support.AbstractUsernamePasswo
AuthenticationHandler.doAuthentication(AbstractUsernamePasswordAuthenticationH
dler.java:56)
at org.jasig.cas.authentication.handler.support.AbstractPreAndPostProc
singAuthenticationHandler.authenticate(AbstractPreAndPostProcessingAuthenticat
nHandler.java:71)
at org.jasig.cas.authentication.AuthenticationManagerImpl.authenticate
dObtainPrincipal(AuthenticationManagerImpl.java:74)
at org.jasig.cas.authentication.AbstractAuthenticationManager.authenti
te(AbstractAuthenticationManager.java:39)
at org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGranting
cket(CentralAuthenticationServiceImpl.java:417)
at org.jasig.cas.web.flow.AuthenticationViaFormAction.submit(Authentic
ionViaFormAction.java:107)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.webflow.util.DispatchMethodInvoker.invoke(Dispa
hMethodInvoker.java:99)
请大神们帮忙看一下,多谢了!!
------解决方案--------------------
.lang.NoSuchMethodError,找不到方法,你打个断点调试下,看在哪行出错了