TomEE
  1. TomEE
  2. TOMEE-1

TomEE Beta 1.0.0 doesn't start with MyFaces CODI

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-beta-1
    • Fix Version/s: 1.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      TomEE Beta 1.0.0, MyFaces ExtCDI 1.0.1

      Description

      When deploying a WAR on Tomee with included MyFaces CODI JARs in /WEB-INF/lib the server fails to start with following stacktrace:

      06.10.2011 10:29:37 org.apache.catalina.core.AprLifecycleListener init
      INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\JDK\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/JDK/bin/../jre/bin/server;C:/JDK/bin/../jre/bin;C:/JDK/bin/../jre/lib/amd64;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Apache\Maven\bin;C:\Program Files\Apache\Ant\bin;C:\Program Files\TortoiseHg\;C:\Program Files\Eclipse;;.
      06.10.2011 10:29:37 org.apache.tomcat.util.digester.SetPropertiesRule begin
      WARNUNG: [SetPropertiesRule]

      {Server/Service/Engine/Host/Context}

      Setting property 'source' to 'org.eclipse.jst.jee.server:XXXXX' did not find a matching property.
      ERROR: OpenEJB webapp was not found
      06.10.2011 10:29:37 org.apache.coyote.AbstractProtocol init
      INFO: Initializing ProtocolHandler ["http-bio-8081"]
      06.10.2011 10:29:37 org.apache.coyote.AbstractProtocol init
      INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
      Apache OpenEJB 4.0.0-beta-1 build: 20111002-11:3006.10.2011 10:29:38 org.apache.openejb.cdi.CdiBuilder initializeOWB
      INFO: Created new singletonService org.apache.openejb.cdi.ThreadSingletonServiceImpl@6e8f94
      06.10.2011 10:29:38 org.apache.openejb.cdi.CdiBuilder initializeOWB
      INFO: succeeded in installing singleton service

      http://openejb.apache.org/
      log4j:WARN No appenders could be found for logger (org.apache.bval.jsr303.resolver.DefaultTraversableResolver).
      log4j:WARN Please initialize the log4j system properly.
      log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
      06.10.2011 10:29:43 org.apache.openejb.cdi.CdiBuilder build
      INFO: existing thread singleton service in SystemInstance() org.apache.openejb.cdi.ThreadSingletonServiceImpl@6e8f94
      06.10.2011 10:29:43 org.apache.openejb.cdi.OpenEJBLifecycle startApplication
      INFO: OpenWebBeans Container is starting...
      06.10.2011 10:29:43 org.apache.webbeans.plugins.PluginLoader startUp
      INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
      06.10.2011 10:29:43 org.apache.webbeans.plugins.PluginLoader startUp
      INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
      06.10.2011 10:29:43 org.apache.openejb.cdi.BeansDeployer validateInjectionPoints
      INFO: All injection points were validated successfully.
      06.10.2011 10:29:43 org.apache.openejb.cdi.OpenEJBLifecycle startApplication
      INFO: OpenWebBeans Container has started, it took [133] ms.
      06.10.2011 10:29:43 org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 7027 ms
      06.10.2011 10:29:43 org.apache.catalina.core.StandardService startInternal
      INFO: Starting service Catalina
      06.10.2011 10:29:43 org.apache.catalina.core.StandardEngine startInternal
      INFO: Starting Servlet Engine: Apache Tomcat/7.0.21
      TomcatWebAppBuilder.start
      context path = /XXXXX
      06.10.2011 10:29:46 org.apache.openejb.cdi.CdiBuilder build
      INFO: existing thread singleton service in SystemInstance() org.apache.openejb.cdi.ThreadSingletonServiceImpl@6e8f94
      06.10.2011 10:29:46 org.apache.openejb.cdi.OpenEJBLifecycle startApplication
      INFO: OpenWebBeans Container is starting...
      06.10.2011 10:29:46 org.apache.webbeans.plugins.PluginLoader startUp
      INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
      06.10.2011 10:29:46 org.apache.webbeans.plugins.PluginLoader startUp
      INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
      06.10.2011 10:29:46 org.apache.myfaces.extensions.cdi.core.api.provider.ServiceProvider <clinit>
      INFO: org.apache.myfaces.extensions.cdi.core.impl.provider.DefaultServiceProvider installed successfully.
      06.10.2011 10:29:46 org.apache.myfaces.extensions.cdi.core.api.provider.ServiceProvider <clinit>
      INFO: org.apache.myfaces.extensions.cdi.core.impl.provider.DefaultServiceProviderContext installed successfully.
      06.10.2011 10:29:46 org.apache.myfaces.extensions.cdi.core.impl.projectstage.ProjectStageProducer initProjectStage
      INFO: Computed the following CODI ProjectStage: Production
      06.10.2011 10:29:47 org.apache.catalina.startup.Catalina start
      SCHWERWIEGEND: Catalina.start:
      org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8006]]
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:621)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
      Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
      at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
      ... 7 more
      Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
      at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
      ... 9 more
      Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
      at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
      ... 11 more
      Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/XXXXX]]
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
      at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
      ... 14 more
      Caused by: java.lang.NullPointerException
      at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:496)
      at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:377)
      at org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
      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:5103)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
      ... 17 more
      06.10.2011 10:29:47 org.apache.catalina.startup.Catalina start
      INFO: Server startup in 3255 ms

      1. codi-sample.zip
        4 kB
        Heinz Burgstaller

        Issue Links

          Activity

          Hide
          David Blevins added a comment -

          Can we get a JIRA filed for the fix and link it to this JIRA?

          Show
          David Blevins added a comment - Can we get a JIRA filed for the fix and link it to this JIRA?
          Hide
          Romain Manni-Bucau added a comment -

          i don't know when the next beta will be released but you can get the snapshot to test: https://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/1.0.0-beta-2-SNAPSHOT/

          Show
          Romain Manni-Bucau added a comment - i don't know when the next beta will be released but you can get the snapshot to test: https://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/1.0.0-beta-2-SNAPSHOT/
          Hide
          Heinz Burgstaller added a comment -

          Good to hear! So will there be a new release of TomEE/OpenEJB any time soon?

          Show
          Heinz Burgstaller added a comment - Good to hear! So will there be a new release of TomEE/OpenEJB any time soon?
          Hide
          Romain Manni-Bucau added a comment -

          i made your example worked (i got "Hallo um Thu Oct 06 18:13:52 CEST 2011") with the patch i just commited so there was a bug :s

          Show
          Romain Manni-Bucau added a comment - i made your example worked (i got "Hallo um Thu Oct 06 18:13:52 CEST 2011") with the patch i just commited so there was a bug :s
          Hide
          Romain Manni-Bucau added a comment -

          the real exception is:

          java.lang.ClassCastException: javax.servlet.ServletContextEvent cannot be cast to org.apache.openejb.cdi.StartupObject

          i'll have a look deeper soon.

          Show
          Romain Manni-Bucau added a comment - the real exception is: java.lang.ClassCastException: javax.servlet.ServletContextEvent cannot be cast to org.apache.openejb.cdi.StartupObject i'll have a look deeper soon.
          Hide
          Heinz Burgstaller added a comment -

          I'm using the same version. Do you have an approach what I can do, investigating my last stacktrace?

          Show
          Heinz Burgstaller added a comment - I'm using the same version. Do you have an approach what I can do, investigating my last stacktrace?
          Hide
          Romain Manni-Bucau added a comment -

          i use the JVM 1.6.0_27 from oracle .

          Show
          Romain Manni-Bucau added a comment - i use the JVM 1.6.0_27 from oracle .
          Hide
          Heinz Burgstaller added a comment -

          Strange! I get a different stacktrace in openejb.log (See below). Which Java version from which vendor do you use?

          2011-10-06 14:54:32,292 - INFO - Optional service not installed: org.apache.tomee.webservices.TomeeJaxRsService
          2011-10-06 14:54:32,293 - INFO - Optional service not installed: org.apache.tomee.webservices.TomeeJaxWsService
          2011-10-06 14:54:32,354 - INFO - openejb.home = D:\Server\apache-tomee-webprofile-1.0.0-beta-1
          2011-10-06 14:54:32,354 - INFO - openejb.base = D:\Server\apache-tomee-webprofile-1.0.0-beta-1
          2011-10-06 14:54:32,572 - INFO - Using 'openejb.provider.default=org.apache.openejb.tomcat'
          2011-10-06 14:54:32,591 - INFO - Configuring Service(id=Tomcat Security Service, type=SecurityService, provider-id=Tomcat Security Service)
          2011-10-06 14:54:32,593 - INFO - Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager)
          2011-10-06 14:54:32,594 - INFO - Configuring Service(id=My DataSource, type=Resource, provider-id=Default JDBC Database)
          2011-10-06 14:54:32,595 - INFO - Configuring Service(id=My Unmanaged DataSource, type=Resource, provider-id=Default JDBC Database)
          2011-10-06 14:54:32,598 - INFO - Configuring Service(id=My Singleton Container, type=Container, provider-id=Default Singleton Container)
          2011-10-06 14:54:32,599 - INFO - Configuring Service(id=My Stateful Container, type=Container, provider-id=Default Stateful Container)
          2011-10-06 14:54:32,600 - INFO - Configuring Service(id=My Stateless Container, type=Container, provider-id=Default Stateless Container)
          2011-10-06 14:54:32,604 - INFO - Using 'openejb.deployments.classpath=true'
          2011-10-06 14:54:32,604 - INFO - Using 'openejb.deployments.classpath.filter.systemapps=false'
          2011-10-06 14:54:32,681 - INFO - Inspecting classpath for applications: 37 urls. Consider adjusting your exclude/include. Current settings: openejb.deployments.classpath.exclude='', openejb.deployments.classpath.include='.*'
          2011-10-06 14:54:33,537 - INFO - Found EjbModule in classpath: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\openejb\lib\openejb-core-4.0.0-beta-1.jar
          2011-10-06 14:54:34,453 - INFO - Searched 37 classpath urls in 1678 milliseconds. Average 45 milliseconds per url.
          2011-10-06 14:54:34,460 - INFO - Beginning load: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\openejb\lib\openejb-core-4.0.0-beta-1.jar
          2011-10-06 14:54:34,643 - INFO - Configuring enterprise application: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\bin\classpath.ear
          2011-10-06 14:54:35,921 - INFO - Enterprise application "D:\Server\apache-tomee-webprofile-1.0.0-beta-1\bin\classpath.ear" loaded.
          2011-10-06 14:54:35,938 - INFO - Creating TransactionManager(id=Default Transaction Manager)
          2011-10-06 14:54:36,025 - INFO - Creating SecurityService(id=Tomcat Security Service)
          2011-10-06 14:54:36,052 - INFO - Creating Resource(id=My DataSource)
          2011-10-06 14:54:36,077 - INFO - Creating Resource(id=My Unmanaged DataSource)
          2011-10-06 14:54:36,082 - INFO - Creating Container(id=My Singleton Container)
          2011-10-06 14:54:36,107 - INFO - Creating Container(id=My Stateful Container)
          2011-10-06 14:54:36,143 - INFO - Creating Container(id=My Stateless Container)
          2011-10-06 14:54:36,169 - INFO - Assembling app: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\bin\classpath.ear
          2011-10-06 14:54:36,318 - INFO - Using 'openejb.jndiname.format=

          {deploymentId} {interfaceType.openejbLegacyName}

          '
          2011-10-06 14:54:36,335 - INFO - Jndi(name=openejb/DeployerBusinessRemote) --> Ejb(deployment-id=openejb/Deployer)
          2011-10-06 14:54:36,335 - INFO - Jndi(name=global/classpath.ear/openejb-core-4.0.0-beta-1/openejb/Deployer!org.apache.openejb.assembler.Deployer) --> Ejb(deployment-id=openejb/Deployer)
          2011-10-06 14:54:36,335 - INFO - Jndi(name=global/classpath.ear/openejb-core-4.0.0-beta-1/openejb/Deployer) --> Ejb(deployment-id=openejb/Deployer)
          2011-10-06 14:54:36,336 - INFO - Jndi(name=openejb/ConfigurationInfoBusinessRemote) --> Ejb(deployment-id=openejb/ConfigurationInfo)
          2011-10-06 14:54:36,336 - INFO - Jndi(name=global/classpath.ear/openejb-core-4.0.0-beta-1/openejb/ConfigurationInfo!org.apache.openejb.assembler.classic.cmd.ConfigurationInfo) --> Ejb(deployment-id=openejb/ConfigurationInfo)
          2011-10-06 14:54:36,337 - INFO - Jndi(name=global/classpath.ear/openejb-core-4.0.0-beta-1/openejb/ConfigurationInfo) --> Ejb(deployment-id=openejb/ConfigurationInfo)
          2011-10-06 14:54:36,340 - INFO - Jndi(name=MEJB) --> Ejb(deployment-id=MEJB)
          2011-10-06 14:54:36,340 - INFO - Jndi(name=global/classpath.ear/openejb-core-4.0.0-beta-1/MEJB!javax.management.j2ee.ManagementHome) --> Ejb(deployment-id=MEJB)
          2011-10-06 14:54:36,340 - INFO - Jndi(name=global/classpath.ear/openejb-core-4.0.0-beta-1/MEJB) --> Ejb(deployment-id=MEJB)
          2011-10-06 14:54:36,591 - INFO - Created Ejb(deployment-id=openejb/Deployer, ejb-name=openejb/Deployer, container=My Stateless Container)
          2011-10-06 14:54:36,591 - INFO - Created Ejb(deployment-id=MEJB, ejb-name=MEJB, container=My Stateless Container)
          2011-10-06 14:54:36,591 - INFO - Created Ejb(deployment-id=openejb/ConfigurationInfo, ejb-name=openejb/ConfigurationInfo, container=My Stateless Container)
          2011-10-06 14:54:36,696 - INFO - Started Ejb(deployment-id=openejb/Deployer, ejb-name=openejb/Deployer, container=My Stateless Container)
          2011-10-06 14:54:36,721 - INFO - Started Ejb(deployment-id=MEJB, ejb-name=MEJB, container=My Stateless Container)
          2011-10-06 14:54:36,750 - INFO - Started Ejb(deployment-id=openejb/ConfigurationInfo, ejb-name=openejb/ConfigurationInfo, container=My Stateless Container)
          2011-10-06 14:54:36,751 - INFO - Deployed Application(path=D:\Server\apache-tomee-webprofile-1.0.0-beta-1\bin\classpath.ear)
          2011-10-06 14:54:36,798 - INFO - Importing a Tomcat Resource with id 'UserDatabase' of type 'org.apache.catalina.UserDatabase'.
          2011-10-06 14:54:36,798 - INFO - Creating Resource(id=UserDatabase)
          2011-10-06 14:54:37,820 - ERROR - faces config file is null
          2011-10-06 14:54:38,296 - INFO - Configuring enterprise application: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\codi-sample
          2011-10-06 14:54:39,335 - INFO - Configuring Service(id=Default Managed Container, type=Container, provider-id=Default Managed Container)
          2011-10-06 14:54:39,335 - INFO - Auto-creating a container for bean localhost/codi-sample.Comp: Container(type=MANAGED, id=Default Managed Container)
          2011-10-06 14:54:39,335 - INFO - Creating Container(id=Default Managed Container)
          2011-10-06 14:54:39,351 - INFO - Enterprise application "D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\codi-sample" loaded.
          2011-10-06 14:54:39,351 - INFO - Assembling app: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\codi-sample
          2011-10-06 14:54:39,359 - INFO - Jndi(name=localhost/codi-sample.CompLocalBean) --> Ejb(deployment-id=localhost/codi-sample.Comp)
          2011-10-06 14:54:39,359 - INFO - Jndi(name=global/localhost/codi-sample/localhost/codi-sample.Comp!org.apache.openejb.BeanContext$Comp) --> Ejb(deployment-id=localhost/codi-sample.Comp)
          2011-10-06 14:54:39,359 - INFO - Jndi(name=global/localhost/codi-sample/localhost/codi-sample.Comp) --> Ejb(deployment-id=localhost/codi-sample.Comp)
          2011-10-06 14:54:39,640 - ERROR - 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:[org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.ViewControllerInterceptor,java.lang.Object,java.io.Serializable], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]]
          at org.apache.webbeans.util.InjectionExceptionUtils.throwUnsatisfiedResolutionException(InjectionExceptionUtils.java:92)
          at org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:98)
          at org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:193)
          at org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1148)
          at org.apache.openejb.cdi.BeansDeployer.validate(BeansDeployer.java:262)
          at org.apache.openejb.cdi.BeansDeployer.validateInjectionPoints(BeansDeployer.java:208)
          at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:278)
          at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:95)
          at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:50)
          at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:728)
          at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:487)
          at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:423)
          at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:377)
          at org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
          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:5103)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812)
          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)
          at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:932)
          at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:723)
          at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
          at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329)
          at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
          at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
          at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389)
          at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334)
          at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041)
          at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
          at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
          at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
          at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
          at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
          at org.apache.catalina.startup.Catalina.start(Catalina.java:621)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
          2011-10-06 14:54:39,648 - INFO - Undeploying app: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\codi-sample
          2011-10-06 14:54:39,812 - ERROR - Unable to deploy collapsed ear in war /codi-sample: Exception: Creating application failed: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\codi-sample: couldn't start owb context
          org.apache.openejb.OpenEJBException: Creating application failed: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\codi-sample: couldn't start owb context
          at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:835)
          at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:487)
          at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:423)
          at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:377)
          at org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
          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:5103)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812)
          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)
          at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:932)
          at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:723)
          at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
          at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329)
          at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
          at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
          at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389)
          at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334)
          at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041)
          at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
          at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
          at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
          at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
          at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
          at org.apache.catalina.startup.Catalina.start(Catalina.java:621)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
          Caused by: java.lang.RuntimeException: couldn't start owb context
          at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:97)
          at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:50)
          at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:728)
          ... 37 more
          Caused by: java.lang.RuntimeException: 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:[org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.ViewControllerInterceptor,java.lang.Object,java.io.Serializable], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]]
          at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:311)
          at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:95)
          ... 39 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:[org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.ViewControllerInterceptor,java.lang.Object,java.io.Serializable], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]]
          at org.apache.webbeans.util.InjectionExceptionUtils.throwUnsatisfiedResolutionException(InjectionExceptionUtils.java:92)
          at org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:98)
          at org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:193)
          at org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1148)
          at org.apache.openejb.cdi.BeansDeployer.validate(BeansDeployer.java:262)
          at org.apache.openejb.cdi.BeansDeployer.validateInjectionPoints(BeansDeployer.java:208)
          at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:278)
          ... 40 more
          2011-10-06 14:54:39,820 - ERROR - Error merging Java EE JNDI entries in to war /codi-sample: Exception: null
          java.lang.NullPointerException
          at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:465)
          at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:377)
          at org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
          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:5103)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812)
          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)
          at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:932)
          at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:723)
          at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
          at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329)
          at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
          at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
          at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
          at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389)
          at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334)
          at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041)
          at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
          at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
          at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
          at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
          at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
          at org.apache.catalina.startup.Catalina.start(Catalina.java:621)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
          2011-10-06 14:54:40,023 - ERROR - faces config file is null
          2011-10-06 14:54:40,163 - INFO - Configuring enterprise application: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\docs
          2011-10-06 14:54:40,171 - INFO - Enterprise application "D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\docs" loaded.
          2011-10-06 14:54:40,171 - INFO - Assembling app: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\docs
          2011-10-06 14:54:40,195 - INFO - Deployed Application(path=D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\docs)
          2011-10-06 14:54:41,242 - ERROR - faces config file is null
          2011-10-06 14:54:41,499 - INFO - Configuring enterprise application: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\host-manager
          2011-10-06 14:54:41,507 - INFO - Enterprise application "D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\host-manager" loaded.
          2011-10-06 14:54:41,507 - INFO - Assembling app: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\host-manager
          2011-10-06 14:54:41,538 - INFO - Deployed Application(path=D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\host-manager)
          2011-10-06 14:54:41,859 - ERROR - faces config file is null
          2011-10-06 14:54:42,023 - INFO - Configuring enterprise application: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\manager
          2011-10-06 14:54:42,031 - INFO - Enterprise application "D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\manager" loaded.
          2011-10-06 14:54:42,031 - INFO - Assembling app: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\manager
          2011-10-06 14:54:42,054 - INFO - Deployed Application(path=D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\manager)
          2011-10-06 14:54:42,335 - ERROR - faces config file is null
          2011-10-06 14:54:42,546 - INFO - Configuring enterprise application: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\openejb
          2011-10-06 14:54:42,843 - INFO - Enterprise application "D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\openejb" loaded.
          2011-10-06 14:54:42,843 - INFO - Assembling app: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\openejb
          2011-10-06 14:54:42,874 - INFO - Deployed Application(path=D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\openejb)
          2011-10-06 14:54:43,203 - ERROR - faces config file is null
          2011-10-06 14:54:43,367 - INFO - Configuring enterprise application: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\ROOT
          2011-10-06 14:54:43,367 - INFO - Enterprise application "D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\ROOT" loaded.
          2011-10-06 14:54:43,367 - INFO - Assembling app: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\ROOT
          2011-10-06 14:54:43,390 - INFO - Deployed Application(path=D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\ROOT)

          Show
          Heinz Burgstaller added a comment - Strange! I get a different stacktrace in openejb.log (See below). Which Java version from which vendor do you use? 2011-10-06 14:54:32,292 - INFO - Optional service not installed: org.apache.tomee.webservices.TomeeJaxRsService 2011-10-06 14:54:32,293 - INFO - Optional service not installed: org.apache.tomee.webservices.TomeeJaxWsService 2011-10-06 14:54:32,354 - INFO - openejb.home = D:\Server\apache-tomee-webprofile-1.0.0-beta-1 2011-10-06 14:54:32,354 - INFO - openejb.base = D:\Server\apache-tomee-webprofile-1.0.0-beta-1 2011-10-06 14:54:32,572 - INFO - Using 'openejb.provider.default=org.apache.openejb.tomcat' 2011-10-06 14:54:32,591 - INFO - Configuring Service(id=Tomcat Security Service, type=SecurityService, provider-id=Tomcat Security Service) 2011-10-06 14:54:32,593 - INFO - Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager) 2011-10-06 14:54:32,594 - INFO - Configuring Service(id=My DataSource, type=Resource, provider-id=Default JDBC Database) 2011-10-06 14:54:32,595 - INFO - Configuring Service(id=My Unmanaged DataSource, type=Resource, provider-id=Default JDBC Database) 2011-10-06 14:54:32,598 - INFO - Configuring Service(id=My Singleton Container, type=Container, provider-id=Default Singleton Container) 2011-10-06 14:54:32,599 - INFO - Configuring Service(id=My Stateful Container, type=Container, provider-id=Default Stateful Container) 2011-10-06 14:54:32,600 - INFO - Configuring Service(id=My Stateless Container, type=Container, provider-id=Default Stateless Container) 2011-10-06 14:54:32,604 - INFO - Using 'openejb.deployments.classpath=true' 2011-10-06 14:54:32,604 - INFO - Using 'openejb.deployments.classpath.filter.systemapps=false' 2011-10-06 14:54:32,681 - INFO - Inspecting classpath for applications: 37 urls. Consider adjusting your exclude/include. Current settings: openejb.deployments.classpath.exclude='', openejb.deployments.classpath.include='.*' 2011-10-06 14:54:33,537 - INFO - Found EjbModule in classpath: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\openejb\lib\openejb-core-4.0.0-beta-1.jar 2011-10-06 14:54:34,453 - INFO - Searched 37 classpath urls in 1678 milliseconds. Average 45 milliseconds per url. 2011-10-06 14:54:34,460 - INFO - Beginning load: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\openejb\lib\openejb-core-4.0.0-beta-1.jar 2011-10-06 14:54:34,643 - INFO - Configuring enterprise application: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\bin\classpath.ear 2011-10-06 14:54:35,921 - INFO - Enterprise application "D:\Server\apache-tomee-webprofile-1.0.0-beta-1\bin\classpath.ear" loaded. 2011-10-06 14:54:35,938 - INFO - Creating TransactionManager(id=Default Transaction Manager) 2011-10-06 14:54:36,025 - INFO - Creating SecurityService(id=Tomcat Security Service) 2011-10-06 14:54:36,052 - INFO - Creating Resource(id=My DataSource) 2011-10-06 14:54:36,077 - INFO - Creating Resource(id=My Unmanaged DataSource) 2011-10-06 14:54:36,082 - INFO - Creating Container(id=My Singleton Container) 2011-10-06 14:54:36,107 - INFO - Creating Container(id=My Stateful Container) 2011-10-06 14:54:36,143 - INFO - Creating Container(id=My Stateless Container) 2011-10-06 14:54:36,169 - INFO - Assembling app: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\bin\classpath.ear 2011-10-06 14:54:36,318 - INFO - Using 'openejb.jndiname.format= {deploymentId} {interfaceType.openejbLegacyName} ' 2011-10-06 14:54:36,335 - INFO - Jndi(name=openejb/DeployerBusinessRemote) --> Ejb(deployment-id=openejb/Deployer) 2011-10-06 14:54:36,335 - INFO - Jndi(name=global/classpath.ear/openejb-core-4.0.0-beta-1/openejb/Deployer!org.apache.openejb.assembler.Deployer) --> Ejb(deployment-id=openejb/Deployer) 2011-10-06 14:54:36,335 - INFO - Jndi(name=global/classpath.ear/openejb-core-4.0.0-beta-1/openejb/Deployer) --> Ejb(deployment-id=openejb/Deployer) 2011-10-06 14:54:36,336 - INFO - Jndi(name=openejb/ConfigurationInfoBusinessRemote) --> Ejb(deployment-id=openejb/ConfigurationInfo) 2011-10-06 14:54:36,336 - INFO - Jndi(name=global/classpath.ear/openejb-core-4.0.0-beta-1/openejb/ConfigurationInfo!org.apache.openejb.assembler.classic.cmd.ConfigurationInfo) --> Ejb(deployment-id=openejb/ConfigurationInfo) 2011-10-06 14:54:36,337 - INFO - Jndi(name=global/classpath.ear/openejb-core-4.0.0-beta-1/openejb/ConfigurationInfo) --> Ejb(deployment-id=openejb/ConfigurationInfo) 2011-10-06 14:54:36,340 - INFO - Jndi(name=MEJB) --> Ejb(deployment-id=MEJB) 2011-10-06 14:54:36,340 - INFO - Jndi(name=global/classpath.ear/openejb-core-4.0.0-beta-1/MEJB!javax.management.j2ee.ManagementHome) --> Ejb(deployment-id=MEJB) 2011-10-06 14:54:36,340 - INFO - Jndi(name=global/classpath.ear/openejb-core-4.0.0-beta-1/MEJB) --> Ejb(deployment-id=MEJB) 2011-10-06 14:54:36,591 - INFO - Created Ejb(deployment-id=openejb/Deployer, ejb-name=openejb/Deployer, container=My Stateless Container) 2011-10-06 14:54:36,591 - INFO - Created Ejb(deployment-id=MEJB, ejb-name=MEJB, container=My Stateless Container) 2011-10-06 14:54:36,591 - INFO - Created Ejb(deployment-id=openejb/ConfigurationInfo, ejb-name=openejb/ConfigurationInfo, container=My Stateless Container) 2011-10-06 14:54:36,696 - INFO - Started Ejb(deployment-id=openejb/Deployer, ejb-name=openejb/Deployer, container=My Stateless Container) 2011-10-06 14:54:36,721 - INFO - Started Ejb(deployment-id=MEJB, ejb-name=MEJB, container=My Stateless Container) 2011-10-06 14:54:36,750 - INFO - Started Ejb(deployment-id=openejb/ConfigurationInfo, ejb-name=openejb/ConfigurationInfo, container=My Stateless Container) 2011-10-06 14:54:36,751 - INFO - Deployed Application(path=D:\Server\apache-tomee-webprofile-1.0.0-beta-1\bin\classpath.ear) 2011-10-06 14:54:36,798 - INFO - Importing a Tomcat Resource with id 'UserDatabase' of type 'org.apache.catalina.UserDatabase'. 2011-10-06 14:54:36,798 - INFO - Creating Resource(id=UserDatabase) 2011-10-06 14:54:37,820 - ERROR - faces config file is null 2011-10-06 14:54:38,296 - INFO - Configuring enterprise application: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\codi-sample 2011-10-06 14:54:39,335 - INFO - Configuring Service(id=Default Managed Container, type=Container, provider-id=Default Managed Container) 2011-10-06 14:54:39,335 - INFO - Auto-creating a container for bean localhost/codi-sample.Comp: Container(type=MANAGED, id=Default Managed Container) 2011-10-06 14:54:39,335 - INFO - Creating Container(id=Default Managed Container) 2011-10-06 14:54:39,351 - INFO - Enterprise application "D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\codi-sample" loaded. 2011-10-06 14:54:39,351 - INFO - Assembling app: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\codi-sample 2011-10-06 14:54:39,359 - INFO - Jndi(name=localhost/codi-sample.CompLocalBean) --> Ejb(deployment-id=localhost/codi-sample.Comp) 2011-10-06 14:54:39,359 - INFO - Jndi(name=global/localhost/codi-sample/localhost/codi-sample.Comp!org.apache.openejb.BeanContext$Comp) --> Ejb(deployment-id=localhost/codi-sample.Comp) 2011-10-06 14:54:39,359 - INFO - Jndi(name=global/localhost/codi-sample/localhost/codi-sample.Comp) --> Ejb(deployment-id=localhost/codi-sample.Comp) 2011-10-06 14:54:39,640 - ERROR - 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: [org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.ViewControllerInterceptor,java.lang.Object,java.io.Serializable] , Qualifiers: [javax.enterprise.inject.Any,javax.enterprise.inject.Default] ] at org.apache.webbeans.util.InjectionExceptionUtils.throwUnsatisfiedResolutionException(InjectionExceptionUtils.java:92) at org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:98) at org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:193) at org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1148) at org.apache.openejb.cdi.BeansDeployer.validate(BeansDeployer.java:262) at org.apache.openejb.cdi.BeansDeployer.validateInjectionPoints(BeansDeployer.java:208) at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:278) at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:95) at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:50) at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:728) at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:487) at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:423) at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:377) at org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117) 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:5103) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:932) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:723) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) at org.apache.catalina.startup.Catalina.start(Catalina.java:621) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) 2011-10-06 14:54:39,648 - INFO - Undeploying app: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\codi-sample 2011-10-06 14:54:39,812 - ERROR - Unable to deploy collapsed ear in war /codi-sample: Exception: Creating application failed: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\codi-sample: couldn't start owb context org.apache.openejb.OpenEJBException: Creating application failed: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\codi-sample: couldn't start owb context at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:835) at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:487) at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:423) at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:377) at org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117) 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:5103) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:932) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:723) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) at org.apache.catalina.startup.Catalina.start(Catalina.java:621) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) Caused by: java.lang.RuntimeException: couldn't start owb context at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:97) at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:50) at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:728) ... 37 more Caused by: java.lang.RuntimeException: 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: [org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.ViewControllerInterceptor,java.lang.Object,java.io.Serializable] , Qualifiers: [javax.enterprise.inject.Any,javax.enterprise.inject.Default] ] at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:311) at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:95) ... 39 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: [org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.ViewControllerInterceptor,java.lang.Object,java.io.Serializable] , Qualifiers: [javax.enterprise.inject.Any,javax.enterprise.inject.Default] ] at org.apache.webbeans.util.InjectionExceptionUtils.throwUnsatisfiedResolutionException(InjectionExceptionUtils.java:92) at org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:98) at org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:193) at org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1148) at org.apache.openejb.cdi.BeansDeployer.validate(BeansDeployer.java:262) at org.apache.openejb.cdi.BeansDeployer.validateInjectionPoints(BeansDeployer.java:208) at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:278) ... 40 more 2011-10-06 14:54:39,820 - ERROR - Error merging Java EE JNDI entries in to war /codi-sample: Exception: null java.lang.NullPointerException at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:465) at org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:377) at org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117) 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:5103) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:932) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:723) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1329) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:334) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1041) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) at org.apache.catalina.startup.Catalina.start(Catalina.java:621) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) 2011-10-06 14:54:40,023 - ERROR - faces config file is null 2011-10-06 14:54:40,163 - INFO - Configuring enterprise application: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\docs 2011-10-06 14:54:40,171 - INFO - Enterprise application "D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\docs" loaded. 2011-10-06 14:54:40,171 - INFO - Assembling app: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\docs 2011-10-06 14:54:40,195 - INFO - Deployed Application(path=D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\docs) 2011-10-06 14:54:41,242 - ERROR - faces config file is null 2011-10-06 14:54:41,499 - INFO - Configuring enterprise application: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\host-manager 2011-10-06 14:54:41,507 - INFO - Enterprise application "D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\host-manager" loaded. 2011-10-06 14:54:41,507 - INFO - Assembling app: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\host-manager 2011-10-06 14:54:41,538 - INFO - Deployed Application(path=D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\host-manager) 2011-10-06 14:54:41,859 - ERROR - faces config file is null 2011-10-06 14:54:42,023 - INFO - Configuring enterprise application: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\manager 2011-10-06 14:54:42,031 - INFO - Enterprise application "D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\manager" loaded. 2011-10-06 14:54:42,031 - INFO - Assembling app: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\manager 2011-10-06 14:54:42,054 - INFO - Deployed Application(path=D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\manager) 2011-10-06 14:54:42,335 - ERROR - faces config file is null 2011-10-06 14:54:42,546 - INFO - Configuring enterprise application: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\openejb 2011-10-06 14:54:42,843 - INFO - Enterprise application "D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\openejb" loaded. 2011-10-06 14:54:42,843 - INFO - Assembling app: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\openejb 2011-10-06 14:54:42,874 - INFO - Deployed Application(path=D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\openejb) 2011-10-06 14:54:43,203 - ERROR - faces config file is null 2011-10-06 14:54:43,367 - INFO - Configuring enterprise application: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\ROOT 2011-10-06 14:54:43,367 - INFO - Enterprise application "D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\ROOT" loaded. 2011-10-06 14:54:43,367 - INFO - Assembling app: D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\ROOT 2011-10-06 14:54:43,390 - INFO - Deployed Application(path=D:\Server\apache-tomee-webprofile-1.0.0-beta-1\webapps\ROOT)
          Hide
          Romain Manni-Bucau added a comment -

          yep the packaging is ok but you have an issue with CDI, see openejb.log:

          Caused by: org.apache.webbeans.exception.WebBeansConfigurationException: Passivation scoped defined bean must be passivation capable, but bean : HelloBean, Name:helloBean, WebBeans Type:MANAGED, API Types:[java.lang.Object,test.bean.HelloBean], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named] is not passivation capable
          at org.apache.openejb.cdi.BeansDeployer.checkPassivationScope(BeansDeployer.java:392)
          at org.apache.openejb.cdi.BeansDeployer.validate(BeansDeployer.java:253)
          at org.apache.openejb.cdi.BeansDeployer.validateInjectionPoints(BeansDeployer.java:215)
          at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:278)
          ... 40 more

          Show
          Romain Manni-Bucau added a comment - yep the packaging is ok but you have an issue with CDI, see openejb.log: Caused by: org.apache.webbeans.exception.WebBeansConfigurationException: Passivation scoped defined bean must be passivation capable, but bean : HelloBean, Name:helloBean, WebBeans Type:MANAGED, API Types: [java.lang.Object,test.bean.HelloBean] , Qualifiers: [javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named] is not passivation capable at org.apache.openejb.cdi.BeansDeployer.checkPassivationScope(BeansDeployer.java:392) at org.apache.openejb.cdi.BeansDeployer.validate(BeansDeployer.java:253) at org.apache.openejb.cdi.BeansDeployer.validateInjectionPoints(BeansDeployer.java:215) at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:278) ... 40 more
          Hide
          Heinz Burgstaller added a comment -

          As you can see I added a simple Maven test project...

          Show
          Heinz Burgstaller added a comment - As you can see I added a simple Maven test project...
          Hide
          Heinz Burgstaller added a comment -

          Test Project, that doesn't work

          Show
          Heinz Burgstaller added a comment - Test Project, that doesn't work
          Hide
          Romain Manni-Bucau added a comment -

          share a webapp if possible, i was not able to reproduce such an issue, the example webapps i downloadded worked.

          Show
          Romain Manni-Bucau added a comment - share a webapp if possible, i was not able to reproduce such an issue, the example webapps i downloadded worked.
          Hide
          Heinz Burgstaller added a comment -

          That's what I deployed before. I have a simple webapp with just the codi libs and I also tried your solution. I'm getting the same stacktrace.

          So I'm asking if I want to deploy a web app with ONLY JSF 2.0 (libs from webapps/openejb/lib) and CODI (libs from my_project/WEB-INF/lib), what else do I have to configure or in put my classpath to make it work?

          Show
          Heinz Burgstaller added a comment - That's what I deployed before. I have a simple webapp with just the codi libs and I also tried your solution. I'm getting the same stacktrace. So I'm asking if I want to deploy a web app with ONLY JSF 2.0 (libs from webapps/openejb/lib) and CODI (libs from my_project/WEB-INF/lib), what else do I have to configure or in put my classpath to make it work?
          Hide
          Romain Manni-Bucau added a comment -

          just remove it from YOUR webapp, keep tomcat and openejb libs in place.

          Show
          Romain Manni-Bucau added a comment - just remove it from YOUR webapp, keep tomcat and openejb libs in place.
          Hide
          Heinz Burgstaller added a comment -

          This solution would remove the JEE6 Stack from TomEE? The examples from (http://code.google.com/a/apache-extras.org/p/myfaces-codi-examples/) are using CODI for Transaction Management. My prefered solution is a JEE6 Stack with included MyFaces CODI functionality, and OpenEJB handles Transaction Management.

          Removing all the libs from /webapps/openejb/ would leave me a plain Tomcat 7, or is that wrong?

          Show
          Heinz Burgstaller added a comment - This solution would remove the JEE6 Stack from TomEE? The examples from ( http://code.google.com/a/apache-extras.org/p/myfaces-codi-examples/ ) are using CODI for Transaction Management. My prefered solution is a JEE6 Stack with included MyFaces CODI functionality, and OpenEJB handles Transaction Management. Removing all the libs from /webapps/openejb/ would leave me a plain Tomcat 7, or is that wrong?
          Hide
          Romain Manni-Bucau added a comment -

          please check your dependencies, i just tried and it works perfectly.

          i tried with google CODI examples.

          i had to remove openwebbeans, myfaces, geronimo .. jars (remove all jar which are already in webapps/openejb/lib excepted logging jar (slf4j/log4j)).

          Show
          Romain Manni-Bucau added a comment - please check your dependencies, i just tried and it works perfectly. i tried with google CODI examples. i had to remove openwebbeans, myfaces, geronimo .. jars (remove all jar which are already in webapps/openejb/lib excepted logging jar (slf4j/log4j)).

            People

            • Assignee:
              Romain Manni-Bucau
              Reporter:
              Heinz Burgstaller
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development