Uploaded image for project: 'odlparent'
  1. odlparent
  2. ODLPARENT-177

Modification of etc/org.ops4j.pax.web.cfg at runtime renders most of deployed servlets unusable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 11.0.4
    • Karaf
    • Fluorine-SR1

      Not sure if this project is right place to report this issue, so please move if necessary.

      Following procedure used to work until Fluorine:

      1. install odl-restconf-all
      2. after successfully started, modify etc/org.ops4j.pax.web.cfg (for example change HTTPs settings)
      3. Wait for change to propagate

      Updating etc/org.ops4j.pax.web.cfg triggers reload of some pax-web bundles which results in existing servlets being undeployed:

       

      opendaylight-user@root>http:list
      ID  │ Servlet            │ Servlet-Name                     │ State       │ Alias               │ Url
      ────┼────────────────────┼──────────────────────────────────┼─────────────┼─────────────────────┼────────────────────────────────────
      188 │ JolokiaServlet     │ ServletModel-2                   │ Undeployed  │ /jolokia            │ [/jolokia/*]
      237 │ DiagStatusServlet  │ ServletModel-5                   │ Undeployed  │ /diagstatus         │ [/diagstatus/*]
      304 │ ResourceServlet    │ /apidoc/explorer:/explorer       │ Undeployed  │ /apidoc/explorer    │ [/apidoc/explorer/*]
      198 │ OAuth2TokenServlet │ ServletModel-10                  │ Undeployed  │ /oauth2             │ [/oauth2/*]
      304 │ ServletContainer   │ ServletContainer                 │ Undeployed  │                     │ [/apidoc/apis/*, /apidoc/18/apis/*]
      198 │ MoonTokenEndpoint  │ ServletModel-8                   │ Undeployed  │ /moon               │ [/moon/*]
      304 │ ResourceServlet    │ /apidoc/18/explorer:/18/explorer │ Undeployed  │ /apidoc/18/explorer │ [/apidoc/18/explorer/*]
      188 │ JolokiaServlet     │ ServletModel-38                  │ Deployed    │ /jolokia            │ [/jolokia/*]
      opendaylight-user@root>

       

      Now any restconf query will return HTTP404.

            Unassigned Unassigned
            rkosegi Richard Kosegi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: