IBM Support

Error 404: java.io.FileNotFoundException when running a RESTful application in CICS Liberty

Question & Answer


Question

Why does my browser return " Error 404: java.io.FileNotFoundException: SRVE0190E: File not found: ..... " when I enter an HTTP GET for a JAX-RS RESTful Java(TM) application deployed into a CICS Liberty JVM server?

Answer

When deploying a JAXRS application the Liberty JAXRS feature must be defined in the Liberty server.xml configuration file, as only the servlet and JSP features are added by default.

Add either of the following to the element:

  • jaxrs-1.1 for Java EE 6 web applications

  • jaxrs-2.0 for Java EE 7 web applications

Phil Wakelin
IBM CICS Design & Strategy - Java Adoption

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGMGV","label":"CICS Transaction Server"},"Platform":[{"code":"PF035","label":"z\/OS"}],"Component":"Liberty","Version":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Product Synonym

CICS/TS CICSTS CICS TS CICS Transaction Server

Document Information

Modified date:
02 March 2017

UID

dwa1359351