Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 为插件[参考资料:1.1.6]配置动态方法时出错:无法获取属性';插件路径';_Apache_Tomcat_Grails_Grails Plugin - Fatal编程技术网

Apache 为插件[参考资料:1.1.6]配置动态方法时出错:无法获取属性';插件路径';

Apache 为插件[参考资料:1.1.6]配置动态方法时出错:无法获取属性';插件路径';,apache,tomcat,grails,grails-plugin,Apache,Tomcat,Grails,Grails Plugin,使用Grails1.3.7,我可以从我的STS编译和运行我的项目。 下面列出的错误发生在打包WAR并试图从ApacheTomcat中删除它之后。这个问题以前从未发生过,我以前也曾以同样的方式成功地将其部署到ApacheTomcat。(使用apache-tomcat-7.0.26) 关于错误: 在BootstrapResources.run(BootstrapResources.groovy:23)第23行指向: def TwitterBootstrapLugin=applicationConte

使用Grails1.3.7,我可以从我的STS编译和运行我的项目。 下面列出的错误发生在打包WAR并试图从ApacheTomcat中删除它之后。这个问题以前从未发生过,我以前也曾以同样的方式成功地将其部署到ApacheTomcat。(使用apache-tomcat-7.0.26)

关于错误: 在BootstrapResources.run(BootstrapResources.groovy:23)第23行指向:

def TwitterBootstrapLugin=applicationContext.pluginManager.getGrailsPlugin('twitter-bootstrap'))

第23行-->TwitterBootstrapLuginDir=applicationContext.getResource(TwitterBootstrapLugin.pluginPath).file

该项目的最新添加是SpringSecurityCore,但我看不出这怎么会是一个问题


有人有什么想法吗?

这可能不是这个问题的通用解决方案,但对于我的项目来说,这是我的maven打包的问题,没有包括成功部署所需的所有插件

出于某种原因,我在BuildConfig.groovy文件中定义了插件,如下所示:

plugins{
    build ':whateverplugin:0.1'
    compile ':whateverplugin:0.1'
    runtime ':whateverplugin:0.1'
    test ':whateverplugin:0.1'
}
在打包我的项目时,插件未包含在war打包中,并发出以下命令: mvn包-Dmaven.skip.test=true

plugins{
    build ':whateverplugin:0.1'
    compile ':whateverplugin:0.1'
    runtime ':whateverplugin:0.1'
    test ':whateverplugin:0.1'
}