java - Error creating bean with name 'grailsApplication' defined in ServletContext resource -
i using groovy grail 2.4.4 , jdk 1.7.75
my groovy grail application told me following error, , have no idea how fix them
i have no idea why service foo.everything.services.scheduleexecutor.billingchargingexecutor can not found.
this application has domain class plugin, , plugin works fine.
can 1 me out?
error context.contextloader - context initialization failed org.springframework.beans.factory.beancreationexception: error creating bean name 'grailsapplication' defined in servletcontext resource [/web-inf/applicationcontext.xml]: invocation of init method failed; nested exception org.codehaus.groovy.grails.exceptions.grailsconfigurationexception: class not found loading grails application: foo.everything.services.scheduleexecutor.billingchargingexecutor @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1554) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:539) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:475) @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:302) @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:228) @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:298) @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:193) @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:687) @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:762) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:482) @ org.springframework.web.context.contextloader.configureandrefreshwebapplicationcontext(contextloader.java:403) @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:306) @ org.codehaus.groovy.grails.web.context.grailscontextloaderlistener.initwebapplicationcontext(grailscontextloaderlistener.java:71) @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:106) @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4992) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5490) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1575) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1565) @ java.util.concurrent.futuretask.run(futuretask.java:262) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:745) caused by: org.codehaus.groovy.grails.exceptions.grailsconfigurationexception: class not found loading grails application: foo.everything.services.scheduleexecutor.billingchargingexecutor @ org.codehaus.groovy.grails.commons.defaultgrailsapplication.<init>(defaultgrailsapplication.java:126) @ org.codehaus.groovy.grails.commons.grailsapplicationfactorybean.afterpropertiesset(grailsapplicationfactorybean.java:99) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.invokeinitmethods(abstractautowirecapablebeanfactory.java:1613) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1550) ... 22 more caused by: java.lang.classnotfoundexception: foo.everything.services.scheduleexecutor.billingchargingexecutor @ java.net.urlclassloader$1.run(urlclassloader.java:366) @ java.net.urlclassloader$1.run(urlclassloader.java:355) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:354) @ java.lang.classloader.loadclass(classloader.java:425) @ groovy.lang.groovyclassloader.loadclass(groovyclassloader.java:655) @ groovy.lang.groovyclassloader.loadclass(groovyclassloader.java:765) @ groovy.lang.groovyclassloader.loadclass(groovyclassloader.java:753) @ org.codehaus.groovy.grails.commons.defaultgrailsapplication.<init>(defaultgrailsapplication.java:124) ... 25 more error context.grailscontextloaderlistener - error initializing application: error creating bean name 'grailsapplication' defined in servletcontext resource [/web-inf/applicationcontext.xml]: invocation of init method failed; nested exception org.codehaus.groovy.grails.exceptions.grailsconfigurationexception: class not found loading grails application: foo.everything.services.scheduleexecutor.billingchargingexecutor org.springframework.beans.factory.beancreationexception: error creating bean name 'grailsapplication' defined in servletcontext resource [/web-inf/applicationcontext.xml]: invocation of init method failed; nested exception org.codehaus.groovy.grails.exceptions.grailsconfigurationexception: class not found loading grails application: foo.everything.services.scheduleexecutor.billingchargingexecutor @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1554) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:539) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:475) @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:302) @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:228) @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:298) @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:193) @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:687) @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:762) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:482) @ org.springframework.web.context.contextloader.configureandrefreshwebapplicationcontext(contextloader.java:403) @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:306) @ org.codehaus.groovy.grails.web.context.grailscontextloaderlistener.initwebapplicationcontext(grailscontextloaderlistener.java:71) @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:106) @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4992) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5490) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1575) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1565) @ java.util.concurrent.futuretask.run(futuretask.java:262) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:745) caused by: org.codehaus.groovy.grails.exceptions.grailsconfigurationexception: class not found loading grails application: foo.everything.services.scheduleexecutor.billingchargingexecutor @ org.codehaus.groovy.grails.commons.defaultgrailsapplication.<init>(defaultgrailsapplication.java:126) @ org.codehaus.groovy.grails.commons.grailsapplicationfactorybean.afterpropertiesset(grailsapplicationfactorybean.java:99) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.invokeinitmethods(abstractautowirecapablebeanfactory.java:1613) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1550) ... 22 more caused by: java.lang.classnotfoundexception: foo.everything.services.scheduleexecutor.billingchargingexecutor @ java.net.urlclassloader$1.run(urlclassloader.java:366) @ java.net.urlclassloader$1.run(urlclassloader.java:355) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:354) @ java.lang.classloader.loadclass(classloader.java:425) @ groovy.lang.groovyclassloader.loadclass(groovyclassloader.java:655) @ groovy.lang.groovyclassloader.loadclass(groovyclassloader.java:765) @ groovy.lang.groovyclassloader.loadclass(groovyclassloader.java:753) @ org.codehaus.groovy.grails.commons.defaultgrailsapplication.<init>(defaultgrailsapplication.java:124) ... 25 more error | forked grails vm exited error
its mentioned in error log,
caused by: java.lang.classnotfoundexception: foo.everything.services.scheduleexecutor.billingchargingexecutor
since required class not found, facing issue. please check if dependency loaded properly.
Comments
Post a Comment