Avatar of srikotesh
srikotesh
 asked on

BootstrapException in Springs

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
Web ApplicationsJavaJava EE

Avatar of undefined
Last Comment
srikotesh

8/22/2022 - Mon
srikotesh

ASKER
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
ASKER CERTIFIED SOLUTION
CEHJ

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
srikotesh

ASKER
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
CEHJ

Glad you got it working :)
Your help has saved me hundreds of hours of internet surfing.
fblack61
srikotesh

ASKER
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?