Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-288

Ini file loading from classpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • Web
    • None

    Description

      I have web application that uses Shiro version 1.2.0-SNAPSHOT with Shiro.ini file on classpath. The application stopped to load ini file and returns an error:

      There is no servlet context resource corresponding to configPath '/classpath:Shiro.ini' If the resource is located elsewhere (not immediately resolveable in the servlet context), specify an appropriate classpath:, url:, or file: resource prefix accordingly.

      Extract of my Web.xml:
      <filter>
      <filter-name>ShiroFilter</filter-name>
      <filter-class>org.apache.shiro.web.servlet.IniShiroFilter</filter-class>
      <init-param>
      <param-name>configPath</param-name>
      <param-value>classpath:Shiro.ini</param-value>
      </init-param>
      </filter>

      Attachments

        Activity

          People

            lhazlewood Les Hazlewood
            meri Maria Jurcovicova
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: