aspose file tools*
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 8 in Action this week in the Java 8 forum!
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: OC4J & Xfire
 
Similar Threads
Getting an exception when tried to connect with the DB server
oracle.oc4j.rmi.OracleRemoteException
rampart problem with oc4j
OC4J 10.1.3.4 toplink server session invaldateException
Potencial EJB ERROR [Help]