Questions tagged [gradle-tomcat-plugin]

The Gradle Tomcat plugin supports running apps in an embedded Tomcat instance.

The Gradle Tomcat plugin supports running apps in an embedded Tomcat instance. See https://github.com/bmuschko/gradle-tomcat-plugin for the project home.

8 questions
4
votes
1 answer

Tomcat not serving static files

I'm at the end of my rope on this one. I'm try to get a super simple webapp up and I can't seem to get tomcat to not 404 static files. I'm using the gradle tomcat plugin with tomcat version 7.0.39 My html file is at…
Chris
  • 555
  • 2
  • 9
  • 28
2
votes
1 answer

Change gradle-tomcat-plugin root web application directory

I'm using the gradle-tomcat-plugin to run tomcat on a simple web application. What Im trying to do is to change the root web application directory from src/main/webapp/ to WebContent/ tomcat { httpPort = 8080 httpsPort = 8081 enableSSL =…
RachelD
  • 4,072
  • 9
  • 40
  • 68
2
votes
2 answers

How can I use externalized configuration files with the Gradle Tomcat plugin?

Problem. I have various environment-specific configuration files that I want to include on the classpath at runtime, but I don't want these to be part of the WAR itself. For example, I have a log4j.xml file for the dev environment with debugging…
user41871
1
vote
1 answer

Gradle Tomcat plugin set JVM arguments

I am using Gradle Tomcat plugin and wanting to set JVM arguments like: "-javaagent:/home/blablabla.jar" to "tomcatRun" tasks. I am using Gradle 2.4. I tried many examples , but failed. What is the right way to do it.
1
vote
2 answers

Could not create task of type 'TomcatRun'

Maybe somebody can help to configure gradle-tomcat-plugin? This is content of build.gradle: buildscript { ext { springBootVersion = '1.1.9.RELEASE' } repositories { mavenCentral() jcenter() } dependencies…
Robertas Setkus
  • 3,075
  • 6
  • 31
  • 54
0
votes
1 answer

Intellij break point does not hit when remote debugging tomcat

Environments: Operating system: Mac 10.13.6 Java-8 Tomcat-7 Intellij Community 2019.3 Gradle 5.2.1 Command line outputs: $ export GRADLE_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=address=5005" $ ./gradlew…
user1633272
  • 2,007
  • 5
  • 25
  • 48
0
votes
1 answer

Gradle tomcat plugin tried start tomcat twice

I have gradle project with 2 subprojects (backend and ui). Ui starts perfectly by gradle tomcatRunWar. Backend have configuration descriptor which we on production place /conf/Catalina/localhost/portal-api.xml it contains some resource…
Hubbitus
  • 5,161
  • 3
  • 41
  • 47
0
votes
2 answers

Gradle dependency Is not loaded with gradle tomcat plugin

I have compile 'org.slf4j:slf4j-jdk14:1.0' in my dependencies, still getting Caused by: java.lang.NoClassDefFoundError: org/slf4j/spi/LoggerFactoryBinder when running gradle clean tomcatRun what is wrong with this tomcat class loader?
Maladec VampaYa
  • 351
  • 3
  • 21