deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Dmitry_Shu...@kaltire.com>
Subject [0.6] WELD-001332 BeanManager method getBeans() is not available during application initialization
Date Tue, 25 Mar 2014 20:01:31 GMT
Hi All,

After incrementing the Deltaspike version number from 0.5 to 0.6 my web app is started to
fail during deployment (Tomcat 7.0.47),  everything else is the same (include weld-servlet:2.0.0.Final).

Here is the log:

[2014-03-25 12:50:31,958] Artifact ldfc:war exploded: Artifact is being deployed, please wait...
25-Mar-2014 12:50:39 PM org.apache.tomcat.websocket.server.WsSci onStartup
INFO: JSR 356 WebSocket (Java WebSocket 1.0) support is not available when running on Java
6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib
or add the WebSocketJARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in
$CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will
be available.
25-Mar-2014 12:50:39 PM org.jboss.weld.bootstrap.WeldBootstrap <clinit>
INFO: WELD-000900 2.0.0 (Final)
25-Mar-2014 12:50:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.servlet.impl.event.EventBridgeContextListener activated=true
25-Mar-2014 12:50:39 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.servlet.impl.event.EventBridgeSessionListener activated=true
25-Mar-2014 12:50:40 PM org.jboss.weld.bootstrap.WeldBootstrap startContainer
INFO: WELD-000101 Transactional services not available. Injection of @Inject UserTransaction
not available. Transactional observers will be invoked synchronously.
25-Mar-2014 12:50:40 PM org.jboss.weld.bootstrap.WeldBootstrap startContainer
WARNING: Legacy deployment metadata provided by the integrator. Certain functionality will
not be available.
25-Mar-2014 12:50:40 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.jsf.impl.config.view.ViewConfigExtension activated=true
25-Mar-2014 12:50:40 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.scope.DeltaSpikeContextExtension activated=true
25-Mar-2014 12:50:40 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.config.ConfigurationExtension activated=true
25-Mar-2014 12:50:40 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.jsf.impl.scope.view.ViewScopedExtension activated=true
25-Mar-2014 12:50:40 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exception.control.extension.ExceptionControlExtension
activated=true
25-Mar-2014 12:50:40 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.security.impl.extension.SecurityExtension activated=true
25-Mar-2014 12:50:40 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.jsf.impl.scope.mapped.MappedJsf2ScopeExtension activated=true
25-Mar-2014 12:50:40 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.message.MessageBundleExtension activated=true
25-Mar-2014 12:50:40 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.message.NamedMessageBundleInvocationHandler activated=true
25-Mar-2014 12:50:40 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.extension.ExcludeExtension activated=true
25-Mar-2014 12:50:40 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.CustomProjectStageBeanFilter activated=true
25-Mar-2014 12:50:40 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.GlobalAlternative activated=true
25-Mar-2014 12:50:40 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.jmx.MBeanExtension activated=true
25-Mar-2014 12:50:40 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.jpa.impl.transaction.context.TransactionContextExtension
activated=true
25-Mar-2014 12:50:40 PM org.jboss.weld.bootstrap.BeanDeployer loadClass
INFO: WELD-000119 Not generating any bean definitions from org.apache.deltaspike.jsf.impl.scope.window.ClientWindowAdapter
because of underlying class loading error: Type javax.faces.lifecycle.ClientWindow not found.
 If this is unexpected, enable DEBUG logging to see the full error.
25-Mar-2014 12:50:40 PM org.jboss.weld.bootstrap.BeanDeployer loadClass
INFO: WELD-000119 Not generating any bean definitions from org.apache.deltaspike.jsf.impl.listener.request.JsfClientWindowAwareLifecycleWrapper
because of underlying class loading error: Type javax.faces.lifecycle.LifecycleWrapper not
found.  If this is unexpected, enable DEBUG logging to see the full error.
25-Mar-2014 12:50:40 PM org.apache.deltaspike.core.util.ProjectStageProducer initProjectStage
INFO: Computed the following DeltaSpike ProjectStage: Production
25-Mar-2014 12:50:40 PM org.jboss.weld.environment.tomcat7.Tomcat7Container initialize
INFO: Tomcat 7 detected, CDI injection will be available in Servlets and Filters. Injection
into Listeners is not supported
25-Mar-2014 12:50:41 PM org.jboss.weld.interceptor.util.InterceptionTypeRegistry <clinit>
WARNING: Class 'javax.ejb.PostActivate' not found, interception based on it is not enabled
25-Mar-2014 12:50:41 PM org.jboss.weld.interceptor.util.InterceptionTypeRegistry <clinit>
WARNING: Class 'javax.ejb.PrePassivate' not found, interception based on it is not enabled
25-Mar-2014 12:50:41 PM org.apache.deltaspike.core.api.provider.BeanManagerProvider getBeanManager
WARNING: When using the BeanManager to retrieve Beans before the Container is started, non-portable
behaviour results!
25-Mar-2014 12:50:41 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.jsf.impl.config.view.ViewConfigPathValidator activated=true
25-Mar-2014 12:50:41 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.1.19 ( 20130213-1512 https://svn.java.net/svn/mojarra~svn/tags/2.1.19@11614)
for context ''
25-Mar-2014 12:50:41 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\Repository\kaltire\ldfc\apache-tomcat-7.0.47\webapps\manager
25-Mar-2014 12:50:41 PM com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked
with these annotations will have said annotations processed.
25-Mar-2014 12:50:42 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.jsf.impl.exception.DeltaSpikeExceptionHandler activated=true
25-Mar-2014 12:50:42 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeFacesContextFactory
activated=true
25-Mar-2014 12:50:42 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleFactoryWrapper
activated=true
25-Mar-2014 12:50:42 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.jsf.impl.listener.phase.JsfRequestLifecyclePhaseListener
activated=true
25-Mar-2014 12:50:42 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.jsf.impl.listener.phase.DeltaSpikePhaseListener activated=true
25-Mar-2014 12:50:42 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.jsf.impl.navigation.DeltaSpikeNavigationHandler activated=true
25-Mar-2014 12:50:42 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.jsf.impl.scope.viewaccess.ViewAccessScopedAwareNavigationHandler
activated=true
25-Mar-2014 12:50:42 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.jsf.impl.listener.action.DeltaSpikeActionListener activated=true
25-Mar-2014 12:50:42 PM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.jsf.impl.listener.system.JsfSystemEventBroadcaster activated=true
25-Mar-2014 12:50:42 PM org.hibernate.validator.internal.util.Version <clinit>
INFO: HV000001: Hibernate Validator 5.0.1.Final
25-Mar-2014 12:50:42 PM com.sun.faces.config.ConfigureListener contextInitialized
SEVERE: Critical error during deployment:
com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! WELD-001332 BeanManager
method getBeans() is not available during application initialization
                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:376)
                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:216)
                at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4937)
                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
                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.manageApp(HostConfig.java:1558)
                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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
                at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
                at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
                at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:620)
                at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:567)
                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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
                at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
                at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
                at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
                at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
                at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
                at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360)
                at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
                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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
                at sun.rmi.transport.Transport$1.run(Transport.java:159)
                at java.security.AccessController.doPrivileged(Native Method)
                at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
                at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
                at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
                at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
                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:662)
Caused by: org.jboss.weld.exceptions.IllegalStateException: WELD-001332 BeanManager method
getBeans() is not available during application initialization
                at org.jboss.weld.bean.builtin.BeanManagerProxy.checkContainerValidated(BeanManagerProxy.java:142)
                at org.jboss.weld.bean.builtin.BeanManagerProxy.getBeans(BeanManagerProxy.java:80)
                at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:141)
                at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:119)
                at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:100)
                at org.apache.deltaspike.jsf.impl.config.view.navigation.NavigationCaseMapWrapper.createViewConfigBasedNavigationCases(NavigationCaseMapWrapper.java:81)
                at org.apache.deltaspike.jsf.impl.config.view.navigation.NavigationCaseMapWrapper.<init>(NavigationCaseMapWrapper.java:62)
                at org.apache.deltaspike.jsf.impl.navigation.DeltaSpikeNavigationHandler.getNavigationCases(DeltaSpikeNavigationHandler.java:177)
                at com.sun.faces.config.processor.NavigationConfigProcessor.addNavigationCasesForRule(NavigationConfigProcessor.java:313)
                at com.sun.faces.config.processor.NavigationConfigProcessor.addNavigationRules(NavigationConfigProcessor.java:218)
                at com.sun.faces.config.processor.NavigationConfigProcessor.process(NavigationConfigProcessor.java:162)
                at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
                at com.sun.faces.config.processor.RenderKitConfigProcessor.process(RenderKitConfigProcessor.java:196)
                at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
                at com.sun.faces.config.processor.ManagedBeanConfigProcessor.process(ManagedBeanConfigProcessor.java:270)
                at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
                at com.sun.faces.config.processor.ValidatorConfigProcessor.process(ValidatorConfigProcessor.java:120)
                at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
                at com.sun.faces.config.processor.ConverterConfigProcessor.process(ConverterConfigProcessor.java:126)
                at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
                at com.sun.faces.config.processor.ComponentConfigProcessor.process(ComponentConfigProcessor.java:117)
                at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
                at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:340)
                at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
                at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116)
                at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
                at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222)
                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361)
                ... 43 more
25-Mar-2014 12:50:42 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
25-Mar-2014 12:50:42 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors

Not sure what to do with this - there are no my classes in the stack trace.

Thanks,
Dmitry

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message