Comments (14)
I see your point. I had a similar issue when there was a conflict with the plugin libraries that Gradle provides out-of-the-box. The Gradle runtime classpath was included because my plugin is written in Groovy and requires the libraries to be on the classpath. In the upcoming release I will only include the Groovy libraries. Everything else gets excluded.
from gradle-tomcat-plugin.
I actually just added "javax.servlet:servlet-api:3.0" and 'org.codehaus.groovy:groovy:1.7.10' to the buildscript classpath
from gradle-tomcat-plugin.
Maybe you can give me a little background information about which version of Tomcat you are using. It would also be helpful if you could post your build.gradle
file. Do you run into any exceptions?
You don't need to add org.codehaus.groovy:groovy:1.7.10
. This already gets provided by the Gradle runtime. If you want to use a different version of Groovy have a look at the Groovy plugin. You can set the version via the configuration groovy. If you are using Tomcat 7.x as described in the README.md
file you also don't need to provide javax.servlet:servlet-api:3.0
. This is already being resolved as transitive dependency by the Tomcat libraries.
from gradle-tomcat-plugin.
I'm sorry - I should have told you that I modified your plug-in to not include the gradle runtime by changing the createTomcatClassLoader()
method in the AbstractTomcatRunTask
class and called it 0.7.1:
private URLClassLoader createTomcatClassLoader() {
ClassLoader rootClassLoader = ClassLoader.systemClassLoader.parent
new URLClassLoader(toURLArray(getServerClasspath().files), rootClassLoader)
}
The I changed my build.gradle:
buildscript {
repositories {
org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials(repositoryRealm, repositoryHost, repositoryUsername, repositoryPassword);
mavenRepo urls: "https://dev.nine.dk/nexus/content/groups/public/"
}
dependencies {
def tomcatVersion = '7.0.14'
classpath "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}",
"javax.servlet:servlet-api:3.0",
'org.codehaus.groovy:groovy:1.7.10'
classpath("org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}") {
exclude group: 'org.eclipse.jdt.core.compiler', module: 'ecj'
}
classpath 'gradle-tomcat-plugin:gradle-tomcat-plugin:0.7.1'
}
}
from gradle-tomcat-plugin.
OK, I don't want people having to set Groovy explicitly. It already comes with Gradle. Therefore, I will only include the Groovy libraries into the ClassLoader in the upcoming version. You can expect a new version either on the weekend or the week after. That should solve your problem I guess?
from gradle-tomcat-plugin.
It would be cool if your solution could scan to classpath to see if a groovy dependency is already present, because the webapp might also have a dependency on groovy which again could differ from the one provided with the gradle runtime. Otherwise you could consider to convert the tomcat wrappers to java and then eliminate the groovy dependency from the tomcat plugin.
from gradle-tomcat-plugin.
I think the problems we are trying to solve here are part of a bigger issue. I just recently had a talk about classloading issues of Gradle plugins with one of the engineers from Gradleware. On the hand there are the core plugins provided by Gradle that bring their own libraries. On the other hand there are third-party plugins that might run into classloading issues if they don't create their own ClassLoader. Unfortunately, Gradle doesn't provide separated classloading for plugins out-of-the-box yet.
For the version 0.8 of the Tomcat plugin I was planning to create a Tomcat configuration that defines the Tomcat libraries. To make this work I have to use duck typing for all Tomcat classes in the wrappers to make sure I don't run into classloading issues there. Therefore, I cannot just move on to Java for these classes.
Let me see what can do to prevent duplicated Groovy libraries. However, it definitely feels hacky. I hope that Gradle will provide better support there in the future.
from gradle-tomcat-plugin.
I again had a deeper look at Tomcat's classloading strategy. If your project applies the Groovy plugin the version you configured in your groovy
configuration will be added to the web app ClassLoader via WebappLoader#addRepository
. Whenever a Groovy class is requested for your web application the WebAppLoader's classpath is asked first before asking the parent ClassLoader (see JavaDoc). Therefore, it shouldn't matter what version of Groovy is provided by Gradle even though it was configured in the parent ClassLoader. Please let me know if you run into any kind classloading issues nonetheless. I will close this ticket for now.
from gradle-tomcat-plugin.
I think I just ran in pretty much the same issue and therefore vote to reopen this issue.
I use this plugin to deploy a scala / spring-mvc / scalate application. When adding scalata I suddenly got LinkageErrors, because scalate pulls in slf4j which finds some implementation from gradle which doesn't work due to a mixup of the class loaders. I could fix the LinkageError by providing logback with my application, but now logging doesn't work because slf4j finds two implementations.
Linkage Error:
Servlet.service() for servlet [dispatch] in context with path [/Knoweb] threw exception [Handler processing failed; nested exception is java.lang.LinkageError: loader constraint violation: when resolv
ing method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, org/slf4j/
LoggerFactory, and the class loader (instance of org/gradle/util/MutableURLClassLoader) for resolved class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILogg
erFactory used in the signature] with root cause
java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/apache/cat
alina/loader/WebappClassLoader) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of org/gradle/util/MutableURLClassLoader) for resolved class, org/slf4j/impl/StaticLoggerB
inder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:273)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
at org.fusesource.scalate.spring.view.ScalateRenderStrategy$class.$init$(ScalateView.scala:34)
at org.fusesource.scalate.spring.view.ScalateUrlView.<init>(ScalateView.scala:76)
at org.fusesource.scalate.spring.view.ScalateViewResolver$$anon$1.<init>(ScalateViewResolver.scala:41)
at org.fusesource.scalate.spring.view.ScalateViewResolver.buildView(ScalateViewResolver.scala:41)
at org.springframework.web.servlet.view.UrlBasedViewResolver.loadView(UrlBasedViewResolver.java:436)
at org.springframework.web.servlet.view.AbstractCachingViewResolver.createView(AbstractCachingViewResolver.java:186)
at org.springframework.web.servlet.view.UrlBasedViewResolver.createView(UrlBasedViewResolver.java:401)
at org.springframework.web.servlet.view.AbstractCachingViewResolver.resolveViewName(AbstractCachingViewResolver.java:103)
at org.springframework.web.servlet.DispatcherServlet.resolveViewName(DispatcherServlet.java:1211)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1160)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:950)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:498)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:394)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Error message from slf4j I get after providing logback:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Program%20Files/gradle-1.0-rc-3/lib/logback-classic-1.0.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/jens.schauder/.gradle/caches/artifacts-13/filestore/ch.qos.logback/logback-classic/1.0.3/jar/1006f5c9da21d7c68a4150a4d741f9b831a42fb3/logback-classic-1.0.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
from gradle-tomcat-plugin.
This certainly sounds to me like you have multiple versions of SLF4J as transitive dependencies on your classpath. I don't think they are coming from the Gradle runtime as they are not excluded the plugin's ClassLoader. Can you do me a favor and do two things?
- Run
gradle dependencies
and see which of your dependencies pulls in SLF4J as transitive dependency. My guess is that you'll see two different versions. - Run
gradle tomcatRun -i
. It will give you the web app's classpath. This will probably contain two different versions of SLF4J as well. If that's the case you'll need to exclude one of them.
Let's start from there. If all of that doesn't help would it be possible to get your project?
from gradle-tomcat-plugin.
Hi Benjamin,
below is the output of the two commands. I don't see anything suspicious. And also the error message for slf4j seem to indicate a collision with the logback version inside the gradle installation directory.
Sharing the project isn't a problem. Sooner or later I'll load it up to github anyway. If you don't see anything in the output I'll try to make that sooner.
Jens
---------------------------------------------------------------------------------- dependencies ----------------------------------------------------------------------------------------------------
:dependencies
Root project
archives - Configuration for archive artifacts.
No dependencies
compile - Classpath for compiling the main sources.
+--- org.scala-lang:scala-library:2.9.2 [default]
+--- org.springframework:spring-webmvc:3.1.1.RELEASE [default]
| +--- org.springframework:spring-asm:3.1.1.RELEASE [compile,master,runtime]
| +--- org.springframework:spring-beans:3.1.1.RELEASE [compile,master,runtime]
| | --- org.springframework:spring-core:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-asm:3.1.1.RELEASE compile,master,runtime
| | --- commons-logging:commons-logging:1.1.1 [compile,master,runtime]
| +--- org.springframework:spring-context:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-asm:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-expression:3.1.1.RELEASE [compile,master,runtime]
| | | --- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| | --- org.springframework:spring-aop:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-asm:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| | --- aopalliance:aopalliance:1.0 [compile,master,runtime]
| +--- org.springframework:spring-context-support:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-context:3.1.1.RELEASE compile,master,runtime
| | --- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-expression:3.1.1.RELEASE compile,master,runtime
| --- org.springframework:spring-web:3.1.1.RELEASE [compile,master,runtime]
| +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-context:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| --- aopalliance:aopalliance:1.0 compile,master,runtime
+--- org.fusesource.scalate:scalate-core:1.5.3 [default]
| +--- org.fusesource.scalate:scalate-util:1.5.3 [compile,master,runtime]
| | +--- org.scala-lang:scala-library:2.9.2 compile,master,runtime
| | --- org.slf4j:slf4j-api:1.6.4 [compile,master,runtime]
| --- org.slf4j:slf4j-api:1.6.4 compile,master,runtime
+--- org.fusesource.scalate:scalate-spring-mvc:1.5.3 [default]
| +--- org.springframework:spring-webmvc:3.1.1.RELEASE compile,runtime,master
| --- org.fusesource.scalate:scalate-core:1.5.3 compile,runtime,master
+--- com.h2database:h2:1.3.166 [default]
+--- ch.qos.logback:logback-classic:1.0.3 [default]
| +--- ch.qos.logback:logback-core:1.0.3 [compile,master,runtime]
| --- org.slf4j:slf4j-api:1.6.4 compile,master,runtime
--- javax:javaee-api:6.0 [default]
default - Configuration for default artifacts.
+--- org.scala-lang:scala-library:2.9.2 [default]
+--- org.springframework:spring-webmvc:3.1.1.RELEASE [default]
| +--- org.springframework:spring-asm:3.1.1.RELEASE [compile,master,runtime]
| +--- org.springframework:spring-beans:3.1.1.RELEASE [compile,master,runtime]
| | --- org.springframework:spring-core:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-asm:3.1.1.RELEASE compile,master,runtime
| | --- commons-logging:commons-logging:1.1.1 [compile,master,runtime]
| +--- org.springframework:spring-context:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-asm:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-expression:3.1.1.RELEASE [compile,master,runtime]
| | | --- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| | --- org.springframework:spring-aop:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-asm:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| | --- aopalliance:aopalliance:1.0 [compile,master,runtime]
| +--- org.springframework:spring-context-support:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-context:3.1.1.RELEASE compile,master,runtime
| | --- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-expression:3.1.1.RELEASE compile,master,runtime
| --- org.springframework:spring-web:3.1.1.RELEASE [compile,master,runtime]
| +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-context:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| --- aopalliance:aopalliance:1.0 compile,master,runtime
+--- org.fusesource.scalate:scalate-core:1.5.3 [default]
| +--- org.fusesource.scalate:scalate-util:1.5.3 [compile,master,runtime]
| | +--- org.scala-lang:scala-library:2.9.2 compile,master,runtime
| | --- org.slf4j:slf4j-api:1.6.4 [compile,master,runtime]
| --- org.slf4j:slf4j-api:1.6.4 compile,master,runtime
+--- org.fusesource.scalate:scalate-spring-mvc:1.5.3 [default]
| +--- org.springframework:spring-webmvc:3.1.1.RELEASE compile,runtime,master
| --- org.fusesource.scalate:scalate-core:1.5.3 compile,runtime,master
+--- com.h2database:h2:1.3.166 [default]
+--- ch.qos.logback:logback-classic:1.0.3 [default]
| +--- ch.qos.logback:logback-core:1.0.3 [compile,master,runtime]
| --- org.slf4j:slf4j-api:1.6.4 compile,master,runtime
--- javax:javaee-api:6.0 [default]
providedCompile - Additional compile classpath for libraries that should not be part of the WAR archive.
--- javax:javaee-api:6.0 [default]
providedRuntime - Additional runtime classpath for libraries that should not be part of the WAR archive.
--- javax:javaee-api:6.0 [default]
runtime - Classpath for running the compiled main classes.
+--- org.scala-lang:scala-library:2.9.2 [default]
+--- org.springframework:spring-webmvc:3.1.1.RELEASE [default]
| +--- org.springframework:spring-asm:3.1.1.RELEASE [compile,master,runtime]
| +--- org.springframework:spring-beans:3.1.1.RELEASE [compile,master,runtime]
| | --- org.springframework:spring-core:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-asm:3.1.1.RELEASE compile,master,runtime
| | --- commons-logging:commons-logging:1.1.1 [compile,master,runtime]
| +--- org.springframework:spring-context:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-asm:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-expression:3.1.1.RELEASE [compile,master,runtime]
| | | --- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| | --- org.springframework:spring-aop:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-asm:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| | --- aopalliance:aopalliance:1.0 [compile,master,runtime]
| +--- org.springframework:spring-context-support:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-context:3.1.1.RELEASE compile,master,runtime
| | --- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-expression:3.1.1.RELEASE compile,master,runtime
| --- org.springframework:spring-web:3.1.1.RELEASE [compile,master,runtime]
| +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-context:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| --- aopalliance:aopalliance:1.0 compile,master,runtime
+--- org.fusesource.scalate:scalate-core:1.5.3 [default]
| +--- org.fusesource.scalate:scalate-util:1.5.3 [compile,master,runtime]
| | +--- org.scala-lang:scala-library:2.9.2 compile,master,runtime
| | --- org.slf4j:slf4j-api:1.6.4 [compile,master,runtime]
| --- org.slf4j:slf4j-api:1.6.4 compile,master,runtime
+--- org.fusesource.scalate:scalate-spring-mvc:1.5.3 [default]
| +--- org.springframework:spring-webmvc:3.1.1.RELEASE compile,runtime,master
| --- org.fusesource.scalate:scalate-core:1.5.3 compile,runtime,master
+--- com.h2database:h2:1.3.166 [default]
+--- ch.qos.logback:logback-classic:1.0.3 [default]
| +--- ch.qos.logback:logback-core:1.0.3 [compile,master,runtime]
| --- org.slf4j:slf4j-api:1.6.4 compile,master,runtime
--- javax:javaee-api:6.0 [default]
scalaTools - The Scala tools libraries to be used for this Scala project.
+--- org.scala-lang:scala-compiler:2.9.2 [default]
| --- org.scala-lang:scala-library:2.9.2 [compile,runtime,master]
--- org.scala-lang:scala-library:2.9.2 default
testCompile - Classpath for compiling the test sources.
+--- org.scala-lang:scala-library:2.9.2 [default]
+--- org.springframework:spring-webmvc:3.1.1.RELEASE [default]
| +--- org.springframework:spring-asm:3.1.1.RELEASE [compile,master,runtime]
| +--- org.springframework:spring-beans:3.1.1.RELEASE [compile,master,runtime]
| | --- org.springframework:spring-core:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-asm:3.1.1.RELEASE compile,master,runtime
| | --- commons-logging:commons-logging:1.1.1 [compile,master,runtime]
| +--- org.springframework:spring-context:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-asm:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-expression:3.1.1.RELEASE [compile,master,runtime]
| | | --- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| | --- org.springframework:spring-aop:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-asm:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| | --- aopalliance:aopalliance:1.0 [compile,master,runtime]
| +--- org.springframework:spring-context-support:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-context:3.1.1.RELEASE compile,master,runtime
| | --- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-expression:3.1.1.RELEASE compile,master,runtime
| --- org.springframework:spring-web:3.1.1.RELEASE [compile,master,runtime]
| +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-context:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| --- aopalliance:aopalliance:1.0 compile,master,runtime
+--- org.fusesource.scalate:scalate-core:1.5.3 [default]
| +--- org.fusesource.scalate:scalate-util:1.5.3 [compile,master,runtime]
| | +--- org.scala-lang:scala-library:2.9.2 compile,master,runtime
| | --- org.slf4j:slf4j-api:1.6.4 [compile,master,runtime]
| --- org.slf4j:slf4j-api:1.6.4 compile,master,runtime
+--- org.fusesource.scalate:scalate-spring-mvc:1.5.3 [default]
| +--- org.springframework:spring-webmvc:3.1.1.RELEASE compile,runtime,master
| --- org.fusesource.scalate:scalate-core:1.5.3 compile,runtime,master
+--- com.h2database:h2:1.3.166 [default]
+--- ch.qos.logback:logback-classic:1.0.3 [default]
| +--- ch.qos.logback:logback-core:1.0.3 [compile,master,runtime]
| --- org.slf4j:slf4j-api:1.6.4 compile,master,runtime
+--- javax:javaee-api:6.0 [default]
+--- junit:junit:4.10 [default]
| --- org.hamcrest:hamcrest-core:1.1 [compile,master,runtime]
--- org.scalatest:scalatest_2.9.2:1.8.RC2 [default]
--- org.scala-lang:scala-library:2.9.2 compile,runtime,master
testRuntime - Classpath for running the compiled test classes.
+--- org.scala-lang:scala-library:2.9.2 [default]
+--- org.springframework:spring-webmvc:3.1.1.RELEASE [default]
| +--- org.springframework:spring-asm:3.1.1.RELEASE [compile,master,runtime]
| +--- org.springframework:spring-beans:3.1.1.RELEASE [compile,master,runtime]
| | --- org.springframework:spring-core:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-asm:3.1.1.RELEASE compile,master,runtime
| | --- commons-logging:commons-logging:1.1.1 [compile,master,runtime]
| +--- org.springframework:spring-context:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-asm:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-expression:3.1.1.RELEASE [compile,master,runtime]
| | | --- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| | --- org.springframework:spring-aop:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-asm:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| | --- aopalliance:aopalliance:1.0 [compile,master,runtime]
| +--- org.springframework:spring-context-support:3.1.1.RELEASE [compile,master,runtime]
| | +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| | +--- org.springframework:spring-context:3.1.1.RELEASE compile,master,runtime
| | --- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-expression:3.1.1.RELEASE compile,master,runtime
| --- org.springframework:spring-web:3.1.1.RELEASE [compile,master,runtime]
| +--- org.springframework:spring-beans:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-context:3.1.1.RELEASE compile,master,runtime
| +--- org.springframework:spring-core:3.1.1.RELEASE compile,master,runtime
| --- aopalliance:aopalliance:1.0 compile,master,runtime
+--- org.fusesource.scalate:scalate-core:1.5.3 [default]
| +--- org.fusesource.scalate:scalate-util:1.5.3 [compile,master,runtime]
| | +--- org.scala-lang:scala-library:2.9.2 compile,master,runtime
| | --- org.slf4j:slf4j-api:1.6.4 [compile,master,runtime]
| --- org.slf4j:slf4j-api:1.6.4 compile,master,runtime
+--- org.fusesource.scalate:scalate-spring-mvc:1.5.3 [default]
| +--- org.springframework:spring-webmvc:3.1.1.RELEASE compile,runtime,master
| --- org.fusesource.scalate:scalate-core:1.5.3 compile,runtime,master
+--- com.h2database:h2:1.3.166 [default]
+--- ch.qos.logback:logback-classic:1.0.3 [default]
| +--- ch.qos.logback:logback-core:1.0.3 [compile,master,runtime]
| --- org.slf4j:slf4j-api:1.6.4 compile,master,runtime
+--- javax:javaee-api:6.0 [default]
+--- junit:junit:4.10 [default]
| --- org.hamcrest:hamcrest-core:1.1 [compile,master,runtime]
--- org.scalatest:scalatest_2.9.2:1.8.RC2 [default]
--- org.scala-lang:scala-library:2.9.2 compile,runtime,master
tomcat - The Tomcat libraries to be used for this project.
+--- org.apache.tomcat.embed:tomcat-embed-core:7.0.11 [default]
+--- org.apache.tomcat.embed:tomcat-embed-logging-juli:7.0.11 [default]
--- org.apache.tomcat.embed:tomcat-embed-jasper:7.0.11 [default]
--- org.apache.tomcat.embed:tomcat-embed-core:7.0.11 compile,runtime,master
(*) - dependencies omitted (listed previously)
BUILD SUCCESSFUL
Total time: 5.053 secs
-------------------------------------------------------------------------------------------------- tomcatRun --------------------------------------------------------
Starting Build
Settings evaluated using empty settings script.
Projects loaded. Root project using build file 'D:\workspaces\scala29\Knoweb\build.gradle'.
Included projects: [root project 'Knoweb']
Evaluating root project 'Knoweb' using build file 'D:\workspaces\scala29\Knoweb\build.gradle'.
All projects evaluated.
Selected primary task 'tomcatRun'
Tasks to be executed: [task ':compileJava', task ':compileScala', task ':processResources', task ':classes', task ':tomcatRun']
:compileJava
Skipping task ':compileJava' as it has no source files.
:compileJava UP-TO-DATE
:compileScala
:: loading settings :: url = jar:file:/C:/Program%20Files/gradle-1.0-rc-3/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
Skipping task ':compileScala' as it is up-to-date.
Skipping task ':compileScala' as it is up-to-date
:compileScala UP-TO-DATE
:processResources
Skipping task ':processResources' as it has no source files.
:processResources UP-TO-DATE
:classes
Skipping task ':classes' as it has no actions.
:classes UP-TO-DATE
:tomcatRun
Task ':tomcatRun' has not declared any outputs, assuming that it is out-of-date.
Configuring Tomcat for root project 'Knoweb'
HTTP protocol handler classname = org.apache.coyote.http11.Http11Protocol
HTTPS protocol handler classname = org.apache.coyote.http11.Http11Protocol
Webapp source directory = D:\workspaces\scala29\Knoweb\src\main\webapp
Resolved Tomcat 7x server implementation in classpath
web app loader classpath = D:\workspaces\scala29\Knoweb\build\classes\main;D:\workspaces\scala29\Knoweb\build\resources\main;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\org.scala-lang\scala-library\2.9.2\jar\55cf429e92d45524a548929a9d6e790205a0e61\scala-library-2.9.2.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\org.springframework\spring-webmvc\3.1.1.RELEASE\jar\6ae6968aa19f6d25cdcd38213046e11cc5189e84\spring-webmvc-3.1.1.RELEASE.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\org.fusesource.scalate\scalate-core\1.5.3\bundle\b55fd66025818d77dba6a32745e8a00fae068acd\scalate-core-1.5.3.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\org.fusesource.scalate\scalate-spring-mvc\1.5.3\bundle\5ba4e11ab3b20468406d5fe59a6f27d1b4039c35\scalate-spring-mvc-1.5.3.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\com.h2database\h2\1.3.166\jar\cab5ca78e3773d2229e7eb0dcf87011bcb628a80\h2-1.3.166.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\ch.qos.logback\logback-classic\1.0.3\jar\1006f5c9da21d7c68a4150a4d741f9b831a42fb3\logback-classic-1.0.3.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\org.springframework\spring-asm\3.1.1.RELEASE\jar\8717ad8947fcada5c55da89eb474bf053c30e57\spring-asm-3.1.1.RELEASE.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\commons-logging\commons-logging\1.1.1\jar\5043bfebc3db072ed80fbd362e7caf00e885d8ae\commons-logging-1.1.1.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\org.springframework\spring-core\3.1.1.RELEASE\jar\419e9233c8d55f64a0c524bb94c3ba87e51e7d95\spring-core-3.1.1.RELEASE.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\org.springframework\spring-beans\3.1.1.RELEASE\jar\83d0e5adc98714783f0fb7d8a5e97ef4cf08da49\spring-beans-3.1.1.RELEASE.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\org.springframework\spring-expression\3.1.1.RELEASE\jar\1486d7787ec4ff8da8cbf8752d30e4c808412b3f\spring-expression-3.1.1.RELEASE.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\aopalliance\aopalliance\1.0\jar\235ba8b489512805ac13a8f9ea77a1ca5ebe3e8\aopalliance-1.0.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\org.springframework\spring-aop\3.1.1.RELEASE\jar\3c86058cdaea30df35e4b951a615e09eb07da589\spring-aop-3.1.1.RELEASE.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\org.springframework\spring-context\3.1.1.RELEASE\jar\ecb0784a0712c1bfbc1c2018eeef6776861300e4\spring-context-3.1.1.RELEASE.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\org.springframework\spring-context-support\3.1.1.RELEASE\jar\fc5de9fead1e54054298d37b196f9cd64ced19bf\spring-context-support-3.1.1.RELEASE.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\org.springframework\spring-web\3.1.1.RELEASE\jar\7b18bbab94119e8ae322e8599c067c4f4b3701f6\spring-web-3.1.1.RELEASE.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\org.slf4j\slf4j-api\1.6.4\jar\2396d74b12b905f780ed7966738bb78438e8371a\slf4j-api-1.6.4.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\org.fusesource.scalate\scalate-util\1.5.3\bundle\ee48bb5316452039a48c73381d186d7ead59dcc2\scalate-util-1.5.3.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\org.scala-lang\scala-compiler\2.9.1\jar\bf5e88c6b69d3f922ce71cb973c45cb5ac6c2805\scala-compiler-2.9.1.jar;C:\Users\jens.schauder.gradle\caches\artifacts-13\filestore\ch.qos.logback\logback-core\1.0.3\jar\d6557774e4b9d67acd432a800715e78fbe66b8d4\logback-core-1.0.3.jar
Initializing ProtocolHandler ["http-bio-8080"]
Starting service Tomcat
Starting Servlet Engine: Apache Tomcat/7.0.11
No global web.xml found
Initializing Spring FrameworkServlet 'dispatch'
FrameworkServlet 'dispatch': initialization started
Refreshing WebApplicationContext for namespace 'dispatch-servlet': startup date [Fri May 25 07:37:19 CEST 2012]; root of context hierarchy
Loading XML bean definitions from ServletContext resource [/WEB-INF/dispatch-servlet.xml]
Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3b4768cc: defining beans [entrance,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.fusesource.scalate.spring.view.ScalateViewResolver#0,org.springframework.web.servlet.view.InternalResourceViewResolver#0,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
Mapped "{[/nodes/new],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String de.schauderhaft.knoweb.Entrance.add(java.lang.String)
Mapped "{[/],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.web.servlet.ModelAndView de.schauderhaft.knoweb.Entrance.home()
Mapped "{[/links/new],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String de.schauderhaft.knoweb.Entrance.addLink(java.lang.String,java.lang.String,java.lang.String)
from gradle-tomcat-plugin.
Can you put your code on GitHub or send it to me by mail? What's the Gradle version you are using?
from gradle-tomcat-plugin.
gradle version is 1.0-rc3. I'll send you a zip file.
from gradle-tomcat-plugin.
After some fooling around and some Email support by bmuschko the problem disappeared for unknown reason. :-/
Thanks for helping
from gradle-tomcat-plugin.
Related Issues (20)
- Daemon does not stop HOT 4
- Define which war to use HOT 9
- Gradle Daemon - Caused by: java.lang.Error: factory already defined HOT 2
- Can I tell `TomcatRun` where is the exploded web directory? HOT 1
- Documentation - add example to compile translated jsps HOT 1
- Setting default jsp package name from org.apache.jsp to your choice HOT 2
- Acessing environment variables with the plugin HOT 1
- Gradle 6.2.2 shows deprecation warning regarding jasperAttributes HOT 3
- IllegalArgumentException: The AJP Connector is configured with secretRequired="true" but the secret attribute is either null or "". HOT 7
- How to run the Tomcat server at http://localhost:8080 instead of http://localhost:8080/ProjectName? HOT 2
- Skip Jar Scanning for Annotations HOT 1
- tomcatRun fails with Gradle 7.0 due to @Internal annotation on private getter HOT 11
- 2.6 Release HOT 3
- How to configure environment variables when calling tomcatRun? HOT 1
- Tomcat 10 support
- HTTP2 support
- does this can do like maven tomcat plugin which can build jar not war HOT 1
- Remove usage of WarPluginConvention
- Getting groovy.lang.MissingMethodException after upgrading to tomcat plugin 2.7.0, was using 2.5 before HOT 1
- The AJP Connector is configured with secretRequired="true"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-tomcat-plugin.