[undertow-dev] Fwd: Issue with Java 9 (Jigsaw) when using Undertow

Stuart Douglas sdouglas at redhat.com
Wed Aug 30 21:25:34 EDT 2017


It sounds like we need to add an Automatic-Module-Name entry to these
jars manifests to specify the actual module name. Is there any chance
you could modify the jar's to test this out?

Stuart

On Wed, Aug 30, 2017 at 9:05 PM, Tester <spamcmon at gmail.com> wrote:
> Hi,
>
> I'm using the Spring Boot starter for Undertow. The dependencies which are
> pulled in are:
>
> org.springframework.boot:spring-boot-starter-undertow:jar:2.0.0.M3:compile
>  |  +- io.undertow:undertow-core:jar:1.4.18.Final:compile
>  |  |  +- org.jboss.xnio:xnio-api:jar:3.3.8.Final:compile
>  |  |  \- org.jboss.xnio:xnio-nio:jar:3.3.8.Final:runtime
>  |  +- io.undertow:undertow-servlet:jar:1.4.18.Final:compile
>  |  |  \-
> org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:jar:1.0.0.Final:compile
>  |  +- io.undertow:undertow-websockets-jsr:jar:1.4.18.Final:compile
>  |  |  \-
> org.jboss.spec.javax.websocket:jboss-websocket-api_1.1_spec:jar:1.1.0.Final:compile
>  |  +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
>  |  \- org.glassfish:javax.el:jar:3.0.0:compile
>
> Now, when I run the application through Java 9 (Release candidate)  and I
> have a module-info.java (Jigsaw), then I get the following error:
>
> Error occurred during initialization of boot layer
> java.lang.module.FindException: Unable to derive module descriptor for
> C:\Users\xxxxx\.m2\repository\org\jboss\spec\javax\annotation\jboss-annotations-api_1.2_spec\1.0.0.Final\jboss-annotations-api_1.2_spec-1.0.0.Final.jar
> Caused by: java.lang.IllegalArgumentException:
> jboss.annotations.api.1.2.spec: Invalid module name: '1' is not a Java
> identifier
>
> It seems there is an issue with the determination of the naming of the
> automatic module. I expect to have the same issue for
> jboss-websocket-api_1.1_spec.
>
> The name of the jar file isn't aligned on the algorithm defined under
> (http://download.java.net/java/jigsaw/docs/api/java/lang/module/ModuleFinder.html).
>
> Is anyone aware of this issue? Is this something that can be resolved?
>
>
> _______________________________________________
> undertow-dev mailing list
> undertow-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev


More information about the undertow-dev mailing list