Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
7 replies Latest Post - ‏2012-11-26T18:27:21Z by Jacek_Laskowski
sun1431
sun1431
16 Posts
ACCEPTED ANSWER

Pinned topic Form-based login -Turning on Global Securty throwing WSlogin Exception

‏2012-11-25T21:37:02Z |
Hi,
I am trying to implement form-based login using Ldap registery.
Now after configuring web.xml and application.xml to implement form-based login I deployed the application and turned on the Global Secuting and application security. I also set the ldap regisetry and test it.
When I re-started the WAS I saw Exception in WSLogin as below:
11/25/12 12:54:26:653 PST FFDC Exception:java.lang.NullPointerException SourceId:com.ibm.ws.security.auth.ContextManagerImpl.login ProbeId:4849 Reporter:com.ibm.ws.security.auth.ContextManagerImpl@4702f690
java.lang.NullPointerException
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:4679)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:4385)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:4381)
at com.ibm.ISecurityLocalObjectGSSUPImpl.WSSecurityContextImpl.acceptSecContext(WSSecurityContextImpl.java:418)
at com.ibm.ISecurityLocalObjectGSSUPImpl.WSSecurityContextImpl.acceptSecContext(WSSecurityContextImpl.java:302)
at com.ibm.ISecurityLocalObjectGSSUPImpl.SecurityContextImpl.csi_initialize(SecurityContextImpl.java:413)
at com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRIBase.authenticateSecurityTokens(CSIServerRIBase.java:4550)
at com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRI.receive_request(CSIServerRI.java:585)
at com.ibm.rmi.pi.InterceptorManager.invokeInterceptor(InterceptorManager.java:624)
at com.ibm.rmi.pi.InterceptorManager.iterateServerInterceptors(InterceptorManager.java:528)
at com.ibm.rmi.pi.InterceptorManager.iterateReceiveRequest(InterceptorManager.java:770)
at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:658)
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:523)
at com.ibm.rmi.iiop.ORB.process(ORB.java:523)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1575)
at com.ibm.rmi.iiop.Connection.doRequestWork(Connection.java:2992)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2875)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:64)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1814)

Don't understand what is going on, but I guess due to this I cannot see login page.
I also tried to take out my application and kept the gloabl security on and had same exception.
Can someone please help me. I am attaching the excepiton files.
thank you
Mansih
  • sun1431
    sun1431
    16 Posts
    ACCEPTED ANSWER

    Re: Form-based login -Turning on Global Securty throwing WSlogin Exception

    ‏2012-11-25T21:42:08Z  in response to sun1431
    Below is what I see in SystemOut.log

    11/25/12 13:42:54:764 PST 0000003e DMAdapter I com.ibm.ws.ffdc.impl.DMAdapter getAnalysisEngine FFDC1009I: Analysis Engine using data base: C:\Program Files (x86)\IBM\WebSphere\AppServer85\profiles\qidServer\properties\logbr\ffdc\adv\ffdcdb.xml
    11/25/12 13:42:54:779 PST 0000003e FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files (x86)\IBM\WebSphere\AppServer85\profiles\qidServer\logs\ffdc\qidServer_f5d48e28_12.11.25_13.42.54.7646589544295930468888.txt com.ibm.ws.security.auth.ContextManagerImpl.login 4849
    11/25/12 13:42:54:795 PST 0000003e FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files (x86)\IBM\WebSphere\AppServer85\profiles\qidServer\logs\ffdc\qidServer_f5d48e28_12.11.25_13.42.54.7797805271943112613050.txt com.ibm.websphere.security.auth.WSLoginFailedException 250
    11/25/12 13:42:54:857 PST 0000003e FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files (x86)\IBM\WebSphere\AppServer85\profiles\qidServer\logs\ffdc\qidServer_f5d48e28_12.11.25_13.42.54.7791054079590358352268.txt com.ibm.ISecurityLocalObjectGSSUPImpl.WSSecurityContextImpl.acceptSecContext 380
    11/25/12 13:42:54:873 PST 0000003e FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files (x86)\IBM\WebSphere\AppServer85\profiles\qidServer\logs\ffdc\qidServer_f5d48e28_12.11.25_13.42.54.8578978801762816927515.txt com.ibm.websphere.security.auth.WSSecurityContextException 190
    11/25/12 13:42:54:920 PST 0000003e FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files (x86)\IBM\WebSphere\AppServer85\profiles\qidServer\logs\ffdc\qidServer_f5d48e28_12.11.25_13.42.54.8577877827235136031012.txt com.ibm.ISecurityLocalObjectGSSUPImpl.WSSecurityContextImpl.acceptSecContext 423
    11/25/12 13:42:54:920 PST 0000003e FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files (x86)\IBM\WebSphere\AppServer85\profiles\qidServer\logs\ffdc\qidServer_f5d48e28_12.11.25_13.42.54.920423428990077477598.txt com.ibm.ISecurityLocalObjectGSSUPImpl.SecurityContextImpl.csi_initialize 460
    11/25/12 13:42:54:935 PST 0000003e FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files (x86)\IBM\WebSphere\AppServer85\profiles\qidServer\logs\ffdc\qidServer_f5d48e28_12.11.25_13.42.54.935831952616493692444.txt com.ibm.ISecurityLocalObjectGSSUPImpl.SecurityContextImpl.csi_initialize 695
    11/25/12 13:42:54:951 PST 0000003e FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files (x86)\IBM\WebSphere\AppServer85\profiles\qidServer\logs\ffdc\qidServer_f5d48e28_12.11.25_13.42.54.9518823186814732404510.txt com.ibm.websphere.security.auth.WSLoginFailedException 250
    11/25/12 13:42:55:013 PST 0000003e FfdcProvider W com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\Program Files (x86)\IBM\WebSphere\AppServer85\profiles\qidServer\logs\ffdc\qidServer_f5d48e28_12.11.25_13.42.54.9351715042250079417774.txt com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRIBase.authenticateSecurityTokens 4556
    • kark
      kark
      26 Posts
      ACCEPTED ANSWER

      Re: Form-based login -Turning on Global Securty throwing WSlogin Exception

      ‏2012-11-26T13:43:08Z  in response to sun1431
      Hi,

      The problem indicates that there is a remote RMI call being made into this server and it fails when trying the authenticate using tokens sent in that request. Is this a Network Deployment setup? Any other server trying to communicate with this? We would need more data on the scenario to analyze this more. If this problem persits, you might want to open a problem report (PMR) for the service team to investigate.

      Also, since this is related to the full profile application server, the correct place to post this is the full profile application server newsgroup

      --Ajay
  • sun1431
    sun1431
    16 Posts
    ACCEPTED ANSWER

    Re: Form-based login -Turning on Global Securty throwing WSlogin Exception

    ‏2012-11-26T16:24:07Z  in response to sun1431
    As I said in my previous post that if I just enable global security without deploying any application and start the local server it throws those exception.
    This is not ND environment. This is installed on my laptop and everything is local like RAD etc.
    Thank you
    Manish
    • sun1431
      sun1431
      16 Posts
      ACCEPTED ANSWER

      Re: Form-based login -Turning on Global Securty throwing WSlogin Exception

      ‏2012-11-26T16:30:30Z  in response to sun1431
      For got to mention that I tried same(configure ldap for bluepages and just enable global security) on websphere 7.0.19 installed at other winXP machine , I had the same problem.
      Thank you
      Manish
      • kark
        kark
        26 Posts
        ACCEPTED ANSWER

        Re: Form-based login -Turning on Global Securty throwing WSlogin Exception

        ‏2012-11-26T17:41:53Z  in response to sun1431
        A typical standalone server bringup should not see any RMI receive_request calls so there must be something else in the setup that might be causing this to go through this code path. Do you have any other servers where this is not an issue and if so, any differences in the setup? If not, you can open a service request to have us look into this more.

        --Ajay
        • sun1431
          sun1431
          16 Posts
          ACCEPTED ANSWER

          Re: Form-based login -Turning on Global Securty throwing WSlogin Exception

          ‏2012-11-26T18:18:03Z  in response to kark
          Hi Ajay,
          I tried on two Websphere version 7.0 and 8.5 on different and same machine, had the same error.
          Ca you pleasae point me to service request link.
          Thank you
          Manish
  • Jacek_Laskowski
    Jacek_Laskowski
    133 Posts
    ACCEPTED ANSWER

    Re: Form-based login -Turning on Global Securty throwing WSlogin Exception

    ‏2012-11-26T18:27:21Z  in response to sun1431
    Hi,

    It appears you use the full WebSphere Application Server and as "This forum is for the WASdev community members to interact with each other and with the WAS development staff on questions and issues related to the WASdev community (wasdev.net)." you may consider posting the question to the WebSphere Application Server forum instead.

    Jacek
    Japila :: verba docent, exempla trahunt