GithubHelp home page GithubHelp logo

Comments (11)

akhikhl avatar akhikhl commented on August 21, 2024

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.

akhikhl avatar akhikhl commented on August 21, 2024

Also I notice you unconditionally add jvmArgsDebug to jvmArgs. Is it intentional? Does the program start if you remove jvmArgsDebug?

from gretty.

akhikhl avatar akhikhl commented on August 21, 2024

Does it start, if you comment out jvmArgs at all? I'm asking because we need to isolate the problem.

from gretty.

akhikhl avatar akhikhl commented on August 21, 2024

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.

gregorko avatar gregorko commented on August 21, 2024

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.

akhikhl avatar akhikhl commented on August 21, 2024

Do you start with appRun task? Does it work with appRunWar task?

from gretty.

gregorko avatar gregorko commented on August 21, 2024

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.

akhikhl avatar akhikhl commented on August 21, 2024

Could you, please, publish a little project demonstrating how to reproduce a problem? Github or bitbucket will do.

from gretty.

akhikhl avatar akhikhl commented on August 21, 2024

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.

gregorko avatar gregorko commented on August 21, 2024

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.

gregorko avatar gregorko commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.