webservice interface in glassfish 3

Discussion in 'Java' started by joao tiago a. m. viegas, Dec 15, 2011.

  1. Hello you all,

    I'm studying webservices, and I'm only succeeding in deploying a
    webservice to Glassfish 3 if I create it with a class:

    @WebService
    public class CardValidator {...}

    ....but on the client side wsimport generates
    public interface CardValidator { ...]

    ....and this winds up in an exception when I try to access the web
    service using a j2se client:
    Exception in thread "AWT-EventQueue-0"
    java.lang.IllegalArgumentException:
    com.d2w.labs.j2ee.snippets.book.bjee6wg3.ch14.CardValidator is not an
    interface.

    Have you ever experienced such a case?
     
    joao tiago a. m. viegas, Dec 15, 2011
    #1
    1. Advertising

  2. It's solved. ClassPath issue!
    Thank you anyway

    On 15 dez, 01:24, "joao tiago a. m. viegas" <>
    wrote:
    > Hello you all,
    >
    > I'm studying webservices, and I'm only succeeding in deploying a
    > webservice to Glassfish 3 if I create it with a class:
    >
    > @WebService
    > public class CardValidator {...}
    >
    > ...but on the client side wsimport generates
    > public interface CardValidator { ...]
    >
    > ...and this winds up in an exception when I try to access the web
    > service using a j2se client:
    > Exception in thread "AWT-EventQueue-0"
    > java.lang.IllegalArgumentException:
    > com.d2w.labs.j2ee.snippets.book.bjee6wg3.ch14.CardValidator is not an
    > interface.
    >
    > Have you ever experienced such a case?
     
    joao tiago a. m. viegas, Dec 15, 2011
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. glassfish?

    , May 24, 2006, in forum: Java
    Replies:
    1
    Views:
    497
  2. Replies:
    0
    Views:
    379
  3. marwis1978
    Replies:
    0
    Views:
    386
    marwis1978
    Mar 20, 2007
  4. marwis1978

    Maven2 repository for Glassfish

    marwis1978, Mar 26, 2007, in forum: Java
    Replies:
    0
    Views:
    335
    marwis1978
    Mar 26, 2007
  5. marwis1978

    Maven2 repository for Glassfish

    marwis1978, Mar 26, 2007, in forum: Java
    Replies:
    0
    Views:
    289
    marwis1978
    Mar 26, 2007
Loading...

Share This Page