Finally found out what was happening. The problem was I had 2 versions of spring ldap jar in the maven src.

Tks for your time.

Francisco

Scott Battaglia wrote:
That shouldn't cause a problem.  That JAR just gets ignored.

Cheers,
Scott


On Mon, Feb 1, 2010 at 11:36 AM, Francisco Estanqueiro <[email protected] <mailto:[email protected]>> wrote:

    I didnt change anything in the java code, I just changed the xml
    configuration files like the tutorial says.. If I change the
    auditTrailContext.xml back to normal (the one in the
    unsed-spring-configuration), the error persists..

    I've looked in the logs, and this appears when loading CAS into
    tomcat.. maybe its related?

    INFO:
    
validateJarFile(/usr/local/tomcat/webapps/cas/WEB-INF/lib/servlet-api-2.4.jar)
    - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
    class: javax/servlet/Servlet.class




    Scott Battaglia wrote:

        Based on the code, as written, it shouldn't be null (that
        value should always be the name value of the statistic). Did
        you change the annotation at all, i.e. provide a custom resolver?

        Cheers,
        Scott


        On Sun, Jan 31, 2010 at 9:03 PM, Francisco Estanqueiro
        <[email protected] <mailto:[email protected]>
        <mailto:[email protected]
        <mailto:[email protected]>>> wrote:

           Hi again,

           I'm having a error in CAS everytime a user uses wrong
           credentials.. Everything is ok if use the right
        credentials, and
           the /statistics/ page in the /services/ service is working
        fine so
           I'm not figuring out whats the problem. The only thing I have
           different from the tutorial
        "Auditing+and+Statistics+Via+Inspektr"
           is my dataSource is a mysql one.

           <bean
                 id="dataSource"
                 class="org.apache.commons.dbcp.BasicDataSource"
                 p:driverClassName="com.mysql.jdbc.Driver"
p:url="jdbc:mysql://localhost:3306/cas_stats?autoReconnect=true"
                 p:password="*******"
                 p:username="root" />
                   Francisco

           ==> /usr/local/tomcat/logs/localhost.2010-02-01.log <==
           Feb 1, 2010 1:58:29 AM
           org.apache.catalina.core.StandardWrapperValve invoke
           SEVERE: Servlet.service() for servlet cas threw exception
           java.lang.IllegalArgumentException: *what cannot be null.*
                 at
        org.springframework.util.Assert.notNull(Assert.java:112)
                 at
org.inspektr.statistics.StatisticActionContext.<init>(StatisticActionContext.java:51)
                 at
org.inspektr.statistics.StatisticManagementAspect.handleStatisticGathering(StatisticManagementAspect.java:82)
                 at
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at
        sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                 at
        sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
           Source)
                 at java.lang.reflect.Method.invoke(Unknown Source)
                 at
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:576)
                 at
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:562)
                 at
org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:60)
                 at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:155)
                 at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
                 at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
                 at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
                 at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
                 at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
                 at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
                 at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
                 at $Proxy30.createTicketGrantingTicket(Unknown Source)
                 at
org.jasig.cas.web.flow.AuthenticationViaFormAction.submit(AuthenticationViaFormAction.java:107)
                 at
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at
        sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                 at
        sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
           Source)
                 at java.lang.reflect.Method.invoke(Unknown Source)
                 at
org.springframework.webflow.util.DispatchMethodInvoker.invoke(DispatchMethodInvoker.java:99)
                 at
org.springframework.webflow.action.MultiAction.doExecute(MultiAction.java:133)
                 at
org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:192)
                 at
org.springframework.webflow.engine.AnnotatedAction.execute(AnnotatedAction.java:146)
                 at
org.springframework.webflow.engine.ActionExecutor.execute(ActionExecutor.java:59)
                 at
org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:156)
                 at
           org.springframework.webflow.engine.State.enter(State.java:191)
                 at
org.springframework.webflow.engine.Transition.execute(Transition.java:212)
                 at
org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:107)
                 at
           org.springframework.webflow.engine.Flow.onEvent(Flow.java:534)
                 at
org.springframework.webflow.engine.impl.RequestControlContextImpl.signalEvent(RequestControlContextImpl.java:205)
                 at
org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:161)
                 at
           org.springframework.webflow.engine.State.enter(State.java:191)
                 at
org.springframework.webflow.engine.Transition.execute(Transition.java:212)
                 at
org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:107)
                 at
           org.springframework.webflow.engine.Flow.onEvent(Flow.java:534)
                 at
org.springframework.webflow.engine.impl.RequestControlContextImpl.signalEvent(RequestControlContextImpl.java:205)
                 at
org.springframework.webflow.engine.impl.FlowExecutionImpl.signalEvent(FlowExecutionImpl.java:202)
                 at
org.springframework.webflow.executor.FlowExecutorImpl.resume(FlowExecutorImpl.java:222)
                 at
org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:111)
                 at
org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:165)
                 at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
                 at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
                 at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:857)
                 at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
                 at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475)
                 at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440)
                 at
        javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                 at
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                 at
org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:115)
                 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at
org.inspektr.common.web.ClientInfoThreadLocalFilter.doFilterInternal(ClientInfoThreadLocalFilter.java:48)
                 at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
                 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.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.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:347)
                 at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
                 at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
                 at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
                 at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
                 at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
                 at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
                 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
                 at java.lang.Thread.run(Unknown Source)



           --    You are currently subscribed to
        [email protected] <mailto:[email protected]>
           <mailto:[email protected]
        <mailto:[email protected]>> as:
        [email protected] <mailto:[email protected]>
           <mailto:[email protected]
        <mailto:[email protected]>>

           To unsubscribe, change settings or access archives, see
           http://www.ja-sig.org/wiki/display/JSG/cas-user


-- You are currently subscribed to [email protected]
        <mailto:[email protected]> as: [email protected]
        <mailto:[email protected]>

        To unsubscribe, change settings or access archives, see
        http://www.ja-sig.org/wiki/display/JSG/cas-user



-- You are currently subscribed to [email protected]
    <mailto:[email protected]> as: [email protected]
    <mailto:[email protected]>
    To unsubscribe, change settings or access archives, see
    http://www.ja-sig.org/wiki/display/JSG/cas-user


--
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


--
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

Reply via email to