tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Volkov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TOMEE-602) Cannot deploy application with custom context path
Date Mon, 26 Nov 2012 08:54:58 GMT

    [ https://issues.apache.org/jira/browse/TOMEE-602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503676#comment-13503676
] 

Dmitry Volkov commented on TOMEE-602:
-------------------------------------

Hi, 

the goal is auto deployment under custom context path. War file named A#B.war placed in webapps
folder will be deployed under A/B context path. See "Naming" in http://tomcat.apache.org/tomcat-7.0-doc/config/context.html
                
> Cannot deploy application with custom context path
> --------------------------------------------------
>
>                 Key: TOMEE-602
>                 URL: https://issues.apache.org/jira/browse/TOMEE-602
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.5.0, 1.5.1
>         Environment: Windows 7, Windows Server 2008, java version "1.6.0_37"
>            Reporter: Dmitry Volkov
>         Attachments: example#foo.war
>
>
> I am trying to deploy example MyFaces CODI application under custom context path. The
apllication deployed and started normally when war filename does not contain "#". File with
name "example#foo.war" is deployed normally, but cannot start with the following exception.
I have tryed  with both versions 1.5.0 and Snapshot tomee-1.5.1-20121123. The behavior is
same in both "apps" and "webapps" folders. 
> CDI Beans module deployment failed
> javax.enterprise.inject.UnsatisfiedResolutionException: Api type [org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.spi.ViewControllerStrategy]
is not found with the qualifiers 
> Qualifiers: [@javax.enterprise.inject.Default()]
> for injection into Field Injection Point, field name :  viewControllerStrategy, Bean
Owner : [ViewControllerInterceptor, Name:null, WebBeans Type:MANAGED, API Types:[java.io.Serializable,org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.ViewControllerInterceptor,java.lang.Object],
Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]]
> 	at org.apache.webbeans.util.InjectionExceptionUtils.throwUnsatisfiedResolutionException(InjectionExceptionUtils.java:77)
> 	at org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:193)
> 	at org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1025)
> 	at org.apache.openejb.cdi.BeansDeployer.validate(BeansDeployer.java:269)
> 	at org.apache.openejb.cdi.BeansDeployer.validateInjectionPoints(BeansDeployer.java:215)
> 	at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:280)
> 	at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:150)
> 	at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:44)
> 	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:803)
> 	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:533)
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:953)
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:887)
> 	at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> 	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:5173)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> 	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.deployWAR(HostConfig.java:977)
> 	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)
> 23.11.2012 15:33:50 org.apache.openejb.assembler.classic.Assembler destroyApplication
> INFO: Undeploying app: C:\java\apache-tomee-webprofile-1.5.0_base\webapps\example#foo
> 23.11.2012 15:33:50 org.apache.catalina.core.ContainerBase removeChild
> SCHWERWIEGEND: ContainerBase.removeChild: destroy: 
> org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted
([before_destroy]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/example/foo]]
in state [STARTING_PREP]
> 	at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:409)
> 	at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:299)
> 	at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1138)
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1119)
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.undeployWebApps(TomcatWebAppBuilder.java:621)
> 	at org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:1269)
> 	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:951)
> 	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:533)
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:953)
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:887)
> 	at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> 	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:5173)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> 	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.deployWAR(HostConfig.java:977)
> 	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)
> 23.11.2012 15:33:51 org.apache.tomee.catalina.TomcatWebAppBuilder startInternal
> SCHWERWIEGEND: Unable to deploy collapsed ear in war StandardEngine[Catalina].StandardHost[localhost].StandardContext[/example/foo]
> org.apache.openejb.OpenEJBException: Creating application failed: C:\java\apache-tomee-webprofile-1.5.0_base\webapps\example#foo:
couldn't start owb context
> 	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:955)
> 	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:533)
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:953)
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:887)
> 	at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> 	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:5173)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> 	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.deployWAR(HostConfig.java:977)
> 	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.openejb.OpenEJBRuntimeException: couldn't start owb context
> 	at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:152)
> 	at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:44)
> 	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:803)
> 	... 19 more
> Caused by: org.apache.openejb.OpenEJBRuntimeException: javax.enterprise.inject.UnsatisfiedResolutionException:
Api type [org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.spi.ViewControllerStrategy]
is not found with the qualifiers 
> Qualifiers: [@javax.enterprise.inject.Default()]
> for injection into Field Injection Point, field name :  viewControllerStrategy, Bean
Owner : [ViewControllerInterceptor, Name:null, WebBeans Type:MANAGED, API Types:[java.io.Serializable,org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.ViewControllerInterceptor,java.lang.Object],
Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]]
> 	at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:323)
> 	at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:150)
> 	... 21 more
> Caused by: javax.enterprise.inject.UnsatisfiedResolutionException: Api type [org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.spi.ViewControllerStrategy]
is not found with the qualifiers 
> Qualifiers: [@javax.enterprise.inject.Default()]
> for injection into Field Injection Point, field name :  viewControllerStrategy, Bean
Owner : [ViewControllerInterceptor, Name:null, WebBeans Type:MANAGED, API Types:[java.io.Serializable,org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.ViewControllerInterceptor,java.lang.Object],
Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]]
> 	at org.apache.webbeans.util.InjectionExceptionUtils.throwUnsatisfiedResolutionException(InjectionExceptionUtils.java:77)
> 	at org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:193)
> 	at org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1025)
> 	at org.apache.openejb.cdi.BeansDeployer.validate(BeansDeployer.java:269)
> 	at org.apache.openejb.cdi.BeansDeployer.validateInjectionPoints(BeansDeployer.java:215)
> 	at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:280)
> 	... 22 more
> 23.11.2012 15:33:51 org.apache.catalina.core.ContainerBase addChildInternal
> SCHWERWIEGEND: ContainerBase.addChild: start: 
> org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/example/foo]]
> 	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.deployWAR(HostConfig.java:977)
> 	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.OpenEJBException:
Creating application failed: C:\java\apache-tomee-webprofile-1.5.0_base\webapps\example#foo:
couldn't start owb context
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:960)
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:887)
> 	at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> 	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:5173)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> 	... 11 more
> Caused by: org.apache.openejb.OpenEJBException: Creating application failed: C:\java\apache-tomee-webprofile-1.5.0_base\webapps\example#foo:
couldn't start owb context
> 	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:955)
> 	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:533)
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:953)
> 	... 17 more
> Caused by: org.apache.openejb.OpenEJBRuntimeException: couldn't start owb context
> 	at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:152)
> 	at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:44)
> 	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:803)
> 	... 19 more
> Caused by: org.apache.openejb.OpenEJBRuntimeException: javax.enterprise.inject.UnsatisfiedResolutionException:
Api type [org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.spi.ViewControllerStrategy]
is not found with the qualifiers 
> Qualifiers: [@javax.enterprise.inject.Default()]
> for injection into Field Injection Point, field name :  viewControllerStrategy, Bean
Owner : [ViewControllerInterceptor, Name:null, WebBeans Type:MANAGED, API Types:[java.io.Serializable,org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.ViewControllerInterceptor,java.lang.Object],
Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]]
> 	at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:323)
> 	at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:150)
> 	... 21 more
> Caused by: javax.enterprise.inject.UnsatisfiedResolutionException: Api type [org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.spi.ViewControllerStrategy]
is not found with the qualifiers 
> Qualifiers: [@javax.enterprise.inject.Default()]
> for injection into Field Injection Point, field name :  viewControllerStrategy, Bean
Owner : [ViewControllerInterceptor, Name:null, WebBeans Type:MANAGED, API Types:[java.io.Serializable,org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.ViewControllerInterceptor,java.lang.Object],
Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]]
> 	at org.apache.webbeans.util.InjectionExceptionUtils.throwUnsatisfiedResolutionException(InjectionExceptionUtils.java:77)
> 	at org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:193)
> 	at org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1025)
> 	at org.apache.openejb.cdi.BeansDeployer.validate(BeansDeployer.java:269)
> 	at org.apache.openejb.cdi.BeansDeployer.validateInjectionPoints(BeansDeployer.java:215)
> 	at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:280)
> 	... 22 more
> 23.11.2012 15:33:51 org.apache.catalina.startup.HostConfig deployWAR
> SCHWERWIEGEND: Error deploying web application archive C:\java\apache-tomee-webprofile-1.5.0_base\webapps\example#foo.war
> java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException:
Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/example/foo]]
> 	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.deployWAR(HostConfig.java:977)
> 	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:619)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message