我正在尝试在Tomcat7上运行一个需要一些插件并使用Grails编写的Project.
使用grails prod war命令创建-war会导致无错误.但是,如果我将应用程序添加到我的Tomcat7服务器,它将无法执行.
我的tomcat7的日志文件重新启动我的ApplicationContext.xml一定有问题.
2014-07-01 15:22:22,325 [http-bio-8080-exec-87] ERROR StackTrace - Full Stack Trace:
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 with name 'grailsResourceLoader' defined in ServletContext resource [/WEB-INF/applicationContext.xml];
nested exception is java.lang.ClassNotFoundException: org.codehaus.groovy.grails.commons.GrailsResourceLoaderFactoryBean
Run Code Online (Sandbox Code Playgroud)
我的ApplicationContext.xml如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="grailsApplication" class="org.codehaus.groovy.grails.commons.GrailsApplicationFactoryBean">
<description>Grails application factory bean</description>
<property …Run Code Online (Sandbox Code Playgroud)