Deinert,

Are you sure you did get the same error after fixing your configuration? David 
is right, your JNDIContextFactory is not properly configured. 

you need to find the following (230 line in ManagedConfiguration.xml):

   <Setting Name="JNDIContextFactory" Type="htf:map">
   </Setting>

and replace with this:

     <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>

Thanks,
Sergey Lyakhov
  ----- Original Message ----- 
  From: Deinert, Florian 
  To: Higgins (Trust Framework) Project developer discussions 
  Sent: Monday, September 28, 2009 4:32 PM
  Subject: AW: [higgins-dev] RE: Higgins STS NullPointerException


  Unfortunately this doesn't fix the problem. Still NullPointerException L

   

   

  Von: [email protected] [mailto:[email protected]] 
Im Auftrag von David Campos
  Gesendet: Monday, September 28, 2009 3:26 PM
  An: Higgins (Trust Framework) Project developer discussions
  Betreff: Re: [higgins-dev] RE: Higgins STS NullPointerException

   

  Could you check the attribute ComponentSettings in your 
ManagedConfiguration.xml? It should be something like this (or maybe this could 
work since you are working against Java 6):

          <Setting Name="ComponentSettings" Type="htf:map">
              <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 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>

  There is a redundancy but seems that it is needed in order to configure IdAS 
properly.

  I hope this helps.
  ---
  David Campos



  On Mon, Sep 28, 2009 at 15:20, Deinert, Florian 
<[email protected]> wrote:

  Could you send a valid ManagedConfiguration.xml (or a short HOWTO) to me 
which meets the requirements of JNDI?!

   

  Thx

   

   

  Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Sergey Lyakhov
  Gesendet: Monday, September 28, 2009 3:11 PM
  An: Higgins (Trust Framework) Project developer discussions
  Cc: 'Brian Walker'; Paul Trevithick
  Betreff: Re: [higgins-dev] RE: Higgins STS NullPointerException

   

  Yes, I also suppose it occured because ManagedConfiguration.xml in 
org.eclipse.higgins.sts.binding.axis1x.service does not confirm to JNDI CP 
requrements. I suppose we need to prepare differnent examples of 
ManagedConfiguration.xml for each context provider and commit it to 
org.eclipse.higgins.sts.binding.axis1x.service (at least for xmlfile CP which 
can be configured more easier than JNDI CP).

   

  Thanks,
  Sergey Lyakhov

    ----- Original Message ----- 

    From: David Campos 

    To: Higgins (Trust Framework) Project developer discussions 

    Sent: Saturday, September 26, 2009 5:39 PM

    Subject: Re: [higgins-dev] RE: Higgins STS NullPointerException

     

    Now I see :) That happened to me deploying Higgins TokenService M6 on 
Tomcat 6.0 with Java 6. If it's the same problem it comes from a bad 
configuration file :)

    Follow this topic and try the solution that worked for me: 
http://www.nabble.com/Problem-deploying-TokenService-M6-to24516173.html#a24516173

    I hope this solves your problem.

    Regards,
    ---
    David Campos

    On Sat, Sep 26, 2009 at 15:09, Deinert, Florian 
<[email protected]> wrote:

    A complete stacktrace would be too long but this is where the error occurs. 
I think it's something with this JNDIContextFactory.
    Do I need any other additional jar files for JNDI?


    
[#|2009-09-26T14:30:53.612+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=httpSSLWorkerThread-8080-0;|14:30:53,612
 DEBUG LogHelper.trace (71): EncryptionKeyGeneratorSize: 256
    |#]

    
[#|2009-09-26T14:30:53.612+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=httpSSLWorkerThread-8080-0;|14:30:53,612
 DEBUG LogHelper.trace (71): EncryptionKeyGeneratorAlgorithmProvider: null
    |#]

    
[#|2009-09-26T14:30:53.612+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=httpSSLWorkerThread-8080-0;|14:30:53,612
 DEBUG LogHelper.trace (71): EncryptionKeyWrapAlgorithm: 
http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p
    |#]

    
[#|2009-09-26T14:30:53.612+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=httpSSLWorkerThread-8080-0;|14:30:53,612
 DEBUG LogHelper.trace (71): EncryptionKeyWrapAlgorithmProvider: null
    |#]

    
[#|2009-09-26T14:30:53.612+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=httpSSLWorkerThread-8080-0;|14:30:53,612
 DEBUG MapHandler.getSetting (117): Adding Map Entry for Name: 
XMLSecurityExtension
    |#]

    
[#|2009-09-26T14:30:53.612+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=httpSSLWorkerThread-8080-0;|14:30:53,612
 DEBUG ClassInstanceHandler.getSetting (80): Setting Name: JNDIContextFactory 
Value: org.eclipse.higgins.idas.cp.jndi.JNDIContextFactory
    |#]

    
[#|2009-09-26T14:30:53.627+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=httpSSLWorkerThread-8080-0;|14:30:53,627
 DEBUG MapHandler.getSetting (117): Adding Map Entry for Name: 
JNDIContextFactory
    |#]

    
[#|2009-09-26T14:30:53.643+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=httpSSLWorkerThread-8080-0;|14:30:53,627
 DEBUG ClassSingletonHandler.getSetting (46): Setting Name: 
IdentityAttributeService Value: org.eclipse.higgins.idas.registry.IdASRegistry
    |#]

    
[#|2009-09-26T14:30:53.643+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=httpSSLWorkerThread-8080-0;|14:30:53,643
 ERROR ConfigurationHandler.configure (445):
    |#]

    
[#|2009-09-26T14:30:53.643+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=httpSSLWorkerThread-8080-0;|14:30:53,643
 ERROR LogHelper.error (119): createProfile: null
    |#]

    
[#|2009-09-26T14:30:53.643+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=httpSSLWorkerThread-8080-0;|14:30:53,643
 ERROR LogHelper.error (119): java.lang.NullPointerException
    |#]

    
[#|2009-09-26T14:30:53.658+0200|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=15;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=08ad8227-17e2-461c-ac9a-e6cb12485fdd;|
    org.eclipse.higgins.idas.registry.IdASRegistry::registerContextFactory 
IdASRegistry.java:467.|#]

    
[#|2009-09-26T14:30:53.658+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=httpSSLWorkerThread-8080-0;|14:30:53,658
 ERROR LogHelper.error (119): 
org.eclipse.higgins.idas.registry.IdASRegistry::registerContextFactory 
IdASRegistry.java:467.
    |#]

    
[#|2009-09-26T14:30:53.658+0200|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=15;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=08ad8227-17e2-461c-ac9a-e6cb12485fdd;|
    org.eclipse.higgins.idas.registry.IdASRegistry::configure 
IdASRegistry.java:291.|#]

    
[#|2009-09-26T14:30:53.658+0200|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=httpSSLWorkerThread-8080-0;|14:30:53,658
 ERROR LogHelper.error (119): 
org.eclipse.higgins.idas.registry.IdASRegistry::configure IdASRegistry.java:291.
    |#]





    ....and this is the corresponding part of the ManagedConfiguration.xml

                   <!-- The name of the class that provides the factory for the 
class that implements the Apache XML Security Extension -->
                   <Setting Name="XMLSecurityExtension" 
Type="htf:singleton">org.eclipse.higgins.sts.xmlsecurity.apache.XMLSecurityApacheExtensionFactory</Setting>

                   <!-- The name of the class that provides the factory for the 
class that implements the JNDI Context Provider -->
                   <Setting Name="JNDIContextFactory" 
Type="htf:classinstance">org.eclipse.higgins.idas.cp.jndi.JNDIContextFactory</Setting>

                   <!-- The name of the class that provides the factory for the 
class that implements the IdASRegistry -->
                   <Setting Name="IdentityAttributeService" 
Type="htf:classsingleton">org.eclipse.higgins.idas.registry.IdASRegistry</Setting>

                   <!-- The name of the class that provides the factory for the 
class that implements the AppliesTo Mapper -->
                   <Setting Name="AppliesToMapper" 
Type="htf:singleton">org.eclipse.higgins.sts.server.mapper.appliesto.AppliesToMapperFactory</Setting>

    _______________________________________________
    higgins-dev mailing list
    [email protected]
    https://dev.eclipse.org/mailman/listinfo/higgins-dev

     


----------------------------------------------------------------------------

    _______________________________________________
    higgins-dev mailing list
    [email protected]
    https://dev.eclipse.org/mailman/listinfo/higgins-dev


  _______________________________________________
  higgins-dev mailing list
  [email protected]
  https://dev.eclipse.org/mailman/listinfo/higgins-dev

   



------------------------------------------------------------------------------


  _______________________________________________
  higgins-dev mailing list
  [email protected]
  https://dev.eclipse.org/mailman/listinfo/higgins-dev
_______________________________________________
higgins-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/higgins-dev

Reply via email to