• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error: ERROR initServletBean, Context initialization failed

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you paste your spring-servlet.xml and the list of jar files you are deploying?
 
priyanka kulathilaka
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Ranch Hand
Posts: 206
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're pasting a pom.xml file not the xlm file that you need for trouble shooting.

Basically an error "2011-07-14 14:48:54.576:INFO::No Transaction manager found - if your webapp requires one, please configure one." indicated that you're missing an application-context.xml file where you configure your app to connect with the data source and handle the transaction.

You need to have application-context.xml file, if you don't have one you need to create one. Refer to Spring reference of how to create one and configure. Below is an example that some information that you need to configure in the file.


For example,




Hope it help...
 
priyanka kulathilaka
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks tommy.,

here is my spring-servlet.xml


& here is my web.xml

 
Tommy Delson
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see there many problems in your spring-servlet.xml file, problems are on bean id="sessionFactory" , you didn't configure it probably. Therefore, it didn't load the information it looking when your run the app. It can easily fixed, refer to Spring document and other sources how to config it probably.

I recommend create a new separate xml file called applicationContext.xml for easy maintenance, wire it in web.xml along spring-servlet.xml. Moreover, refer to Spring document for more info on how to configure.

See my comments below for troubleshooting...



 
Acetylsalicylic acid is aspirin. This could be handy too:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic