webapp-runner | Lightweight Application Launcher | Continuous Deployment library
kandi X-RAY | webapp-runner Summary
kandi X-RAY | webapp-runner Summary
Webapp runner is designed to allow you to launch an exploded or compressed war that is on your filesystem into a tomcat container with a simple java -jar command. It supports the following version of Tomcat:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Entry point for the connector .
- Configure user store .
- Gets the session .
- Create a new SessionStore instance based on the given name .
- Log a message .
- Print a warning if the configuration is not configured .
- Configure the session store .
webapp-runner Key Features
webapp-runner Examples and Code Snippets
Community Discussions
Trending Discussions on webapp-runner
QUESTION
I am trying to upgrade an spring mvc app from java 7 to 8 on heroku My setup is as follow:
pom.xml
...ANSWER
Answered 2021-Mar-14 at 18:35Can you please try upgrading the web-runner dependency to 9.0.27.1? Currently it is set to,
QUESTION
When I try to create a functional test using:
grails create-functional-test acceptance.tests.Logout
I'm getting this error, because Spock tries to use a wrong Groovy version:
| Error Failed to compile GenerateAsyncController.groovy: startup failed: Could not instantiate global transform class org.spockframework.compiler.SpockTransform specified at jar:file:/Users/reinaldoluckman/.gradle/caches/modules-2/files-2.1/org.spockframework/spock-core/2.0-M2-groovy-3.0/396867de1bbbe11e85e197c22f0e6de07643185a/spock-core-2.0-M2-groovy-3.0.jar!/META-INF/services/org.codehaus.groovy.transform.ASTTransformation because of exception org.spockframework.util.IncompatibleGroovyVersionException: The Spock compiler plugin cannot execute because Spock 2.0.0-M2-groovy-3.0 is not compatible with Groovy 2.5.6. For more information, see http://docs.spockframework.org Spock artifact: file:/Users/reinaldoluckman/.gradle/caches/modules-2/files-2.1/org.spockframework/spock-core/2.0-M2-groovy-3.0/396867de1bbbe11e85e197c22f0e6de07643185a/spock-core-2.0-M2-groovy-3.0.jar Groovy artifact: file:/Users/reinaldoluckman/.sdkman/candidates/grails/4.0.4/lib/org.codehaus.groovy/groovy/jars/groovy-2.5.6.jar
But in my project only Groovy 3 is a library.
Here is my build.gradle:
...ANSWER
Answered 2020-Oct-20 at 04:23A quick check shows that the current master of Geb still depends on spock-1.3-groovy-2.5, so I am not sure if you can use Geb with Spock 2.0. But it looks as if you cannot, see Geb issue #619. Consequently, you want to stick with Spock 1.3 and Groovy 2.5 for now.
QUESTION
I am trying to deploy a Java Spring application on Heroku with MariaDB database. On Heroku I am using JawsDB as it is recommended. All connection properties are set through integrated Heroku environment variables. Build and deployment using Heroku CLI finish with success. Connection using HeidiSQL to the same JawsDB works perfectly, so the URL parameters should be correct. The application runs and connects to the local MariaDB the same way, just without any issues. I also tried to set the database driver to "com.mariadb.jdbc.Driver" and to "org.mysql.jdbc.Driver" but all of them failed.
When I deploy my application, I get this error stack:
...ANSWER
Answered 2020-May-25 at 12:55mysql://u3r5w4ayhxzdrw87.cbetxkdyhwsb.us-east-1.rds.amazonaws.com:3306/
is not a valid JDBC URL and most likely the cause of your issue.
Which environment variables do you use on Heroku?
We rewrite the standard DATABASE_URL
(as well as others, including JAWSDB_URL
and JAWSDB_MARIA_URL
) to a JDBC compliant URL and make it available as JDBC_DATABASE_URL
. JDBC_USERNAME
and JDBC_PASSWORD
are available as well. Try using those and see if this solves your issue.
QUESTION
I am deploying a war
file to heroku
and want to include additional properties
file to the slug as described here:
ANSWER
Answered 2020-May-04 at 12:10Those files will be added to the root of your Heroku application and won't be put into the expanded application directory.
You can verify your file is present in your Dynos by running heroku run "cat app1.properties"
. If you want to explore the file system yourself, heroku run bash
allows you to delve though it.
Edit: If you need a path to the file, you can construct one using
QUESTION
I want to deploy my war file to heroku using Gitlab CI. I did all my changes, the war gets deployed but the Heroku logs show that webrunner jar cannot be found.
When I do heroku logs --tail, the log is shown as:
From the Gitlab deploy stage logs, I can confirm that I am on the right directory and necessary files has been generated.
Below is how my files look like.
pom.xml
...ANSWER
Answered 2020-Apr-19 at 03:54Finally, I was able to solve the issue. Code wise, there were no any issues. I created a new deployment in Heroku and then ran the pipeline and it worked like a charm.
QUESTION
We are uploading an regularly with heroku-cli, but since today we receive the following error. Any ideas?
...ANSWER
Answered 2020-Jan-16 at 15:07Problem seems to be that maven central repository switched to https, see this post
Heroku released a fix for this issue. Just run
QUESTION
I wrote this web application that after inputing coordinates of a city (latitude, longitude) (source: json) returns the list of 10 closest earthquakes that happened in the US. Now, I have 2 problems:
Problem 1.
- I enter coordinates of a chosen city (e.g. Seattle) and I get the proper results.
- I enter coordinates of the second city (e.g. Washington D.C.), I get different (proper) results.
- I enter the same coordinates od the first city (e.g. Seattle) and the results are the same as with the previous second search.
- I enter the coordinates of third, fourth, sixth etc. city and I keep getting the same results.
It's like the application was being stuck (after 2-3 proper queries?). Sometimes I get three different results in a row, sometimes four, sometimes just two and later same results are being printed. If I hardcode the coordinates into Servlet into the Java method, the results are different each time, so I'm guessing there is some problem passing the input fields into the Java method. It doesn't matter if I chose from the list the city or I type in coordinates myself.
Problem 2.
- I choose a city from the dropdown list.
- Coordinates are being input into the input html form, e.g. Kansas City: Latitude: 39.099728 Longitude -94.578568.
- I add letters/signs to the latitude e.g. 39.099728sdjfhjsdf, longitude: -94.578568 and I press submit.
- I get info that the field is not formatted properly (that's OK until now).
- I chose from a dropdown list another city, the input fields are being filled with new coordinates and I press submit, but I keep getting the warning the number is not formatted properly (like the program even though the input is new would be still reading 39.099728sdjfhjsdf).
Here is the minimal working example. Project wrote in Eclipse.
ReadLongitudeAndLatitudeServlet.java
...ANSWER
Answered 2020-Jan-02 at 14:01The main logical error is here:
QUESTION
I have a Maven app with 4 modules.I'm deploying the app to heroku. I Use Tomcat 9.0.29, Java 8. Locally everything works fine, but there is a bug on heroku. The thing is,I don't even know what it is. Where is the error? Can be someone will help me?
...ANSWER
Answered 2019-Dec-09 at 14:01What you're seeing is the "help" output from webapp-runner. I think that indicates that the arguments to webapp-runner.jar
are incorrect.
It looks like there is a stray '
character at the end of your Procfile
command. You may need to remove this.
QUESTION
I've got a Spring web app which I want to deploy to Heroku. Here's the pom.xml:
...ANSWER
Answered 2017-Mar-21 at 21:39Run this command to change your buildpack:
QUESTION
Is it a security risk to include a .git folder in the build step of a Docker multistage build?
To illustrate with an example. We have a compilation step using Java's maven build tool which reads git information, such as the tag and the commit. This requires the compile step to have access to the .git folder. Afterwards the resulting artifacts are copied to the final image. See:
...ANSWER
Answered 2019-May-23 at 15:42The .git will be cached on the computer which will build the image but wont be include in the final image, that will have only 3 layers added to the openkdk ones: - one layer with /cbioportal dir - one layer with the war file copied from build - one layer with the webapp-runner.jar
Using docker inspect, you can list the layers of the two images and compare...
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install webapp-runner
You can use webapp-runner like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the webapp-runner component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page