[ https://issues.apache.org/jira/browse/TOMEE-2054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16042566#comment-16042566 ]
Violeta Georgieva commented on TOMEE-2054: ------------------------------------------ I created the following PR https://github.com/apache/tomee/pull/69 > When in EAR, the web app doc base is a directory ending with .war do not > handle it as a file > -------------------------------------------------------------------------------------------- > > Key: TOMEE-2054 > URL: https://issues.apache.org/jira/browse/TOMEE-2054 > Project: TomEE > Issue Type: Bug > Components: TomEE Core Server > Affects Versions: 7.0.3 > Reporter: Violeta Georgieva > > When in the EAR file, the web application's binaries are a directory > and the directory name ends with .war, do not handle it as a file. > With the current implementation the exception below is thrown. Note that the > name of the directory inside of EAR file is *test.war* and not *test*. > {code} > 07-Jun-2017 23:33:34.961 SEVERE > [ContainerBackgroundProcessor[StandardEngine[Catalina]]] > sun.reflect.NativeMethodAccessorImpl.invoke ContainerBase.addChild: start: > org.apache.catalina.LifecycleException: Failed to start component > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]] > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) > at > org.apache.tomee.catalina.TomcatWebAppBuilder.deployWar(TomcatWebAppBuilder.java:651) > at > org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:589) > at > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:997) > at > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:718) > at > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:714) > at > org.apache.tomee.catalina.TomcatWebAppBuilder.checkHost(TomcatWebAppBuilder.java:2223) > at > org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:141) > at > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94) > at > org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1164) > at > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1388) > at > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1392) > at > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1360) > at java.lang.Thread.run(Thread.java:748) > Caused by: org.apache.catalina.LifecycleException: Failed to start component > [org.apache.catalina.webresources.StandardRoot@71ffc4f4] > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) > at > org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4842) > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4974) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > ... 16 more > Caused by: java.lang.IllegalArgumentException: The main resource set > specified [/<path-to-ear>/test] is not valid > at > org.apache.catalina.webresources.StandardRoot.createMainResourceSet(StandardRoot.java:732) > at > org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:690) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > ... 19 more > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)