Comments (11)
Sorry for problems with new version, I'll try to help you to fix everything quickly.
jettyEnvXmlFile -> contextConfigFile : yes, this is the right change. I thought I've added support also for an old property jettyEnvXml, but now I discover I renamed it to jettyEnvXmlFile. Sorry for inconvenience. Now we have the following: gretty extension supports contextConfigFile which is equivalent to jettyEnvXmlFile and serverConfigFile which is equivalent to jettyXmlFile. Equivalence is in a sense that you can use these properties interchangeably.
Problem with start: it is probably related to classloading. Could you, please, add managedClassReload=false to gretty and see whether it fixes the problem?
Other option: start "gradle run -i' or even "gradle run -d' to see more information on the context of the error.
from gretty.
Also I notice you unconditionally add jvmArgsDebug to jvmArgs. Is it intentional? Does the program start if you remove jvmArgsDebug?
from gretty.
Does it start, if you comment out jvmArgs at all? I'm asking because we need to isolate the problem.
from gretty.
I fixed breaking change with jettyEnvXmlFile and jettyXmlFile in Gretty 1.1.1: now things should work as before.
How does it look like with the other problem - application hang? Does disabling or reducing jvmArgs help?
from gretty.
Sorry I have only little time this week.
I updated to 1.1.1 and removed all jvmArgs. Unfortunately it made no difference, it still hangs.
It might be unrelated but I have the impression the jettyEnvXmlFile or contextConfigFile is not loaded/used correctly. The file defines some EnvEntry's that also configure paths for logback. But logback now writes empty log files to the directory 'logDir_IS_UNDEFINED'. Therefore it looks like the EnvEntry's are not correctly registered.
Activating the -i option with gradle is not giving much more information. Activating -d dumping very much, but nothing looks suspicious. it finishes with:
22:52:54.045 [DEBUG] [org.akhikhl.gretty.LauncherBase] Got start status: {"status":"successfully started","host":"localhost","httpPort":8080,"contexts":[{"protocol":"http","host":"localhost","port":8080,"contextPath":"/","baseURI":"http://localhost:8080/"}]}
But my webapp has not started...
from gretty.
Do you start with appRun task? Does it work with appRunWar task?
from gretty.
I used appRun but it behaves the same way when I use appRunWar. Sorry, I didn't have time to do more tests today.
from gretty.
Could you, please, publish a little project demonstrating how to reproduce a problem? Github or bitbucket will do.
from gretty.
I redesigned Gretty part dealing with start/stop. Hopefully it will fix your problem.
Could you, please, test it? The redesign is not released yet, it is available in snapshot version only. Please use the following script to configure gradle to use Gretty snapshot version:
buildscript {
repositories {
jcenter()
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' }
}
dependencies {
classpath 'org.akhikhl.gretty:gretty:1.1.2-SNAPSHOT'
}
}
apply plugin: 'war'
apply plugin: 'org.akhikhl.gretty'
I'm looking forward to your feedback.
from gretty.
I'm currently on holidays, I will test it once I get back. And if there are still problems I will try to create a demonstration project.
from gretty.
I finally had time to test and debug this against gretty 1.1.4. The problem appears to be the lookup location of contextConfigFile. I assumed it is relative from the project dir but that seems not to be the case as documented in http://akhikhl.github.io/gretty-doc/jetty-env.xml-support.html
I changed it to use an absolute path. But this is also causing troubles. I will open a new issue for that though.
from gretty.
Related Issues (20)
- Enable to run appStart task because of NoClassDefFoundError: Lorg/jCharts/properties/PieChart2DProperties
- Problem in appStart Task
- Examples folder is missing from master branch HOT 1
- Global logging.properties file for Tomcat
- how to appStartWar with war generated in subproject? HOT 2
- AppIntegrationTest is not using src/test/resources but src/main/resources for the server test instance
- Multiproject builds: Exception in thread "Thread-x" java.lang.IllegalStateException: The configuration ... was resolved from a thread not managed by Gradle. HOT 2
- jettyRun task produces java.lang.ClassNotFoundException: org.eclipse.jetty.security.DefaultAuthenticatorFactory
- Could not read script 'https://raw.github.com/akhikhl/gretty/master/pluginScripts/gretty.plugin'
- Object of class 'org.akhikhl.gretty.JettyWebAppContext' is not of type 'org.eclipse.jetty.webapp.WebAppContext'. Object Class and type Class are from different loaders
- this link is obsolete
- Can I use Gretty to generate code with OpenAPI?
- KeyStores with multiple certificates are not supported on the base class org.eclipse.jetty.util.ssl.SslContextFactory HOT 2
- "Cannot run Project.afterEvaluate" crash when Gretty applied to a Gradle sub-module via plugins block HOT 1
- org.akhikhl.gretty.Runner.run issue
- For a non spring boot application, gretty is complaining for spring boot dependency HOT 1
- gretty versions after 2.0.0 no longer available in the recommended repos HOT 2
- Gretty unable to find jstl.core
- apply from: 'https://raw.github.com/akhikhl/gretty/master/pluginScripts/gretty.plugin' and Could not HEAD
- Errors seem to leave gretty/jetty running without the ability to shutdown without killing processes manually HOT 2
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 gretty.