1 Reply Latest reply on Apr 13, 2010 8:37 AM by Erick Jeronimo Diaz

    username token authentication using jbossws-native



      I am trying to use jbossws-native to do username token authentication.
      I am following the steps given in link

      but i am getting
      java.lang.ClassCastException: $Proxy25 cannot be cast to org.jboss.ws.core.StubExt

      Can you please let me know what do i need to do to fix this? or if there is another way to handle username token authentication?

      Any help will be highly appreciated.

        • 1. Re: username token authentication using jbossws-native
          Erick Jeronimo Diaz Newbie

          Hi, have 'u been answered ?????? . I've the same problems:


          Exception in thread "main" java.lang.ClassCastException: $Proxy25
              at test.hello.clientsample.ClientSample.main(ClientSample.java:25)


          i've been checked the use of jbossws jax-ws lib , with this:


          URL jaxwsThatIsUsed = javax.xml.ws.Service.class.getProtectionDomain().getCodeSource().getLocation();
          System.out.println("JAXWS that is used: " + jaxwsThatIsUsed);


          getting :


          JAXWS that is used: file:/D:/Programas/jboss-4.2.3.GA/client/jbossws-native-jaxws.jar


          then, it seems to be all fine,,,,,...

          what else can i do??


          please help me..


          my best regards