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

Bernd Eckenfels ecki at zusammenkunft.net
Thu Aug 31 13:59:57 EDT 2017


I think we should report that to maven as well, if it does put something on the module path it should ensure the filename complies.

(however imam unsure why it uses the module path at all?)

Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
From: undertow-dev-bounces at lists.jboss.org <undertow-dev-bounces at lists.jboss.org> on behalf of Tester <spamcmon at gmail.com>
Sent: Thursday, August 31, 2017 5:47:53 PM
To: Stuart Douglas
Cc: Undertow Developers
Subject: Re: [undertow-dev] Fwd: Issue with Java 9 (Jigsaw) when using Undertow

Hi Stuart,

I've tested it out for both spec jars by adding an Automatic-Module-Name to their respective manifest.mf files and then it's working. No more errors with regards to the bundle names.

While tryout out the Jetty Spring Boot starter, I noticed they are using the javax.servlet.* libraries to pull in the api's. That solution isn't giving any issues neither, so that might be a viable option as well?

Do I log a defect for this or is this handled internally?

With kind regards,

Peter

2017-08-31 3:25 GMT+02:00 Stuart Douglas <sdouglas at redhat.com<mailto:sdouglas at redhat.com>>:
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<mailto: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<mailto:undertow-dev at lists.jboss.org>
> https://lists.jboss.org/mailman/listinfo/undertow-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20170831/8b3dfbb8/attachment.html 


More information about the undertow-dev mailing list