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

Tester spamcmon at gmail.com
Wed Aug 30 07:05:03 EDT 2017


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20170830/c835b7c2/attachment.html 


More information about the undertow-dev mailing list