You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2013/11/18 13:43:21 UTC

[jira] [Resolved] (TOMEE-1078) Web app won't start without web.xml

     [ https://issues.apache.org/jira/browse/TOMEE-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau resolved TOMEE-1078.
---------------------------------------

       Resolution: Duplicate
    Fix Version/s: 1.6.0
         Assignee: Romain Manni-Bucau

> Web app won't start without web.xml
> -----------------------------------
>
>                 Key: TOMEE-1078
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1078
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.5.2
>         Environment: TomEE 1.5.2 + JAX-RS
>            Reporter: Fred Bricon
>            Assignee: Romain Manni-Bucau
>             Fix For: 1.6.0
>
>         Attachments: tomee-rest.zip
>
>
> When deploying a webapp containing only EJBs and JAXRS endpoints to TomEE + JAX-RS, the app fails to start with 
> {noformat}
> Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> 	at java.util.ArrayList.rangeCheck(ArrayList.java:604)
> 	at java.util.ArrayList.get(ArrayList.java:382)
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.loadWebModule(TomcatWebAppBuilder.java:1919)
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1907)
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1073)
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1033)
> 	at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:124)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> 	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> {noformat}
> The app contains no web modules apparently, hence the IndexOutOfBoundsException.
> Adding a web.xml descriptor allows TomEE to start the webapp properly. Since this is a JavaEE 6 container, this shouldn't be necessary. 
> This is vaguely similar to TOMEE-913



--
This message was sent by Atlassian JIRA
(v6.1#6144)