facebook

NoSuchMethodException: getPortClassMap()

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #288434 Reply

    Frank Lawlor
    Participant

    I’m using MyEclipse 6.5.

    I created a web service project conforming to JAX-WS.

    I generated a WS client pointing to the WSDL URL of my service.

    I created a test class as indicated in http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/

    When I try to create my service:

      OrderCashCard2Service service = new OrderCashCard2Service(); 

    it throws an exception caused by:

    
    Caused by: java.lang.NoSuchMethodException: com.netspend.socketpcclient.ordercashcard.OrderCashCard2Service.getPortClassMap()
        at java.lang.Class.getMethod(Class.java:1581)
        at org.codehaus.xfire.jaxws.ServiceDelegate.<init>(ServiceDelegate.java:60)
        ... 5 more

    is this missing method supposed to be provide by the base class javax.xml.ws.Service or should this have been generated in my service (OrderCashCard2Service).

    Is this a bug?

    How do I fix this?

    I don’t have any problem using the Web Services Explorer.

    Thanks,
    — Frank

    #288446 Reply

    Frank Lawlor
    Participant

    I noticed that even tho I selected to use JAX-WS, the init method in the stack trace is from xfilre

    org.codehaus.xfire.jaxws.ServiceDelegate

    Should this be using anything from xfire?

    #288490 Reply

    Frank Lawlor
    Participant

    I finally figured out what was going on here.

    My client project had some of the old Xfire libraries in it.
    When I removed those the problem went away.

    Thanks.

    #288519 Reply

    Loyal Water
    Member

    Glad you figured out the issue. Thanks for letting me know.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: NoSuchMethodException: getPortClassMap()

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in