Announcement Announcement Module
No announcement yet.
Upgrade from Spring 1.2 to 2.x Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Upgrade from Spring 1.2 to 2.x

    Hi all

    I am encountering problems with upgrading from Spring 1.2.x to 2.x
    My system used Spring 1.2 , Hibernate 3.0.x and struts.

    I am getting errors in Jboss container (4.2GA) regarding conflicts.
    Is there any particular resource that I can look in to other than change log , which may help or any one with expertise on the issue.

    I am trying to upgrade to Spring 2.0 ,Hibernate 3.2 and latest strut release



  • #2
    Hi NastyKid

    There is no such resource that I know of (unfortunately). However, these forums are a pretty good resource... what conflicts are you getting? If you enumerate them I can help you fix them.... well, I can probably help you fix them... I'd better cover my rear there



    • #3
      Spring Upgrade to 2.x

      Hibernate 3.2 and spring2.0, It complains about a secondary cache

      I guess Its some thing to do with Hibernate, Not quite sure, I am going following the 3.2 documentation now

      ########### Error ######################

      ional second-level cache is not recommended)
      STDOUT] 14:28:17,111 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
      STDOUT] 14:28:17,111 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
      STDOUT] 14:28:17,111 INFO [SettingsFactory] Scrollable result sets: enabled
      STDOUT] 14:28:17,111 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
      STDOUT] 14:28:17,111 INFO [SettingsFactory] Connection release mode: on_close
      STDOUT] 14:28:17,111 INFO [SettingsFactory] Default batch fetch size: 1
      STDOUT] 14:28:17,111 INFO [SettingsFactory] Generate SQL with comments: disabled
      STDOUT] 14:28:17,111 INFO [SettingsFactory] Order SQL updates by primary key: disabled
      STDOUT] 14:28:17,111 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      STDOUT] 14:28:17,127 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
      STDOUT] 14:28:17,127 INFO [SettingsFactory] Query language substitutions: {}
      STDOUT] 14:28:17,127 INFO [SettingsFactory] JPA-QL strict compliance: disabled
      STDOUT] 14:28:17,127 INFO [SettingsFactory] Second-level cache: enabled
      STDOUT] 14:28:17,127 INFO [SettingsFactory] Query cache: enabled
      STDOUT] 14:28:17,127 INFO [SettingsFactory] Cache provider: org.hibernate.cache.NoCacheProvider
      STDOUT] 14:28:17,127 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
      STDOUT] 14:28:17,127 INFO [SettingsFactory] Structured second-level cache entries: disabled
      STDOUT] 14:28:17,127 INFO [SettingsFactory] Query cache factory: org.hibernate.cache.StandardQueryCacheFactory
      STDOUT] 14:28:17,143 INFO [SettingsFactory] Echoing all SQL to stdout
      STDOUT] 14:28:17,143 INFO [SettingsFactory] Statistics: enabled
      STDOUT] 14:28:17,143 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
      STDOUT] 14:28:17,143 INFO [SettingsFactory] Default entity-mode: pojo
      STDOUT] 14:28:17,143 INFO [SettingsFactory] Named query checking : enabled
      STDOUT] 14:28:17,205 INFO [SessionFactoryImpl] building session factory
      STDOUT] 14:28:18,174 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
      STDOUT] 14:28:18,174 INFO [UpdateTimestampsCache] starting update timestamps cache at region: org.hibernate.cache.UpdateTimestamp

      STDOUT] 14:28:18,174 INFO [DefaultListableBeanFactory] Destroying singletons in
      34b350: defining beans [dataSource,sessionFactory,apikeyGoogle,apikeyRotat or,apikeyMsn,create,apikeyutility,apikeyInsert,ran kUtili
      ndLinkDAO,Overture,Overture_Input,addClientUtility ,addProjectUtility,OvertureInsert,keywordsUtility, commonutility,addDiaryUtility,
      gory,userUtility,systemLocalConfigUtility,loginche ck,systemLocalConfig,globalpojo,globalutility,save dProjectDataUtility,extractKey
      ture,processStatusDAO,IpSpiltterID,dataCaptureUtil ity,reportDataUtility,sessionUtility,schedularHiso try,SchedularUtility]; root of

      STDOUT] 14:28:18,174 ERROR [ContextLoader] Context initialization failed
      beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/c
      ntext.xml]: Invocation of init method failed; nested exception is org.hibernate.cache.NoCachingEnabledException: Second-level cach
      usage [hibernate.cache.use_second_level_cache | hibernate.cache.use_query_cache]

      NoCachingEnabledException: Second-level cache is not enabled for usage [hibernate.cache.use_second_level_cache | hibernate.cache.u

      gframework.orm.hibernate3.LocalSessionFactoryBean. newSessionFactory( )
      gframework.orm.hibernate3.LocalSessionFactoryBean. buildSessionFactory( 45)
      gframework.orm.hibernate3.AbstractSessionFactoryBe an.afterPropertiesSet(AbstractSessionFactoryBean.j ava:134) apableBeanFactory.invokeInitMethods(AbstractAutowi

      Thanks for your quick reply
      Last edited by NastyKid; Jul 13th, 2007, 09:22 AM.


      • #4

        I managed to Upgrade successfully to jBoss 4.2GA

        1) Had issues with ehcache, removed the jar and the hibernate entry and it was fixed

        2) Has terrible problems with ASM jar versioning, with Jboss container 4.2GA it was fixed

        There is no information which explains the asm versions spring or hibernate using ,which i assumed wich caused the error.But it was jboss4.0.x version which was creating the error due to old asm version in jboss

        Currently Hibernate 3.2 Spring.2.x and Struts work in this environment