Solved

BootstrapException in Springs

Posted on 2013-12-17
5
706 Views
Last Modified: 2014-01-04
Hi,
 
I am getting the following exception, I am not able to figure out the reason. I have been trying for hours. Can anybody please give me some guidance about what could be the possible reasons..


Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'common-context-production' defined in URL [wsjar:file:/C:/Program Files (x86)/IBM/WebSphere/AppServer/profiles/AppSrv02/installedApps/NGEN-JAVA793Node02Cell/Enrollment_ear.ear/lib/Common-18.0.7-SNAPSHOT.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'qualifyingEventCodesDao': Invocation of init method failed; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query
0
Comment
Question by:srikotesh
  • 3
  • 2
5 Comments
 
LVL 1

Author Comment

by:srikotesh
ID: 39724398
please see the below lines also

org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [common-context-production], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'common-context-production' defined in URL [wsjar:file:/C:/Program Files (x86)/IBM/WebSphere/AppServer/profiles/AppSrv02/installedApps/NGEN-JAVA793Node02Cell/Enrollment_ear.ear/lib/Common-18.0.7-SNAPSHOT.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'qualifyingEventCodesDao': Invocation of init method failed; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 300 total points
ID: 39724645
Error creating bean with name 'qualifyingEventCodesDao': Invocation of init method failed; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute query 

Open in new window


looks like the cuplrit. Check the bean and its persistence (general advice as i don't do Spring)
0
 
LVL 1

Author Comment

by:srikotesh
ID: 39728488
hi there is a problem in my websphere because i deployed my ear file in other machine its working fine so again i reinstalled my websphere in my machine and i redeployed its working fine thanks for ur suggestion
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39728671
Glad you got it working :)
0
 
LVL 1

Author Comment

by:srikotesh
ID: 39756987
yeah its working for me but that is not the correct solution.because every time we can't do re installation of websphere.same problem happens to another colleague also so we got the solution like

in web.xml file we need to change this line 'common-context-production'

as 'common-context-standalone'. if modify this line its working fine

may i know the reason for this exception how it is working if we make application as standalone?
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now