Java 9 EA 169 Webstart NoClassDefFoundError: javax/xml/ws/Service
Alan Bateman
Alan.Bateman at oracle.com
Tue May 16 06:00:21 UTC 2017
On 15/05/2017 15:10, Reto Merz wrote:
> Hello,
>
> It seems that Java 9 Webstart (still) does not add all modules to the class/module path.
> Our Webstart app is signed, requests all-permision and works with the latest Java 6, 7 and 8.
>
> With 9-ea+169 we get this error:
>
> java.lang.NoClassDefFoundError: javax/xml/ws/Service
> ... first 45 from cause
> Caused by: java.lang.ClassNotFoundException: javax.xml.ws.Service
> at jdk.deploy at 9-ea/com.sun.deploy.security.DeployURLClassLoader.findClass(Unknown Source)
> :
>
> Is this a known bug or should this be reported via bugreport.java.com?
>
Java Web Start is aligned with the default policy for root modules in
JEP 261. This means that the EE modules aren't resolved by default. I
suspect this is what you need in the JNLP:
<j2se version="9+" java-vm-args="--add-modules=java.xml.ws"/>
-Alan
More information about the jigsaw-dev
mailing list