Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3049

RESTEasy: Empty cfg. param resteasy.resources produces exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Blocker
    • None
    • 7.1.0.Beta1b
    • REST
    • None

    Description

      When I use empty content for configuration parameter of RESTEasy resteasy.resources in web.xml like:

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="false">
      
         <servlet-mapping>
            <servlet-name>javax.ws.rs.core.Application</servlet-name>
            <url-pattern>/myjaxrs/*</url-pattern>
         </servlet-mapping>
                                                                                                                                                                                   
         <context-param>
            <param-name>resteasy.resources</param-name>
            <param-value></param-value>
         </context-param>
      </web-app>"
      

      I've got exception "java.lang.StringIndexOutOfBoundsException: String index out of range: 0" - this is very similar as in JBPAPP-7715.

      I think empty list of resources is also appropriate input (cfg), so AS7 should accommodate it.

      Attachments

        Issue Links

          Activity

            People

              weinanli Weinan Li
              pjanouse@redhat.com Pavel Janousek
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: