[
https://issues.apache.org/jira/browse/TOMEE-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Fred Bricon updated TOMEE-1078:
-------------------------------
Attachment: tomee-rest.zip
Test project to reproduce the issue
> 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
> 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)