struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Nenning (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4402) JDK 8: build fails due to missing apt tool
Date Thu, 24 Sep 2015 11:18:04 GMT

    [ https://issues.apache.org/jira/browse/WW-4402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14906210#comment-14906210
] 

Christoph Nenning commented on WW-4402:
---------------------------------------

bq. FAILURE: Integrated in Struts-JDK7-pull-request #37

That jenkins/hudson fails seems like a configuration issue as the main part of this patch
must be applied to struts-annotation instead of struts itself.

When I try to build struts-core locally with this patch applied to struts-annotation I get
the following error with both jdk7 and jdk8. I must admit that I have no idea what this whole
apt stuff is about so I'm not able to provide more help.

{quote}
[ERROR] An annotation processor threw an uncaught exception.
[ERROR] Consult the following stack trace for details.
[ERROR] java.lang.IllegalArgumentException: 'tlibVersion' is missing
[ERROR] at org.apache.struts.annotations.taglib.apt.TagAnnotationProcessor.checkOptions(TagAnnotationProcessor.java:228)
[ERROR] at org.apache.struts.annotations.taglib.apt.TagAnnotationProcessor.process(TagAnnotationProcessor.java:75)
[ERROR] at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)
[ERROR] at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)
[ERROR] at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
[ERROR] at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
[ERROR] at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
[ERROR] at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
[ERROR] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
[ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:523)
...
{quote}

> JDK 8: build fails due to missing apt tool
> ------------------------------------------
>
>                 Key: WW-4402
>                 URL: https://issues.apache.org/jira/browse/WW-4402
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Build Management
>    Affects Versions: 2.3.16.3
>         Environment: JDK 8
>            Reporter: Rene Gielen
>              Labels: jdk8
>             Fix For: 2.5
>
>         Attachments: WW-4402-struts-core.diff, WW-4402.diff
>
>
> The generation of Struts Taglib TLD files relies on annotation processing with the apt
tool, wrapped by maven-apt-plugin.
> In JDK 7 apt has been [deprecated|http://docs.oracle.com/javase/7/docs/technotes/guides/apt/GettingStarted.html]
in favor of [JSR 269|https://jcp.org/en/jsr/detail?id=269]. In JDK 8 apt tool has been [removed
completely|http://openjdk.java.net/jeps/117].
> In effect, Struts core and all tag library projects relying on the struts-annotation
helper library won't build any longer under JDK 8. A major effort is needed to introduce a
compatible replacement.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message