Actually get the same error running NB 10 & 11 both running jdk8

-----Original Message-----
From: Nils Hoffmann <[email protected]> 
Sent: Thursday, April 25, 2019 12:54 AM
To: [email protected]
Subject: Re: using web services in NB 11.0

Hi Mike,
are you using a JDK >=9? The trace shows a lot of com.sun packages, among them 
the missing logger. This might be due to the removal of Xml implementation 
libraries from the JDK from version 9 onwards. At least I had to add additional 
JAXB dependencies to my post Java 9 projects.
My guess here would be a missing dependency on JAX-WS since you are working 
with wsdl or a module that is not exported by with —add-modules (since XML 
binding and wsdl functionality is shared with JAVA EE). See

https://docs.oracle.com/javase/9/migrate/JSMIG.pdf
Section: Modules Shared with Java EE Not Resolved by Default

Please file a JIRA issue for that so that we can track the issue and maybe 
other, related ones.

Best wishes,
Nils

> Am 24.04.2019 um 21:50 schrieb Mike Billman <[email protected]>:
> 
> I have set up a new web service and pointed to the URL of the wsdl.  I then 
> try to test web service method and get:
>  
> com/sun/istack/logging/Logger
> java.lang.NoClassDefFoundError at
> java.lang.ClassLoader.defineClass1(Native Method)
> java.lang.ClassLoader.defineClass(ClassLoader.java:763)
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142
> )
> java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
> java.net.URLClassLoader.access$100(URLClassLoader.java:74)
> java.net.URLClassLoader$1.run(URLClassLoader.java:369)
> java.net.URLClassLoader$1.run(URLClassLoader.java:363)
> java.security.AccessController.doPrivileged(Native Method)
> java.net.URLClassLoader.findClass(URLClassLoader.java:362)
> java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> com.sun.xml.ws.policy.jaxws.PolicyWSDLParserExtension.<clinit>(PolicyW
> SDLParserExtension.java:111)
> com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.<init>(RuntimeWSDLParser.
> java:357)
> com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.j
> ava:210)
> com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.j
> ava:191)
> com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.j
> ava:160)
> com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.ja
> va:307)
> com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:
> 269)
> com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:
> 205)
> com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:
> 195)
> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.jav
> a:112)
> javax.xml.ws.Service.<init>(Service.java:77)
> com.connectship.ampcore.AMPServices.<init>(AMPServices.java:58)
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructo
> rAccessorImpl.java:62)
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCo
> nstructorAccessorImpl.java:45)
> java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> org.netbeans.modules.websvc.manager.ui.ReflectionHelper.callMethodWith
> Params(ReflectionHelper.java:660)
> org.netbeans.modules.websvc.manager.ui.TestWebServiceMethodDlg$MethodT
> ask.run(TestWebServiceMethodDlg.java:713)
> java.lang.Thread.run(Thread.java:748)
> com.sun.istack.logging.Logger
> java.lang.ClassNotFoundException at
> java.net.URLClassLoader.findClass(URLClassLoader.java:382)
> java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> java.lang.ClassLoader.defineClass1(Native Method)
> java.lang.ClassLoader.defineClass(ClassLoader.java:763)
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142
> )
> java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
> java.net.URLClassLoader.access$100(URLClassLoader.java:74)
> java.net.URLClassLoader$1.run(URLClassLoader.java:369)
> java.net.URLClassLoader$1.run(URLClassLoader.java:363)
> java.security.AccessController.doPrivileged(Native Method)
> java.net.URLClassLoader.findClass(URLClassLoader.java:362)
> java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> com.sun.xml.ws.policy.jaxws.PolicyWSDLParserExtension.<clinit>(PolicyW
> SDLParserExtension.java:111)
> com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.<init>(RuntimeWSDLParser.
> java:357)
> com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.j
> ava:210)
> com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.j
> ava:191)
> com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.j
> ava:160)
> com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.ja
> va:307)
> com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:
> 269)
> com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:
> 205)
> com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:
> 195)
> com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.jav
> a:112)
> javax.xml.ws.Service.<init>(Service.java:77)
> com.connectship.ampcore.AMPServices.<init>(AMPServices.java:58)
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructo
> rAccessorImpl.java:62)
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCo
> nstructorAccessorImpl.java:45)
> java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> org.netbeans.modules.websvc.manager.ui.ReflectionHelper.callMethodWith
> Params(ReflectionHelper.java:660)
> org.netbeans.modules.websvc.manager.ui.TestWebServiceMethodDlg$MethodT
> ask.run(TestWebServiceMethodDlg.java:713)
> java.lang.Thread.run(Thread.java:748)
>  
>  
>  
> (Should this be submitted in JIRA?)
>  
> Thanks!
>  
> Mike Billman
> Senior Software Engineer
> CPTE
>  
> 
>  
> 11800 Conrey Rd
> Suite 150
> Cincinnati, OH 45249
>  
> T +1 513 469 1424
> E [email protected]
> F +1 513 469 1425
>  

Reply via email to