1 Reply Latest reply on Dec 6, 2007 11:45 AM by allenofunix

    Help with CAS authentication

      We're working on a project to set up CAS authentication for Clearspacex.  We've been following these instructions:




      Our code is very similar to the sample provided by rbramley (above) with the exception that it returns the user's true userId and not 1.


      We are able to get the username and userid after the user logs in to CAS but Clearspacex displays the "System Error" page.  The tomcat log has the following:



      Dec 4, 2007 7:01:26 PM com.opensymphony.webwork.dispatcher.DispatcherUtils servi


      SEVERE: Could not execute action


      Method public static java.lang.String com.jivesoftware.util.StringUtils.getTimeF

      romLong(long,int) threw an exception

      The problematic instruction:

      ==> ${StringUtils.getTimeFromLong(objectDate.time?long, 1)} [on line 257, column

      65 in template/global/main.ftl]


      Java backtrace for programmers:

      freemarker.template.TemplateModelException: Method public static java.lang.Strin

      g com.jivesoftware.util.StringUtils.getTimeFromLong(long,int) threw an exception

              at freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel


              at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)

              at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)

              at freemarker.core.Expression.getStringValue(Expression.java:93)


      Any suggestions would be greatly appreciated.