You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Violeta Georgieva (JIRA)" <ji...@apache.org> on 2017/06/08 11:26:18 UTC
[jira] [Updated] (TOMEE-2054) When in EAR, the web app doc base is
a directory ending with .war do not handle it as a file
[ https://issues.apache.org/jira/browse/TOMEE-2054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Violeta Georgieva updated TOMEE-2054:
-------------------------------------
Description:
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}
was:
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}
> 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)