Uploaded image for project: 'apiman (API Management)'
  1. apiman (API Management)
  2. APIMAN-320

Plugins: Fix resourcebundle classloading path problem

    XMLWordPrintable

Details

    Description

      The resource classloader method isn't looking in WEB-INF/classes where the resource bundle ends up. Breaks i18n in particular.

      Check out the maven config for the CORS plugin. It might make sense to put the resources elsewhere?

      https://github.com/apiman/apiman-plugins/blob/master/cors-policy/pom.xml#L39-L44

      [msavy@mmbp target](master)$ zipinfo apiman-plugins-cors-policy-1.1.0-SNAPSHOT.war
      Archive:  apiman-plugins-cors-policy-1.1.0-SNAPSHOT.war   1682135   30
      drwxr-xr-x  2.0 unx        0 b- stor 20-Feb-15 15:41 META-INF/
      -rw-r--r--  2.0 unx      124 bl defN 20-Feb-15 15:41 META-INF/MANIFEST.MF
      drwxr-xr-x  2.0 unx        0 b- stor 20-Feb-15 15:41 META-INF/apiman/
      drwxr-xr-x  2.0 unx        0 b- stor 20-Feb-15 15:41 META-INF/apiman/policyDefs/
      drwxr-xr-x  2.0 unx        0 b- stor 20-Feb-15 15:41 META-INF/apiman/policyDefs/schemas/
      drwxr-xr-x  2.0 unx        0 b- stor 20-Feb-15 15:41 WEB-INF/
      drwxr-xr-x  2.0 unx        0 b- stor 20-Feb-15 15:41 WEB-INF/classes/
      drwxr-xr-x  2.0 unx        0 b- stor 20-Feb-15 15:41 WEB-INF/classes/io/
      drwxr-xr-x  2.0 unx        0 b- stor 20-Feb-15 15:41 WEB-INF/classes/io/apiman/
      drwxr-xr-x  2.0 unx        0 b- stor 20-Feb-15 15:41 WEB-INF/classes/io/apiman/plugins/
      drwxr-xr-x  2.0 unx        0 b- stor 20-Feb-15 15:41 WEB-INF/classes/io/apiman/plugins/cors_policy/
      drwxr-xr-x  2.0 unx        0 b- stor 20-Feb-15 15:41 WEB-INF/classes/io/apiman/plugins/cors_policy/util/
      drwxr-xr-x  2.0 unx        0 b- stor 20-Feb-15 15:41 WEB-INF/lib/
      -rw-r--r--  2.0 unx      256 bl defN 20-Feb-15 15:41 META-INF/apiman/plugin.json
      -rw-r--r--  2.0 unx      801 bl defN 20-Feb-15 15:41 META-INF/apiman/policyDefs/cors-policyDef.json
      -rw-r--r--  2.0 unx     2384 bl defN 20-Feb-15 15:41 META-INF/apiman/policyDefs/schemas/cors-policyDef.schema
      -rw-r--r--  2.0 unx     4400 bl defN 20-Feb-15 15:41 WEB-INF/classes/io/apiman/plugins/cors_policy/CorsConfigBean.class
      -rw-r--r--  2.0 unx     3297 bl defN 20-Feb-15 15:41 WEB-INF/classes/io/apiman/plugins/cors_policy/CorsConnector$ShortcircuitServiceConnection.class
      -rw-r--r--  2.0 unx     8562 bl defN 20-Feb-15 15:41 WEB-INF/classes/io/apiman/plugins/cors_policy/CorsConnector.class
      -rw-r--r--  2.0 unx     1085 bl defN 20-Feb-15 15:41 WEB-INF/classes/io/apiman/plugins/cors_policy/CorsPolicy$1.class
      -rw-r--r--  2.0 unx     5676 bl defN 20-Feb-15 15:41 WEB-INF/classes/io/apiman/plugins/cors_policy/CorsPolicy.class
      -rw-r--r--  2.0 unx     1133 bl defN 20-Feb-15 15:41 WEB-INF/classes/io/apiman/plugins/cors_policy/Messages.class
      -rw-r--r--  2.0 unx      305 bl defN 20-Feb-15 15:41 WEB-INF/classes/io/apiman/plugins/cors_policy/messages.properties
      -rw-r--r--  2.0 unx     2148 bl defN 20-Feb-15 15:41 WEB-INF/classes/io/apiman/plugins/cors_policy/util/HttpHelper.class
      -rw-r--r--  2.0 unx     2529 bl defN 20-Feb-15 15:41 WEB-INF/classes/io/apiman/plugins/cors_policy/util/InsensitiveLinkedHashSet.class
      -rw-r--r--  2.0 unx    45024 bl defN  9-Feb-15 21:12 WEB-INF/lib/hamcrest-core-1.3.jar
      -rw-r--r--  2.0 unx   245039 bl defN  9-Feb-15 21:12 WEB-INF/lib/junit-4.11.jar
      -rw-r--r--  2.0 unx  1581066 bl defN  9-Feb-15 21:12 WEB-INF/lib/mockito-all-1.9.5.jar
      -rw-r--r--  2.0 unx     1927 bl defN 17-Feb-15 11:21 META-INF/maven/io.apiman.plugins/apiman-plugins-cors-policy/pom.xml
      -rw-r--r--  2.0 unx      137 bl defN 20-Feb-15 15:41 META-INF/maven/io.apiman.plugins/apiman-plugins-cors-policy/pom.properties
      30 files, 1905893 bytes uncompressed, 1676933 bytes compressed:  12.0%
      

      Attachments

        Activity

          People

            ewittman@redhat.com Eric Wittmann
            msavy_jira Marc Savy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: