You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by er...@teb.com.tr on 2013/04/05 08:54:27 UTC

Servlets loaded twice

Hi,
We have upgraded to the latest 1.6.1-SNAPSHOT version but within this version servlets defined is loaded twice and have the following exception:
(Also find the sample application that you can reproduce this issue as the attachment)

05.Nis.2013 09:42:12 org.apache.openejb.cdi.OpenEJBLifecycle startApplication
INFO: OpenWebBeans Container is starting...
05.Nis.2013 09:42:12 org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
05.Nis.2013 09:42:12 org.apache.webbeans.plugins.PluginLoader startUp
INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
05.Nis.2013 09:42:12 org.apache.openejb.cdi.BeansDeployer validateInjectionPoints
INFO: All injection points are validated successfully.
05.Nis.2013 09:42:12 org.apache.openejb.cdi.OpenEJBLifecycle startApplication
INFO: OpenWebBeans Container has started, it took 11 ms.
05.Nis.2013 09:42:12 org.apache.openejb.assembler.classic.Assembler createApplication
INFO: Deployed Application(path=C:\dev\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp6\wtpwebapps\webapp)
05.Nis.2013 09:42:12 org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
Throwable occurred: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webapp]]
       at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:233)
       at java.util.concurrent.FutureTask.get(FutureTask.java:94)
       at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
       at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
       at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
       at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
       at java.util.concurrent.FutureTask.run(FutureTask.java:149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
       at java.lang.Thread.run(Thread.java:772)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webapp]]
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
       ... 7 more
Caused by: java.lang.IllegalArgumentException: The servlets named [/TestServlet] and [/TestServlet] are both mapped to the url-pattern [/testMe/*] which is not permitted
       at org.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:335)
       at org.apache.catalina.deploy.WebXml.merge(WebXml.java:1691)
       at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1338)
       at org.apache.tomee.catalina.OpenEJBContextConfig.webConfig(OpenEJBContextConfig.java:296)
       at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)
       at org.apache.tomee.catalina.OpenEJBContextConfig.configureStart(OpenEJBContextConfig.java:95)
       at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)
       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)
       ... 7 more
05.Nis.2013 09:42:12 org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
Throwable occurred: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
       at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:233)
       at java.util.concurrent.FutureTask.get(FutureTask.java:94)
       at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
       at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
       at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
       at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:684)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
       at java.lang.reflect.Method.invoke(Method.java:611)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
       at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
       at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
       at java.util.concurrent.FutureTask.run(FutureTask.java:149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
       at java.lang.Thread.run(Thread.java:772)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
       at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
       at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
       ... 7 more



________________________________
Bu elektronik posta mesaj? ve ekleri sadece g?nderildi?i ki?i veya kuruma ?zeldir ve gizli bilgiler i?erebilir. E?er bu mesaj? hataen ald?ysan?z l?tfen bu durumu g?nderen ki?iye derhal bildiriniz ve mesaj? sisteminizden siliniz. E?er do?ru ki?iye ula?mad???n? d???n?yorsan?z, bu mesaj?n gizlenmesi, y?nlendirilmesi, kopyalanmas? veya herhangi bir ?ekilde kullan?lmas? yasakt?r. Internet ileti?iminde g?venlik ve hatas?z g?nderim garanti edilemeyece?inden, mesaj?n yerine ula?mamas?, ge? ula?mas?, i?eri?inin bozulmas? ya da mesaj?n virus ta??mas? gibi problemler olu?abilir. G?nderen taraf bu tip sorunlardan sorumlu tutulmaz.

This e-mail message and any attachments are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this message in error, please notify the sender immediately and delete it from your system. If you are not the intended recipient you are hereby notified that any dissemination, forwarding, copying or use of any of the information is prohibited. Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, arrive late or contain viruses. The sender therefore does not accept liability for any errors or omissions in the context of this message which arise as a result of Internet transmission

Re: Servlets loaded twice

Posted by Romain Manni-Bucau <rm...@gmail.com>.
that's fixed on trunk btw (snapshot deployed tomorrow)

was a side effect of a recent update

*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/4/5 Howard W. Smith, Jr. <sm...@gmail.com>

> I recognized that, earlier. :)
>
> 1.6.1-snapshot files are dated March 26, 2013
>
> 1.6.0-snapshot (latest) files are dated April 5, 2013.
>
>
>
> On Fri, Apr 5, 2013 at 3:45 AM, Romain Manni-Bucau <rmannibucau@gmail.com
> >wrote:
>
> > Hi,
> >
> > last version is 1.6.0-SNAPSHOT
> >
> > *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/4/5 <er...@teb.com.tr>
> >
> > >  Hi,
> > >
> > > We have upgraded to the latest 1.6.1-SNAPSHOT version but within this
> > > version servlets defined is loaded twice and have the following
> > exception:
> > >
> > > (Also find the sample application that you can reproduce this issue as
> > the
> > > attachment)
> > >
> > >
> > >
> > > 05.Nis.2013 09:42:12 org.apache.openejb.cdi.OpenEJBLifecycle
> > > startApplication
> > >
> > > INFO: OpenWebBeans Container is starting...
> > >
> > > 05.Nis.2013 09:42:12 org.apache.webbeans.plugins.PluginLoader startUp
> > >
> > > INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
> > >
> > > 05.Nis.2013 09:42:12 org.apache.webbeans.plugins.PluginLoader startUp
> > >
> > > INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
> > >
> > > 05.Nis.2013 09:42:12 org.apache.openejb.cdi.BeansDeployer
> > > validateInjectionPoints
> > >
> > > INFO: All injection points are validated successfully.
> > >
> > > 05.Nis.2013 09:42:12 org.apache.openejb.cdi.OpenEJBLifecycle
> > > startApplication
> > >
> > > INFO: OpenWebBeans Container has started, it took 11 ms.
> > >
> > > 05.Nis.2013 09:42:12 org.apache.openejb.assembler.classic.Assembler
> > > createApplication
> > >
> > > INFO: Deployed
> > >
> >
> Application(path=C:\dev\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp6\wtpwebapps\webapp)
> > >
> > > 05.Nis.2013 09:42:12 org.apache.catalina.core.ContainerBase
> startInternal
> > >
> > > SEVERE: A child container failed during start
> > >
> > > Throwable occurred: *java.util.concurrent.ExecutionException*: *
> > > org.apache.catalina.LifecycleException*: Failed to start component
> > >
> >
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webapp]]
> > >
> > >        at java.util.concurrent.FutureTask$Sync.innerGet(*
> > > FutureTask.java:233*)
> > >
> > >        at java.util.concurrent.FutureTask.get(*FutureTask.java:94*)
> > >
> > >        at org.apache.catalina.core.ContainerBase.startInternal(*
> > > ContainerBase.java:1123*)
> > >
> > >        at org.apache.catalina.core.StandardHost.startInternal(*
> > > StandardHost.java:800*)
> > >
> > >        at org.apache.catalina.util.LifecycleBase.start(*
> > > LifecycleBase.java:150*)
> > >
> > >        at org.apache.catalina.core.ContainerBase$StartChild.call(*
> > > ContainerBase.java:1559*)
> > >
> > >        at org.apache.catalina.core.ContainerBase$StartChild.call(*
> > > ContainerBase.java:1549*)
> > >
> > >        at java.util.concurrent.FutureTask$Sync.innerRun(*
> > > FutureTask.java:314*)
> > >
> > >        at java.util.concurrent.FutureTask.run(*FutureTask.java:149*)
> > >
> > >        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(*
> > > ThreadPoolExecutor.java:897*)
> > >
> > >        at java.util.concurrent.ThreadPoolExecutor$Worker.run(*
> > > ThreadPoolExecutor.java:919*)
> > >
> > >        at java.lang.Thread.run(*Thread.java:772*)
> > >
> > > Caused by: *org.apache.catalina.LifecycleException*: Failed to start
> > > component
> > >
> >
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webapp]]
> > >
> > >        at org.apache.catalina.util.LifecycleBase.start(*
> > > LifecycleBase.java:154*)
> > >
> > >        ... 7 more
> > >
> > > Caused by: *java.lang.IllegalArgumentException*: The servlets named
> > > [/TestServlet] and [/TestServlet] are both mapped to the url-pattern
> > > [/testMe/*] which is not permitted
> > >
> > >        at org.apache.catalina.deploy.WebXml.addServletMapping(*
> > > WebXml.java:335*)
> > >
> > >        at org.apache.catalina.deploy.WebXml.merge(*WebXml.java:1691*)
> > >
> > >        at org.apache.catalina.startup.ContextConfig.webConfig(*
> > > ContextConfig.java:1338*)
> > >
> > >        at org.apache.tomee.catalina.OpenEJBContextConfig.webConfig(*
> > > OpenEJBContextConfig.java:296*)
> > >
> > >        at org.apache.catalina.startup.ContextConfig.configureStart(*
> > > ContextConfig.java:878*)
> > >
> > >        at
> org.apache.tomee.catalina.OpenEJBContextConfig.configureStart(*
> > > OpenEJBContextConfig.java:95*)
> > >
> > >        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(*
> > > ContextConfig.java:369*)
> > >
> > >        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*)
> > >
> > >        ... 7 more
> > >
> > > 05.Nis.2013 09:42:12 org.apache.catalina.core.ContainerBase
> startInternal
> > >
> > > SEVERE: A child container failed during start
> > >
> > > Throwable occurred: *java.util.concurrent.ExecutionException*: *
> > > org.apache.catalina.LifecycleException*: Failed to start component
> > > [StandardEngine[Catalina].StandardHost[localhost]]
> > >
> > >        at java.util.concurrent.FutureTask$Sync.innerGet(*
> > > FutureTask.java:233*)
> > >
> > >        at java.util.concurrent.FutureTask.get(*FutureTask.java:94*)
> > >
> > >        at org.apache.catalina.core.ContainerBase.startInternal(*
> > > ContainerBase.java:1123*)
> > >
> > >        at org.apache.catalina.core.StandardEngine.startInternal(*
> > > StandardEngine.java:302*)
> > >
> > >        at org.apache.catalina.util.LifecycleBase.start(*
> > > LifecycleBase.java:150*)
> > >
> > >        at org.apache.catalina.core.StandardService.startInternal(*
> > > StandardService.java:443*)
> > >
> > >        at org.apache.catalina.util.LifecycleBase.start(*
> > > LifecycleBase.java:150*)
> > >
> > >        at org.apache.catalina.core.StandardServer.startInternal(*
> > > StandardServer.java:732*)
> > >
> > >        at org.apache.catalina.util.LifecycleBase.start(*
> > > LifecycleBase.java:150*)
> > >
> > >        at
> org.apache.catalina.startup.Catalina.start(*Catalina.java:684*)
> > >
> > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(*Native Method*)
> > >
> > >        at sun.reflect.NativeMethodAccessorImpl.invoke(*
> > > NativeMethodAccessorImpl.java:60*)
> > >
> > >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(*
> > > DelegatingMethodAccessorImpl.java:37*)
> > >
> > >        at java.lang.reflect.Method.invoke(*Method.java:611*)
> > >
> > >        at
> > org.apache.catalina.startup.Bootstrap.start(*Bootstrap.java:322*
> > > )
> > >
> > >        at
> > org.apache.catalina.startup.Bootstrap.main(*Bootstrap.java:456*)
> > >
> > > Caused by: *org.apache.catalina.LifecycleException*: Failed to start
> > > component [StandardEngine[Catalina].StandardHost[localhost]]
> > >
> > >        at org.apache.catalina.util.LifecycleBase.start(*
> > > LifecycleBase.java:154*)
> > >
> > >        at org.apache.catalina.core.ContainerBase$StartChild.call(*
> > > ContainerBase.java:1559*)
> > >
> > >        at org.apache.catalina.core.ContainerBase$StartChild.call(*
> > > ContainerBase.java:1549*)
> > >
> > >        at java.util.concurrent.FutureTask$Sync.innerRun(*
> > > FutureTask.java:314*)
> > >
> > >        at java.util.concurrent.FutureTask.run(*FutureTask.java:149*)
> > >
> > >        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(*
> > > ThreadPoolExecutor.java:897*)
> > >
> > >        at java.util.concurrent.ThreadPoolExecutor$Worker.run(*
> > > ThreadPoolExecutor.java:919*)
> > >
> > >        at java.lang.Thread.run(*Thread.java:772*)
> > >
> > > Caused by: *org.apache.catalina.LifecycleException*: A child container
> > > failed during start
> > >
> > >        at org.apache.catalina.core.ContainerBase.startInternal(*
> > > ContainerBase.java:1131*)
> > >
> > >        at org.apache.catalina.core.StandardHost.startInternal(*
> > > StandardHost.java:800*)
> > >
> > >        at org.apache.catalina.util.LifecycleBase.start(*
> > > LifecycleBase.java:150*)
> > >
> > >        ... 7 more
> > >
> > >
> > >
> > >
> > >
> > > ------------------------------
> > > Bu elektronik posta mesajı ve ekleri sadece gönderildiği kişi veya
> kuruma
> > > özeldir ve gizli bilgiler içerebilir. Eğer bu mesajı hataen aldıysanız
> > > lütfen bu durumu gönderen kişiye derhal bildiriniz ve mesajı
> > sisteminizden
> > > siliniz. Eğer doğru kişiye ulaşmadığını düşünüyorsanız, bu mesajın
> > > gizlenmesi, yönlendirilmesi, kopyalanması veya herhangi bir şekilde
> > > kullanılması yasaktır. Internet iletişiminde güvenlik ve hatasız
> gönderim
> > > garanti edilemeyeceğinden, mesajın yerine ulaşmaması, geç ulaşması,
> > > içeriğinin bozulması ya da mesajın virus taşıması gibi problemler
> > > oluşabilir. Gönderen taraf bu tip sorunlardan sorumlu tutulmaz.
> > >
> > > This e-mail message and any attachments are confidential and intended
> > > solely for the use of the individual or entity to whom they are
> > addressed.
> > > If you have received this message in error, please notify the sender
> > > immediately and delete it from your system. If you are not the intended
> > > recipient you are hereby notified that any dissemination, forwarding,
> > > copying or use of any of the information is prohibited. Internet
> > > communications cannot be guaranteed to be secure or error-free as
> > > information could be intercepted, corrupted, lost, arrive late or
> contain
> > > viruses. The sender therefore does not accept liability for any errors
> or
> > > omissions in the context of this message which arise as a result of
> > > Internet transmission
> > >
> >
>

Re: Servlets loaded twice

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
I recognized that, earlier. :)

1.6.1-snapshot files are dated March 26, 2013

1.6.0-snapshot (latest) files are dated April 5, 2013.



On Fri, Apr 5, 2013 at 3:45 AM, Romain Manni-Bucau <rm...@gmail.com>wrote:

> Hi,
>
> last version is 1.6.0-SNAPSHOT
>
> *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/4/5 <er...@teb.com.tr>
>
> >  Hi,
> >
> > We have upgraded to the latest 1.6.1-SNAPSHOT version but within this
> > version servlets defined is loaded twice and have the following
> exception:
> >
> > (Also find the sample application that you can reproduce this issue as
> the
> > attachment)
> >
> >
> >
> > 05.Nis.2013 09:42:12 org.apache.openejb.cdi.OpenEJBLifecycle
> > startApplication
> >
> > INFO: OpenWebBeans Container is starting...
> >
> > 05.Nis.2013 09:42:12 org.apache.webbeans.plugins.PluginLoader startUp
> >
> > INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
> >
> > 05.Nis.2013 09:42:12 org.apache.webbeans.plugins.PluginLoader startUp
> >
> > INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
> >
> > 05.Nis.2013 09:42:12 org.apache.openejb.cdi.BeansDeployer
> > validateInjectionPoints
> >
> > INFO: All injection points are validated successfully.
> >
> > 05.Nis.2013 09:42:12 org.apache.openejb.cdi.OpenEJBLifecycle
> > startApplication
> >
> > INFO: OpenWebBeans Container has started, it took 11 ms.
> >
> > 05.Nis.2013 09:42:12 org.apache.openejb.assembler.classic.Assembler
> > createApplication
> >
> > INFO: Deployed
> >
> Application(path=C:\dev\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp6\wtpwebapps\webapp)
> >
> > 05.Nis.2013 09:42:12 org.apache.catalina.core.ContainerBase startInternal
> >
> > SEVERE: A child container failed during start
> >
> > Throwable occurred: *java.util.concurrent.ExecutionException*: *
> > org.apache.catalina.LifecycleException*: Failed to start component
> >
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webapp]]
> >
> >        at java.util.concurrent.FutureTask$Sync.innerGet(*
> > FutureTask.java:233*)
> >
> >        at java.util.concurrent.FutureTask.get(*FutureTask.java:94*)
> >
> >        at org.apache.catalina.core.ContainerBase.startInternal(*
> > ContainerBase.java:1123*)
> >
> >        at org.apache.catalina.core.StandardHost.startInternal(*
> > StandardHost.java:800*)
> >
> >        at org.apache.catalina.util.LifecycleBase.start(*
> > LifecycleBase.java:150*)
> >
> >        at org.apache.catalina.core.ContainerBase$StartChild.call(*
> > ContainerBase.java:1559*)
> >
> >        at org.apache.catalina.core.ContainerBase$StartChild.call(*
> > ContainerBase.java:1549*)
> >
> >        at java.util.concurrent.FutureTask$Sync.innerRun(*
> > FutureTask.java:314*)
> >
> >        at java.util.concurrent.FutureTask.run(*FutureTask.java:149*)
> >
> >        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(*
> > ThreadPoolExecutor.java:897*)
> >
> >        at java.util.concurrent.ThreadPoolExecutor$Worker.run(*
> > ThreadPoolExecutor.java:919*)
> >
> >        at java.lang.Thread.run(*Thread.java:772*)
> >
> > Caused by: *org.apache.catalina.LifecycleException*: Failed to start
> > component
> >
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webapp]]
> >
> >        at org.apache.catalina.util.LifecycleBase.start(*
> > LifecycleBase.java:154*)
> >
> >        ... 7 more
> >
> > Caused by: *java.lang.IllegalArgumentException*: The servlets named
> > [/TestServlet] and [/TestServlet] are both mapped to the url-pattern
> > [/testMe/*] which is not permitted
> >
> >        at org.apache.catalina.deploy.WebXml.addServletMapping(*
> > WebXml.java:335*)
> >
> >        at org.apache.catalina.deploy.WebXml.merge(*WebXml.java:1691*)
> >
> >        at org.apache.catalina.startup.ContextConfig.webConfig(*
> > ContextConfig.java:1338*)
> >
> >        at org.apache.tomee.catalina.OpenEJBContextConfig.webConfig(*
> > OpenEJBContextConfig.java:296*)
> >
> >        at org.apache.catalina.startup.ContextConfig.configureStart(*
> > ContextConfig.java:878*)
> >
> >        at org.apache.tomee.catalina.OpenEJBContextConfig.configureStart(*
> > OpenEJBContextConfig.java:95*)
> >
> >        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(*
> > ContextConfig.java:369*)
> >
> >        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*)
> >
> >        ... 7 more
> >
> > 05.Nis.2013 09:42:12 org.apache.catalina.core.ContainerBase startInternal
> >
> > SEVERE: A child container failed during start
> >
> > Throwable occurred: *java.util.concurrent.ExecutionException*: *
> > org.apache.catalina.LifecycleException*: Failed to start component
> > [StandardEngine[Catalina].StandardHost[localhost]]
> >
> >        at java.util.concurrent.FutureTask$Sync.innerGet(*
> > FutureTask.java:233*)
> >
> >        at java.util.concurrent.FutureTask.get(*FutureTask.java:94*)
> >
> >        at org.apache.catalina.core.ContainerBase.startInternal(*
> > ContainerBase.java:1123*)
> >
> >        at org.apache.catalina.core.StandardEngine.startInternal(*
> > StandardEngine.java:302*)
> >
> >        at org.apache.catalina.util.LifecycleBase.start(*
> > LifecycleBase.java:150*)
> >
> >        at org.apache.catalina.core.StandardService.startInternal(*
> > StandardService.java:443*)
> >
> >        at org.apache.catalina.util.LifecycleBase.start(*
> > LifecycleBase.java:150*)
> >
> >        at org.apache.catalina.core.StandardServer.startInternal(*
> > StandardServer.java:732*)
> >
> >        at org.apache.catalina.util.LifecycleBase.start(*
> > LifecycleBase.java:150*)
> >
> >        at org.apache.catalina.startup.Catalina.start(*Catalina.java:684*)
> >
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(*Native Method*)
> >
> >        at sun.reflect.NativeMethodAccessorImpl.invoke(*
> > NativeMethodAccessorImpl.java:60*)
> >
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(*
> > DelegatingMethodAccessorImpl.java:37*)
> >
> >        at java.lang.reflect.Method.invoke(*Method.java:611*)
> >
> >        at
> org.apache.catalina.startup.Bootstrap.start(*Bootstrap.java:322*
> > )
> >
> >        at
> org.apache.catalina.startup.Bootstrap.main(*Bootstrap.java:456*)
> >
> > Caused by: *org.apache.catalina.LifecycleException*: Failed to start
> > component [StandardEngine[Catalina].StandardHost[localhost]]
> >
> >        at org.apache.catalina.util.LifecycleBase.start(*
> > LifecycleBase.java:154*)
> >
> >        at org.apache.catalina.core.ContainerBase$StartChild.call(*
> > ContainerBase.java:1559*)
> >
> >        at org.apache.catalina.core.ContainerBase$StartChild.call(*
> > ContainerBase.java:1549*)
> >
> >        at java.util.concurrent.FutureTask$Sync.innerRun(*
> > FutureTask.java:314*)
> >
> >        at java.util.concurrent.FutureTask.run(*FutureTask.java:149*)
> >
> >        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(*
> > ThreadPoolExecutor.java:897*)
> >
> >        at java.util.concurrent.ThreadPoolExecutor$Worker.run(*
> > ThreadPoolExecutor.java:919*)
> >
> >        at java.lang.Thread.run(*Thread.java:772*)
> >
> > Caused by: *org.apache.catalina.LifecycleException*: A child container
> > failed during start
> >
> >        at org.apache.catalina.core.ContainerBase.startInternal(*
> > ContainerBase.java:1131*)
> >
> >        at org.apache.catalina.core.StandardHost.startInternal(*
> > StandardHost.java:800*)
> >
> >        at org.apache.catalina.util.LifecycleBase.start(*
> > LifecycleBase.java:150*)
> >
> >        ... 7 more
> >
> >
> >
> >
> >
> > ------------------------------
> > Bu elektronik posta mesajı ve ekleri sadece gönderildiği kişi veya kuruma
> > özeldir ve gizli bilgiler içerebilir. Eğer bu mesajı hataen aldıysanız
> > lütfen bu durumu gönderen kişiye derhal bildiriniz ve mesajı
> sisteminizden
> > siliniz. Eğer doğru kişiye ulaşmadığını düşünüyorsanız, bu mesajın
> > gizlenmesi, yönlendirilmesi, kopyalanması veya herhangi bir şekilde
> > kullanılması yasaktır. Internet iletişiminde güvenlik ve hatasız gönderim
> > garanti edilemeyeceğinden, mesajın yerine ulaşmaması, geç ulaşması,
> > içeriğinin bozulması ya da mesajın virus taşıması gibi problemler
> > oluşabilir. Gönderen taraf bu tip sorunlardan sorumlu tutulmaz.
> >
> > This e-mail message and any attachments are confidential and intended
> > solely for the use of the individual or entity to whom they are
> addressed.
> > If you have received this message in error, please notify the sender
> > immediately and delete it from your system. If you are not the intended
> > recipient you are hereby notified that any dissemination, forwarding,
> > copying or use of any of the information is prohibited. Internet
> > communications cannot be guaranteed to be secure or error-free as
> > information could be intercepted, corrupted, lost, arrive late or contain
> > viruses. The sender therefore does not accept liability for any errors or
> > omissions in the context of this message which arise as a result of
> > Internet transmission
> >
>

Re: Servlets loaded twice

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,

last version is 1.6.0-SNAPSHOT

*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/4/5 <er...@teb.com.tr>

>  Hi,
>
> We have upgraded to the latest 1.6.1-SNAPSHOT version but within this
> version servlets defined is loaded twice and have the following exception:
>
> (Also find the sample application that you can reproduce this issue as the
> attachment)
>
>
>
> 05.Nis.2013 09:42:12 org.apache.openejb.cdi.OpenEJBLifecycle
> startApplication
>
> INFO: OpenWebBeans Container is starting...
>
> 05.Nis.2013 09:42:12 org.apache.webbeans.plugins.PluginLoader startUp
>
> INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
>
> 05.Nis.2013 09:42:12 org.apache.webbeans.plugins.PluginLoader startUp
>
> INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
>
> 05.Nis.2013 09:42:12 org.apache.openejb.cdi.BeansDeployer
> validateInjectionPoints
>
> INFO: All injection points are validated successfully.
>
> 05.Nis.2013 09:42:12 org.apache.openejb.cdi.OpenEJBLifecycle
> startApplication
>
> INFO: OpenWebBeans Container has started, it took 11 ms.
>
> 05.Nis.2013 09:42:12 org.apache.openejb.assembler.classic.Assembler
> createApplication
>
> INFO: Deployed
> Application(path=C:\dev\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp6\wtpwebapps\webapp)
>
> 05.Nis.2013 09:42:12 org.apache.catalina.core.ContainerBase startInternal
>
> SEVERE: A child container failed during start
>
> Throwable occurred: *java.util.concurrent.ExecutionException*: *
> org.apache.catalina.LifecycleException*: Failed to start component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webapp]]
>
>        at java.util.concurrent.FutureTask$Sync.innerGet(*
> FutureTask.java:233*)
>
>        at java.util.concurrent.FutureTask.get(*FutureTask.java:94*)
>
>        at org.apache.catalina.core.ContainerBase.startInternal(*
> ContainerBase.java:1123*)
>
>        at org.apache.catalina.core.StandardHost.startInternal(*
> StandardHost.java:800*)
>
>        at org.apache.catalina.util.LifecycleBase.start(*
> LifecycleBase.java:150*)
>
>        at org.apache.catalina.core.ContainerBase$StartChild.call(*
> ContainerBase.java:1559*)
>
>        at org.apache.catalina.core.ContainerBase$StartChild.call(*
> ContainerBase.java:1549*)
>
>        at java.util.concurrent.FutureTask$Sync.innerRun(*
> FutureTask.java:314*)
>
>        at java.util.concurrent.FutureTask.run(*FutureTask.java:149*)
>
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(*
> ThreadPoolExecutor.java:897*)
>
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(*
> ThreadPoolExecutor.java:919*)
>
>        at java.lang.Thread.run(*Thread.java:772*)
>
> Caused by: *org.apache.catalina.LifecycleException*: Failed to start
> component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webapp]]
>
>        at org.apache.catalina.util.LifecycleBase.start(*
> LifecycleBase.java:154*)
>
>        ... 7 more
>
> Caused by: *java.lang.IllegalArgumentException*: The servlets named
> [/TestServlet] and [/TestServlet] are both mapped to the url-pattern
> [/testMe/*] which is not permitted
>
>        at org.apache.catalina.deploy.WebXml.addServletMapping(*
> WebXml.java:335*)
>
>        at org.apache.catalina.deploy.WebXml.merge(*WebXml.java:1691*)
>
>        at org.apache.catalina.startup.ContextConfig.webConfig(*
> ContextConfig.java:1338*)
>
>        at org.apache.tomee.catalina.OpenEJBContextConfig.webConfig(*
> OpenEJBContextConfig.java:296*)
>
>        at org.apache.catalina.startup.ContextConfig.configureStart(*
> ContextConfig.java:878*)
>
>        at org.apache.tomee.catalina.OpenEJBContextConfig.configureStart(*
> OpenEJBContextConfig.java:95*)
>
>        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(*
> ContextConfig.java:369*)
>
>        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*)
>
>        ... 7 more
>
> 05.Nis.2013 09:42:12 org.apache.catalina.core.ContainerBase startInternal
>
> SEVERE: A child container failed during start
>
> Throwable occurred: *java.util.concurrent.ExecutionException*: *
> org.apache.catalina.LifecycleException*: Failed to start component
> [StandardEngine[Catalina].StandardHost[localhost]]
>
>        at java.util.concurrent.FutureTask$Sync.innerGet(*
> FutureTask.java:233*)
>
>        at java.util.concurrent.FutureTask.get(*FutureTask.java:94*)
>
>        at org.apache.catalina.core.ContainerBase.startInternal(*
> ContainerBase.java:1123*)
>
>        at org.apache.catalina.core.StandardEngine.startInternal(*
> StandardEngine.java:302*)
>
>        at org.apache.catalina.util.LifecycleBase.start(*
> LifecycleBase.java:150*)
>
>        at org.apache.catalina.core.StandardService.startInternal(*
> StandardService.java:443*)
>
>        at org.apache.catalina.util.LifecycleBase.start(*
> LifecycleBase.java:150*)
>
>        at org.apache.catalina.core.StandardServer.startInternal(*
> StandardServer.java:732*)
>
>        at org.apache.catalina.util.LifecycleBase.start(*
> LifecycleBase.java:150*)
>
>        at org.apache.catalina.startup.Catalina.start(*Catalina.java:684*)
>
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(*Native Method*)
>
>        at sun.reflect.NativeMethodAccessorImpl.invoke(*
> NativeMethodAccessorImpl.java:60*)
>
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(*
> DelegatingMethodAccessorImpl.java:37*)
>
>        at java.lang.reflect.Method.invoke(*Method.java:611*)
>
>        at org.apache.catalina.startup.Bootstrap.start(*Bootstrap.java:322*
> )
>
>        at org.apache.catalina.startup.Bootstrap.main(*Bootstrap.java:456*)
>
> Caused by: *org.apache.catalina.LifecycleException*: Failed to start
> component [StandardEngine[Catalina].StandardHost[localhost]]
>
>        at org.apache.catalina.util.LifecycleBase.start(*
> LifecycleBase.java:154*)
>
>        at org.apache.catalina.core.ContainerBase$StartChild.call(*
> ContainerBase.java:1559*)
>
>        at org.apache.catalina.core.ContainerBase$StartChild.call(*
> ContainerBase.java:1549*)
>
>        at java.util.concurrent.FutureTask$Sync.innerRun(*
> FutureTask.java:314*)
>
>        at java.util.concurrent.FutureTask.run(*FutureTask.java:149*)
>
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(*
> ThreadPoolExecutor.java:897*)
>
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(*
> ThreadPoolExecutor.java:919*)
>
>        at java.lang.Thread.run(*Thread.java:772*)
>
> Caused by: *org.apache.catalina.LifecycleException*: A child container
> failed during start
>
>        at org.apache.catalina.core.ContainerBase.startInternal(*
> ContainerBase.java:1131*)
>
>        at org.apache.catalina.core.StandardHost.startInternal(*
> StandardHost.java:800*)
>
>        at org.apache.catalina.util.LifecycleBase.start(*
> LifecycleBase.java:150*)
>
>        ... 7 more
>
>
>
>
>
> ------------------------------
> Bu elektronik posta mesajı ve ekleri sadece gönderildiği kişi veya kuruma
> özeldir ve gizli bilgiler içerebilir. Eğer bu mesajı hataen aldıysanız
> lütfen bu durumu gönderen kişiye derhal bildiriniz ve mesajı sisteminizden
> siliniz. Eğer doğru kişiye ulaşmadığını düşünüyorsanız, bu mesajın
> gizlenmesi, yönlendirilmesi, kopyalanması veya herhangi bir şekilde
> kullanılması yasaktır. Internet iletişiminde güvenlik ve hatasız gönderim
> garanti edilemeyeceğinden, mesajın yerine ulaşmaması, geç ulaşması,
> içeriğinin bozulması ya da mesajın virus taşıması gibi problemler
> oluşabilir. Gönderen taraf bu tip sorunlardan sorumlu tutulmaz.
>
> This e-mail message and any attachments are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this message in error, please notify the sender
> immediately and delete it from your system. If you are not the intended
> recipient you are hereby notified that any dissemination, forwarding,
> copying or use of any of the information is prohibited. Internet
> communications cannot be guaranteed to be secure or error-free as
> information could be intercepted, corrupted, lost, arrive late or contain
> viruses. The sender therefore does not accept liability for any errors or
> omissions in the context of this message which arise as a result of
> Internet transmission
>