Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [higgins-dev] Problem deploying TokenService M6

Thanks Sergey :)

Your tweak into the ManagedConfiguration worked as a charm. But I think that I found a strange behavour... I mean, this tweak seems only needed when de deploy is made in a Tomcat 6.0 platform. One member of our team managed to deploy a 1.1M6 TokenService over a Tomcat 5.5 platform + Java 5.0 without needing to use that redundant configuration.

I'll make a bit more research but thank you for your help with my problem :)

Thanks,
---
David Campos


On Fri, Jul 17, 2009 at 13:41, Sergey Lyakhov <slyakhov@xxxxxxxxxxxxxx> wrote:
David,
 
Do not move it. Actually, it is redundant, but  "Instance" setting is required for both sections. There already exists an empty map Configuration/ComponentSettings/JNDIContextFactory (line 358 of your ManagedConfiguration-m6.xml ). It must contain "Instance" and "ContextTypes" as I wrote earlier. I attached ManagedConfiguration-m6.xml with appropriate changes.
 
Thanks,
Sergey Lyakhov
Sent: Friday, July 17, 2009 2:18 PM
Subject: Re: [higgins-dev] Problem deploying TokenService M6

Do you mean that the section JNDIContextFactory inside IdentityAttributeService must go into the other section or what?

Option A:

<Setting Name="XMLSecurityExtension" Type="htf:map">
</Setting>
<Setting Name="JNDIContextFactory" Type="htf:map"/>
</Setting>
<Setting Name="IdentityAttributeService" Type="htf:map">
        <Setting Name="ContextFactoryInstancesList" Type="htf:list">
                <Setting Name="JNDIContextFactory" Type="htf:map">
                        <Setting Name="Instance" Type="xsd:string">JNDIContextFactory</Setting>
                        <Setting Name="ContextTypes" Type="htf:list">
                                <Setting Name="LDAPContextType" Type="xsd:string">$context+ldap</Setting>
                        </Setting>
                </Setting>
        </Setting>

Option B:

<Setting Name="XMLSecurityExtension" Type="htf:map">
</Setting>
<Setting Name="JNDIContextFactory" Type="htf:map"/>
<Setting Name="Instance" Type="xsd:string">JNDIContextFactory</Setting>
          <Setting Name="ContextTypes" Type="htf:list">
                    <Setting Name="LDAPContextType" Type="xsd:string">$context+ldap</Setting>
           </Setting>
</Setting>
<Setting Name="IdentityAttributeService" Type="htf:map">
        <Setting Name="ContextFactoryInstancesList" Type="htf:list">
                <Setting Name="JNDIContextFactory" Type="htf:map">
                </Setting>
        </Setting>

---
David Campos


On Fri, Jul 17, 2009 at 10:47, Sergey Lyakhov <slyakhov@xxxxxxxxxxxxxx> wrote:
David,
 
> I have used the ConfigurationFiles that come inside org.eclipse.higgins.stst.binding.axis1x.service and I changed all the params to match my configuration.
> I have to say that I made it before asking you for help so I guess that the "root cause" may not be there.
Source code has been changed. Your stacktrace says that JNDIContextFactory was not initialized with ContextTypes list. I reviewed JNDIContextFactory/IdASRegistry for 1.1M6 and suppose you need to replace "JNDIContextFactory" setting
 
   <Setting Name="JNDIContextFactory" Type="htf:map"/>
 
in the following way:
 
   <Setting Name="JNDIContextFactory" Type="htf:map">
      <Setting Name="Instance" Type="xsd:string">org.eclipse.higgins.idas.cp.jndi.JNDIContextFactory</Setting>

      <Setting Name="ContextTypes" Type="htf:list">
       <Setting Name="LDAPContextType" Type="xsd:string">$context+ldap</Setting>
      </Setting>
     </Setting>
Hope it will help.
 
Thanks,
Sergey Lyakhov
----- Original Message -----
Sent: Friday, July 17, 2009 10:12 AM
Subject: Re: [higgins-dev] Problem deploying TokenService M6

Sorry for the late reply,

I have used the ConfigurationFiles that come inside org.eclipse.higgins.stst.binding.axis1x.service and I changed all the params to match my configuration. I have to say that I made it before asking you for help so I guess that the "root cause" may not be there.

Also, there are no big differences between 1.1M1 ManagedConfiguration file and 1.1M6. The changes are this ones:
  • There isn't the Base64Extension setting inside ComponentSettings
  • There are a few more token settings that are for SAML2.0
  • ALFClaimHandler has disappeared.
I'll try to find out the solution myself in the next hours but if you want I'll send you both of my config files M1 and M6 ones.

---
David Campos


On Thu, Jul 16, 2009 at 16:55, Sergey Lyakhov <slyakhov@xxxxxxxxxxxxxx> wrote:
Paul,
 
> But what was the “root cause” here? Are the build instructions, etc. wrong? What do you think happened?
 
The “root cause" is that configuration mechanism of IdASRegistry/JNDI CP has been changed since 1.1M1.  I suppose David needs to use org.eclipse.higgins.sts.binding.axis1x.service\WebContent\ConfigurationFiles\ManagedConfiguration.xml file from 1.1M6, however I do not have an experience to deploy STS with JNDI CP since 1.1M0 and do not know which additional changes where there.
 
Thanks,
Sergey Lyakhov
----- Original Message -----
Sent: Thursday, July 16, 2009 4:44 PM
Subject: Re: [higgins-dev] Problem deploying TokenService M6

Thanks Sergey. But what was the “root cause” here? Are the build instructions, etc. wrong? What do you think happened?


On 7/16/09 9:38 AM, "Sergey Lyakhov" <slyakhov@xxxxxxxxxxxxxx> wrote:

David,

It looks you missed "ContextTypes" list for JNDI context cactory in your configuration file.

........................
   <Setting Name="IdentityAttributeService" Type="htf:map">
    <Setting Name="ContextFactoryInstancesList" Type="htf:list">
     <Setting Name="JNDIContextFactory" Type="htf:map">
      <Setting Name="Instance" Type="xsd:string">JNDIContextFactory</Setting>
      <Setting Name="ContextTypes" Type="htf:list">
       <Setting Name="LDAPContextType" Type="xsd:string">$context+ldap</Setting>
      </Setting>
     </Setting>
    </Setting>
........................

Thanks,
Sergey Lyakhov

----- Original Message -----
 
From:  David Campos <mailto:noymn.the.archangel@xxxxxxxxx>  
 
To: Higgins (Trust Framework) Project  developer discussions <mailto:higgins-dev@xxxxxxxxxxx>  
 
Sent: Thursday, July 16, 2009 4:16  PM
 
Subject: [higgins-dev] Problem deploying  TokenService M6
 

Hello all,

After a long time using Higgins TokenService  1.1M1 we have decided to migrate to the last milestone available. I have done  all proper configurations and add the right libraries (including the ones that  don't come into the war package).

The problem I've found is that the  app fails on configuration while is trying to configure the IdasRegistry  component.

This is the trace of the log:

 
5:10:57,790  DEBUG MapHandler.getSetting (117):] Adding Map Entry for Name:  ComponentSettings
[15:10:57,791 DEBUG SingletonHandler.getSetting (45):]  Setting Name: XMLSecurityExtension Value:  org.eclipse.higgins.sts.xmlsecurity.apache.XMLSecurityApacheExtensionFactory
[15:10:57,797  DEBUG LogHelper.trace (71):]  XMLSecurityApacheExtension:XMLSecurityApacheExtension
[15:10:57,800 DEBUG  LogHelper.trace (71):] XMLSecurityApacheExtension:configure
[15:10:57,857  DEBUG LogHelper.trace (71):] SignatureAlgorithm: http://www.w3.org/2000/09/xmldsig#rsa-sha1
[15:10:57,858  DEBUG LogHelper.trace (71):] SignatureCanonicalizationAlgorithm: http://www.w3.org/2001/10/xml-exc-c14n#
[15:10:57,858  DEBUG LogHelper.trace (71):] ReferenceCanonicalizationAlgorithm: http://www.w3.org/2001/10/xml-exc-c14n#
[15:10:57,858  DEBUG LogHelper.trace (71):] ReferenceDigestAlgorithm: http://www.w3.org/2000/09/xmldsig#sha1
[15:10:57,859  DEBUG LogHelper.trace (71):] EncryptionAlgorithm: http://www.w3.org/2001/04/xmlenc#aes256-cbc
[15:10:57,859  DEBUG LogHelper.trace (71):] EncryptionAlgorithmProvider:  null
[15:10:57,860 DEBUG LogHelper.trace (71):]  EncryptionDigestAlgorithm: http://www.w3.org/2000/09/xmldsig#sha1
[15:10:57,860  DEBUG LogHelper.trace (71):] EncryptionKeyGeneratorAlgorithm:  AES
[15:10:57,860 DEBUG LogHelper.trace (71):]  EncryptionKeyGeneratorSize: 256
[15:10:57,861 DEBUG LogHelper.trace  (71):] EncryptionKeyGeneratorAlgorithmProvider: null
[15:10:57,861 DEBUG  LogHelper.trace (71):] EncryptionKeyWrapAlgorithm: http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p
[15:10:57,863  DEBUG LogHelper.trace (71):] EncryptionKeyWrapAlgorithmProvider:  null
[15:10:57,863 DEBUG MapHandler.getSetting (117):] Adding Map Entry  for Name: XMLSecurityExtension
[15:10:57,864 DEBUG  ClassInstanceHandler.getSetting (80):] Setting Name: JNDIContextFactory  Value: org.eclipse.higgins.idas.cp.jndi.JNDIContextFactory
[15:10:57,870  DEBUG MapHandler.getSetting (117):] Adding Map Entry for Name:  JNDIContextFactory
[15:10:57,870 DEBUG ClassSingletonHandler.getSetting  (46):] Setting Name: IdentityAttributeService Value:  org.eclipse.higgins.idas.registry.IdASRegistry
[15:10:57,877 ERROR  ConfigurationHandler.configure (439):]
[15:10:57,877 ERROR  LogHelper.error (119):] modifyProfile: null
[15:10:57,878 ERROR  LogHelper.error (119):] java.lang.NullPointerException
[15:10:57,881  ERROR LogHelper.error (119):]  org.eclipse.higgins.idas.registry.IdASRegistry::registerContextFactory  IdASRegistry.java:467.
[15:10:57,882 ERROR LogHelper.error (119):]  org.eclipse.higgins.idas.registry.IdASRegistry::configure  IdASRegistry.java:291.
[15:10:57,882 ERROR LogHelper.error (119):]  org.eclipse.higgins.configuration.xml.ClassSingletonHandler::getSetting  ClassSingletonHandler.java:81.
[15:10:57,883 ERROR LogHelper.error  (119):] org.eclipse.higgins.configuration.xml.MapHandler::getSetting  MapHandler.java:108.
[15:10:57,883 ERROR LogHelper.error (119):]  org.eclipse.higgins.configuration.xml.ConfigurationHandler::configure  ConfigurationHandler.java:425.
[15:10:57,884 ERROR LogHelper.error  (119):]  org.eclipse.higgins.configuration.xml.ConfigurationHandler::configure  ConfigurationHandler.java:291.
[15:10:57,884 ERROR LogHelper.error  (119):] org.eclipse.higgins.sts.utilities.Configuration::configure  Configuration.java:60.

I don't know which is the reason of  this error... could you help me?

---
David Campos
 

 



_______________________________________________
higgins-dev mailing  list
higgins-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/higgins-dev


_______________________________________________
higgins-dev mailing list
higgins-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/higgins-dev

_______________________________________________
higgins-dev mailing list
higgins-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/higgins-dev



_______________________________________________
higgins-dev mailing list
higgins-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/higgins-dev

_______________________________________________
higgins-dev mailing list
higgins-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/higgins-dev



_______________________________________________
higgins-dev mailing list
higgins-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/higgins-dev


_______________________________________________
higgins-dev mailing list
higgins-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/higgins-dev



Back to the top