- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用带有 grails 的 batik 在服务器上将一些 SVG 内容呈现为 PNG。
当我将依赖项添加到 BuildConfig 然后告诉 IntelliJ 加载更改时,我在 IntelliJ 中收到以下错误:
/Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home/bin/java -Dgrails.home=/Applications/Dev/grails-2.1.0 -Dbase.dir=/Users/greg/Documents/development/git/liftyourgame-grails/webapp -Dtools.jar=/Library/Java/JavaVirtualMachines/1.6.0_33-b03-424.jdk/Contents/Home/lib/tools.jar -Dgroovy.starter.conf=/Applications/Dev/grails-2.1.0/conf/groovy-starter.conf -Xmx512M -XX:MaxPermSize=192m -javaagent:/Applications/IntelliJ IDEA 11.app/plugins/Grails/lib/grails_rt.jar -Dprint.grails.settings=true -Dfile.encoding=UTF-8 -classpath /Applications/Dev/grails-2.1.0/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-1.8.6.jar:/Applications/Dev/grails-2.1.0/dist/grails-bootstrap-2.1.0.jar org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf /Applications/Dev/grails-2.1.0/conf/groovy-starter.conf help
| Loading Grails 2.1.0
| Configuring classpath
| Error Error executing script Help: loader constraint violation: when resolving overridden method "org.apache.tools.ant.helper.ProjectHelper2$RootHandler.setDocumentLocator(Lorg/xml/sax/Locator;)V" the class loader (instance of org/codehaus/groovy/grails/cli/support/GrailsRootLoader) of the current class, org/apache/tools/ant/helper/ProjectHelper2$RootHandler, and its superclass loader (instance of <bootloader>), have different Class objects for the type org/xml/sax/Locator used in the signature (Use --stacktrace to see the full trace)
IDEA hook: Grails not found!
| Error java.lang.NullPointerException
| Error at org.jetbrains.groovy.grails.rt.Agent$2.run(Agent.java:88)
| Error at java.lang.Thread.run(Thread.java:680)
grails.project.dependency.resolution = {
// inherit Grails' default dependencies
inherits("global") {
excludes 'slf4j-log4j12', 'xml-apis', 'xalan', 'xml-apis-ext', 'commons-logging', 'commons-io'
}
log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
checksums true // Whether to verify checksums on resolve
repositories {
inherits true // Whether to inherit repository definitions from plugins
grailsPlugins()
grailsHome()
grailsCentral()
mavenCentral()
}
dependencies {
compile "org.jadira.usertype:usertype.jodatime:1.9"
compile "org.imgscalr:imgscalr-lib:4.0"
compile("org.apache.xmlgraphics:batik-svg-dom:1.7")
{
excludes 'batik-xml', 'batik-dom', 'commons-javaflow',
'avalon-framework-api', 'avalon-framwork-impl',
'batik-css', 'batik-gvt', 'batik-script',
'slf4j-log4j12', 'xml-apis', 'xml-apis-ext', 'log4j', 'xercesImpl', 'xalan',
'antlr', 'commons-beanutils', 'commons-collections', 'commons-logging', 'xmlParserAPIs',
'ant', 'mondrian', 'groovy-all', 'saaj-api', 'servlet-api', 'spring-core', 'bsh',
'spring-beans', 'jaxen', 'persistence-api', 'jdtcore', 'bcmail-jdk16', 'bcprov-jdk16',
'bctsp-jdk16', 'bcmail-jdk14', 'bcprov-jdk14', 'bctsp-jdk14', 'xmlbeans'
}
}
最佳答案
问题似乎是 Batik 包含的 xml-apis 版本与现在包含在 JDK 中的版本冲突。 ( http://grails.1312388.n4.nabble.com/Problems-integrating-batik-with-grails-project-td4632728.html ) 所以,这是一个排除“xml-apis”的问题,就像你已经做的那样。但是,由于 Batik 的许多 jar 都对 xml-apis 具有传递依赖关系,因此很难让 Grails 排除它。以下是最终对我有用的内容:
compile("org.apache.xmlgraphics:fop:0.94",
"org.apache.xmlgraphics:batik-transcoder:1.7",
"org.apache.xmlgraphics:batik-codec:1.7",
"org.apache.xmlgraphics:batik-awt-util:1.7",
"org.apache.xmlgraphics:batik-bridge:1.7",
"org.apache.xmlgraphics:batik-dom:1.7",
"org.apache.xmlgraphics:batik-gvt:1.7",
"org.apache.xmlgraphics:batik-svg-dom:1.7",
"org.apache.xmlgraphics:batik-svggen:1.7",
"org.apache.xmlgraphics:batik-util:1.7",
"org.apache.xmlgraphics:batik-xml:1.7",
"org.apache.xmlgraphics:batik-anim:1.7",
"org.apache.xmlgraphics:batik-css:1.7",
"org.apache.xmlgraphics:batik-ext:1.7",
"org.apache.xmlgraphics:batik-js:1.7",
"org.apache.xmlgraphics:batik-parser:1.7",
"org.apache.xmlgraphics:batik-script:1.7",
"org.apache.xmlgraphics:xmlgraphics-commons:1.2",
"commons-logging:commons-logging:1.0.4",
"org.apache.avalon.framework:avalon-framework-api:4.3.1",
"org.apache.avalon.framework:avalon-framework-impl:4.3.1",
"xalan:xalan:2.6.0",
"xml-apis:xml-apis-ext:1.3.04"
){
transitive = false
}
关于grails - batik 与 chalice 给予萨克斯冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11822681/
我试图让 UIScrollView 的末端淡出 - 就像 UITableView 一样。我找到了下面的代码。我在 UIScrollView 子类中的 initWithFrame:... 内部调用的方法
很抱歉为此打扰你,但我可能已经为这个问题生气了 5 个小时,但我没能解决它。 我有一个包含大约 37,000 个条目的数据集。它们每个都有自己的 Lon 和 Lat 坐标值。检查整体值,它们的范围分别
我目前有一个表格 View ,其中有单元格 View ,其中包含 NSTextFields。目前,在行选择时,我向单元格 View 发送以下消息,希望授予单元格 View 中的 NSTextView
我在我的应用程序中使用 NSUserDefaults 来存储一些标志值。每次发生条件时,我的函数都会增加值。偶尔它可以工作,但大多数时候它会崩溃并收到 EXC_BAD_ACCESS 消息。 var s
我是 bootstrap 的新手并且很喜欢它。但是,我有一个小问题,我不确定如何解决。为了更好地解释它,我绘制了一个简单的网站布局。 这是网站在普通桌面显示器上的样子 这是网站在手机(iPhone 5
我正在使用 Storyboard ,在我的 Storyboard 中我有一个按钮与另一个 View Controller 相连。所以当你点击按钮时,另一个 View Controller 就会出现。我
我正在与 Stripe 合作。我们的用户订阅了我们的服务,并且每 2 周向他们收费一次。我们需要实现一种方法,在他们每次推荐某人使用我们的服务时给他们 5 美元的信用额度。 到目前为止我考虑过的解决方
我有一个允许用户在 3 个不同 View 之间滑动的 Activity 。每个 View 显示一个图像列表。图像具有调用新 Activity 并使图像全屏显示的 onClick 事件。这一切正常,但是
问题的链接是 - spoj question 我尝试通过这种方法解决问题 - N 范围内的对数 = N-1 范围内的对数 + 一些新对。 但我不知道这里还应该做哪些优化来避免 TLE。我还阅读了有关
我正在创建一个网站,但遇到了问题 - 我的页脚和其余内容之间有很大的空间。我有一个包含我所有内容的容器,包括我的页脚,但是有一个单独的 div 包含该容器中的内容。容器 div 没有设置高度,因为它应
我有一个类似这样的查询 select city_desc from mst_city where upper(city_desc) like upper('%branch%') 它填充结果以分支开头的
我正在开发带有 Web 界面 (apache) 的嵌入式 Linux 系统。基本上,我需要向 Web 界面添加关机和重启功能。但是,我在运行时遇到了权限问题: exec("shutdown now")
我正在考虑验证用户输入的最佳方式。 让我们想象一些 TextBoxes、CheckBoxes 或您喜欢的任何 .NET 控件,其中用户输入必须被验证为 OK 或 NOK。一旦用户填写了所有必填字段,他
首先对不起我的英语,我是德国人。我将 Debian 与 apache2 和 php5 一起使用。该服务器仅用于测试并位于我的本地网络中,因此我没有遇到任何安全问题。我的问题是: 如何给 PHP/PHP
我正在尝试将 Uber SDK 与我当前的 iOS 应用程序集成。 我有 Xcode:- 8.1 iOS:-10.1 和 swift 版本:- 3.0 我已经完成了“Carthage”的 Uber 集
我是一名优秀的程序员,十分优秀!