0 Replies Latest reply on Oct 28, 2012 5:52 AM by malcomtom

    ThreadLocalSessionContext not found in Seam 2.3 deployed on Jboss 7.1

    malcomtom Newbie

      Dear all,

      Until now, i was running my webapplication on Jboss 4.2.3 using Seam 2.2.2 and it worked as expected. Now i wanted wo upgrade to seam 2.3 which needs a new webcontainer.

      So i thought about right using Jboss 7.1. I got a strange startup error and i hope someone could give me a hint :-).

      I already read the seam 2.2 to 2.3 migration guide to prepeare the application. (datasource is also defined and works as expected.

       

      10:16:28,687 INFO  [org.hibernate.id.enhanced.TableGenerator] (MSC service thread 1-1) HHH000398: Explicit segment value for id generator [hibernate_sequences.sequence_name] suggested; using default [default]

      10:16:28,689 ERROR [org.hibernate.internal.SessionFactoryImpl] (MSC service thread 1-1) HHH000302: Unable to construct current session context [org.hibernate.context.ThreadLocalSessionContext]: java.lang.ClassNotFoundException: org.hibernate.context.ThreadLocalSessionContext from [Module "org.hibernate:main" from local module loader @ea48be (roots: E:\Devel\jboss-as-7.1.1.Final\modules)]

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_35]

                at java.lang.Class.forName(Unknown Source) [rt.jar:1.6.0_35]

                at org.hibernate.internal.util.ReflectHelper.classForName(ReflectHelper.java:192) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.internal.SessionFactoryImpl.buildCurrentSessionContext(SessionFactoryImpl.java:1575) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:467) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

                at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1775) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]

       

      Thanking you very much in advance for helping me.

      best regards

       

      malcom