Uploaded image for project: 'Hippo Repository'
  1. Hippo Repository
  2. REPO-1810

NoSuchMethodError on ResourceUtils#createApplication() with CXF 3.1.12

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.2
    • Labels:
      None
    • Similar issues:
    • Processed by team:
      Turing
    • Sprint:
      Turing Sprint 166

      Description

      When upgrading CXF dependency to 3.1.12 (see CMS-10860), NoSuchMethodError is found (from running hippo-testsuite master branch):

      [INFO] [talledLocalContainer] java.lang.NoSuchMethodError: org.apache.cxf.jaxrs.utils.ResourceUtils.createApplication(Ljavax/ws/rs/core/Application;ZZ)Lorg/apache/cxf/jaxrs/JAXRSServerFactoryBean;
      [INFO] [talledLocalContainer] 	at org.onehippo.repository.jaxrs.RepositoryJaxrsService.addEndpoint(RepositoryJaxrsService.java:189)
      [INFO] [talledLocalContainer] 	at org.onehippo.repository.jaxrs.RepositoryJaxrsService.init(RepositoryJaxrsService.java:139)
      [INFO] [talledLocalContainer] 	at org.onehippo.repository.jaxrs.RepositoryJaxrsServlet.init(RepositoryJaxrsServlet.java:46)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:989)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4931)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5241)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)
      [INFO] [talledLocalContainer] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      [INFO] [talledLocalContainer] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [INFO] [talledLocalContainer] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      [INFO] [talledLocalContainer] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      [INFO] [talledLocalContainer] 	at java.lang.Thread.run(Thread.java:745)
      [INFO] [talledLocalContainer] 
      [INFO] [talledLocalContainer] Sep 08, 2017 3:04:49 PM org.apache.catalina.core.StandardContext loadOnStartup
      [INFO] [talledLocalContainer] SEVERE: Servlet [RepositoryJaxrsServlet] in web application [/cms] threw load() exception
      [INFO] [talledLocalContainer] java.lang.NoSuchMethodError: org.apache.cxf.jaxrs.utils.ResourceUtils.createApplication(Ljavax/ws/rs/core/Application;ZZ)Lorg/apache/cxf/jaxrs/JAXRSServerFactoryBean;
      [INFO] [talledLocalContainer] 	at org.onehippo.repository.jaxrs.RepositoryJaxrsService.addEndpoint(RepositoryJaxrsService.java:189)
      [INFO] [talledLocalContainer] 	at org.onehippo.repository.jaxrs.RepositoryJaxrsService.init(RepositoryJaxrsService.java:139)
      [INFO] [talledLocalContainer] 	at org.onehippo.repository.jaxrs.RepositoryJaxrsServlet.init(RepositoryJaxrsServlet.java:46)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:989)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4931)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5241)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952)
      [INFO] [talledLocalContainer] 	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)
      [INFO] [talledLocalContainer] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      [INFO] [talledLocalContainer] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [INFO] [talledLocalContainer] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      [INFO] [talledLocalContainer] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      [INFO] [talledLocalContainer] 	at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                wko Woonsan Ko
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: