Compile CAS
Desmond Stewart
desmond at mail.alcorn.edu
Tue Oct 2 16:00:49 EDT 2007
I forgot to add, I have the ldap server running in debug mode and I can see
the CAS server hit the ldap in an attempt to validate a login. After
completing the initial bind, the CAS server simply drops the connection and
throw the exception.
Odd......
Desmond
> You have a NullPointerException when it attempts to obtain the URL:
>
> java.lang.NullPointerException
> javax.naming.InitialContext.getURLScheme(InitialContext.java:228)
> javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:277)
>
> What URL are you using to point to the LDAP server?
>
> -Scott
>
>
>
> On 10/2/07, Desmond Stewart <desmond at mail.alcorn.edu> wrote:
>>
>> Scott,
>>
>> Thanks for your fast reply. Your tip allowed me to compile CAS, but I'm
>> geting the same exeception in tomcat that I was getting durring the
test.
>> See below:
>>
>> org.springframework.web.util.NestedServletException: Request processing
>> failed; nested exception is
>> org.springframework.webflow.engine.ActionExecutionException: Exception
thrown
>> executing [AnnotatedAction at 1dacb2b targetAction =
>> org.jasig.cas.web.flow.AuthenticationViaFormAction at b173c3, attributes =
>> map['method' -> 'submit']] in state 'submit' of flow 'login-webflow'
--
>> action execution attributes were 'map['method' -> 'submit']'; nested
>> exception is java.lang.NullPointerException
>>
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:487)
>>
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:115)
>>
>>
>>
>> *root cause*
>>
>> org.springframework.webflow.engine.ActionExecutionException: Exception
>> thrown executing [AnnotatedAction at 1dacb2b targetAction =
>> org.jasig.cas.web.flow.AuthenticationViaFormAction at b173c3, attributes =
>> map['method' -> 'submit']] in state 'submit' of flow 'login-webflow'
--
>> action execution attributes were 'map['method' -> 'submit']'; nested
>> exception is java.lang.NullPointerException
>>
org.springframework.webflow.engine.ActionExecutor.execute(ActionExecutor.java:68)
>>
org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:180)
>> org.springframework.webflow.engine.State.enter(State.java:200)
>>
org.springframework.webflow.engine.Transition.execute(Transition.java:229)
>>
org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:112)
>> org.springframework.webflow.engine.Flow.onEvent(Flow.java:572)
>>
org.springframework.webflow.engine.impl.RequestControlContextImpl.signalEvent(RequestControlContextImpl.java:208)
>>
org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:185)
>> org.springframework.webflow.engine.State.enter(State.java:200)
>>
org.springframework.webflow.engine.Transition.execute(Transition.java:229)
>>
org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:112)
>> org.springframework.webflow.engine.Flow.onEvent(Flow.java:572)
>>
org.springframework.webflow.engine.impl.RequestControlContextImpl.signalEvent(RequestControlContextImpl.java:208)
>>
org.springframework.webflow.engine.impl.FlowExecutionImpl.signalEvent(FlowExecutionImpl.java:214)
>>
org.springframework.webflow.executor.FlowExecutorImpl.resume(FlowExecutorImpl.java:245)
>>
org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:115)
>>
org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:172)
>>
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
>>
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
>>
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:857)
>>
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
>>
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475)
>>
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:115)
>>
>>
>>
>> *root cause*
>>
>> java.lang.NullPointerException
>> javax.naming.InitialContext.getURLScheme(InitialContext.java:228)
>>
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:277)
>>
javax.naming.directory.InitialDirContext.getURLOrDefaultInitDirCtx(InitialDirContext.java:87)
>>
javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
>>
org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler$1.executeSearch(BindLdapAuthenticationHandler.java:71)
>> org.springframework.ldap.LdapTemplate.search(LdapTemplate.java:268)
>> org.springframework.ldap.LdapTemplate.search(LdapTemplate.java:314)
>>
org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler.authenticateUsernamePasswordInternal(BindLdapAuthenticationHandler.java:67)
>>
org.jasig.cas.authentication.handler.support.AbstractUsernamePasswordAuthenticationHandler.doAuthentication(AbstractUsernamePasswordAuthenticationHandler.java:56)
>>
org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler.authenticate(AbstractPreAndPostProcessingAuthenticationHandler.java:58)
>>
org.jasig.cas.authentication.AuthenticationManagerImpl.authenticate(AuthenticationManagerImpl.java:84)
>>
org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket(CentralAuthenticationServiceImpl.java:383)
>>
org.jasig.cas.web.flow.AuthenticationViaFormAction.submit(AuthenticationViaFormAction.java:107)
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> java.lang.reflect.Method.invoke(Method.java:585)
>>
org.springframework.webflow.util.DispatchMethodInvoker.invoke(DispatchMethodInvoker.java:103)
>>
org.springframework.webflow.action.MultiAction.doExecute(MultiAction.java:136)
>>
org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:203)
>>
org.springframework.webflow.engine.AnnotatedAction.execute(AnnotatedAction.java:142)
>>
org.springframework.webflow.engine.ActionExecutor.execute(ActionExecutor.java:61)
>>
org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:180)
>> org.springframework.webflow.engine.State.enter(State.java:200)
>>
org.springframework.webflow.engine.Transition.execute(Transition.java:229)
>>
org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:112)
>> org.springframework.webflow.engine.Flow.onEvent(Flow.java:572)
>>
org.springframework.webflow.engine.impl.RequestControlContextImpl.signalEvent(RequestControlContextImpl.java:208)
>>
org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:185)
>> org.springframework.webflow.engine.State.enter(State.java:200)
>>
org.springframework.webflow.engine.Transition.execute(Transition.java:229)
>>
org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:112)
>> org.springframework.webflow.engine.Flow.onEvent(Flow.java:572)
>>
org.springframework.webflow.engine.impl.RequestControlContextImpl.signalEvent(RequestControlContextImpl.java:208)
>>
org.springframework.webflow.engine.impl.FlowExecutionImpl.signalEvent(FlowExecutionImpl.java:214)
>>
org.springframework.webflow.executor.FlowExecutorImpl.resume(FlowExecutorImpl.java:245)
>>
org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:115)
>>
org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:172)
>>
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
>>
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
>>
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:857)
>>
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
>>
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475)
>>
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:115)
>>
>> I'm I just missing something?
>>
>> Desmond Stewart
>>
>> > Desmond,
>> >
>> > There are a few tests that are unfortunately timing-specific (i.e.
they
>> are
>> > testing timeouts) and sometimes for some reason that I can't
explain
>> they
>> > fail (if anyone knows how to fix them, feel free to recommend a
>> solution).
>> > If you try compiling again it will probably work.
>> >
>> > If it doesn't, execute maven with the following:
>> >
>> > mvn -Dmaven.test.skip=true package install
>> > (where package and install are the goals you are executing)
>> >
>> > That will skip all of the tests in the odd event that the one test
won't
>>
>> > work.
>> >
>> > -Scott
>> >
>> > On 10/1/07, Desmond Stewart <desmond at mail.alcorn.edu> wrote:
>> >>
>> >> Hi I'm new to the list. We are looking at deploying CAS at
Alcorn State
>>
>> >> University. I have a general question. I'm not a Java
developer and the
>>
>> >> curve is kinda wild. I'm getting a build error with maven at
the test.
>> >> Message:
>> >>
>> >>
>> >> Results :
>> >>
>> >> Failed tests:
>> >> testTicketIsExpiredByTime(
>> >> org.jasig.cas.ticket.support.MultiTimeUseOrTimeoutEx
>> >> pirationPolicyTests)
>> >>
>> >> Tests run: 392, Failures: 1, Errors: 0, Skipped: 0
>> >>
>> >> [INFO]
>> >>
>>
------------------------------------------------------------------------
>> >> [ERROR] BUILD FAILURE
>> >> [INFO]
>> >>
>>
------------------------------------------------------------------------
>> >> [INFO] There are test failures.
>> >> [INFO]
>> >>
>>
------------------------------------------------------------------------
>> >> [INFO] Trace
>> >> org.apache.maven.BuildFailureException: There are test
failures.
>> >> at
>> >>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> >> ultLifecycleExecutor.java:560)
>> >> at
>> >>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>> >> fecycle(DefaultLifecycleExecutor.java:480)
>> >> at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
>> >> (Defau
>> >> ltLifecycleExecutor.java:459)
>> >> at
>> >>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>> >> dleFailures(DefaultLifecycleExecutor.java:311)
>> >> at
>> >>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>> >> ts(DefaultLifecycleExecutor.java:278)
>> >> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
>> >> (DefaultLi
>> >> fecycleExecutor.java:143)
>> >> at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>> >> at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>> >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >> at sun.reflect.NativeMethodAccessorImpl.invoke
>> >> (NativeMethodAccessorImpl.
>> >> java:39)
>> >> at sun.reflect.DelegatingMethodAccessorImpl.invoke
>> >> (DelegatingMethodAcces
>> >> sorImpl.java:25)
>> >> at java.lang.reflect.Method.invoke(Method.java:597)
>> >> at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
>> >> :315)
>> >> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> >> at org.codehaus.classworlds.Launcher.mainWithExitCode(
>> >> Launcher.java:430)
>> >>
>> >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> >> Caused by: org.apache.maven.plugin.MojoFailureException: There
are test
>>
>> >> failures
>> >> .
>> >> at org.apache.maven.plugin.surefire.SurefirePlugin.execute
>> >> (SurefirePlugi
>> >> n.java:425)
>> >> at org.apache.maven.plugin.DefaultPluginManager.executeMojo
>> >> (DefaultPlugi
>> >> nManager.java:443)
>> >> at
>> >>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> >> ultLifecycleExecutor.java:539)
>> >> ... 16 more
>> >>
>> >>
>> >>
>> >> I'm lost.. I just stop compilling. I've done it before. The
only thing
>> >> different is the ip address to the ldap server. That's why I
complied
>> >> again.
>> >>
>> >>
>> >>
>> >> Any ideas
>> >>
>> >>
>> >>
>> >> Desmond Stewart
>> >>
>> >> _______________________________________________
>> >> Yale CAS mailing list
>> >> cas at tp.its.yale.edu
>> >> http://tp.its.yale.edu/mailman/listinfo/cas
>> >>
>> >>
>> >
>> >
>> > --
>> > -Scott Battaglia
>> >
>> > LinkedIn: http://www.linkedin.com/in/scottbattaglia
>> > _______________________________________________
>> > Yale CAS mailing list
>> > cas at tp.its.yale.edu
>> > http://tp.its.yale.edu/mailman/listinfo/cas
>> >
>>
>>
>> _______________________________________________
>> Yale CAS mailing list
>> cas at tp.its.yale.edu
>> http://tp.its.yale.edu/mailman/listinfo/cas
>>
>>
>
>
> --
> -Scott Battaglia
>
> LinkedIn: http://www.linkedin.com/in/scottbattaglia
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20071002/84fa9e9d/attachment.html
More information about the cas
mailing list