com.sun.xml.ws.spi.ProviderImpl

Java.net JIRA | jbenoit | 8 years ago
  1. 0

    Tomcat - User - Erreur : Could not initialize class com.sun.xml.ws.spi.ProviderImpl

    nabble.com | 11 months ago
    com.sun.xml.ws.spi.ProviderImpl
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    when i run jax-wsa interop S2S using glassfish-v3-prelude-b25-09_19_2008.zip, it can't find class com.sun.xml.ws.spi.ProviderImpl even though it shows that it's in webservices.jar, which is added to pathelement of tests .xml ant targets here is what i did and the error i'm seeing using glassfish-v3-prelude-b25-09_19_2008.zip: >> Setup Steps >> =========== >> 1)unzip glassfish-v3-prelude-b24.zip >> 2)cd glassfishv3-prelude i didn't do any of these next steps, as Bhakti's email doesn't mention these steps: >> 3)java -jar ./pkg/lib/pkg-bootstrap.jar (download all required >> packages for package manager) >> 4)cd bin >> 5)./pkg set-authority -P -O http://eflat.sfbay.sun.com:10000/ >> eflat.sfbay.sun.com (required to switch to the internal repository ) >> 6)./pkg refresh >> 7)./pkg install metro (install metro from internal repository). i did do these steps below after following Bhakti's emailed instructions: This bug is now fixed. I verified with 1.unzipping latest glassfish nightly http://javaweb.sfbay.sun.com/java/re/glassfish/v3/nightly/bundles/latest/ 2.copying the following jar to glassfishv3-prelude/glassfish/modules http://hudson.sfbay/job/jsr109-impl/307/org.glassfish.webservices$jsr109-impl/artifact/org.glassfish.webservices/jsr109-impl/10.0-SNAPSHOT/jsr109-impl-10.0-SNAPSHOT.jar 3.copying webservices and jaxb jars from http://hudson.sfbay.sun.com/job/wsit-javanet/lastSuccessfulBuild/artifact/dist/image/metro/for_v3/ to glassfishv3-prelude/glassfish/modules >> 8)./asadmin start-doamin doamin1 >> 9)./asadmin set >> server.http-service.http-listener.http-listener-2.enabled=true >> (required for all ssl scenarios). i didn't do this next step as it isn't required anymore >> 10)Remove this jax-rpc jar >> "<glassfish-home>/modules/javax.xml.rpc-10.0-SNAPSHOT.jar" (this is >> buggy jar for now we have remove until the this issue is resolved). i've done all these next steps... >> 11)./asadmin stop-doamin doamin1 >> 12)go to /tango/qe-tests/gf-setup >> 13)unzip copyv3.zip file >> 14)set AS_HOME=<glassfish-home> >> 15)cd copyv3 >> 16)run "ant" it will set the certificates on the server. >> 17)Add WSIT_HOME in domain.xml(<glassfish-home>/domains/domain1/config). >> >> This can be done manually or by using admin console. >> >> a)Using admin console http://localhost:4848 set >> -DWSIT_HOME=${com.sun.aas.installRoot} in jvm option.(Preffered). >> >> b)Directly modify the domain.xml go to <jvm-option> section and add >> <jvm-options>-DWSIT_HOME=${com.sun.aas.installRoot}</jvm-options> and >> save the file. >> >> 18)Include pathelement in your config files to compile your test modules. >> >> <pathelement >> path="/space/v3-test/glassfishv3-prelude/glassfish/modules/webservices.jar"/> >> >> <pathelement >> path="/space/v3-test/glassfishv3-prelude/glassfish/modules/jaxb.jar"/> > include this pathelement also in some cases we need this. >> <pathelement >> path="/space/v3-test/glassfishv3-prelude/glassfish/modules/javax.javaee-10.0-SNAPSHOT.jar"/> i don't see this .jar in modules dir for nightly glassfish-v3-prelude-b25-09_19_2008.zip class com.sun.xml.ws.spi.ProviderImpl shows that it's in webservices.jar, which is added to pathelement of tests .xml ant targets % unzip -l webservices.jar | grep ProviderImpl | grep -i spi 1666 09-18-08 14:30 com/sun/xml/ws/spi/ProviderImpl$1.class 1282 09-18-08 14:30 com/sun/xml/ws/spi/ProviderImpl$2.class 9033 09-18-08 14:30 com/sun/xml/ws/spi/ProviderImpl.class here is the stack trace: java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.ws.spi.ProviderImpl at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:36) at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:95) at javax.xml.ws.spi.Provider.provider(Provider.java:83) at javax.xml.ws.Service.<init>(Service.java:56) at wsa.crinterop.s11.client.WsaTestService.<init>(WsaTestService.java:46) at wsa.crinterop.s11.client.BindingProviderUtil.createStub(BindingProviderUtil.java:64) at wsa.crinterop.s11.client.NotifyClient.test1101(NotifyClient.java:51) Here is the test4u results: file:///net/galapago.east/files/share/workspaces/gfv3TP2/tango/qe-tests/jax-wsa/test/results/index.html verbose run output shown here in file a.out: % ant -verbose -Dxtest.testtype=interop-tango2tango -Dxtest.sjsas.home=$AS_HOME -Dxtest.wsit.dest.dir=/net/galapago.east/files/share/workspaces/gfv3TP2/glassfishv3-prelude/glassfish/modules -Dxtest.http.host=galapago.east -Dxtest.http.port=8080 -Dxtest.useTomcat=false > /net/galapago.east/files/share/workspaces/gfv3TP2/tango/qe-tests/jax-wsa/test/a.out Bhakti writes: > Jon, > This seems like a bug though the package is exported in webservices.bnd. > Pls file a bug and I request you to attach a standalone war (not test4u > instructions if possible)so we can reproduce this problem. these are the .war files produced during this test4u run: %pwd /net/galapago.east/files/share/workspaces/gfv3TP2/tango/qe-tests/jax-wsa % find . | grep -i "\.war" ./interop/build/war/jaxws-wsacrs11.war ./interop/build/war/jaxws-wsacrs12.war ./interop/build/war/jaxws-wsamss11.war ./interop/build/war/jaxws-wsamss12.war if you want to just run and reproduce then do this: %setenv PATH /net/galapago.east/files/share/workspaces/gfv3TP2/glassfishv3-prelude/glassfish/bin:$PATH %setenv AS_HOME /net/galapago.east/files/share/workspaces/gfv3TP2/glassfishv3-prelude/glassfish %cd /net/galapago.east/files/share/workspaces/gfv3TP2/tango/qe-tests/jax-wsa/test % /home/jbenoit/faq/jaxwsa-s2s.run.sh note, regarding metro scripts: Bhakti Mehta wrote: > Hi, > I have added the metro scripts xjc,schemagen, wsgen,wsimport,wsdeploy,wscompile and their batch files in the v3 workspace. Marek pls can you upload these to UC and they should be installed in glassfish/bin > > Here are the scripts incase sqe need to use them (especially for jaxrpc tests) > http://hudson.sfbay/job/jsr109-impl/ws/webservices/jsr109-impl/target/classes/ > You can test them by copying these to bin folder of your v3 installation which bin folder of v3 installation, since there are two bin folders i didn't put them here: % ls -alrt /net/galapago.east/files/share/workspaces/gfv3TP2/glassfishv3-prelude/glassfish/bin total 20 -rwxr-xr-x 1 jbenoit staff 207 Sep 19 03:15 stopserv.bat* -rwxr-xr-x 1 jbenoit staff 261 Sep 19 03:15 stopserv* -rwxr-xr-x 1 jbenoit staff 218 Sep 19 03:15 startserv.bat* -rwxr-xr-x 1 jbenoit staff 270 Sep 19 03:15 startserv* -rwxr-xr-x 1 jbenoit staff 412 Sep 19 03:15 jspc.bat* -rwxr-xr-x 1 jbenoit staff 547 Sep 19 03:15 jspc* -rwxr-xr-x 1 jbenoit staff 195 Sep 19 03:15 asadmin.bat* -rwxr-xr-x 1 jbenoit staff 249 Sep 19 03:15 asadmin* drwxr-xr-x 2 jbenoit staff 512 Sep 19 22:26 ./ drwxr-xr-x 9 jbenoit staff 512 Sep 19 22:26 ../ i put them here: %ls -alrt /net/galapago.east/files/share/workspaces/gfv3TP2/glassfishv3-prelude/bin total 88 -rwxrwxr-x 1 jbenoit staff 8326 Aug 5 13:31 pkg.bat* -rwxrwxr-x 1 jbenoit staff 7881 Aug 5 13:31 pkg* -rwxr-xr-x 1 jbenoit staff 205 Sep 19 03:15 asadmin.bat* -rwxr-xr-x 1 jbenoit staff 259 Sep 19 03:15 asadmin* -rwxrwxr-x 1 jbenoit staff 8326 Sep 19 03:15 updatetool.bat* -rwxrwxr-x 1 jbenoit staff 7881 Sep 19 03:15 updatetool* drwxr-xr-x 7 jbenoit staff 512 Sep 19 22:26 ../ -rw-r--r-- 1 jbenoit staff 291 Sep 19 23:18 wscompile -rw-r--r-- 1 jbenoit staff 291 Sep 19 23:18 wsdeploy -rw-r--r-- 1 jbenoit staff 276 Sep 19 23:18 wsgen -rw-r--r-- 1 jbenoit staff 281 Sep 19 23:18 wsimport -rw-r--r-- 1 jbenoit staff 279 Sep 19 23:18 xjc -rw-r--r-- 1 jbenoit staff 295 Sep 19 23:19 schemagen drwxr-xr-x 2 jbenoit staff 512 Sep 19 23:23 ./

    Java.net JIRA | 8 years ago | jbenoit
    com.sun.xml.ws.spi.ProviderImpl

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.sun.xml.ws.spi.ProviderImpl

      No message provided

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
    2. Java RT
      NativeConstructorAccessorImpl.newInstance0
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      1 frame