IC5Notice: We have upgraded developerWorks Community to the latest version of IBM Connections. For more information, read our upgrade FAQ.
Topic
  • 3 replies
  • Latest Post - ‏2013-08-06T01:50:26Z by ShunsukeIshikawa
ShunsukeIshikawa
ShunsukeIshikawa
6 Posts

Pinned topic WSLoginModuleProxy

‏2013-08-05T07:21:50Z |

HI,

Now I am implementing programmatic login code on WLP. The code is like below.

LoginContext context = new javax.security.auth.login.LoginContext("WSLogin", ...);
context.login();

But login method throws following exception.

"javax.security.auth.login.LoginException: LoginModule class was not found com.ibm.ws.security.authentication.internal.jaas.modules.WSLoginModuleProxy"

According to the info center, there is not additional configuration to utilize WAS's default login module.

Does anyone know how to fix this??

Thanks in advance.

  • utle@us.ibm.com
    utle@us.ibm.com
    8 Posts

    Re: WSLoginModuleProxy

    ‏2013-08-05T13:49:59Z  

    Hi Shunsuke,

    If you have security feature in the server.xml file, there is no other configuration that is needed to use the default login module. What is the Liberty version that you use? Can you post the server.xml file that you use.

     

    Thanks,

    Ut Le

     

  • ShunsukeIshikawa
    ShunsukeIshikawa
    6 Posts

    Re: WSLoginModuleProxy

    ‏2013-08-06T01:43:13Z  

    Hi Shunsuke,

    If you have security feature in the server.xml file, there is no other configuration that is needed to use the default login module. What is the Liberty version that you use? Can you post the server.xml file that you use.

     

    Thanks,

    Ut Le

     

    Hi Ut Le,

    Thank you for your response. Here is my server.xml.

    <server description="new server">
     
        <!-- Enable features -->
        <featureManager>
            <feature>jsp-2.2</feature>
            <feature>localConnector-1.0</feature>
            <feature>jaxb-2.2</feature>
       <feature>wsSecurity-1.1</feature>
    <feature>appSecurity-2.0</feature>
    </featureManager>
     
        <httpEndpoint host="localhost" httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/>
     
     
     
        <applicationMonitor updateTrigger="mbean"/>
        <basicRegistry realm="ronename">
        <user name="username" password="password"/>
        </basicRegistry>
     
        <webApplication contextRoot="ui" id="xxxxxx"
        location="xxxxxx.war" name="xxxxxx">
        <application-bnd>
        <security-role name="rolename">
        <user name="username"></user>
        </security-role>
        </application-bnd>
        <classloader apiTypeVisibility="spec,ibm-api,api,third-party">
                
                
            </classloader>
        </webApplication>
    </server>
  • ShunsukeIshikawa
    ShunsukeIshikawa
    6 Posts

    Re: WSLoginModuleProxy

    ‏2013-08-06T01:50:26Z  

    Hi Ut Le,

    Thank you for your response. Here is my server.xml.

    <server description="new server">
     
        <!-- Enable features -->
        <featureManager>
            <feature>jsp-2.2</feature>
            <feature>localConnector-1.0</feature>
            <feature>jaxb-2.2</feature>
       <feature>wsSecurity-1.1</feature>
    <feature>appSecurity-2.0</feature>
    </featureManager>
     
        <httpEndpoint host="localhost" httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/>
     
     
     
        <applicationMonitor updateTrigger="mbean"/>
        <basicRegistry realm="ronename">
        <user name="username" password="password"/>
        </basicRegistry>
     
        <webApplication contextRoot="ui" id="xxxxxx"
        location="xxxxxx.war" name="xxxxxx">
        <application-bnd>
        <security-role name="rolename">
        <user name="username"></user>
        </security-role>
        </application-bnd>
        <classloader apiTypeVisibility="spec,ibm-api,api,third-party">
                
                
            </classloader>
        </webApplication>
    </server>

    And the version is 8.5.5.0.