Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-2469

java.lang.IllegalArgumentException: More than one fragment with the name during Ranger start after RANGER-2464

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • Ranger
    • None

    Description

      Seeing below error in some environments in Catalina.out and Ranger fails to start.

      2019-06-13 19:24:31,829 ERROR org.apache.catalina.core.ContainerBase: A child container failed during start
      java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[dhoyle-1.vpc.cloudera.com].StandardContext[]]
      	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
      	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
      	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1243)
      	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1707)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1697)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[dhoyle-1.vpc.cloudera.com].StandardContext[]]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
      	... 6 more
      Caused by: java.lang.IllegalArgumentException: More than one fragment with the name [spring_web] was found. This is not legal with relative ordering. See section 8.2.2 2c of the Servlet specification for details. Consider using absolute ordering.
      	at org.apache.catalina.deploy.WebXml.orderWebFragments(WebXml.java:2338)
      	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1268)
      	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)
      	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)
      	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5606)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
      	... 6 more

      According to this - https://stackoverflow.com/questions/54290263/more-than-one-fragment-with-the-name-spring-web-was-found-this-is-not-legal-w - probably need to add absolute-ordering to web.xml

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            vel Velmurugan Periasamy
            krisden Kevin Risden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment