Hi,

Sorry that I forgot to mention that I have added cas-server-support-saml to
the client CAS server.  The final opensaml jar will be resolved to 2.5.1-1
instead of 1.1b and so it breaks
the cas-client-core dependency.

Any fixes that pac4j-cas and cas-server-support-saml can be used together?

Regards,
-Ken


On Thu, Apr 25, 2013 at 11:55 AM, Ken LAI <ccyf...@gmail.com> wrote:

> Hi,
>
> I download a clean cas-oauth-client-demo and switch to SAML for CasClient
> in the client CAS server.  It returns the same
> java.lang.NoClassDefFoundError: org/opensaml/SAMLException on jetty:run.
>
> Regards,
> -Ken
>
>
> On Thu, Apr 25, 2013 at 10:31 AM, Ken LAI <ccyf...@gmail.com> wrote:
>
>> It seems that the problem is only existed when I deploy the war into web
>> container.  Here is the exception:
>>
>> Caused by:
>> java.lang.NoClassDefFoundError: org/opensaml/SAMLException
>>  at org.pac4j.cas.client.CasClient.internalInit(CasClient.java:184)
>> at
>> org.pac4j.core.util.InitializableObject.init(InitializableObject.java:37)
>>  at
>> org.pac4j.core.client.BaseClient.getRedirectionUrl(BaseClient.java:114)
>> at org.pac4j.core.client.BaseClient.getRedirectionUrl(BaseClient.java:110)
>>  at
>> org.jasig.cas.support.pac4j.web.flow.ClientAction.prepareForLoginPage(ClientAction.java:202)
>> at
>> org.jasig.cas.support.pac4j.web.flow.ClientAction.doExecute(ClientAction.java:172)
>>         ...
>>
>> It seems to be the Saml11TicketValidator class loading problem.
>>
>>
>> https://github.com/leleuj/pac4j/blob/master/pac4j-cas/src/main/java/org/pac4j/cas/client/CasClient.java#L184
>>
>> So no problem is found with CAS20 protocol.
>>
>> Regards,
>> -Ken
>>
>>
>>
>> On Thu, Apr 25, 2013 at 12:48 AM, jleleu <lel...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> It should have worked even with the SNAPSHOT artifacts.
>>> Anyway, I know about the remaing SNAPSHOT pac4j-core : waiting for the
>>>  pull request : https://github.com/Jasig/cas/pull/234, still being
>>> discussed and reviewed...
>>> Best regards,
>>> Jérôme
>>>
>>> --
>>> You are currently subscribed to cas-dev@lists.jasig.org as:
>>> ccyf...@gmail.com
>>> To unsubscribe, change settings or access archives, see
>>> http://www.ja-sig.org/wiki/display/JSG/cas-dev
>>>
>>
>>
>

-- 
You are currently subscribed to cas-dev@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

Reply via email to