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

          Heinz Burgstaller created issue -
          Heinz Burgstaller made changes -
          Field Original Value New Value
          Attachment codi-sample.zip [ 12497984 ]
          David Blevins made changes -
          Project OpenEJB [ 12310530 ] TomEE [ 12312320 ]
          Key OPENEJB-1694 TOMEE-1
          Affects Version/s 1.0.0-beta-1 [ 12318445 ]
          Affects Version/s 4.0-beta-1 [ 12315050 ]
          Component/s server [ 12311370 ]
          Component/s tomee [ 12312069 ]
          Romain Manni-Bucau made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Romain Manni-Bucau [ romain.manni-bucau ]
          Fix Version/s 1.0.0-beta-2 [ 12318446 ]
          Resolution Fixed [ 1 ]
          Romain Manni-Bucau made changes -
          Link This issue is blocked by TOMEE-30 [ TOMEE-30 ]
          Jean-Louis MONTEIRO made changes -
          Fix Version/s 1.0.0 [ 12319497 ]
          Fix Version/s 1.0.0-beta-2 [ 12318446 ]
          Jean-Louis MONTEIRO made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            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