You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Velmurugan Periasamy (JIRA)" <ji...@apache.org> on 2019/06/13 20:32:00 UTC

[jira] [Created] (RANGER-2469) java.lang.IllegalArgumentException: More than one fragment with the name during Ranger start after RANGER-2464

Velmurugan Periasamy created RANGER-2469:
--------------------------------------------

             Summary: java.lang.IllegalArgumentException: More than one fragment with the name during Ranger start after RANGER-2464
                 Key: RANGER-2469
                 URL: https://issues.apache.org/jira/browse/RANGER-2469
             Project: Ranger
          Issue Type: Bug
          Components: Ranger
            Reporter: Velmurugan Periasamy
             Fix For: 2.0.0


Seeing below error in some environments in Catalina.out and Ranger fails to start.
{noformat}
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{noformat}

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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)