FormLoginServet servlet not found exception. - Websphere

This is a discussion on FormLoginServet servlet not found exception. - Websphere ; Hi I'm using form based authentication for my web application. However, when i try to login, I'm getting [FormLoginServlet]: servlet not found exception. Any inputs on what could be the possible reason for this would be of great help. Please ...

+ Reply
Results 1 to 4 of 4

Thread: FormLoginServet servlet not found exception.

  1. #1
    Senior Member
    Join Date
    Jan 2010
    Posts
    3,655

    Default FormLoginServet servlet not found exception.

    Hi

    I'm using form based authentication for my web application.

    However, when i try to login, I'm getting [FormLoginServlet]: servlet
    not found exception. Any inputs on what could be the possible reason
    for this would be of great help.

    Please find attached the exception trace:

    [Servlet Error]-[FormLoginServlet]:
    com.ibm.ws.webcontainer.servlet.exception.ServletN otFoundException:
    Servlet Not Found: FormLoginServlet
    at com.ibm.ws.webcontainer.webapp.WebAppServletManage r.getServletReference(WebAppServletManager.java:38 5)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletRe ference(WebApp.java:589)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cherInfo.calculateInfo(WebAppRequestDispatcherInfo .java:140)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cherInfo.<init>(WebAppRequestDispatcherInfo.java:5 9)
    at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDi spatcher(WebApp.java:1415)
    at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDi spatcher(WebApp.java:1376)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleIn vocationHook(WebAppInvoker.java:196)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInv ocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcesso r.dispatchByURI(ServletRequestProcessor.java:182)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDis patcher.service(OSEListener.java:331)
    at com.ibm.ws.webcontainer.http.HttpConnection.handle Request(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleReques t(HttpConnection.java:432)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection. java:343)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:592)

    Thanks
    Ashok.

  2. #2
    Senior Member
    Join Date
    Jan 2010
    Posts
    3,655

    Default Re: FormLoginServet servlet not found exception.

    What is FormLoginServlet? Is this a servlet that you have defined in
    your web.xml deployment descriptor? Is it a subclass of
    j_security_check servlet?

    I would use the j_security_check servlet as explained in the WebSphere
    Security Redbook (sg246573). Make sure you have global security
    enabled for it to work. Here is a sample logon.jsp that posts to the
    j_security_check servlet:

    <!-- ............... -->
    <form method="post" action="/itsobank/j_security_check">
    <table width="80%"><tr><td width="20%" align="right">
    Userid:</td><td><input size="20" type="text" name="j_username"
    maxlength="25">
    </td></tr><tr><td align="right">
    Password:</td><td><input size="20" type="password" name="j_password"
    maxlength="25">
    </td></tr><tr><td></td><td>
    <input type="submit" name="action" value="Login">&nbsp;<input
    type="reset"
    name="reset" value="Clear">
    </td></tr></table>
    </form>
    <!-- ............... -->

  3. #3
    Senior Member
    Join Date
    Jan 2010
    Posts
    3,655

    Default Re: FormLoginServet servlet not found exception.

    Ashok,

    Have you turned on global Security?

    The FormLoginServelt is available only when Securiyt is enabled and
    your application states that it it uses FormBased Login in the web.xml


    FYI: The implementation of j_security_check is the FormBasedLogin
    Servlet.

    HTH
    Manglu

  4. #4
    Senior Member
    Join Date
    Jan 2010
    Posts
    3,655

    Default Re: FormLoginServet servlet not found exception.

    Hi Phil

    I didn't enable security in WAS and was able to resolve the same by
    enabling it. Thanks for mentioning the same.

    btw, FormLoginServlet class is part of websphere library and is
    present in securityimpl.jar under WebSphere/AppServer/lib.
    FormLoginServlet is being used by WAS for form based authentication.

    Thanks
    ashok.



    phill002evensatnetscapedotnet (Phill) wrote in message news:<a5b80260.0405140617.6bb2e92aatpostingdotgoog le.com>...
    > What is FormLoginServlet? Is this a servlet that you have defined in
    > your web.xml deployment descriptor? Is it a subclass of
    > j_security_check servlet?
    >
    > I would use the j_security_check servlet as explained in the WebSphere
    > Security Redbook (sg246573). Make sure you have global security
    > enabled for it to work. Here is a sample logon.jsp that posts to the
    > j_security_check servlet:
    >
    > <!-- ............... -->
    > <form method="post" action="/itsobank/j_security_check">
    > <table width="80%"><tr><td width="20%" align="right">
    > Userid:</td><td><input size="20" type="text" name="j_username"
    > maxlength="25">
    > </td></tr><tr><td align="right">
    > Password:</td><td><input size="20" type="password" name="j_password"
    > maxlength="25">
    > </td></tr><tr><td></td><td>
    > <input type="submit" name="action" value="Login">&nbsp;<input
    > type="reset"
    > name="reset" value="Clear">
    > </td></tr></table>
    > </form>
    > <!-- ............... -->


+ Reply