1 2 Previous Next 21 Replies Latest reply: May 28, 2012 8:26 AM by Nes Yarug Go to original post RSS
  • 15. Re: Hibernate 3.6.0 with AS 7.1.1 - stuck in loop at war deployment
    Scott Marlow Master

    I noticed this error, not sure if its related to the cause of the looping or just just a failure during it.

     

    22:41:07,901 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-1) Ignoring bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ipAddressDao' defined in ServletContext resource [/WEB-INF/spring/applicationContext-hibernate.xml]: Cannot create inner bean 'abstractDaoTarget$child#29d03e78' of type [isiz.dao.GenericDaoHibernateImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'abstractDaoTarget$child#29d03e78': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory isiz.dao.GenericDaoHibernateImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in

     

    Also, you should read this blog for pointers on deploying Spring applications on AS7.

  • 16. Re: Hibernate 3.6.0 with AS 7.1.1 - stuck in loop at war deployment
    Nes Yarug Newbie

    Hmm, true. Although, sometimes on the next line it says:

     

    22:41:07,904 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-1) Creating shared instance of singleton bean 'sessionFactory'

     

    Dunno

     

    I've also read the blog you referred to (had seen it before as well), but can't find anything that would help

  • 17. Re: Hibernate 3.6.0 with AS 7.1.1 - stuck in loop at war deployment
    Scott Marlow Master

    Sometimes its best to just jump into the code and see what is going on with a debugger.  I think its time to use a Java debugger, set a breakpoint in org.hibernate.id.factory.DefaultIdentifierGeneratorFactory.register() and see what is calling it repeatedly in a loop.  At least that would be one way. 

     

    Are you using Eclipse or Idea Intellij?  Either one of those are easy to use.  You just need the Hibernate 3.6.10 source (you can download that easily) and change a line in the as7/bin/standalone.conf file from:

     

    # Sample JPDA settings for remote socket debugging

    #JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"

     

    To (don't forget to comment this line back out after your done debugging):

     

    # Sample JPDA settings for remote socket debugging

    JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"

     

    Or you can  forget about the Java source, just use the Java jdb command line debugger instead.  After modifying the above line and starting the App Server.  Start the jdb debugger with command line "jdb -attach 8787".

     

    Then enter jdb commands:

     

    stop in org.hibernate.id.factory.DefaultIdentifierGeneratorFactory.register

     

    run

     

     

    When the JDB debugger stops in org.hibernate.id.factory.DefaultIdentifierGeneratorFactory.register, enter command "where" and that will show you the call stack of who is calling that.  Save a copy of the call stack to the clipboard and save that in a text file (firsttime.txt) for later.  Enter the jdb command "cont" two more times. 

     

    The first two breakpoints should log the following to the console "Adding type registration boolean -> org.hibernate.type.BooleanType" along with the standard logging information and a java instance number added to the end.  You will want to next enter jdb command "100 cont" and that should skip past the next 100 times that the debugger break point that we set is reached. 

     

    Then enter command "where" once more and save the output to a text file (later.txt) and attach both text files here.

     

    The stack traces should give a clue as to what is causing the looping to occur. 

  • 18. Re: Hibernate 3.6.0 with AS 7.1.1 - stuck in loop at war deployment
    Nes Yarug Newbie

    Hi Scott,

     

    See attached output from jdb.

     

    Hope you can see something.

     

    Thanks,

    Nes

     

    ps: Posting just now as it was after 01:00 in my timezone yesterday when I posted last.

  • 19. Re: Hibernate 3.6.0 with AS 7.1.1 - stuck in loop at war deployment
    Scott Marlow Master

    I can see from the call stack that Spring is in control of the looping (if it was a bug in AS7, I would want to see it fixed). 

     

    Breakpoint hit: "thread=MSC service thread 1-3", org.hibernate.id.factory.DefaultIdentifierGeneratorFactory.register(), line=95 bci=0

     

    MSC service thread 1-3[1] where

      [1] org.hibernate.id.factory.DefaultIdentifierGeneratorFactory.register (DefaultIdentifierGeneratorFactory.java:95)

      [2] org.hibernate.id.factory.DefaultIdentifierGeneratorFactory.<init> (DefaultIdentifierGeneratorFactory.java:71)

      [3] org.hibernate.cfg.Configuration.reset (Configuration.java:341)

      [4] org.hibernate.cfg.Configuration.<init> (Configuration.java:298)

      [5] org.hibernate.cfg.Configuration.<init> (Configuration.java:302)

      [6] sun.reflect.GeneratedConstructorAccessor31.newInstance (null)

      [7] sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27)

      [8] java.lang.reflect.Constructor.newInstance (Constructor.java:513)

      [9] org.springframework.beans.BeanUtils.instantiateClass (BeanUtils.java:147)

      [10] org.springframework.beans.BeanUtils.instantiateClass (BeanUtils.java:104)

      [11] org.springframework.orm.hibernate3.LocalSessionFactoryBean.newConfiguration (LocalSessionFactoryBean.java:818)

      [12] org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory (LocalSessionFactoryBean.java:549)

      [13] org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet (AbstractSessionFactoryBean.java:188)

      [14] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods (AbstractAutowireCapableBeanFactory.java:1,514)

      [15] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1,452)

      [16] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:519)

      [17] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [18] org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:294)

      [19] org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:225)

      [20] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:291)

      [21] org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:193)

      [22] org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates (DefaultListableBeanFactory.java:848)

      [23] org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:790)

      [24] org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:707)

      [25] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:478)

      [26] org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:87)

      [27] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues (AutowiredAnnotationBeanPostProcessor.java:284)

      [28] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,106)

      [29] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [30] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [31] org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean (BeanDefinitionValueResolver.java:270)

      [32] org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:120)

      [33] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues (AbstractAutowireCapableBeanFactory.java:1,360)

      [34] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,118)

      [35] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [36] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [37] org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:294)

      [38] org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:225)

      [39] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:291)

      [40] org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean (AbstractBeanFactory.java:1,356)

      [41] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean (AbstractAutowireCapableBeanFactory.java:710)

      [42] org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch (AbstractBeanFactory.java:519)

      [43] org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:319)

      [44] org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors (BeanFactoryUtils.java:185)

      [45] org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates (DefaultListableBeanFactory.java:833)

      [46] org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:790)

      [47] org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:707)

      [48] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:478)

      [49] org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:87)

      [50] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues (AutowiredAnnotationBeanPostProcessor.java:284)

      [51] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,106)

      [52] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [53] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [54] org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean (BeanDefinitionValueResolver.java:270)

      [55] org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:120)

      [56] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues (AbstractAutowireCapableBeanFactory.java:1,360)

      [57] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,118)

      [58] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [59] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [60] org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:294)

      [61] org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:225)

      [62] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:291)

      [63] org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean (AbstractBeanFactory.java:1,356)

      [64] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean (AbstractAutowireCapableBeanFactory.java:710)

      [65] org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch (AbstractBeanFactory.java:519)

      [66] org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:319)

      [67] org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors (BeanFactoryUtils.java:185)

      [68] org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates (DefaultListableBeanFactory.java:833)

      [69] org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:790)

      [70] org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:707)

      [71] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:478)

      [72] org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:87)

      [73] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues (AutowiredAnnotationBeanPostProcessor.java:284)

      [74] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,106)

      [75] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [76] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [77] org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean (BeanDefinitionValueResolver.java:270)

      [78] org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:120)

      [79] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues (AbstractAutowireCapableBeanFactory.java:1,360)

      [80] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,118)

      [81] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [82] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [83] org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:294)

      [84] org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:225)

      [85] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:291)

      [86] org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean (AbstractBeanFactory.java:1,356)

      [87] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean (AbstractAutowireCapableBeanFactory.java:710)

      [88] org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch (AbstractBeanFactory.java:519)

      [89] org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:319)

      [90] org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors (BeanFactoryUtils.java:185)

      [91] org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates (DefaultListableBeanFactory.java:833)

      [92] org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:790)

      [93] org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:707)

      [94] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:478)

      [95] org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:87)

      [96] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues (AutowiredAnnotationBeanPostProcessor.java:284)

      [97] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,106)

      [98] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [99] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [100] org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean (BeanDefinitionValueResolver.java:270)

      [101] org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:120)

      [102] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues (AbstractAutowireCapableBeanFactory.java:1,360)

      [103] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,118)

      [104] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [105] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [106] org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:294)

      [107] org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:225)

      [108] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:291)

      [109] org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean (AbstractBeanFactory.java:1,356)

      [110] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean (AbstractAutowireCapableBeanFactory.java:710)

      [111] org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch (AbstractBeanFactory.java:519)

      [112] org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:319)

      [113] org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors (BeanFactoryUtils.java:185)

      [114] org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates (DefaultListableBeanFactory.java:833)

      [115] org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:790)

      [116] org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:707)

      [117] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:478)

      [118] org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:87)

      [119] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues (AutowiredAnnotationBeanPostProcessor.java:284)

      [120] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,106)

      [121] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [122] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [123] org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean (BeanDefinitionValueResolver.java:270)

      [124] org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:120)

      [125] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues (AbstractAutowireCapableBeanFactory.java:1,360)

      [126] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,118)

      [127] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [128] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [129] org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:294)

      [130] org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:225)

      [131] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:291)

      [132] org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean (AbstractBeanFactory.java:1,356)

      [133] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean (AbstractAutowireCapableBeanFactory.java:710)

      [134] org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch (AbstractBeanFactory.java:519)

      [135] org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:319)

      [136] org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors (BeanFactoryUtils.java:185)

      [137] org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates (DefaultListableBeanFactory.java:833)

      [138] org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:790)

      [139] org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:707)

      [140] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:478)

      [141] org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:87)

      [142] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues (AutowiredAnnotationBeanPostProcessor.java:284)

      [143] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,106)

      [144] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [145] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [146] org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean (BeanDefinitionValueResolver.java:270)

      [147] org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:120)

      [148] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues (AbstractAutowireCapableBeanFactory.java:1,360)

      [149] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,118)

      [150] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [151] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [152] org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:294)

      [153] org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:225)

      [154] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:291)

      [155] org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean (AbstractBeanFactory.java:1,356)

      [156] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean (AbstractAutowireCapableBeanFactory.java:710)

      [157] org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch (AbstractBeanFactory.java:519)

      [158] org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:319)

      [159] org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors (BeanFactoryUtils.java:185)

      [160] org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates (DefaultListableBeanFactory.java:833)

      [161] org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:790)

      [162] org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:707)

      [163] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:478)

      [164] org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:87)

      [165] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues (AutowiredAnnotationBeanPostProcessor.java:284)

      [166] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,106)

      [167] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [168] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [169] org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean (BeanDefinitionValueResolver.java:270)

      [170] org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:120)

      [171] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues (AbstractAutowireCapableBeanFactory.java:1,360)

      [172] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,118)

      [173] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [174] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [175] org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:294)

      [176] org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:225)

      [177] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:291)

      [178] org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean (AbstractBeanFactory.java:1,356)

      [179] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean (AbstractAutowireCapableBeanFactory.java:710)

      [180] org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch (AbstractBeanFactory.java:519)

      [181] org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:319)

      [182] org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors (BeanFactoryUtils.java:185)

      [183] org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates (DefaultListableBeanFactory.java:833)

      [184] org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:790)

      [185] org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:707)

      [186] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:478)

      [187] org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:87)

      [188] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues (AutowiredAnnotationBeanPostProcessor.java:284)

      [189] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,106)

      [190] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [191] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [192] org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean (BeanDefinitionValueResolver.java:270)

      [193] org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary (BeanDefinitionValueResolver.java:120)

      [194] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues (AbstractAutowireCapableBeanFactory.java:1,360)

      [195] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,118)

      [196] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [197] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [198] org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:294)

      [199] org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:225)

      [200] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:291)

      [201] org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean (AbstractBeanFactory.java:1,356)

      [202] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean (AbstractAutowireCapableBeanFactory.java:710)

      [203] org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch (AbstractBeanFactory.java:519)

      [204] org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType (DefaultListableBeanFactory.java:319)

      [205] org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors (BeanFactoryUtils.java:185)

      [206] org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates (DefaultListableBeanFactory.java:833)

      [207] org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:790)

      [208] org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:707)

      [209] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:478)

      [210] org.springframework.beans.factory.annotation.InjectionMetadata.inject (InjectionMetadata.java:87)

      [211] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues (AutowiredAnnotationBeanPostProcessor.java:284)

      [212] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1,106)

      [213] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:517)

      [214] org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:456)

      [215] org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject (AbstractBeanFactory.java:294)

      [216] org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:225)

      [217] org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:291)

      [218] org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:193)

      [219] org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:585)

      [220] org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:913)

      [221] org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:464)

      [222] org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext (ContextLoader.java:385)

      [223] org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java:284)

      [224] org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:111)

      [225] org.apache.catalina.core.StandardContext.contextListenerStart (StandardContext.java:3,392)

      [226] org.apache.catalina.core.StandardContext.start (StandardContext.java:3,850)

      [227] org.jboss.as.web.deployment.WebDeploymentService.start (WebDeploymentService.java:90)

      [228] org.jboss.msc.service.ServiceControllerImpl$StartTask.startService (ServiceControllerImpl.java:1,811)

      [229] org.jboss.msc.service.ServiceControllerImpl$StartTask.run (ServiceControllerImpl.java:1,746)

      [230] java.util.concurrent.ThreadPoolExecutor$Worker.runTask (ThreadPoolExecutor.java:886)

      [231] java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)

      [232] java.lang.Thread.run (Thread.java:680)

    MSC service thread 1-3[1]

     

    My guess is that Spring isn't stuck in a loop, but instead is probably creating a Hibernate Session Factory for each entity bean in your application (or something like that).  You probably could make some changes in your Spring app to share the same Hibernate Session Factory between all of your beans.  If you have trouble figuring that out, you might also consider switching to use EE instead.

     

    Scott

  • 20. Re: Hibernate 3.6.0 with AS 7.1.1 - stuck in loop at war deployment
    Nes Yarug Newbie

    Thanks Scott.

     

    I'm migrating an application that was working on earlier versions of Spring/Hibernate/JBoss so it seems like some things are handled differently somewhere. As for the Session Factory, I've followed the Spring documentation (http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/orm.html#orm-hibernate) to the letter and this configuration documentation did not change from earlier versions of Spring as my migrated configuration still exactly matches the current documentation.

     

    I'll hit up the Spring forums to see if someone there knows what might be wrong.

     

    Thanks a lot again. I'll keep posting here if I make any progress.

  • 21. Re: Hibernate 3.6.0 with AS 7.1.1 - stuck in loop at war deployment
    Nes Yarug Newbie

    So the update is I managed to get past the problem and my WAR is now deploying without startup errors.

     

    Unfortunately I don't know exactly what changes I made contributed to resolving the issue I described in this thread.

     

    Since my last post here (and subsequently posting on the Spring forums) I have been steadily refactoring and cleaning up the application. Most likely there was some erroneous configuration in either my app.hbm.xml or in my Cache configuration.

     

    Thanks esp. to Scott for his time.

1 2 Previous Next