IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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.


#TechXchangePresenter
 View Only
  • 1.  "Servlet jsp is not available"

    Posted Wed August 07, 2013 10:08 AM

    I’m trying to get the WmSamples JavaServer Pages Sample to work but all I get is “HTTP Status 404 - Servlet jsp is not available” on http://tech.forums.softwareag.com:5555/web/WmSamples/showCustomerData.jsp. The index.html at http://tech.forums.softwareag.com:5555/web/WmSamples/ displays correctly as far as I can tell. Also the http://tech.forums.softwareag.com:5555/web/WmTomcat/index.jsp renders correctly

    Anyone got any ideas on how to get the jsp pages to work outside the WmTomcat/web folder?

    I’m working on IS 8.2.2.0


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: "Servlet jsp is not available"

    Posted Thu November 05, 2015 05:18 AM

    Dear Niklas-san and all,

    Hi. We are getting the same problem.
    Coudl you sincerely how did you resolve the problem.

    Why is the following page “Not found” with the attached IS package.
    http://localhost:5555/web/JSPSample/index.jsp

    *The following page renders correctly.
    http://localhost:5555/web/WmTomcat/index.jsp

    Best regards,
    Shogo Tatsuzawa
    JSPSample_20151105.zip (25.8 KB)


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 3.  RE: "Servlet jsp is not available"

    Posted Thu November 05, 2015 05:49 AM

    Dear Mr Tatsuzawa,

    We found that we were using the wrong URL to get the wanted function. If we instead of the URL above used the following it worked:
    http://tech.forums.softwareag.com:5555/invoke/sample.jsp/getCustomerData?

    Hope this helps

    Kind Regards

    Niklas Ottosson


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 4.  RE: "Servlet jsp is not available"

    Posted Thu November 05, 2015 05:57 AM

    Niklas Ottosson-san,

    Thanks for the reply very much.

    I just found the cause of my problem.
    I added “Package Dependency” on “JSPSample” package to “WmTomcat” package.

    After reloading “JSPSample” package, I can confirm the following page.
    http://localhost:5555/web/JSPSample/index.jsp

    Best regards,
    Shogo Tatsuzawa


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 5.  RE: "Servlet jsp is not available"

    Posted Thu November 05, 2015 09:38 PM

    Niklas Ottosson-san,

    Thanked for your support this issue yesterday.

    If possible, could you send or relate your “WmSamples/web/WEB-INF/web.xml” for my study?

    Best regards,
    Shogo Tatsuzawa


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: "Servlet jsp is not available"

    Posted Fri November 06, 2015 08:49 AM

    Hi,

    setting a dependency to the WmTomcat-Package sounds good, as this forces the Samples-Package to be loaded after the WmTomcat-package has loaded completely. Additionally they are running in the same class loading context (derived from WmTomcat).

    If there any issues loading packages which contains JSP for Tomcat (“no valid context found”)
    check for IntegrationServer/web/work/WmTomcat/localhost/ directory.

    Delete the directory for the affected packages (web_) and reload the package.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 7.  RE: "Servlet jsp is not available"

    Posted Sun November 08, 2015 08:11 PM

    Dear Holger-san,

    Thanks for the tip very much.

    Delete the directory for the affected packages (web_) and reload the package.

    I just confirm the location of (web_) as below.

    C:\SoftwareAG\IntegrationServer\instances\default\web\work\WmTomcat\localhost\web
    C:\SoftwareAG\IntegrationServer\instances\default\web\work\WmTomcat\localhost\web_JSPSample
    C:\SoftwareAG\IntegrationServer\instances\default\web\work\WmTomcat\localhost\web_WmTomcat

    When I have any problem regarding JSP pages, I will try to delete them and reload the packages.

    Best regards,
    Shogo Tatsuzawa


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB