0 Replies Latest reply on May 8, 2007 1:29 PM by Miloslav Vlach

    Hibernate, Seam, Tomcat and SFSB

    Miloslav Vlach Novice

      Hi all,

      I have problem with understanding of this concept:

      When I use tomcat, with microcontainer I can't work with @Stateful bean. I got the exception: Local server is not initialized.

      It is possible to work with SFSB ?

      Thanks Mila

      When I end tomcat I got this exception.


      19:23:16,531 ERROR [org.hibernate.util.NamingHelper] Could not obtain initial context
      javax.naming.NamingException: Local server is not initialized
       at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45)
       at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
       at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
       at javax.naming.InitialContext.init(InitialContext.java:223)
       at javax.naming.InitialContext.<init>(InitialContext.java:197)
       at org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28)
       at org.hibernate.impl.SessionFactoryObjectFactory.removeInstance(SessionFactoryObjectFactory.java:115)
       at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:803)
       at org.jboss.seam.core.HibernateSessionFactory.shutdown(HibernateSessionFactory.java:41)
       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:585)
       at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
       at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
       at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
       at org.jboss.seam.Component.callDestroyMethod(Component.java:1765)
       at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:231)
       at org.jboss.seam.contexts.Lifecycle.endApplication(Lifecycle.java:185)
       at org.jboss.seam.servlet.SeamListener.contextDestroyed(SeamListener.java:37)
       at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3805)
       at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4357)
       at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:893)
       at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1180)
       at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1151)
       at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
       at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1055)
       at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)
       at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
       at org.apache.catalina.core.StandardService.stop(StandardService.java:510)
       at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
       at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
       at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:645)