- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我将GGTS 3.6.4与Grails 2.4.5,Weceem 1.3和Java 1.8u40一起使用。
我使用weceem插件在Grails中创建了一个Web应用程序,当我使用grails run-app
命令启动该应用程序时,一切正常。
我试图通过该项目创建可部署的 war ,但是每次安装 war 时,只会显示一个空白的页面。 war 甚至不包含index.html等。
然后,我尝试创建一个新的Grails项目,其中包括weceem 1.3插件并执行命令grails run war
。结果是一样的。我只显示了一个空白页。当我使用run-app
命令时,一切正常。
|Done creating WAR target\NaturlichWeb-0.1.war
|Running Grails application
Error |
SLF4J: Class path contains multiple SLF4J bindings.
Error |
SLF4J: Found binding in [jar:file:/C:/Users/Xeno/Desktop/GGTS_new/grails-2.4.5/dist/grails-plugin-log4j-2.4.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
Error |
SLF4J: Found binding in [jar:file:/C:/Users/Xeno/Desktop/GGTS_new/workspace/NaturlichWeb/target/work/tomcat/webapps/NaturlichWeb/WEB-INF/lib/grails-plugin-log4j-2.4.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
Error |
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Error |
SLF4J: Actual binding is of type [org.slf4j.impl.GrailsSlf4jLoggerFactory]
Weceem: Initializing ehcache with default weceem ehcache.xml from plugin resource: class path resource [weceem-default-ehcache.xml]
Configuring Spring Security Core ...
... finished configuring Spring Security Core
2015-04-02 11:21:13,986 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table tag_links drop constraint FK_lmil1jg72pjc8ei5p6kk5g9un if exists
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Tabelle "TAG_LINKS" nicht gefunden
Table "TAG_LINKS" not found; SQL statement:
alter table tag_links drop constraint FK_lmil1jg72pjc8ei5p6kk5g9un if exists [42102-176]
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table user_role drop constraint FK_it77eq964jhfqtu54081ebtio if exists
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Tabelle "USER_ROLE" nicht gefunden
Table "USER_ROLE" not found; SQL statement:
alter table user_role drop constraint FK_it77eq964jhfqtu54081ebtio if exists [42102-176]
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table user_role drop constraint FK_apcc8lxk2xnug8377fatvbn04 if exists
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Tabelle "USER_ROLE" nicht gefunden
Table "USER_ROLE" not found; SQL statement:
alter table user_role drop constraint FK_apcc8lxk2xnug8377fatvbn04 if exists [42102-176]
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table wcm_content drop constraint FK_1i8ibd0dm67mut0hh09oqt452 if exists
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Tabelle "WCM_CONTENT" nicht gefunden
Table "WCM_CONTENT" not found; SQL statement:
alter table wcm_content drop constraint FK_1i8ibd0dm67mut0hh09oqt452 if exists [42102-176]
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table wcm_content drop constraint FK_9c59e0m1eb1xaeoy5h95xlyme if exists
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Tabelle "WCM_CONTENT" nicht gefunden
Table "WCM_CONTENT" not found; SQL statement:
alter table wcm_content drop constraint FK_9c59e0m1eb1xaeoy5h95xlyme if exists [42102-176]
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table wcm_content drop constraint FK_c9u6eo21g7eku09byvrsjjm0s if exists
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Tabelle "WCM_CONTENT" nicht gefunden
Table "WCM_CONTENT" not found; SQL statement:
alter table wcm_content drop constraint FK_c9u6eo21g7eku09byvrsjjm0s if exists [42102-176]
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table wcm_content drop constraint FK_sgkk9pe0yu0f2brjsl8j20svy if exists
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Tabelle "WCM_CONTENT" nicht gefunden
Table "WCM_CONTENT" not found; SQL statement:
alter table wcm_content drop constraint FK_sgkk9pe0yu0f2brjsl8j20svy if exists [42102-176]
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table wcm_content drop constraint FK_qs79ql67napbqpkvni2tw6ha0 if exists
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Tabelle "WCM_CONTENT" nicht gefunden
Table "WCM_CONTENT" not found; SQL statement:
alter table wcm_content drop constraint FK_qs79ql67napbqpkvni2tw6ha0 if exists [42102-176]
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table wcm_content drop constraint FK_8duair0heuk4lw83fsp2arsce if exists
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Tabelle "WCM_CONTENT" nicht gefunden
Table "WCM_CONTENT" not found; SQL statement:
alter table wcm_content drop constraint FK_8duair0heuk4lw83fsp2arsce if exists [42102-176]
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table wcm_related_content drop constraint FK_gunqv3de4a2aowjtox5l10ug4 if exists
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Tabelle "WCM_RELATED_CONTENT" nicht gefunden
Table "WCM_RELATED_CONTENT" not found; SQL statement:
alter table wcm_related_content drop constraint FK_gunqv3de4a2aowjtox5l10ug4 if exists [42102-176]
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: alter table wcm_related_content drop constraint FK_oxph3lt0u4eteq81gnh2dljrd if exists
2015-04-02 11:21:14,002 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - Tabelle "WCM_RELATED_CONTENT" nicht gefunden
Table "WCM_RELATED_CONTENT" not found; SQL statement:
alter table wcm_related_content drop constraint FK_oxph3lt0u4eteq81gnh2dljrd if exists [42102-176]
2015-04-02 11:21:30,296 [localhost-startStop-1] ERROR export.SimpleSpaceImporter - Unable to import Weceem ZIP file C:\Users\Xeno\AppData\Local\Temp\weceem-space-import4655006495072954442.tmp
: The following error occurred while executing this line:
jar:file:/C:/Users/Xeno/Desktop/GGTS_new/grails-2.4.5/lib/org.apache.ant/ant/jars/ant-1.8.4.jar!/org/apache/tools/ant/antlib.xml:37: Problem: failed to create task or type componentdef
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
at org.apache.tools.ant.taskdefs.Definer.loadAntlib(Definer.java:434)
at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:281)
at org.apache.tools.ant.ComponentHelper.checkNamespace(ComponentHelper.java:790)
at org.apache.tools.ant.ComponentHelper.getDefinition(ComponentHelper.java:260)
at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:237)
at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:216)
at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:414)
at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:160)
at org.weceem.export.SimpleSpaceImporter.execute(SimpleSpaceImporter.groovy:34)
at org.weceem.services.WcmImportExportService$_importSpace_closure1.doCall(WcmImportExportService.groovy:24)
at org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:815)
at org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:715)
at org.weceem.services.WcmImportExportService.importSpace(WcmImportExportService.groovy:20)
at org.weceem.services.WcmContentRepositoryService.importSpaceTemplate(WcmContentRepositoryService.groovy:430)
at org.weceem.services.WcmContentRepositoryService$_createSpace_closure7.doCall(WcmContentRepositoryService.groovy:384)
at org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:815)
at org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:715)
at org.weceem.services.WcmContentRepositoryService.createSpace(WcmContentRepositoryService.groovy:364)
at org.weceem.services.WcmContentRepositoryService$_createDefaultSpace_closure3.doCall(WcmContentRepositoryService.groovy:210)
at org.weceem.services.WcmContentRepositoryService.withPermissionsBypass(WcmContentRepositoryService.groovy:1606)
at org.weceem.services.WcmContentRepositoryService.createDefaultSpace(WcmContentRepositoryService.groovy:209)
at WeceemGrailsPlugin$_closure2.doCall(WeceemGrailsPlugin.groovy:117)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: jar:file:/C:/Users/Xeno/Desktop/GGTS_new/grails-2.4.5/lib/org.apache.ant/ant/jars/ant-1.8.4.jar!/org/apache/tools/ant/antlib.xml:37: Problem: failed to create task or type componentdef
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
at org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.java:484)
at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:416)
at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:160)
at org.apache.tools.ant.taskdefs.Antlib.execute(Antlib.java:146)
at org.apache.tools.ant.taskdefs.Definer.loadAntlib(Definer.java:432)
... 25 more
--- Nested Exception ---
jar:file:/C:/Users/Xeno/Desktop/GGTS_new/grails-2.4.5/lib/org.apache.ant/ant/jars/ant-1.8.4.jar!/org/apache/tools/ant/antlib.xml:37: Problem: failed to create task or type componentdef
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
at org.apache.tools.ant.UnknownElement.getNotFoundException(UnknownElement.java:484)
at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:416)
at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:160)
at org.apache.tools.ant.taskdefs.Antlib.execute(Antlib.java:146)
at org.apache.tools.ant.taskdefs.Definer.loadAntlib(Definer.java:432)
at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:281)
at org.apache.tools.ant.ComponentHelper.checkNamespace(ComponentHelper.java:790)
at org.apache.tools.ant.ComponentHelper.getDefinition(ComponentHelper.java:260)
at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:237)
at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:216)
at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:414)
at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:160)
at org.weceem.export.SimpleSpaceImporter.execute(SimpleSpaceImporter.groovy:34)
at org.weceem.services.WcmImportExportService$_importSpace_closure1.doCall(WcmImportExportService.groovy:24)
at org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:815)
at org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:715)
at org.weceem.services.WcmImportExportService.importSpace(WcmImportExportService.groovy:20)
at org.weceem.services.WcmContentRepositoryService.importSpaceTemplate(WcmContentRepositoryService.groovy:430)
at org.weceem.services.WcmContentRepositoryService$_createSpace_closure7.doCall(WcmContentRepositoryService.groovy:384)
at org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:815)
at org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:715)
at org.weceem.services.WcmContentRepositoryService.createSpace(WcmContentRepositoryService.groovy:364)
at org.weceem.services.WcmContentRepositoryService$_createDefaultSpace_closure3.doCall(WcmContentRepositoryService.groovy:210)
at org.weceem.services.WcmContentRepositoryService.withPermissionsBypass(WcmContentRepositoryService.groovy:1606)
at org.weceem.services.WcmContentRepositoryService.createDefaultSpace(WcmContentRepositoryService.groovy:209)
at WeceemGrailsPlugin$_closure2.doCall(WeceemGrailsPlugin.groovy:117)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Error |
org.weceem.export.ImportException: Uploaded file can't be unpacked. Check it and try again.
Error |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Error |
最佳答案
这似乎是核心问题:
failed to create task or type componentdef
grails.war.resources
从登台目录中删除多余的jar,然后再将所有文件添加到war中。这在docs和
this Marc Palmer blog post中进行了描述,就像
grails.war.resources = { stagingDir ->
delete(file:"$stagingDir/WEB-INF/lib/ant-1.7.???.jar")
}
关于grails - 使用Weceem插件在Grails中创建可部署的 war ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29402103/
我在互联网上搜索了很多小时,但没有找到满意的结果,所以 -VSTO Addin 和 COM Addin(我们作为类库项目制作并使用 Excel 对象)之间有什么区别?VSTO 项目是否有任何限制,例如
我在互联网上搜索了很多小时,但没有找到满意的结果,所以 -VSTO Addin 和 COM Addin(我们作为类库项目制作并使用 Excel 对象)之间有什么区别?VSTO 项目是否有任何限制,例如
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于 Stack Overflow 来说是偏离主题的,
我正在寻找有关如何构建可扩展 WCF 服务器(具有动态加载的服务)的建议,最好使用 System.Addins 或 MEF。 服务器应托管实现最小“插件”API(StartService/StopSe
有没有一种方法可以使用加载浏览器扩展/插件/插件的 headless 浏览器(即 PhantomJS、Selenium)来运行自动测试? 更具体地说,我想模拟广告拦截器(如 Ghostery、ad-b
我是 gradle 的新手,我使用 artifactory 作为我的 repo 服务器。我在网上查看了如何将我的项目发布到我的 repo 服务器,发现我可以使用 maven-publish 或使用 a
我想禁用某些状态的点击/事件,并仅使少数状态可点击。我通读了http://newsignature.github.io/us-map/处的文档,并且找不到与此问题相关的任何内容。 最佳答案 http:
据我了解,在Intellij中使用idea插件打开Maven构建的项目并不是最好的方法,即调用: mvn idea:idea 但是直接打开pom文件(Intellij有默认的Maven插件);同样的事
使用Artifactory plugin对于 Jenkins pipeline 来说是一种幸福,只要遵循文档就可以了。但后来我介绍了Maven Flatten plugin解析父模块和子模块 mvn
我已经安装了Elasticsearch版本1.7.1。一切正常。我也安装了 JDBC 驱动程序。检查下面我的插件文件夹 目录E:\Xampp\htdocs\my-elastic\elasticsear
在我使用 webpack common chunks 插件创建包含第三方库(如 angular、react、lodash 等)的 vendor 包之前,但后来我知道了 webpack dll
我们正在尝试使用(Jenkins、sonar、eclipse ...)安装 CI 平台。 为了让每个开发人员都可以在提交之前对他的代码进行分析,我想知道两种选择: 使用 Sonar 插件运行本地分析。
我知道这是一个比较特殊的问题。尽管如此,也许有些人知道这一点: 我想在 Eclipse 中使用 Maven 编译 Hector=> 分支:0.7.0 和标签:hector-0.7.0-29(https
我卡住了。我一直在尝试寻找或自己创建一个简单的准系统示例,说明如何为 VS 2010 Express 创建 Outlook 插件。我知道这在 VS 2010 Pro 中更简单,但是,在快速版本中真的不
我有以下排除过滤器来忽略所有 R 文件类: findbugs-exclude-filter.xml 当我将它用于 FindBugs-IDEA 插件时,它可以
我刚开始玩 CakePHP,我发现了 Wildflower CMS .我喜欢这个想法,并打算开始修补它。不过,我有一个问题。 在自述文件中,我发现了以下内容:“Wildflower 不是也不会是 Ca
虽然现在大部分情况都是使用n-api来编写插件,但是底层毕竟是v8(和libuv),使用v8编写简单的插件,同时熟悉v8的使用。 本文介绍在写c++插件时,简单又常用的写法,其实本质上,写插件
本篇是 Python 系列教程第 3 篇,更多内容敬请访问我的 Python 合集 Visual Studio Code的安装非常简单,就不放这里增加文章篇幅了。 相比PyCharm,V
Maven – 插件 什么是 Maven 插件? Maven 实际上是一个依赖插件执行的框架,每个任务实际上是由插件完成。Maven 插件通常被用来: 创建 jar 文件 创建 war
我正在编写一个插件来添加带有标签 [deposit_page] 的页面;该标记应替换为一些 PHP 代码。 这就是我所拥有的,但它不起作用。有什么我遗漏或做错了什么吗? function deposi
我是一名优秀的程序员,十分优秀!