Questions tagged [gretty]

Gretty is a feature-rich gradle plugin for running web-apps on embedded servlet containers. It supports Jetty versions 7, 8 and 9, Tomcat versions 7, 8 and 9, multiple web-apps and many more. It wraps servlet container functions as convenient Gradle tasks and configuration DSL.

84 questions
0
votes
0 answers

Using @Scheduled in spring results in java.net.BindException: Address already in use: bind

I have a Spring class which is executing a scheduled task every minute. @Scheduled(fixedDelay = 60000) public void run() throws InterruptedException { processData(); } I then run this in eclipse using gretty. It works fine but…
d20gdx
  • 13
  • 6
0
votes
1 answer

Gretty build fails with SpringBoot

I'm building out a REST API for a personal project (project name: no-hold), built in Java. I'm using Spring Boot and Jetty to do so, and deploying it onto Google App Engine as a WAR. However, when I attempt to run mvn jetty:run-exploded, I get the…
0
votes
1 answer

Upgrade Jetty version to 9.4.8 in build.gradle

I am currently using the following gretty configuration in build.gradle: gretty { servletContainer = 'jetty9' } I want to upgrade the jetty version to 9.4.8. From a quick search I found that jetty9 stands for the version Jetty 9.2.22.v20170606…
Susanna M
  • 93
  • 3
  • 13
0
votes
2 answers

Expose server running in gitlab ci docker image

I have a web application which is built and tested using gradle/gretty and gitlab-ci (with gitlab running on my own server) with a docker image. This is working fine for unit tests. But now I want users to test the web app in a browser. My idea:…
0
votes
1 answer

Debugging gradle web application in Jetty

I am new to Gradle. I am using Buildship in eclipse. My build.gradle looks like, gretty { httpPort = 8080 contextPath = '/' servletContainer = 'jetty9' } When I debug the application as, 'gretty -> appStartDebug', the console waits…
Malini Kennady
  • 371
  • 1
  • 7
  • 19
0
votes
2 answers

FarmIntegrationTest with Gradle and TestNG fails to run?

I am trying to use the gretty farmIntegrationTest to call a test suite setup with TestNG. But the tests don't run. The farm starts up, then exits cleanly with no indication that the tests were even attempted. Here are the Gradle fragments for…
0
votes
1 answer

Gretty: Duplicate fragment name: org_apache_jasper

I use gretty to easily run a dev server and webapp-runner for deployment to heroku. The following is my gradle.build: buildscript { repositories { jcenter() } dependencies { classpath 'org.akhikhl.gretty:gretty:+' …
user3690467
  • 3,049
  • 6
  • 27
  • 54
0
votes
1 answer

gradle issue "main" groovy.lang.MissingPropertyException: No such property: baseDir for class: org.apache.catalina.core.StandardEngine

It is likely a simple issue but I am not seeing it right now. The command that I run is gradlew.bat appRun --stacktrace My Expectation: That I will have a running web application. (Or at minimum not get any error message) My Actual: I get an…
0
votes
1 answer

Changing configuration with the gretty plugin?

I haven't done anything with Gradle for a while, so it appears I've forgotten how configuration resolution works. I'm trying to use the gretty plugin (instead of core, deprecated jetty), but I cannot seem to create a custom configuration. I've…
Depressio
  • 1,329
  • 2
  • 20
  • 39
0
votes
1 answer

javax.naming.NoInitialContextException with mysql DataSource and gretty

I am making a spring mvc application using gradle as the build tool and Mysql as the jndi datasource .I am able to run it by building a war and deploying it manually . But when i am trying to run it using gretty i am getting the following exception…
animo3991
  • 181
  • 2
  • 9
0
votes
1 answer

Cannot add task ':jettyRun' as a task with that name already exists

I am using gretty as my container for building my spring project . But when i issue the command gradle clean or gradle jettyRun ,i am getting the following problem Cannot add task ':jettyRun' as a task with that name already exists. PFB my…
animo3991
  • 181
  • 2
  • 9
0
votes
1 answer

TaskExecutionException for gradle jettyRun

I am following the book 'Gradle in Action' page 67 attempting to call: $ gradle jettyRun ... * What went wrong: Execution failed for task ':jettyRun'. > org/eclipse/jetty/http/HttpField ... With the --stacktrace option I obtain the following…
Sven Williamson
  • 1,094
  • 1
  • 10
  • 19
0
votes
1 answer

Cant configure directly my .cert file .key into gretty ssl config

I have a authorized .cert file from popular CA and corresponding private key file(.key). How can I manually configure or import into gretty server? I saw the steps which describes via keystore format . Is there any other direct import way like other…
0
votes
2 answers

Gretty: How do I specify path to war file?

I am using Jetty Gradle plugin, and trying to port my script to use Gretty. The following works with Jetty Gradle plugin: jettyRunWar { // do not use "war" task, use myCustomWarTask dependsOn myCustomWarTask dependsOn.remove("war") …
isobretatel
  • 3,812
  • 7
  • 34
  • 49
0
votes
1 answer

Gretty Gradle Plugin version 1.2.4 - How to ensure war is deployed when using integrationTestTask

I am trying to accomplish something fairly simple. I have a project that builds a war. I am using the Gretty Plugin to deploy the war and run it on Jetty. What I want to do is basically: Start the Jetty server Deploy the war Run the tests Stop…
py y
  • 31
  • 1
  • 4