Hiya,
[EMAIL PROTECTED] wrote:
No difference there...
The situation is this:
I have a working webservice with aegis but wants to change to JAXB.
So I located:
<property name="serviceFactory" ref="xfire.serviceFactory"/>
In my XFireServlet-servlet.xml and changed to:
<property name="serviceFactory"
value="org.codehaus.xfire.jaxb2.JaxbServiceFactory" />
When I deploy the app in OC4J I get this error:
org.codehaus.xfire.annotations.AnnotationException: Service class cannot
be abstract: com.xxx.yyy.webservice.XWebService
The XWebService are a interface used by XWebServiceImpl.
The interface has this annotations:
@WebService(name="XWebService", targetNamespace="http://yyy.xxx.com")
Methods and Parameters are annotated as well.
The impl class has this annotation:
@WebService(endpointInterface="com.yyy.xxx.webservice.XWebService",
serviceName="XWebService")
@SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.BARE)
What can be wrong??
Try maybe supplying XWebServiceImpl as the class name to XFire instead
of XWebService. If you give XFire XWebServiceImpl it can look at the
@WebService attribute to figure out the endpointInterface.
Cheers,
- Dan
I would be very happy if I could solve this problem...
Thanx in advance!
/Fredde
There might have been an issue in 1.2.2. Do you mind trying this jar?
http://snapshots.repository.codehaus.org/org/codehaus/xfire/xfire-all/1.2-SNAPSHOT/xfire-all-1.2-20061016.171227-27.jar
Cheers,
- Dan
Fredrik Petersson wrote:
WSDL generation with standard aegis works fine.
I just want to switch from aegis to JAXB.
/Fredrik
-----Ursprungligt meddelande-----
Från: Goga, Murtaza [mailto:[EMAIL PROTECTED]
Skickat: den 17 oktober 2006 17:18
Till: [email protected]
Ämne: RE: [xfire-user] WS With JAXB
For the WSDL generator to work, you will need wsdl4j.jar and jdom.jar in
your classpath. Anything in the log files?
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 17, 2006 8:01 AM
To: [email protected]
Subject: [xfire-user] WS With JAXB
Importance: Low
Hi all!
I tries to expose a WS with JAXB on my OC4J app server.
In the example on xfire.codehaus.org it says:
Put this in services.xml
//
<beans xmlns="http://xfire.codehaus.org/config/1.0">
<service>
<name>BookService</name>
<namespace>http://xfire.codehaus.org/BookService</namespace>
<serviceClass>org.codehaus.xfire.demo.BookService</serviceClass>
<serviceFactory>org.codehaus.xfire.jaxb2.JaxbServiceFactory</serviceFact
ory>
</service>
</beans>
//
I havent got that xml file.
I have a web.xml with mapping to XFireServlet.xml
In XFireServlet.xml i have a url-map with entrykeys for all the WS:s:
Can I tell XFire to use JAXB for binding somewhere else?
Any good ideas?
The appserver restarts and shows:
...remoting.Jsr181HandlerMapping Rejected bean 'dataSource' since it has
no WebService annotation
...remoting.Jsr181HandlerMapping Exposing service
{http://yyy.xxx.com}XWebService to /services/XWebService
...DefaultTransportManager Registered transport
[EMAIL PROTECTED]
...Jsr181HandlerMapping Mapped URL path [/services/XWebService] onto
handler [org.codehaus.xfire.spring.remoting.XF...
Doesnt seems too bad... ?
But I cant get any ?wsdl file just gets a 500-error and system.out from
oc4j are totalt quiet...
Give me some good ideas???
Best regards!
/Fredde
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com
http://netzooid.com/blog
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com
http://netzooid.com/blog
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email