Grails Error Context.contextloader - Context Initialization Failed
here for a quick overview of the error creating bean with name 'pluginmanager' defined in servletcontext resource site Help Center Detailed answers to any questions you might have cannot find class org codehaus groovy grails commons grailsresourceloaderfactorybean Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Grails run app issue ERROR context.ContextLoader up vote 1 down vote favorite When I enter run command it throws an error. Here is the output when I run command grails -Dserver.port=8082 run-app output: "C:\Program Files\Java\jdk1.7.0_79\bin\java" -Dgrails.home=C:\grails -Dbase.dir=C:\Supreet\Devs@Work\Source\quick-dining "-Dtools.jar=C:\Program Files\Java\jdk1.7.0_79\lib\tools.jar" -Dgroovy.starter.conf=C:\grails/conf/groovy-starter.conf -Xmx768M -Xms768M -XX:MaxPermSize=256m -XX:PermSize=256m -Djline.WindowsTerminal.directConsole=false -javaagent:C:\grails\lib\org.springframework\springloaded\jars\springloaded-1.2.1.RELEASE.jar -noverify -Dspringloaded=profile=grails -Didea.launcher.port=7537 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 13.1.6\bin" -Dfile.encoding=UTF-8 -classpath "C:\grails\lib\org.codehaus.groovy\groovy-all\jars\groovy-all-2.3.7.jar;C:\grails\dist\grails-bootstrap-2.4.4.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 13.1.6\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf C:\grails/conf/groovy-starter.conf "run-app -plain-output" |Loading Grails 2.4.4 |Configuring classpath . |Environment set to development ................................. |Packaging Grails application ........... |Compiling 1 source files ......................... |Running Grails application Error | 2015-10-07 21:29:27,074 [localhos
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up While running the grails getting the error up vote -1 down vote favorite I am http://stackoverflow.com/questions/32997209/grails-run-app-issue-error-context-contextloader using the grails 2.3.7 and mongodb version 2.0.1. While running the grails getting the error Error | 2014-04-23 13:51:13,856 [localhost-startStop-1] ERROR context.ContextLoader - Context initialization failed Message: Error creating bean with name 'grailsApplication' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.codehaus.groovy.grails.exceptions.GrailsConfigurationException: Class not found loading Grails application: conf.ApplicationResources Line | Method ->> 262 | run in java.util.concurrent.FutureTask - - - - - - - - http://stackoverflow.com/questions/23239081/while-running-the-grails-getting-the-error - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker ^ 744 | run in java.lang.Thread Caused by GrailsConfigurationException: Class not found loading Grails application: conf.ApplicationResources ->> 262 | run in java.util.concurrent.FutureTask - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker ^ 744 | run in java.lang.Thread Caused by ClassNotFoundException: conf.ApplicationResources ->> 366 | run in java.net.URLClassLoader$1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 355 | run in '' | 354 | findClass in java.net.URLClassLoader | 425 | loadClass in java.lang.ClassLoader | 262 | run . . . in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run . . . in java.util.concurrent.ThreadPoolExe
4 messages vtdave Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ upgrade from 2.3 to http://grails.1312388.n4.nabble.com/upgrade-from-2-3-to-2-4-quot-Context-initialization-failed-quot-td4657057.html 2.4, "Context initialization failed" Hey Everyone, I was working on a grails https://www.icescrum.com/forums/topic/context-initialization-failed/ 2.3 project and 2.4 came out so I decided I'd upgrade. I downloaded grails, blew away my target directory and upgraded my BuildConfig.groovy. It now looks like this: .... dependencies { // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' error creating scopes e.g. runtime 'mysql:mysql-connector-java:5.1.29' // runtime 'org.postgresql:postgresql:9.3-1100-jdbc41' compile "org.springframework:spring-orm:$springVersion" } plugins { // plugins for the build system only build ":tomcat:7.0.52.1" // plugins for the compile step error creating bean compile ":scaffolding:2.1.0" compile ":cache:1.1.3" compile ":asset-pipeline:1.8.3" // plugins needed at runtime but not for compilation // runtime ":hibernate:3.6.10.7" // or ":hibernate4:4.1.11.6" runtime ":hibernate4:4.3.5.2" // or ":hibernate:3.6.10.14" runtime ":database-migration:1.4.0" runtime ":jquery:1.11.0.2" // Uncomment these (or add new ones) to enable additional resources capabilities //runtime ":zipped-resources:1.0.1" //runtime ":cached-resources:1.1" //runtime ":yui-minify-resources:0.1.5" compile ":spring-security-core:2.0-RC3" } } When I run grails compile it compiles with no errors, but when I type grails run-app i get the following exception: context.ContextLoader Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplication' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'grailsResourceLoader' while setting bean property 'grailsResourceLoader'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.codehaus.groovy.grails.commons.GrailsResourceLoaderFactoryBean] for bean
Forums [RESOLVED] Context initialization failed HomeForumsInstallation[RESOLVED] Context initialization failed This topic contains 3 replies, has 2 voices, and was last updated by Vincent Barrier 8 months, 4 weeks ago. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts 21/01/2016 at 12:07 pm #17328 webmasterPasstimeParticipant Bonjour, J'ai un problème en ce qui concerne le lancement de Icescrum sur un serveur Synology Rackstation. Pouvez vous me dire ce qui ne va pas? Voici le log du fichier icescrum.log : 2016-01-21 09:54:39,616 [http-bio-7070-exec-4] INFO grails.spring.BeanBuilder - [RuntimeConfiguration] Configuring data source for environment: PRODUCTION 2016-01-21 09:54:42,030 [http-bio-7070-exec-4] DEBUG org.icescrum.core.support.ApplicationSupport - Retrieving appID... 2016-01-21 09:54:42,042 [http-bio-7070-exec-4] DEBUG org.icescrum.core.support.ApplicationSupport - Retrieved appID: 60f7884b-0300-aa08-0c3b-3edc031dc524 2016-01-21 09:54:47,272 [http-bio-7070-exec-4] ERROR org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'lobHandlerDetector' while setting bean property 'lobHandler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lobHandlerDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is java.sql.SQLException: com.mysql.jdbc.Driver at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationE