Skip to Content.
Sympa Menu

shibboleth-dev - Re: [Shib-Dev] how to check if source code is working

Subject: Shibboleth Developers

List archive

Re: [Shib-Dev] how to check if source code is working


Chronological Thread 
  • From: Chad La Joie <>
  • To:
  • Subject: Re: [Shib-Dev] how to check if source code is working
  • Date: Thu, 02 Apr 2009 10:56:30 +0200
  • Openpgp:
  • Organization: SWITCH

There isn't an easy answer to that question.

I can tell you how to check if your new file was incorporated in to the
WAR but whether it was deployed or not is wholly dependent on your
servlet container.

To check the WAR you'll need to explode it (it's just a jar/zip file so
you can do jar -xf 'idp.war'), then look for the jar that contains your
file (probably either the shib-commons or idp jar file) and explode
that. Then compare the class you compiled with the one in the jar. If
they're the same then you have your answer for whether the latest one is
in the WAR.

If you need to know how your servlet container works then you need to
contact whoever makes it.

Volodymyr Borovik wrote:
> Hello Chad La Joie,
>
> of course I have the IDP and service provider.
> The question is how can one be sure that the changes which one does to
> the JAVA code are really applied in IDP?
>
> How can one test the single classes from IDP?
>
> I make the changes in the source code and want to have a proof that my
> code was compiled and deployed.
> Thanx.
>
> Chad La Joie wrote:
>> If you wish to test an IdP you need a service provider. SPs are the
>> clients to IdPs. You can try using the accli command included with the
>> IdP but this will only tests part of the attribute query functionality.
>>
>> Volodymyr Borovik wrote:
>>> Dear all,
>>>
>>> how can one check if the compiled & deployed source code of shibboleth
>>> IDP is working?
>>>
>>> In Java I was using the output commands to check the values of
>>> variables: i.e. System.out.println(" ") or writing to the output file.
>>>
>>> As far as I see these commands are not allowed in IDP.
>>> How can I see that the code is really executed?
>>>
>>> Thank you.
>>> --
>>> Regards,
>>> Volodymyr Borovik
>>

--
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Net Services
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
,
http://www.switch.ch




Archive powered by MHonArc 2.6.16.

Top of Page