MyEclipse

Web Services - NoSuchMethodException: getPortClassMap()

flawlor - Aug 19, 2008 - 11:26 PM
Post subject: NoSuchMethodException: getPortClassMap()
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:

Code:
  OrderCashCard2Service service = new OrderCashCard2Service();


it throws an exception caused by:

Code:

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
flawlor - Aug 20, 2008 - 02:51 PM
Post subject:
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?
flawlor - Aug 21, 2008 - 04:04 PM
Post subject:
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.
support-nipun - Aug 21, 2008 - 11:13 PM
Post subject:
Glad you figured out the issue. Thanks for letting me know.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits