[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

BootstrapException in Springs

Posted on 2013-12-17
5
Medium Priority
?
866 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

Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

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…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
The viewer will learn how to implement Singleton Design Pattern in Java.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Suggested Courses

649 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