WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Problem executing servlets

    Posted 08/11/10 10:36 AM
    Problem executing servlets

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

    Hi,
    Im using WAS 6.1 and IHS 6.1 running on different AIX machines. My application is based on PageListServlet and I don't have anything in my web.xml other than welcome-file-list. The application works by calling the servlet by class name and using a .servlet file.
    My problem is that the application does not invoke the servlet. I can access any JSP page but clicking on the submit button results in /"page cannot be displayed/" error. I checked in the webserver error log and it indicated that FILE DOES NOT EXIST : /usr/IBMHTTP/.....
    This entry(/usr/IBMHTTP/.....) is mentioned in the DocumentRoot of httpd.conf.
    However i deployed a sample servlet application(which has servlet entry in web.xml) and it works fine with the same configuration.

    Im completly stuck up and have no clue regarding this. Please let me know what is the problem.
    Thanks in advance.

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

    Posted By: Ashu at Feb 25 2009 12:46PM


  • 2.  Problem executing servlets

    Posted 08/11/10 10:44 AM
    I got the solution for this problem.
    From WAS 6.1.0.15 due to enhanced security features, the serveServletByClassNameEnabled entry needs to be added in the following path:
    Click application server --> web container settings --> web container--> custom properties--> Add a new entry serveServletByClassNameEnabled and its value as true.

    This will enable a servlet to be called by its class name.
    Thanx.

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

    Posted By: Ashu at Mar 27 2009 10:31AM