my dog learned polymorphism
The moose likes Web Services and the fly likes OC4J & Xfire Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "OC4J & Xfire" Watch "OC4J & Xfire" New topic
Author

OC4J & Xfire

Mark Alan West
Greenhorn

Joined: Sep 27, 2006
Posts: 4
Howdy!

I have a simple Web Service Client that I've generated from Xfire. From within my IDE (IDEA) the Client runs without any problems. However, if I try to run the Client from within an OC4J instance I get a NoSuchMethodError exception.

This also happens with other Xfire clients we are working with. My guess is that there's some kind of classpath conflict, especially seeing as the client works fine in a standalone setting.

Can anyone help?!

The stacktrace follows:

java.lang.NoSuchMethodError: javax.jws.WebService.portName()Ljava/lang/String;
at org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations.getWebServiceAnnotation(Jsr181WebAnnotations.java:50)
at org.codehaus.xfire.annotations.AnnotationServiceFactory.create(AnnotationServiceFactory.java:170)
at org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:353)
at com.omxgroup.cds.newsws.DisclosureNewsServiceClient.create0(DisclosureNewsServiceClient.java:59)
at com.omxgroup.cds.newsws.DisclosureNewsServiceClient.<init>(DisclosureNewsServiceClient.java:26)
at no.hugin.webservices.clients.omx.DisclosureNewsServiceHelperImpl.submitNews(DisclosureNewsServiceHelperImpl.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
Mark Alan West
Greenhorn

Joined: Sep 27, 2006
Posts: 4
Heya!

If you have the same problem you can follow the discussions at:

http://forums.oracle.com/forums/thread.jspa?threadID=456377
http://jira.codehaus.org/browse/XFIRE-812


Have a good one!

Mark.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: OC4J & Xfire
 
It's not a secret anymore!