hmm weird (that said our http://tomee.apache.org/tomee-and-netbeans.html page needs some love)
personally i think using tomee maven plugin in netbeans should be great since netbeans build is based on mvn but that's pby a personal feeling. *Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/6/13 Jason Zwolak <[email protected]> > Hmmm... interesting... I noticed that the context.xml file is in my src > tree and is never copied to the build tree. So when I deleted it, nothing > changed in the build tree. > > Again, I'm using Netbeans... perhaps that's my problem. I'm guessing there > is something obvious that's missing here. I have moved on to Glassfish, so > I don't need to resolve this problem. However, if it's beneficial for the > TomEE team to know what's going on, I'll continue to work on it and give > you the results. > > -- > Jason Zwolak > > > On Thu, Jun 13, 2013 at 10:48 AM, Jason Zwolak <[email protected]> wrote: > > > I deleted context.xml and the same problem occurs. > > > > Also, I cannot remove docBase because that's how TomEE knows where my app > > is. I'm not dropping it in the webapps directory. > > > > -- > > Jason Zwolak > > > > > > On Fri, Jun 7, 2013 at 1:25 PM, Romain Manni-Bucau < > [email protected]>wrote: > > > >> hmm, can you try without context.xml? > >> > >> this kind of app is common and i used it quite a lot. docBase could be > >> another cause. > >> > >> *Romain Manni-Bucau* > >> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > >> *Blog: **http://rmannibucau.wordpress.com/*< > >> http://rmannibucau.wordpress.com/> > >> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > >> *Github: https://github.com/rmannibucau* > >> > >> > >> > >> 2013/6/7 Jason Zwolak <[email protected]> > >> > >> > I just tried it on 1.5.3 snapshot and 1.6.0 snapshot, just for you, > >> Romain! > >> > > >> > This problem occurred when I separated the entity classes from the > >> RESTful > >> > service classes. I put them in separate projects. The jar for the > >> entity > >> > classes is being included in the war for the RESTful service in > >> > the WEB-INF/lib directory. The jar with the entity classes depends on > >> > classes like javax.persistence.Entity. Is it possible the class > loader > >> > isn't finding the implementation of these since my entity classes are > >> in a > >> > jar instead of in the WEB-INF/classes directory? > >> > > >> > I put the entity classes in their own project so that I can reuse them > >> on > >> > the client side without having to include the server code. Perhaps > I'm > >> > showing my ignorance again, but this is working in GlasshFish as I > type. > >> > The same exact code, in fact, with the same separation of entity > >> classes > >> > and RESTful service classes. I even have a client that reuses the > >> entity > >> > classes and connects to the RESTful service... it's pretty cool, but > it > >> is > >> > in GlassFish, not TomEE. > >> > > >> > Here's the output from 1.6.0 snapshot to verify the same error is > >> > occurring: > >> > > >> > Jun 07, 2013 9:22:55 AM org.apache.catalina.startup.HostConfig > >> > deployDescriptor > >> > INFO: Deploying configuration descriptor > >> > > >> > > >> > /Users/jzwolak/local/apache-tomee-plus-1.6.0-SNAPSHOT/conf/Catalina/localhost/processdb.xml > >> > Jun 07, 2013 9:22:55 AM org.apache.tomee.catalina.TomcatWebAppBuilder > >> init > >> > INFO: ------------------------- localhost -> /processdb > >> > Jun 07, 2013 9:22:55 AM org.apache.catalina.core.ContainerBase > >> > addChildInternal > >> > SEVERE: ContainerBase.addChild: start: > >> > org.apache.catalina.LifecycleException: Failed to start component > >> > > >> > > >> > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/processdb]] > >> > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > >> > at > >> > > >> > > >> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) > >> > at > >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) > >> > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) > >> > at > >> > > >> > > >> > org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) > >> > at > >> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:536) > >> > at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1462) > >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> > at > >> > > >> > > >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > >> > at > >> > > >> > > >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > >> > at java.lang.reflect.Method.invoke(Method.java:601) > >> > at > >> > > >> > > >> > org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301) > >> > at > >> > > >> > > >> > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) > >> > at > >> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:791) > >> > at > >> > > >> > org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1445) > >> > at > >> > > >> > org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:860) > >> > at > >> > > >> > org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:357) > >> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) > >> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) > >> > at > >> > > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) > >> > at > >> > > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > >> > at > >> > > >> > > >> > org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) > >> > at > >> > > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) > >> > at > >> > > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > >> > at > >> > > >> > > >> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) > >> > at > >> > > >> > > >> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) > >> > at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45) > >> > at > >> > > >> > > >> > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581) > >> > at > >> > > >> > > >> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) > >> > at > >> > > >> > > >> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) > >> > at > >> > > >> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) > >> > at > >> > > >> > > >> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) > >> > at > >> > > >> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) > >> > at > >> > > >> > > >> > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008) > >> > at > >> > > >> > > >> > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) > >> > at > >> > > >> > > >> > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) > >> > at > >> > > >> > > >> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > >> > at > >> > > >> > > >> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > >> > at java.lang.Thread.run(Thread.java:722) > >> > 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:1962) > >> > at > >> > > >> > > >> > org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1950) > >> > at > >> > > >> > > >> > org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1015) > >> > at > >> > > >> > > >> > org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:975) > >> > 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:5269) > >> > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > >> > ... 38 more > >> > > >> > > >> > -- > >> > Jason Zwolak > >> > > >> > > >> > On Fri, Jun 7, 2013 at 9:05 AM, Romain Manni-Bucau < > >> [email protected] > >> > >wrote: > >> > > >> > > weird, it globally means your app is not found in the server > >> > > > >> > > can you give a quick try on the snapshot? i know we fixed some > issues > >> in > >> > > this area but can't recall exactly the issue > >> > > > >> > > *Romain Manni-Bucau* > >> > > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > >> > > *Blog: **http://rmannibucau.wordpress.com/*< > >> > > http://rmannibucau.wordpress.com/> > >> > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > >> > > *Github: https://github.com/rmannibucau* > >> > > > >> > > > >> > > > >> > > 2013/6/7 Jason Zwolak <[email protected]> > >> > > > >> > > > Hi Romain, > >> > > > > >> > > > It is in fact a war, but it isn't being deployed by copying the > war > >> to > >> > > the > >> > > > webapps directory. Netbeans is deploying (by treating TomEE as > >> Tomcat) > >> > > > using the conf/Catalina/localhost directory and dropping in an XML > >> > file. > >> > > > > >> > > > The xml file looks like this: > >> > > > > >> > > > <?xml version="1.0" encoding="UTF-8"?> > >> > > > <Context antiJARLocking="true" > >> > > > > >> > > > > >> > > > >> > > >> > docBase="/Users/jzwolak/files/code/processdb/javaee/projects_for_performance_branch/ProcessDB > >> > > > RESTful Service/build/web" path="/processdb"/> > >> > > > > >> > > > > >> > > > And the complete output from when "Deploy" is selected in Netbeans > >> is: > >> > > > > >> > > > Jun 07, 2013 8:43:07 AM org.apache.catalina.startup.HostConfig > >> > > > deployDescriptor > >> > > > INFO: Deploying configuration descriptor > >> > > > > >> > > > > >> > > > >> > > >> > /Users/jzwolak/local/apache-tomee-plus-1.5.2/conf/Catalina/localhost/processdb.xml > >> > > > Jun 07, 2013 8:43:07 AM > >> org.apache.tomee.catalina.TomcatWebAppBuilder > >> > > init > >> > > > INFO: ------------------------- localhost -> /processdb > >> > > > Jun 07, 2013 8:43:07 AM org.apache.catalina.core.ContainerBase > >> > > > addChildInternal > >> > > > SEVERE: ContainerBase.addChild: start: > >> > > > org.apache.catalina.LifecycleException: Failed to start component > >> > > > > >> > > > > >> > > > >> > > >> > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/processdb]] > >> > > > at > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) > >> > > > at > >> > > > >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) > >> > > > at > >> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) > >> > > > at > >> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:536) > >> > > > at > >> org.apache.catalina.startup.HostConfig.check(HostConfig.java:1462) > >> > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > >> > > > at java.lang.reflect.Method.invoke(Method.java:601) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) > >> > > > at > >> > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:791) > >> > > > at > >> > > > > >> > > > >> > > >> > org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1445) > >> > > > at > >> > > > > >> > > > >> > > >> > org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:860) > >> > > > at > >> > > > > >> > > >> > org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:357) > >> > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) > >> > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) > >> > > > at > >> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) > >> > > > at > >> > > > > >> > > >> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) > >> > > > at > >> > > > > >> > > > >> > > >> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > >> > > > at java.lang.Thread.run(Thread.java:722) > >> > > > 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) > >> > > > ... 38 more > >> > > > > >> > > > Jun 07, 2013 8:43:07 AM org.apache.catalina.startup.HostConfig > >> > > > deployDescriptor > >> > > > SEVERE: Error deploying configuration descriptor > >> > > > > >> > > > > >> > > > >> > > >> > /Users/jzwolak/local/apache-tomee-plus-1.5.2/conf/Catalina/localhost/processdb.xml > >> > > > java.lang.IllegalStateException: ContainerBase.addChild: start: > >> > > > org.apache.catalina.LifecycleException: Failed to start component > >> > > > > >> > > > > >> > > > >> > > >> > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/processdb]] > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904) > >> > > > at > >> > > > >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) > >> > > > at > >> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) > >> > > > at > >> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:536) > >> > > > at > >> org.apache.catalina.startup.HostConfig.check(HostConfig.java:1462) > >> > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > >> > > > at java.lang.reflect.Method.invoke(Method.java:601) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) > >> > > > at > >> > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:791) > >> > > > at > >> > > > > >> > > > >> > > >> > org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1445) > >> > > > at > >> > > > > >> > > > >> > > >> > org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:860) > >> > > > at > >> > > > > >> > > >> > org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:357) > >> > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) > >> > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) > >> > > > at > >> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) > >> > > > at > >> > > > > >> > > >> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) > >> > > > at > >> > > > > >> > > > >> > > >> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > >> > > > at > >> > > > > >> > > > > >> > > > >> > > >> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > >> > > > at java.lang.Thread.run(Thread.java:722) > >> > > > > >> > > > > >> > > > -- > >> > > > Jason Zwolak > >> > > > > >> > > > > >> > > > On Thu, Jun 6, 2013 at 9:41 PM, Romain Manni-Bucau < > >> > > [email protected] > >> > > > >wrote: > >> > > > > >> > > > > Hi > >> > > > > > >> > > > > Did you put a jar or ear in webapps/ instead of apps/? > >> > > > > Le 7 juin 2013 01:19, "Jason Zwolak" <[email protected]> a > écrit > >> : > >> > > > > > >> > > > > > Any idea what causes this exception? > >> > > > > > > >> > > > > > I started with a fresh Apache TomEE 1.5.2 Plus and deployed my > >> > > RESTful > >> > > > > > application (which worked earlier today with TomEE 1.5.2 > Plus, I > >> > did > >> > > a > >> > > > > > fresh "install" of TomEE to rule out something getting > >> > > > > > misconfigured/deleted/etc.) > >> > > > > > > >> > > > > > Jun 06, 2013 4:05:15 PM org.apache.catalina.core.ContainerBase > >> > > > > > addChildInternal > >> > > > > > SEVERE: ContainerBase.addChild: start: > >> > > > > > org.apache.catalina.LifecycleException: Failed to start > >> component > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/processdb]] > >> > > > > > at > >> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) > >> > > > > > at > >> > > > > > >> > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) > >> > > > > > at > >> > > > > >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) > >> > > > > > at > >> > > > > >> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:536) > >> > > > > > at > >> > org.apache.catalina.startup.HostConfig.check(HostConfig.java:1462) > >> > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > >> > > > > > at java.lang.reflect.Method.invoke(Method.java:601) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) > >> > > > > > at > >> > > > > >> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:791) > >> > > > > > at > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1445) > >> > > > > > at > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:860) > >> > > > > > at > >> > > > > > > >> > > > > >> > > >> > org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:357) > >> > > > > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:621) > >> > > > > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:728) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) > >> > > > > > at > >> > > org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) > >> > > > > > at > >> > > > > > > >> > > > > >> > > >> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) > >> > > > > > at > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > >> > > > > > at > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > >> > > > > > at java.lang.Thread.run(Thread.java:722) > >> > > > > > 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) > >> > > > > > ... 38 more > >> > > > > > -- > >> > > > > > Jason Zwolak > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > > > > >
