java - Hibernate not running after I change user -


org.springframework.beans.factory.beancreationexception: error creating bean name 'performancedao' defined in class path resource [dao-bean.xml]: invocation of init method failed; nested exception org.hibernate.exception.genericjdbcexception: cannot open connection @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1412) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:519) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:456) @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:291) @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:222) @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:288) @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:190) @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:563) @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:872) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:423) @ org.springframework.web.context.contextloader.createwebapplicationcontext(contextloader.java:276) @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:197) @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:47) @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4206) @ org.apache.catalina.core.standardcontext.start(standardcontext.java:4705) @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:799) @ org.apache.catalina.core.containerbase.addchild(containerbase.java:779) @ org.apache.catalina.core.standardhost.addchild(standardhost.java:623) @ org.apache.catalina.startup.hostconfig.deploydescriptor(hostconfig.java:675) @ org.apache.catalina.startup.hostconfig.deploydescriptors(hostconfig.java:601) @ org.apache.catalina.startup.hostconfig.deployapps(hostconfig.java:502) @ org.apache.catalina.startup.hostconfig.start(hostconfig.java:1322) @ org.apache.catalina.startup.hostconfig.lifecycleevent(hostconfig.java:324) @ org.apache.catalina.util.lifecyclesupport.firelifecycleevent(lifecyclesupport.java:142) @ org.apache.catalina.core.containerbase.start(containerbase.java:1065) @ org.apache.catalina.core.standardhost.start(standardhost.java:862) @ org.apache.catalina.core.containerbase.start(containerbase.java:1057) @ org.apache.catalina.core.standardengine.start(standardengine.java:463) @ org.apache.catalina.core.standardservice.start(standardservice.java:525) @ org.apache.catalina.core.standardserver.start(standardserver.java:754) @ org.apache.catalina.startup.catalina.start(catalina.java:595) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) @ java.lang.reflect.method.invoke(unknown source) @ org.apache.catalina.startup.bootstrapwrapper.start(bootstrapwrapper.java:306) @ org.apache.catalina.startup.bootstrapwrapper.run(bootstrapwrapper.java:517) @ java.lang.thread.run(unknown source)

when run tomcat server admin user, dont see these errors when run tomcat non-admin (non-root) user these errors.

where should resolve these issues

thanks lot

how connect db? using credentials of user logged tomcat? if so, check permissions of user logged in db, may not have permissions access db. based on error.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -