Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile 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!

Have you tried LearnNowOnline?
subject: OC4J & Xfire