Announcement Announcement Module
Collapse
No announcement yet.
Help For The Newbies : Example 2 of what I am confronted to Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help For The Newbies : Example 2 of what I am confronted to

    I first created the table on Oracle 9
    then it is ok when I am compiling the petclinic sample
    But I have the followinf error when I try to run under Tomcat 5

    Internal error

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory' defined in resource [/WEB-INF/applicationContext-hibernate.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.ja va:1647) at java.lang.Class.getDeclaredMethods(Class.java:1131 ) at java.beans.Introspector$1.run(Introspector.java:11 26) at java.security.AccessController.doPrivileged(Native Method) at java.beans.Introspector.getPublicDeclaredMethods(I ntrospector.java:1124) at java.beans.Introspector.getTargetMethodInfo(Intros pector.java:989) at java.beans.Introspector.getBeanInfo(Introspector.j ava:370) at java.beans.Introspector.getBeanInfo(Introspector.j ava:144) at org.springframework.beans.CachedIntrospectionResul ts.(CachedIntrospectionResults.java:138) at org.springframework.beans.CachedIntrospectionResul ts.forClass(CachedIntrospectionResults.java:80) at org.springframework.beans.BeanWrapperImpl.setIntro spectionClass(BeanWrapperImpl.java:244) at org.springframework.beans.BeanWrapperImpl.setWrapp edInstance(BeanWrapperImpl.java:225) at org.springframework.beans.BeanWrapperImpl.setWrapp edInstance(BeanWrapperImpl.java:209) at org.springframework.beans.BeanWrapperImpl.(BeanWra pperImpl.java:163) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:256) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:208) at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:204) at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:136) at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:224) at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:284) at org.springframework.web.context.support.XmlWebAppl icationContext.refresh(XmlWebApplicationContext.ja va:131) at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:156) at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:97) at org.springframework.web.context.ContextLoaderServl et.init(ContextLoaderServlet.java:80) at javax.servlet.GenericServlet.init(GenericServlet.j ava:211) at org.apache.catalina.core.StandardWrapper.loadServl et(StandardWrapper.java:1019) at org.apache.catalina.core.StandardWrapper.load(Stan dardWrapper.java:862) at org.apache.catalina.core.StandardContext.loadOnSta rtup(StandardContext.java:3991) at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4335) at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:823) at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.inst all(StandardHostDeployer.java:277) at org.apache.catalina.core.StandardHost.install(Stan dardHost.java:832) at org.apache.catalina.startup.HostConfig.deployDirec tories(HostConfig.java:683) at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:432) at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:964) at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:349) at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1091) at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:789) at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:478) at org.apache.catalina.core.StandardService.start(Sta ndardService.java:476) at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:2298) at org.apache.catalina.startup.Catalina.start(Catalin a.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:284) at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:422) Cookies:

    WHY ?

  • #2
    You need jta.jar in $CATALINA_HOME/common/lib.

    Comment


    • #3
      Many thanks !
      You were right : it was a problem of missing jar files.
      By the way, I had also to put cglib-full-2.0.2.jar and dom4j.jar files in the classpath (lib directory).

      Comment

      Working...
      X