File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "OC4J & Xfire" Watch "OC4J & Xfire" New topic

OC4J & Xfire

Mark Alan West

Joined: Sep 27, 2006
Posts: 4

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(
at org.codehaus.xfire.annotations.AnnotationServiceFactory.create(
at org.codehaus.xfire.service.binding.ObjectServiceFactory.create(
at com.omxgroup.cds.newsws.DisclosureNewsServiceClient.create0(
at com.omxgroup.cds.newsws.DisclosureNewsServiceClient.<init>(
at no.hugin.webservices.clients.omx.DisclosureNewsServiceHelperImpl.submitNews(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(
Mark Alan West

Joined: Sep 27, 2006
Posts: 4

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

Have a good one!

I agree. Here's the link:
subject: OC4J & Xfire
It's not a secret anymore!