Session factory creation failed : wildfly 8
kirtikt Aug 11, 2014 6:25 AMI m creating a multimodule maven project having EJB,Jar and wars, i am unable to solve this error there is no information on google about this.My ejb bindings and ejb lookup works fine and same code is working with jboss 7.1 server.
Here is my error log
java.lang.ClassCastException: org.jboss.as.naming.service.NamingStoreService cannot be cast to org.jboss.as.naming.service.BinderService
15:32:55,394 ERROR [stderr] (default task-4) at org.jboss.as.naming.WritableServiceBasedNamingStore.rebind(WritableServiceBasedNamingStore.java:116)
15:32:55,394 ERROR [stderr] (default task-4) at org.jboss.as.naming.NamingContext.rebind(NamingContext.java:274)
15:32:55,394 ERROR [stderr] (default task-4) at org.jboss.as.naming.InitialContext$DefaultInitialContext.rebind(InitialContext.java:269)
15:32:55,394 ERROR [stderr] (default task-4) at javax.naming.InitialContext.rebind(Unknown Source)
15:32:55,394 ERROR [stderr] (default task-4) at javax.naming.InitialContext.rebind(Unknown Source)
15:32:55,394 ERROR [stderr] (default task-4) at org.hibernate.engine.jndi.internal.JndiServiceImpl.bind(JndiServiceImpl.java:213)
15:32:55,394 ERROR [stderr] (default task-4) at org.hibernate.engine.jndi.internal.JndiServiceImpl.bind(JndiServiceImpl.java:159)
15:32:55,395 ERROR [stderr] (default task-4) at org.hibernate.internal.SessionFactoryRegistry.addSessionFactory(SessionFactoryRegistry.java:103)
15:32:55,395 ERROR [stderr] (default task-4) at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:497)
15:32:55,395 ERROR [stderr] (default task-4) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1857)
15:32:55,395 ERROR [stderr] (default task-4) at com.ussd.sessionfactory.SessionFact.getSessionfactory(SessionFact.java:25)
15:32:55,395 ERROR [stderr] (default task-4) at com.ussd.daoimp.CampaignDaoImp.getList(CampaignDaoImp.java:120)
15:32:55,395 ERROR [stderr] (default task-4) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:32:55,395 ERROR [stderr] (default task-4) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
15:32:55,395 ERROR [stderr] (default task-4) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
15:32:55,395 ERROR [stderr] (default task-4) at java.lang.reflect.Method.invoke(Unknown Source)
15:32:55,395 ERROR [stderr] (default task-4) at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
15:32:55,395 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,396 ERROR [stderr] (default task-4) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
15:32:55,396 ERROR [stderr] (default task-4) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
15:32:55,396 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,396 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
15:32:55,396 ERROR [stderr] (default task-4) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82)
15:32:55,396 ERROR [stderr] (default task-4) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)
15:32:55,396 ERROR [stderr] (default task-4) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
15:32:55,396 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,396 ERROR [stderr] (default task-4) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
15:32:55,396 ERROR [stderr] (default task-4) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
15:32:55,396 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,397 ERROR [stderr] (default task-4) at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
15:32:55,397 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,397 ERROR [stderr] (default task-4) at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
15:32:55,397 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,397 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
15:32:55,397 ERROR [stderr] (default task-4) at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:46)
15:32:55,397 ERROR [stderr] (default task-4) at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)
15:32:55,397 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,397 ERROR [stderr] (default task-4) at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
15:32:55,397 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,398 ERROR [stderr] (default task-4) at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
15:32:55,398 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,398 ERROR [stderr] (default task-4) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
15:32:55,398 ERROR [stderr] (default task-4) at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
15:32:55,398 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,398 ERROR [stderr] (default task-4) at org.jboss.as.ejb3.component.interceptors.NonPooledEJBComponentInstanceAssociatingInterceptor.processInvocation(NonPooledEJBComponentInstanceAssociatingInterceptor.java:59)
15:32:55,398 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,398 ERROR [stderr] (default task-4) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273)
15:32:55,398 ERROR [stderr] (default task-4) at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:340)
15:32:55,398 ERROR [stderr] (default task-4) at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239)
15:32:55,398 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,399 ERROR [stderr] (default task-4) at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
15:32:55,399 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,399 ERROR [stderr] (default task-4) at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)
15:32:55,399 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,399 ERROR [stderr] (default task-4) at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:95)
15:32:55,399 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,399 ERROR [stderr] (default task-4) at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
15:32:55,399 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,399 ERROR [stderr] (default task-4) at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
15:32:55,399 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,399 ERROR [stderr] (default task-4) at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
15:32:55,400 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,400 ERROR [stderr] (default task-4) at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55)
15:32:55,400 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,400 ERROR [stderr] (default task-4) at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
15:32:55,400 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,400 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
15:32:55,400 ERROR [stderr] (default task-4) at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:448)
15:32:55,400 ERROR [stderr] (default task-4) at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
15:32:55,400 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,400 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
15:32:55,400 ERROR [stderr] (default task-4) at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
15:32:55,401 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,401 ERROR [stderr] (default task-4) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
15:32:55,401 ERROR [stderr] (default task-4) at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)
15:32:55,401 ERROR [stderr] (default task-4) at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182)
15:32:55,401 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,401 ERROR [stderr] (default task-4) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
15:32:55,401 ERROR [stderr] (default task-4) at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
15:32:55,401 ERROR [stderr] (default task-4) at com.ussd.utilityinterface.CampaignDaoInterface$$$view158.getList(Unknown Source)
15:32:55,401 ERROR [stderr] (default task-4) at com.ussd.login.UssdServlet.processRequest(UssdServlet.java:51)
15:32:55,401 ERROR [stderr] (default task-4) at com.ussd.login.UssdServlet.doGet(UssdServlet.java:30)
15:32:55,401 ERROR [stderr] (default task-4) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
15:32:55,402 ERROR [stderr] (default task-4) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
15:32:55,402 ERROR [stderr] (default task-4) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
15:32:55,402 ERROR [stderr] (default task-4) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)
15:32:55,402 ERROR [stderr] (default task-4) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
15:32:55,402 ERROR [stderr] (default task-4) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
15:32:55,402 ERROR [stderr] (default task-4) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
15:32:55,402 ERROR [stderr] (default task-4) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113)
15:32:55,402 ERROR [stderr] (default task-4) at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)
15:32:55,402 ERROR [stderr] (default task-4) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
15:32:55,402 ERROR [stderr] (default task-4) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)
15:32:55,402 ERROR [stderr] (default task-4) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61)
15:32:55,403 ERROR [stderr] (default task-4) at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
15:32:55,403 ERROR [stderr] (default task-4) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
15:32:55,403 ERROR [stderr] (default task-4) at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
15:32:55,403 ERROR [stderr] (default task-4) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
15:32:55,403 ERROR [stderr] (default task-4) at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
15:32:55,403 ERROR [stderr] (default task-4) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
15:32:55,403 ERROR [stderr] (default task-4) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25)
15:32:55,403 ERROR [stderr] (default task-4) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240)
15:32:55,403 ERROR [stderr] (default task-4) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
15:32:55,403 ERROR [stderr] (default task-4) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73)
15:32:55,403 ERROR [stderr] (default task-4) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146)
15:32:55,404 ERROR [stderr] (default task-4) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)
15:32:55,404 ERROR [stderr] (default task-4) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
15:32:55,404 ERROR [stderr] (default task-4) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
15:32:55,404 ERROR [stderr] (default task-4) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
15:32:55,404 ERROR [stderr] (default task-4) at java.lang.Thread.run(Unknown Source)
15:32:55,404 ERROR [stderr] (default task-4) Initial SessionFactory creation failed.java.lang.ClassCastException: org.jboss.as.naming.service.NamingStoreService cannot be cast to org.jboss.as.naming.service.BinderService
15:32:55,404 ERROR [stderr] (default task-4) java.lang.ExceptionInInitializerError
15:32:55,404 ERROR [stderr] (default task-4) at com.ussd.sessionfactory.SessionFact.getSessionfactory(SessionFact.java:30)
15:32:55,405 ERROR [stderr] (default task-4) at com.ussd.daoimp.CampaignDaoImp.getList(CampaignDaoImp.java:120)
15:32:55,405 ERROR [stderr] (default task-4) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:32:55,405 ERROR [stderr] (default task-4) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
15:32:55,405 ERROR [stderr] (default task-4) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
15:32:55,405 ERROR [stderr] (default task-4) at java.lang.reflect.Method.invoke(Unknown Source)
15:32:55,405 ERROR [stderr] (default task-4) at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
15:32:55,405 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,405 ERROR [stderr] (default task-4) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
15:32:55,405 ERROR [stderr] (default task-4) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
15:32:55,406 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,406 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
15:32:55,406 ERROR [stderr] (default task-4) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82)
15:32:55,406 ERROR [stderr] (default task-4) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)
15:32:55,406 ERROR [stderr] (default task-4) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
15:32:55,406 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,406 ERROR [stderr] (default task-4) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
15:32:55,406 ERROR [stderr] (default task-4) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
15:32:55,406 ERROR [stderr] (default task-4) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
15:32:55,406 ERROR [stderr] (default task-4) at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
Can anybody tell me how to sort out this..