Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OC4J & Xfire

 
Mark Alan West
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic