You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Fred Bricon (JIRA)" <ji...@apache.org> on 2013/11/18 12:23:21 UTC
[jira] [Created] (TOMEE-1078) Web app won't start without web.xml
Fred Bricon created TOMEE-1078:
----------------------------------
Summary: 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
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)