Giter VIP home page Giter VIP logo

Comments (11)

bmuschko avatar bmuschko commented on July 18, 2024

Please send a pull request if you are interested in a fix. Thanks!

from gradle-tomcat-plugin.

patric-r avatar patric-r commented on July 18, 2024

There are multiple issues of the same kind when using Gradle 7.0, e.g. tomcatJasper task is affected as well:

* What went wrong:
A problem was found with the configuration of task ':tomcatJasper' (type 'TomcatJasper').
  - Type 'TomcatJasper' property 'jasperAttributes' is private and annotated with @Internal.
    
    Reason: Annotations on private getters are ignored.
    
    Possible solutions:
      1. Make the getter public.
      2. Annotate the public version of the getter.
    
    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#private_getter_must_not_be_annotated for more details about this problem.

from gradle-tomcat-plugin.

patric-r avatar patric-r commented on July 18, 2024

I tried to get this fixed, however, the unit tests fail after cloning the repo (without any local changes),
unfortunately without any additional info/stacktrace (even with providing --stacktrace)

What I'm doing wrong, @bmuschko ?

[...]
com.bmuschko.gradle.tomcat.TomcatJasperFunctionalTest > Runs Jasper compiler for Tomcat 6.0.x with default conventions FAILED
    org.gradle.testkit.runner.UnexpectedBuildFailure at TomcatJasperFunctionalTest.groovy:36

com.bmuschko.gradle.tomcat.TomcatJasperFunctionalTest > Runs Jasper compiler for Tomcat 7.0.x with default conventions FAILED
    org.gradle.testkit.runner.UnexpectedBuildFailure at TomcatJasperFunctionalTest.groovy:36

com.bmuschko.gradle.tomcat.TomcatJasperFunctionalTest > Runs Jasper compiler for Tomcat 8.0.x with default conventions FAILED
    org.gradle.testkit.runner.UnexpectedBuildFailure at TomcatJasperFunctionalTest.groovy:36

com.bmuschko.gradle.tomcat.TomcatJasperFunctionalTest > Runs Jasper compiler for Tomcat 8.5.x with default conventions FAILED
    org.gradle.testkit.runner.UnexpectedBuildFailure at TomcatJasperFunctionalTest.groovy:36

com.bmuschko.gradle.tomcat.TomcatJasperFunctionalTest > Runs Jasper compiler for Tomcat 9.0.x with default conventions FAILED
    org.gradle.testkit.runner.UnexpectedBuildFailure at TomcatJasperFunctionalTest.groovy:36

com.bmuschko.gradle.tomcat.TomcatJasperFunctionalTest > Can use Jasper compiler validation for Tomcat version 6.0.29 with attribute validateXml FAILED
    org.gradle.testkit.runner.UnexpectedBuildFailure at TomcatJasperFunctionalTest.groovy:64

com.bmuschko.gradle.tomcat.TomcatJasperFunctionalTest > Can use Jasper compiler validation for Tomcat version 6.0.39 with attribute validateTld FAILED
    org.gradle.testkit.runner.UnexpectedBuildFailure at TomcatJasperFunctionalTest.groovy:64

com.bmuschko.gradle.tomcat.TomcatJasperFunctionalTest > Can use Jasper compiler validation for Tomcat version 7.0.42 with attribute validateXml FAILED
    org.gradle.testkit.runner.UnexpectedBuildFailure at TomcatJasperFunctionalTest.groovy:64

com.bmuschko.gradle.tomcat.TomcatJasperFunctionalTest > Can use Jasper compiler validation for Tomcat version 7.0.50 with attribute validateTld FAILED
    org.gradle.testkit.runner.UnexpectedBuildFailure at TomcatJasperFunctionalTest.groovy:64

com.bmuschko.gradle.tomcat.TomcatJasperFunctionalTest > Can use Jasper compiler validation for Tomcat version 8.0.3 with attribute validateTld FAILED
    org.gradle.testkit.runner.UnexpectedBuildFailure at TomcatJasperFunctionalTest.groovy:64

com.bmuschko.gradle.tomcat.TomcatJasperFunctionalTest > Can use Jasper compiler validation for Tomcat version 9.0.1 with attribute validateXml FAILED
    org.gradle.testkit.runner.UnexpectedBuildFailure at TomcatJasperFunctionalTest.groovy:64

com.bmuschko.gradle.tomcat.TomcatJasperFunctionalTest > Throws exception using Jasper compiler validation for Tomcat version 6.0.39 with invalid attribute validateXml FAILED
    org.spockframework.runtime.ConditionNotSatisfiedError at TomcatJasperFunctionalTest.groovy:94

com.bmuschko.gradle.tomcat.TomcatJasperFunctionalTest > Throws exception using Jasper compiler validation for Tomcat version 7.0.42 with invalid attribute validateTld FAILED
    org.spockframework.runtime.ConditionNotSatisfiedError at TomcatJasperFunctionalTest.groovy:94

com.bmuschko.gradle.tomcat.TomcatJasperFunctionalTest > Throws exception using Jasper compiler validation for Tomcat version 8.0.3 with invalid attribute validateXml FAILED
    org.spockframework.runtime.ConditionNotSatisfiedError at TomcatJasperFunctionalTest.groovy:94
[...]

from gradle-tomcat-plugin.

patric-r avatar patric-r commented on July 18, 2024

@bmuschko any help is still appreciated.

Currently, gradle-tomcat-plugin is not working with gradle 7.x at all
It would be very nice to get this finally fixed.

from gradle-tomcat-plugin.

jshiell avatar jshiell commented on July 18, 2024

For the record, we moved to embedding Tomcat in the app, which nicely avoids this problem.

from gradle-tomcat-plugin.

patric-r avatar patric-r commented on July 18, 2024

@jshiell Thanks for the info. However, we're using this plugin solely for validating our web application (especially jsp compilation) during ci/release builds

from gradle-tomcat-plugin.

bmuschko avatar bmuschko commented on July 18, 2024

@patric-r Those tests pass for me on my local machine as well as on CI. Are you executing the build with the checked-in Gradle Wrapper? Have a look at the test report for that source set to see the stack trace. I can't possibly know what's wrong with your test execution without seeing the stack trace.

from gradle-tomcat-plugin.

patric-r avatar patric-r commented on July 18, 2024

@bmuschko I did further investigating in the past hours. The reason is that the functional tests seems to try to download dependencies from the maven repository and testkits GradleRunner does not read the gradle.properties (due to test isolation) which means that my proxy settings are not available and therefore a silent timeout happens.
Are you aware of a workaround?

I know that you're busy and searching another maintainer for this project but would you mind fixing this issue?
Most probably, you only have to change a few getters to public. Thanks!

from gradle-tomcat-plugin.

bmuschko avatar bmuschko commented on July 18, 2024

For reference: 20e46f1

from gradle-tomcat-plugin.

patric-r avatar patric-r commented on July 18, 2024

@bmuschko Thank you so much! I'll have a look.
One last thing: Any chance for a release containing those fixes?

from gradle-tomcat-plugin.

bmuschko avatar bmuschko commented on July 18, 2024

@patric-r Yes, I will do so soon. Releasing requires more work on the build as JCenter doesn't exist anymore. Need to switch over all that publishing code to the Gradle plugin portal. Will take me a bit.

from gradle-tomcat-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.