Code Monkey home page Code Monkey logo

Comments (3)

ndarilek avatar ndarilek commented on July 16, 2024

More information:

The task appears to run successfully. It leaves a java process running in the background, and I can successfully connect even though Gradle is dead.

At the moment I'm using jettyRun, and adding the Vaadin dependency to my project manually. Perhaps vaadinRun could just be a synonym for jettyRun? The latter appears to be far more robust.

from gradle-vaadin-plugin.

johndevs avatar johndevs commented on July 16, 2024

You are for some reason getting the NPE when getting the system console just right after jetty was started. That is why jetty is left running even when the gradle task is dead. I'm going to add a check there and kill jetty if that happens in the future so jetty is never left running. If you are running the vaadinRun task from eclipse ensure the "Allocate console" checkbox is checked under the common tab in the run configuration.

vaadinRun used to be a direct alias of the Gradle's jetty plugins jettyRun task. Unfortunatly Gradle packages only Jetty 6 which is not compatible with Servlet 3.0 which many Vaadin applications use. That is why the Vaadin Plugin instead uses Jetty 8 to run the application.

If you are managing the dependencies yourself then you should not use the Gradle jetty plugin, instead you should add the following dependency to your dependencies to be compatible with the Vaadin Plugin:

org.mortbay.jetty:jetty-runner:8.1.5.v20120716

from gradle-vaadin-plugin.

ndarilek avatar ndarilek commented on July 16, 2024

To add a bit more context, I'm doing all of my development from the
console, so am at a loss as to why this would return null. It works fine
in groovysh.

I wasn't necessarily advocating for an alias of jettyRun, even though
that's what I stated. Sorry for not being clear. The code just seems a
bit more robust, and it looks from studying the task like it's
abstracted out a bit. Could the dependency be tweaked such that the task
uses Jetty 8 by default, or could the code be lifted and changed? I'm
just worried by the fact that this fails on the console and there's no
indication why.

Thanks.

from gradle-vaadin-plugin.

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.