?
Solved

BootstrapException in Springs

Posted on 2013-12-17
5
Medium Priority
?
809 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 2

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 900 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 2

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 2

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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month11 days, 1 hour left to enroll

770 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