Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Author Message
flawlor
Post subject: NoSuchMethodException: getPortClassMap()  PostPosted: Aug 19, 2008 - 11:26 PM
Registered Member
Registered Member


Joined: Jul 01, 2006
Posts: 19

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
 
 View user's profile Send private message  
Reply with quote Back to top
flawlor
Post subject:   PostPosted: Aug 20, 2008 - 02:51 PM
Registered Member
Registered Member


Joined: Jul 01, 2006
Posts: 19

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?
 
 View user's profile Send private message  
Reply with quote Back to top
flawlor
Post subject:   PostPosted: Aug 21, 2008 - 04:04 PM
Registered Member
Registered Member


Joined: Jul 01, 2006
Posts: 19

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.
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject:   PostPosted: Aug 21, 2008 - 11:13 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5657

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

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits