This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 92789 - javax.xml.ws.WebServiceException: Provider com.sun.xml.ws.spi.ProviderImpl not found
Summary: javax.xml.ws.WebServiceException: Provider com.sun.xml.ws.spi.ProviderImpl no...
Status: RESOLVED DUPLICATE of bug 92788
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-18 16:52 UTC by dyegoleal
Modified: 2007-01-18 16:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dyegoleal 2007-01-18 16:52:34 UTC
I'm downloaded NetBeans 5.5.1 JDK 1.6.0 and GlassFish v2 b32
and now... i'm trying to create a simple webservice:

/**
 *
 * @author Dyego Souza Dantas Leal
 */
@WebService()
public class TesteWebService {
    /**
     * Web service operation
     */
    @WebMethod
    public String ping() {
        // TODO implement operation 
        return "pong !";
    }
    
}


and deployed on GlassFish v2 b32 , test and everythink works !!!!

I'm create a normal Java Application (with Sourcelevel 1.6 ) in my NetBeans and
create a WebService Client for my little webservice (using wizard).

to invoke , here is the code:

public class Main {
    
    /** Creates a new instance of Main */
    public Main() {
        //com.sun.xml.internal.ws.spi.ProviderImpl a;
        
        try { // Call Web Service Operation
            teste.TesteWebServiceService service = new
teste.TesteWebServiceService();
            teste.TesteWebService port = service.getTesteWebServicePort();
            // TODO process result here
            java.lang.String result = port.ping();
            System.out.println("Result = "+result);
        } catch (Exception ex) {
            ex.printStackTrace();
            // TODO handle custom exceptions here
        }
        
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        new Main();
        // TODO code application logic here
    }
    
}


And INSIDE netbeans... i got an error:

init:
deps-jar:
wsimport-init:
wsimport-client-check-TesteWebServiceService:
wsimport-client-TesteWebServiceService:
wsimport-client-generate:
wsimport-client-compile:
compile:
run:
javax.xml.ws.WebServiceException: Provider com.sun.xml.ws.spi.ProviderImpl not found
        at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:38)
        at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:133)
        at javax.xml.ws.spi.Provider.provider(Provider.java:84)
        at javax.xml.ws.Service.<init>(Service.java:56)
        at teste.TesteWebServiceService.<init>(TesteWebServiceService.java:41)
        at javaapplication10.Main.<init>(Main.java:23)
        at javaapplication10.Main.main(Main.java:39)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.ws.spi.ProviderImpl
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:34)
        ... 6 more
BUILD SUCCESSFUL (total time: 1 second)


But... if try to run outside netbeans... everythink works OK.

Is a bug ?
Comment 1 dyegoleal 2007-01-18 16:54:58 UTC
sorry

*** This issue has been marked as a duplicate of 92788 ***