Announcement Announcement Module
Collapse
No announcement yet.
Tomcat 5.5 fails when loading bean : LocalSessionFactoryBean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tomcat 5.5 fails when loading bean : LocalSessionFactoryBean

    I have tried on Tomcat 5.5 on Java 1.4 with compability-files, and on plain J2SE5.

    Both does this :
    Code:
    2004-12-03 16:08:50,146 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [mysqlDataSource,sessionFactory,portationDao,portationValidator,workdayCalendar]; Root of BeanFactory hierarchy] 
    2004-12-03 16:08:50,146 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'mysqlDataSource' 
    2004-12-03 16:08:50,266 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'sessionFactory' 
    2004-12-03 16:08:50,396 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [mysqlDataSource,sessionFactory,portationDao,portationValidator,workdayCalendar]; Root of BeanFactory hierarchy} 
    2004-12-03 16:08:50,426 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed 
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in resource [/WEB-INF/appContext.xml] of ServletContext: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
    java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
    	at java.lang.Class.getDeclaredMethods0(Native Method)
    	at java.lang.Class.privateGetDeclaredMethods(Class.java:1647)
    	at java.lang.Class.getDeclaredMethods(Class.java:1131)
    	at java.beans.Introspector$1.run(Introspector.java:1126)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1124)
    	at java.beans.Introspector.getTargetMethodInfo(Introspector.java:989)
    	at java.beans.Introspector.getBeanInfo(Introspector.java:370)
    	at java.beans.Introspector.getBeanInfo(Introspector.java:144)
    	at org.springframework.beans.CachedIntrospectionResults.<init>&#40;CachedIntrospectionResults.java&#58;137&#41;
    	at org.springframework.beans.CachedIntrospectionResults.forClass&#40;CachedIntrospectionResults.java&#58;79&#41;
    	at org.springframework.beans.BeanWrapperImpl.setWrappedInstance&#40;BeanWrapperImpl.java&#58;226&#41;
    	at org.springframework.beans.BeanWrapperImpl.setWrappedInstance&#40;BeanWrapperImpl.java&#58;208&#41;
    	at org.springframework.beans.BeanWrapperImpl.<init>&#40;BeanWrapperImpl.java&#58;171&#41;
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean&#40;AbstractAutowireCapableBeanFactory.java&#58;217&#41;
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean&#40;AbstractAutowireCapableBeanFactory.java&#58;177&#41;
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean&#40;AbstractBeanFactory.java&#58;159&#41;
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons&#40;DefaultListableBeanFactory.java&#58;177&#41;
    	at org.springframework.context.support.AbstractApplicationContext.refresh&#40;AbstractApplicationContext.java&#58;268&#41;
    	at org.springframework.web.context.support.XmlWebApplicationContext.refresh&#40;XmlWebApplicationContext.java&#58;131&#41;
    	at org.springframework.web.context.ContextLoader.createWebApplicationContext&#40;ContextLoader.java&#58;156&#41;
    	at org.springframework.web.context.ContextLoader.initWebApplicationContext&#40;ContextLoader.java&#58;97&#41;
    	at org.springframework.web.context.ContextLoaderServlet.init&#40;ContextLoaderServlet.java&#58;80&#41;
    	at javax.servlet.GenericServlet.init&#40;GenericServlet.java&#58;211&#41;
    	at org.apache.catalina.core.StandardWrapper.loadServlet&#40;StandardWrapper.java&#58;1053&#41;
    	at org.apache.catalina.core.StandardWrapper.load&#40;StandardWrapper.java&#58;886&#41;
    	at org.apache.catalina.core.StandardContext.loadOnStartup&#40;StandardContext.java&#58;3817&#41;
    	at org.apache.catalina.core.StandardContext.start&#40;StandardContext.java&#58;4079&#41;
    	at org.apache.catalina.core.ContainerBase.addChildInternal&#40;ContainerBase.java&#58;755&#41;
    	at org.apache.catalina.core.ContainerBase.addChild&#40;ContainerBase.java&#58;739&#41;
    	at org.apache.catalina.core.StandardHost.addChild&#40;StandardHost.java&#58;525&#41;
    	at org.apache.catalina.startup.HostConfig.deployDirectory&#40;HostConfig.java&#58;886&#41;
    	at org.apache.catalina.startup.HostConfig.deployDirectories&#40;HostConfig.java&#58;849&#41;
    	at org.apache.catalina.startup.HostConfig.deployApps&#40;HostConfig.java&#58;474&#41;
    	at org.apache.catalina.startup.HostConfig.start&#40;HostConfig.java&#58;1079&#41;
    	at org.apache.catalina.startup.HostConfig.lifecycleEvent&#40;HostConfig.java&#58;310&#41;
    	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent&#40;LifecycleSupport.java&#58;119&#41;
    	at org.apache.catalina.core.ContainerBase.start&#40;ContainerBase.java&#58;1011&#41;
    	at org.apache.catalina.core.StandardHost.start&#40;StandardHost.java&#58;718&#41;
    	at org.apache.catalina.core.ContainerBase.start&#40;ContainerBase.java&#58;1003&#41;
    	at org.apache.catalina.core.StandardEngine.start&#40;StandardEngine.java&#58;437&#41;
    	at org.apache.catalina.core.StandardService.start&#40;StandardService.java&#58;450&#41;
    	at org.apache.catalina.core.StandardServer.start&#40;StandardServer.java&#58;2010&#41;
    	at org.apache.catalina.startup.Catalina.start&#40;Catalina.java&#58;537&#41;
    	at sun.reflect.NativeMethodAccessorImpl.invoke0&#40;Native Method&#41;
    	at sun.reflect.NativeMethodAccessorImpl.invoke&#40;NativeMethodAccessorImpl.java&#58;39&#41;
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke&#40;DelegatingMethodAccessorImpl.java&#58;25&#41;
    	at java.lang.reflect.Method.invoke&#40;Method.java&#58;324&#41;
    	at org.apache.catalina.startup.Bootstrap.start&#40;Bootstrap.java&#58;271&#41;
    	at org.apache.catalina.startup.Bootstrap.main&#40;Bootstrap.java&#58;409&#41;
    2004-12-03 16&#58;08&#58;50,486 ERROR &#91;org.apache.catalina.core.ContainerBase.&#91;Catalina&#93;.&#91;localhost&#93;.&#91;/Kiss&#93;&#93; - StandardWrapper.Throwable

    The webapp works fine in a plain installation of Tomcat 4.1.30, both with Java 1.4 and 1.5

  • #2
    Tomcat 5.0.29 fails as well.

    With the same error.

    Comment


    • #3
      put jta.jar in your WEB-INF/lib

      Comment


      • #4
        Thanks.

        May I ask where You got that info ?

        Regards
        Frode Halvorsen

        Comment


        • #5
          [/WEB-INF/appContext.xml] of ServletContext: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
          java.lang.NoClassDefFoundError: javax/transaction/TransactionManager

          Comment

          Working...
          X