WS-Security user name tested in a web service method ?
Hi all, I have configured my web service to use a WS-Security Username Token Authentication (http://cwiki.apache.org/CXF20DOC/ws-security.html) and I'd like to know which WS-Security user is operating a method in my web service. Is it possible to do something like that (and if yes how ?) : @WebService(endpointInterface = tests.services.HelloWorld, serviceName = HelloWorld) public class HelloWorldImpl implements HelloWorld { public String sayHi() { // How to get the userName ? // return Hello + userName; } } Thanks in advance ! Regards, Loïc -- View this message in context: http://www.nabble.com/WS-Security-user-name-tested-in-a-web-service-method---tp14948049p14948049.html Sent from the cxf-user mailing list archive at Nabble.com.
Jax-rs issue
Hi All, I am using JAX-RS for my RESTful web service with security. I am able to execute the sample in 2.1 snapshot when i try for the spring configuration it fail. Can anyone tell me whats wrong or is that any configuration needs to be done. I use the application level tomcat.( Do i need to do any changes to my server.xml in tomcat for https configuration.) *my web.xml and bean.xml and the service class are same as in sample. ERROR: Jan 18, 2008 3:58:57 PM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.6.0_04\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\eclipse\jdk1.6.0_04\jre\bin Jan 18, 2008 3:58:57 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jan 18, 2008 3:58:57 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1155 ms Jan 18, 2008 3:58:57 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jan 18, 2008 3:58:57 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 Jan 18, 2008 3:58:57 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(C:\Documents and Settings\sspriya\REST - CXF\final with news\back-up_07\With drools\back-up\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\sfe-wss\WEB-INF\lib\geronimo-servlet_2.5_spec- 1.1-M1.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Jan 18, 2008 3:58:58 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(C:\Documents and Settings\sspriya\REST - CXF\final with news\back-up_07\With drools\back-up\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\sfe-wss\WEB-INF\lib\servlet- api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Jan 18, 2008 3:58:59 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext Jan 18, 2008 3:59:03 PM org.apache.cxf.endpoint.ServerImpl initDestination INFO: Setting the server's publish address to be / Jan 18, 2008 3:59:03 PM org.apache.cxf.transport.servlet.CXFServlet loadSpringBus INFO: Load the bus with application context Jan 18, 2008 3:59:03 PM org.apache.cxf.bus.spring.BusApplicationContext getConfigResources INFO: Could not find the configuration file C:\Documents and Settings\sspriya\REST - CXF\final with news\back-up_07\With drools\back-up\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\sfe-wss\WEB-INF\classes\CherryServer.cxf on the classpath. Jan 18, 2008 3:59:03 PM org.apache.cxf.transport.servlet.AbstractCXFServlet replaceDestinationFactory INFO: Servlet transport factory already registered Jan 18, 2008 3:59:03 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Jan 18, 2008 3:59:03 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jan 18, 2008 3:59:03 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/63 config=null Jan 18, 2008 3:59:03 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 6739 ms Jan 18, 2008 3:59:04 PM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor handleMessage INFO: Request path is: / Jan 18, 2008 3:59:04 PM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor handleMessage INFO: Request HTTP method is: GET Jan 18, 2008 3:59:04 PM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor handleMessage INFO: Request contentType is: */* Jan 18, 2008 3:59:04 PM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor handleMessage INFO: Accept contentType is: */* Jan 18, 2008 3:59:04 PM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor handleMessage SEVERE: No operation found for path: /, contentType: */*, Accept contentType: */* Jan 18, 2008 3:59:04 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor has thrown exception, unwinding now java.lang.NullPointerException at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:102) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java :207) at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78) at org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDestination.java:79) at org.apache.cxf.transport.servlet.ServletController.invokeDestination (ServletController.java:264) at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:170) at
XmlJavaTypeAdapter not being called
Oops, starting new thread as forgot to change the subject. Apologies for the spam: Greetings! I am evaluating CXF as a replacement for Axis and have run into a bit of a problem. My requirement is to ensure that the wsdl generated by CXF matches the wsdl produced by our old services. The main problem I am facing is with customising the return types/parameters of a method with regards to dates. We are using the JodaTime library internally but want to send a dateTime element over the wire. Typical methods exposed on an SEI might look something like these: Public LocalDate getDayCheeseExpires() {...} Public void getCheeseByDate(LocalDate date) ()... The WSDL representation of LocalDate on the wire needs to be a xsd:dateTime. From reading the literature available and searching the mailing lists it appears that I cannot simply register an XmlAdapter for LocalDate (I have tried and it doesn't appear to work). I have also tried wrapping the return type in a DateTO which is annotated with: @XmlType(name=dateTime, namespace = http://www.w3.org/2001/XMLSchema;) @XmlJavaTypeAdapter(DateTOAdapter.class) I was under the impression that JAXB would invoke my adapter when it encountered a DateTO. The methods in DateTOAdapter don't appear to be invoked when I invoke the web service. In fact JAXB complains on context initialisation that: Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions org.joda.time.DateTimeFieldType does not have a no-arg default constructor. this problem is related to the following location: at org.joda.time.DateTimeFieldType at org.joda.time.DateTimeFieldType[] My DateTO looks like: @XmlJavaTypeAdapter(DateTOAdapter.class) @XmlType(name=dateTime, namespace = http://www.w3.org/2001/XMLSchema;) public class DateTO { private LocalDate date; public DateTO() { date = null; } public DateTO(LocalDate o) { this.date = o; } public LocalDate getDate() { return date; } } I am a complete n00b to both CXF and JAXB having been playing with Xfire + Aegis bindings until now. Is it possible to do what I want with CXF/JAXB and the JAXB front end? Best regards, James lewis *** The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorised and regulated by the Financial Services Authority This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate. Visit our websites at: www.rbs.com www.rbs.com/gbm www.rbsgc.com *** __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
RE: CXFServlet
Greetings! I am evaluating CXF as a replacement for Axis and have run into a bit of a problem. My requirement is to ensure that the wsdl generated by CXF matches the wsdl produced by our old services. The main problem I am facing is with customising the return types/parameters of a method with regards to dates. We are using the JodaTime library internally but want to send a dateTime element over the wire. Typical methods exposed on an SEI might look something like these: Public LocalDate getDayCheeseExpires() {...} Public void getCheeseByDate(LocalDate date) ()... The WSDL representation of LocalDate on the wire needs to be a xsd:dateTime. From reading the literature available and searching the mailing lists it appears that I cannot simply register an XmlAdapter for LocalDate (I have tried and it doesn't appear to work). I have also tried wrapping the return type in a DateTO which is annotated with: @XmlType(name=dateTime, namespace = http://www.w3.org/2001/XMLSchema;) @XmlJavaTypeAdapter(DateTOAdapter.class) I was under the impression that JAXB would invoke my adapter when it encountered a DateTO. The methods in DateTOAdapter don't appear to be invoked when I invoke the web service. In fact JAXB complains on context initialisation that: Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions org.joda.time.DateTimeFieldType does not have a no-arg default constructor. this problem is related to the following location: at org.joda.time.DateTimeFieldType at org.joda.time.DateTimeFieldType[] My DateTO looks like: @XmlJavaTypeAdapter(DateTOAdapter.class) @XmlType(name=dateTime, namespace = http://www.w3.org/2001/XMLSchema;) public class DateTO { private LocalDate date; public DateTO() { date = null; } public DateTO(LocalDate o) { this.date = o; } public LocalDate getDate() { return date; } } I am a complete n00b to both CXF and JAXB having been playing with Xfire + Aegis bindings until now. Is it possible to do what I want with CXF/JAXB and the JAXB front end? Best regards, James lewis *** The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorised and regulated by the Financial Services Authority This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate. Visit our websites at: www.rbs.com www.rbs.com/gbm www.rbsgc.com *** __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
CXF-2.0.4 release?
I'm waiting for CXF-2.0.4 (i'm interested in the correction of the CXF-1332 issue). According with the roadmap, this version was targeted for Jan 15, but it's not downloadable yet. It's a simply few day late, or the release has been postponed? Bye Marco.
Re: CXF-2.0.4 release?
On Friday 18 January 2008, Marco Piraccini wrote: I'm waiting for CXF-2.0.4 (i'm interested in the correction of the CXF-1332 issue). According with the roadmap, this version was targeted for Jan 15, but it's not downloadable yet. It's a simply few day late, or the release has been postponed? There are two issues that need resolving first: 1) New shade plugin for the creation of the bundle jar. The vote for that is going on on [EMAIL PROTECTED] right now. Hopefully it will pass this weekend. 2) TCK failures - I ran the TCK on wednesday and there are a couple of test failures that need to be resolved before the release. I'm digging into them now. This is vital as we cannot release with these failures. I'm not too concerned about #1. That should happen fine.#2 is a major road block. The tests were passing a couple weeks ago so it's something I merged recently. Probably something for 2.1 that I shouldn't have merged. I'm wading back through the changes to see what I can find.I'm hoping to build on Monday. -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog
WS Security - How do I stop a man in the middle?
Hello, I am testing CXF 2.0.3 incubator. I have a java first / spring working example of both the request and response using WSS4J Timestamp and Signature. I was wondering if anyone has a suggestion on how to prevent a man in the middle from replaying the request (if he does this before the Timestamp expires)? **I can't verify his IP address because he will be coming through a firewall. I do plan on encrypting the data and that would probably make this a non-issue, but I am still having issues trying to get encryption to work. Any suggestions would be appreciated.
WSDL retrieval at runtime, is it required?
Hi, I have already used wsdl2java -client to generate client code to access a CXF service. The WSDL that I provided does include service endpoint information. I see that, now at runtime the client code tries to retrieve the WSDL again (see the stacktrace below), why? Does it only do it to extract the service location information? Why didn't the generated code cache location information? Is there anyway to avoid it? Exception in thread main javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service. at org.apache.cxf.jaxws.ServiceImpl.init(ServiceImpl.java:132) at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl .java:65) at javax.xml.ws.Service.init(Service.java:56) at msjava.examples.calculator.client.CalculatorService.init(CalculatorSer vice.java:41) at msjava.examples.calculator.client.Calculator_CalculatorJettyHTTPPort_Cli ent.main(Calculator_CalculatorJettyHTTPPort_Client.java:53) Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service. at org.apache.cxf.wsdl11.WSDLServiceFactory.init(WSDLServiceFactory.java: 83) at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:138) at org.apache.cxf.jaxws.ServiceImpl.init(ServiceImpl.java:130) ... 4 more Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'http://pa912c1n5:8091/Calculator/Calculator'.: java.net.ConnectException: Connection refused: connect at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.jav a:199) at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java :163) at org.apache.cxf.wsdl11.WSDLServiceFactory.init(WSDLServiceFactory.java: 81) Thanx -yogen NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
JMS and CXF: I want a ws method to handle only one message at a time
I use CXF-ApacheMQ to deploy different Web Service with a JMS binding. One of these WS has a one way method that should only de-queue and handle one message at a time (from the JMS queue)...In short, a JMS-consumer that is processing a message (for this one way method) should be unavailable until the end of the execution. I can't reproduce this behaviour in my environment. Is there a way to configure this? Any ideas? Benjamin Coiffe
Re: WSDL retrieval at runtime, is it required?
Am Freitag, den 18.01.2008, 10:49 -0500 schrieb Yadav, Yogendra (IT): Hi, I have already used wsdl2java -client to generate client code to access a CXF service. The WSDL that I provided does include service endpoint information. I see that, now at runtime the client code tries to retrieve the WSDL again (see the stacktrace below), why? Does it only do it to extract the service location information? Why didn't the generated code cache location information? Is there anyway to avoid it? http://blogs.sun.com/arungupta/entry/totd_16_optimizing_metro_stubs? Glen
Setting the HTTP response code
Hello: Is it possible to explicitly set the HTTP response code from within an SEI implementation? I'm creating a RESTful interface, and it looks like a good approach (RESTful Web Services, Richardson Ruby, O'Reilly, 2007) is to use a variety of HTTP response codes. Like, if a given ID for a GET request does not refer to an existing object, one can return status code 404 (not found) with no entity body. Right now, I can throw an exception and have the fault info marshaled as the entity body. But, the response code is always 500 (internal server error). I'm doing this based on the restful_http_binding sample code. Anyway, within the SEI implementation, I have the request object, and I'm populating the response object. Beyond throwing an exception, how do I influence what CXF returns response code/body wise. Thanks! Jeff -- View this message in context: http://www.nabble.com/Setting-the-HTTP-response-code-tp14960063p14960063.html Sent from the cxf-user mailing list archive at Nabble.com.
Re: Missing Schema?
David Hodge wrote: Where is the schema? In the documentation it should be here : http://cxf.apache.org/schemas/jaxws.xsd But it is not. Any one else have this issue? The schemas live inside the CXF JAR files. Spring remaps the locations internally but if you want to just look at the schema it's in subversion at http://svn.apache.org/repos/asf/incubator/cxf/trunk/rt/frontend/jaxws/src/main/resources/schemas/jaxws.xsd Ian -- Ian Roberts | Department of Computer Science [EMAIL PROTECTED] | University of Sheffield, UK
Re: Jax-rs issue
Hello Priya, I will email you a zip file containing a modified version of the basic jax-rs demo using spring off-list (using maven jetty). It should give you an idea of how to use jax-rs along with spring in a webapp. You will of course need to modify your tomcat configuration to enable https. regards, --Frank On Fri, 2008-01-18 at 01:31 -0800, priya j wrote: Hi All, I am using JAX-RS for my RESTful web service with security. I am able to execute the sample in 2.1 snapshot when i try for the spring configuration it fail. Can anyone tell me whats wrong or is that any configuration needs to be done. I use the application level tomcat.( Do i need to do any changes to my server.xml in tomcat for https configuration.) *my web.xml and bean.xml and the service class are same as in sample. ERROR: Jan 18, 2008 3:58:57 PM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.6.0_04\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\eclipse\jdk1.6.0_04\jre\bin Jan 18, 2008 3:58:57 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jan 18, 2008 3:58:57 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1155 ms Jan 18, 2008 3:58:57 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jan 18, 2008 3:58:57 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 Jan 18, 2008 3:58:57 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(C:\Documents and Settings\sspriya\REST - CXF\final with news\back-up_07\With drools\back-up\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\sfe-wss\WEB-INF\lib\geronimo-servlet_2.5_spec- 1.1-M1.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Jan 18, 2008 3:58:58 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(C:\Documents and Settings\sspriya\REST - CXF\final with news\back-up_07\With drools\back-up\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\sfe-wss\WEB-INF\lib\servlet- api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Jan 18, 2008 3:58:59 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext Jan 18, 2008 3:59:03 PM org.apache.cxf.endpoint.ServerImpl initDestination INFO: Setting the server's publish address to be / Jan 18, 2008 3:59:03 PM org.apache.cxf.transport.servlet.CXFServlet loadSpringBus INFO: Load the bus with application context Jan 18, 2008 3:59:03 PM org.apache.cxf.bus.spring.BusApplicationContext getConfigResources INFO: Could not find the configuration file C:\Documents and Settings\sspriya\REST - CXF\final with news\back-up_07\With drools\back-up\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\sfe-wss\WEB-INF\classes\CherryServer.cxf on the classpath. Jan 18, 2008 3:59:03 PM org.apache.cxf.transport.servlet.AbstractCXFServlet replaceDestinationFactory INFO: Servlet transport factory already registered Jan 18, 2008 3:59:03 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Jan 18, 2008 3:59:03 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jan 18, 2008 3:59:03 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/63 config=null Jan 18, 2008 3:59:03 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 6739 ms Jan 18, 2008 3:59:04 PM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor handleMessage INFO: Request path is: / Jan 18, 2008 3:59:04 PM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor handleMessage INFO: Request HTTP method is: GET Jan 18, 2008 3:59:04 PM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor handleMessage INFO: Request contentType is: */* Jan 18, 2008 3:59:04 PM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor handleMessage INFO: Accept contentType is: */* Jan 18, 2008 3:59:04 PM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor handleMessage SEVERE: No operation found for path: /, contentType: */*, Accept contentType: */* Jan 18, 2008 3:59:04 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor has thrown exception, unwinding now java.lang.NullPointerException at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:102) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java :207) at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78) at
Problem with relative path schema import using Maven wsdl2java in 2.0.3
I tried to update a Maven project from 2.0.2 to 2.0.3. After updating the versions in my pom.xml, I get the following error: WSDLToJava Error : WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at 'DDMS-v1_3-JFCOM.xsd' relative to document base 'file:src/main/wsdl/Flight.wsdl' I verified that it's using the project root as the basedir, rather than src/main/wsdl like it claims, by copying the imported schema files to the project root. At that point, the build passes. This doesn't sound quite the same as the discussion on: http://issues.apache.org/jira/browse/CXF-1140 Perhaps it's only applicable to the Maven plugin? Any ideas? Should I enter a new bug? Thanks, Stephen Duncan Jr -- View this message in context: http://www.nabble.com/Problem-with-relative-path-schema-import-using-Maven-wsdl2java-in-2.0.3-tp14957138p14957138.html Sent from the cxf-user mailing list archive at Nabble.com.
Re: About sample integration\JBI\external_provider_internal_consumer
... (after stoping shuting down CXF Service Engine) then I try to uninstall CSE, but I got the following message on ServiceMix console: INFO - JBIContainer - Deactivating component CXFServiceEngine Jan 18, 2008 2:56:59 PM org.apache.cxf.jbi.se.CXFBootstrap onUninstall INFO: Bootstrap.onUninstall called Jan 18, 2008 2:56:59 PM org.apache.cxf.jbi.se.CXFBootstrap cleanUp INFO: Bootstrap.cleanUp called WARN - EnvironmentContext - Failed to remove directory structure for component [version]: CXFServiceEngine [CXFServiceEngine] The ServiceMix failed to remove CSE, further more this caused that we can not install CSE next time. (the workaround is to manually remove the CSE folder). Could someone confirm this issue? Thanks, YI (William) ZHU wrote: When I stop CXF Service Engine component, I got the following message from ServiceMix console: INFO - ComponentMBeanImpl - Stopping component: CXFServiceEngine Jan 18, 2008 2:48:23 PM org.apache.cxf.jbi.se.CXFServiceEngine stop INFO: CXFServiceEngine stopped Jan 18, 2008 2:48:23 PM org.apache.cxf.jbi.se.state.ServiceEngineStart changeState INFO: in start state Is the information given in start state correct? seems it should be in stop state. Could anyone anwser this question? Thanks, YI (William) ZHU wrote: Hi, I'm studing the sample integration\JBI\external_provider_internal_consumer of CXF 2.0.2. I followed the README, when I started the CXF Service Engine, I found the following message on ServiceMix console: ... SEVERE: Could not find Apache CXF configuration in C:\apps\servicemix321\data\smx\components\CXFServiceEngine\version_1\META-INF ... ...ServiceEngineShutdown changeState INFO: in shutdown state ... It seems that CXF Service Engine was shutdown, but when I continue to Deploy and start CXF demo service assembly, everything were working. First, I don't understand why when there is a SEVERE error, the example still works; Second, actually there is a file cxf-config.xml under that folder, but with empty contents; Could anyone help answer this question? Thanks, YI ZHU (details as below) Jan 16, 2008 1:50:15 PM org.apache.cxf.jbi.se.CXFBootstrap init INFO: Bootstrap.init called Jan 16, 2008 1:50:15 PM org.apache.cxf.jbi.se.CXFBootstrap onInstall INFO: Bootstrap.onInstall called Jan 16, 2008 1:50:16 PM org.apache.cxf.jbi.se.CXFBootstrap cleanUp INFO: Bootstrap.cleanUp called INFO - ComponentMBeanImpl - Starting component: CXFServiceEngine INFO - ComponentMBeanImpl - Initializing component: CXFServiceEngine Jan 16, 2008 1:50:33 PM org.apache.cxf.jbi.se.state.ServiceEngineShutdown changeState INFO: in shutdown state Jan 16, 2008 1:50:33 PM org.apache.cxf.jbi.se.state.ServiceEngineShutdown initSE SEVERE: Could not find Apache CXF configuration in C:\apps\servicemix321\data\smx\components\CXFServiceEngine\version_1\META-INF Jan 16, 2008 1:50:33 PM org.apache.cxf.jbi.se.state.ServiceEngineShutdown initializeBus INFO: initializing bus Jan 16, 2008 1:50:41 PM org.apache.cxf.jbi.se.state.ServiceEngineShutdown initializeBus INFO: init bus complete Jan 16, 2008 1:50:41 PM org.apache.cxf.transport.jbi.JBITransportFactory setDeliveryChannel INFO: configuring DeliveryChannel: DeliveryChannel{CXFServiceEngine} Jan 16, 2008 1:50:41 PM org.apache.cxf.jbi.se.state.ServiceEngineShutdown initSE INFO: Apache CXF Service Engine installation root:C:\apps\servicemix321\data\smx\components\CXFServiceEngine\version_1 Jan 16, 2008 1:50:41 PM org.apache.cxf.jbi.se.state.ServiceEngineShutdown initSE INFO: CXF Service Engine init complete Jan 16, 2008 1:50:41 PM org.apache.cxf.jbi.se.CXFServiceEngine start INFO: CXFServiceEngine starting Jan 16, 2008 1:50:41 PM org.apache.cxf.jbi.se.state.ServiceEngineStop changeState INFO: in stop state Jan 16, 2008 1:50:41 PM org.apache.cxf.transport.jbi.JBITransportFactory setDeliveryChannel INFO: configuring DeliveryChannel: DeliveryChannel{CXFServiceEngine} Jan 16, 2008 1:50:41 PM org.apache.cxf.jbi.se.state.ServiceEngineStop startSE INFO: CXFServiceEngine startup complete -- View this message in context: http://www.nabble.com/About-sample-%22integration%5CJBI%5Cexternal_provider_internal_consumer%22-tp14889400p14957786.html Sent from the cxf-user mailing list archive at Nabble.com.
AccessControlException: access denied upon deploying to Tomcat-5.5
I built the wsdl_first sample and attempted to depoy the war to Tomcat-5.5. The tomcat manager shows that the web app is deployed and in the running state, however, neither the service nor even the WSDL urls produce results. (get a not found error) The log shows the following error: 2008-01-18 11:19:50,807 - Servlet /hw/webapp threw load() exception java.security.AccessControlException: access denied (javax.xml.ws.WebServicePermission publishEndpoint) at java.security.AccessControlContext.checkPermission(AccessControlContext. java:323) at java.security.AccessController.checkPermission(AccessController.java:546 ) [...] I read the readme's and FAQs and did a web search for this and only came up with two other hits of similar problems, but without a solution: http://forum.java.sun.com/thread.jspa?threadID=5166767messageID=9638582 http://bugs.caucho.com/view.php?id=2270 The question is, am I supposed to make some sort of configuration adjustment? How do I deploy and run the wsdl_first sample war in Tomcat-5.5? Full stack trace follows: 2008-01-18 11:19:50,807 - Servlet /hw/webapp threw load() exception java.security.AccessControlException: access denied (javax.xml.ws.WebServicePermission publishEndpoint) at java.security.AccessControlContext.checkPermission(AccessControlContext. java:323) at java.security.AccessController.checkPermission(AccessController.java:546 ) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at org.apache.cxf.jaxws.EndpointImpl.checkPublishPermission(EndpointImpl.ja va:333) at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:225) at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:179) at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:340) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac tory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1214 ) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac tory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1179) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac tory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac tory.createBean(AbstractAutowireCapableBeanFactory.java:427) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec t(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g etSingleton(DefaultSingletonBeanRegistry.java:144) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab stractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab stractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.pre InstantiateSingletons(DefaultListableBeanFactory.java:279) at org.springframework.context.support.AbstractApplicationContext.refresh(A bstractApplicationContext.java:360) at org.apache.cxf.transport.servlet.CXFServlet.loadAdditionalConfig(CXFServ let.java:203) at org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus(CXFServlet.jav a:171) at org.apache.cxf.transport.servlet.CXFServlet.init(CXFServlet.java:98) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.jav a:161) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.jav a:114) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:1099) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
Re: About sample integration\JBI\external_provider_internal_consumer
When I stop CXF Service Engine component, I got the following message from ServiceMix console: INFO - ComponentMBeanImpl - Stopping component: CXFServiceEngine Jan 18, 2008 2:48:23 PM org.apache.cxf.jbi.se.CXFServiceEngine stop INFO: CXFServiceEngine stopped Jan 18, 2008 2:48:23 PM org.apache.cxf.jbi.se.state.ServiceEngineStart changeState INFO: in start state Is the information given in start state correct? seems it should be in stop state. Could anyone anwser this question? Thanks, YI (William) ZHU wrote: Hi, I'm studing the sample integration\JBI\external_provider_internal_consumer of CXF 2.0.2. I followed the README, when I started the CXF Service Engine, I found the following message on ServiceMix console: ... SEVERE: Could not find Apache CXF configuration in C:\apps\servicemix321\data\smx\components\CXFServiceEngine\version_1\META-INF ... ...ServiceEngineShutdown changeState INFO: in shutdown state ... It seems that CXF Service Engine was shutdown, but when I continue to Deploy and start CXF demo service assembly, everything were working. First, I don't understand why when there is a SEVERE error, the example still works; Second, actually there is a file cxf-config.xml under that folder, but with empty contents; Could anyone help answer this question? Thanks, YI ZHU (details as below) Jan 16, 2008 1:50:15 PM org.apache.cxf.jbi.se.CXFBootstrap init INFO: Bootstrap.init called Jan 16, 2008 1:50:15 PM org.apache.cxf.jbi.se.CXFBootstrap onInstall INFO: Bootstrap.onInstall called Jan 16, 2008 1:50:16 PM org.apache.cxf.jbi.se.CXFBootstrap cleanUp INFO: Bootstrap.cleanUp called INFO - ComponentMBeanImpl - Starting component: CXFServiceEngine INFO - ComponentMBeanImpl - Initializing component: CXFServiceEngine Jan 16, 2008 1:50:33 PM org.apache.cxf.jbi.se.state.ServiceEngineShutdown changeState INFO: in shutdown state Jan 16, 2008 1:50:33 PM org.apache.cxf.jbi.se.state.ServiceEngineShutdown initSE SEVERE: Could not find Apache CXF configuration in C:\apps\servicemix321\data\smx\components\CXFServiceEngine\version_1\META-INF Jan 16, 2008 1:50:33 PM org.apache.cxf.jbi.se.state.ServiceEngineShutdown initializeBus INFO: initializing bus Jan 16, 2008 1:50:41 PM org.apache.cxf.jbi.se.state.ServiceEngineShutdown initializeBus INFO: init bus complete Jan 16, 2008 1:50:41 PM org.apache.cxf.transport.jbi.JBITransportFactory setDeliveryChannel INFO: configuring DeliveryChannel: DeliveryChannel{CXFServiceEngine} Jan 16, 2008 1:50:41 PM org.apache.cxf.jbi.se.state.ServiceEngineShutdown initSE INFO: Apache CXF Service Engine installation root:C:\apps\servicemix321\data\smx\components\CXFServiceEngine\version_1 Jan 16, 2008 1:50:41 PM org.apache.cxf.jbi.se.state.ServiceEngineShutdown initSE INFO: CXF Service Engine init complete Jan 16, 2008 1:50:41 PM org.apache.cxf.jbi.se.CXFServiceEngine start INFO: CXFServiceEngine starting Jan 16, 2008 1:50:41 PM org.apache.cxf.jbi.se.state.ServiceEngineStop changeState INFO: in stop state Jan 16, 2008 1:50:41 PM org.apache.cxf.transport.jbi.JBITransportFactory setDeliveryChannel INFO: configuring DeliveryChannel: DeliveryChannel{CXFServiceEngine} Jan 16, 2008 1:50:41 PM org.apache.cxf.jbi.se.state.ServiceEngineStop startSE INFO: CXFServiceEngine startup complete -- View this message in context: http://www.nabble.com/About-sample-%22integration%5CJBI%5Cexternal_provider_internal_consumer%22-tp14889400p1495.html Sent from the cxf-user mailing list archive at Nabble.com.
Missing Schema?
Where is the schema? In the documentation it should be here : http://cxf.apache.org/schemas/jaxws.xsd But it is not. Any one else have this issue? Thanks, David Y. Hodge
Re: Jax-rs issue
Hi, when i try executing my rs-basic (with https) in eclipse, the server through a null pointer exception but my client works. I am not sure whats wrong. Then my other issue is if im changing to https. what are the config i need to do. As far as i know i have changed my server.xml in tomcat Connector SSLEnabled=true clientAuth=false maxThreads=150 port=8443 protocol=HTTP/1.1 scheme=https secure=true sslProtocol=TLS/ and set my server argument to the cherryserver. Is that anything else need to be done Can anyone pl guide me. waiting for the reply asap. Regards, Priya priya j wrote: Hi All, I am using JAX-RS for my RESTful web service with security. I am able to execute the sample in 2.1 snapshot when i try for the spring configuration it fail. Can anyone tell me whats wrong or is that any configuration needs to be done. I use the application level tomcat.( Do i need to do any changes to my server.xml in tomcat for https configuration.) *my web.xml and bean.xml and the service class are same as in sample. ERROR: Jan 18, 2008 3:58:57 PM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.6.0_04\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\eclipse\jdk1.6.0_04\jre\bin Jan 18, 2008 3:58:57 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jan 18, 2008 3:58:57 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1155 ms Jan 18, 2008 3:58:57 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jan 18, 2008 3:58:57 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 Jan 18, 2008 3:58:57 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(C:\Documents and Settings\sspriya\REST - CXF\final with news\back-up_07\With drools\back-up\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\sfe-wss\WEB-INF\lib\geronimo-servlet_2.5_spec- 1.1-M1.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Jan 18, 2008 3:58:58 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(C:\Documents and Settings\sspriya\REST - CXF\final with news\back-up_07\With drools\back-up\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\sfe-wss\WEB-INF\lib\servlet- api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class Jan 18, 2008 3:58:59 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext Jan 18, 2008 3:59:03 PM org.apache.cxf.endpoint.ServerImpl initDestination INFO: Setting the server's publish address to be / Jan 18, 2008 3:59:03 PM org.apache.cxf.transport.servlet.CXFServlet loadSpringBus INFO: Load the bus with application context Jan 18, 2008 3:59:03 PM org.apache.cxf.bus.spring.BusApplicationContext getConfigResources INFO: Could not find the configuration file C:\Documents and Settings\sspriya\REST - CXF\final with news\back-up_07\With drools\back-up\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\sfe-wss\WEB-INF\classes\CherryServer.cxf on the classpath. Jan 18, 2008 3:59:03 PM org.apache.cxf.transport.servlet.AbstractCXFServlet replaceDestinationFactory INFO: Servlet transport factory already registered Jan 18, 2008 3:59:03 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Jan 18, 2008 3:59:03 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jan 18, 2008 3:59:03 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/63 config=null Jan 18, 2008 3:59:03 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 6739 ms Jan 18, 2008 3:59:04 PM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor handleMessage INFO: Request path is: / Jan 18, 2008 3:59:04 PM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor handleMessage INFO: Request HTTP method is: GET Jan 18, 2008 3:59:04 PM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor handleMessage INFO: Request contentType is: */* Jan 18, 2008 3:59:04 PM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor handleMessage INFO: Accept contentType is: */* Jan 18, 2008 3:59:04 PM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor handleMessage SEVERE: No operation found for path: /, contentType: */*, Accept contentType: */* Jan 18, 2008 3:59:04 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor has thrown exception, unwinding now java.lang.NullPointerException at
Re: WebMethod parameter is null - JAXB binding failure?
I was running with same case today, but since you didn't mention how did you generate the client... in my case I was using ClientProxyFactoryBean and it seems to be badly enconding the soap request like if it doesn't read the jaxws annotations, so I tried with JaxWsProxyFactoryBean and it worked! so I hope that my comments were helpful to you. regards, mcobery wrote: Hi, I have been trying to convert the JAXB 2.0 example from XFire to use CXF and am having trouble with what I believe is a JAXB binding issue. I am using CVF 2.0.3. I am using the generated JAXB 2.0 java source files from the XFire example which are annotated. They are not generated with each build, but instead included in the project source. When my WeatherServiceImpl class receives the request, the body parameter of the WebMethod is null. I have included the WeatherService interface and its implementation. I have also included my configuration file and web.xml. Any help would be greatly appreciated. I feel like I am not far off from getting working. Thanks in advance for any help, Marc Here is the WeatherService : package org.codehaus.xfire.jaxb; // START SNIPPET: service import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebService; import net.webservicex.GetWeatherByZipCode; import net.webservicex.GetWeatherByZipCodeResponse; @WebService(name=WeatherServiceIntf, targetNamespace=http://www.webservicex.net;) public interface WeatherService { @WebMethod GetWeatherByZipCodeResponse GetWeatherByZipCode(@WebParam(name=GetWeatherByZipCode) GetWeatherByZipCode body); } // END SNIPPET: service Here is the WeatherServiceImpl: package org.codehaus.xfire.jaxb; //START SNIPPET: service import javax.jws.WebService; import javax.jws.soap.SOAPBinding; import net.webservicex.GetWeatherByZipCode; import net.webservicex.GetWeatherByZipCodeResponse; import net.webservicex.WeatherForecastsType; /** * @author mailto:[EMAIL PROTECTED] Dan Diephouse */ @WebService(endpointInterface=org.codehaus.xfire.jaxb.WeatherService, serviceName=WeatherService) @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.BARE,use=SOAPBinding.Use.LITERAL) public class WeatherServiceImpl implements WeatherService { public GetWeatherByZipCodeResponse GetWeatherByZipCode(GetWeatherByZipCode body) { GetWeatherByZipCodeResponse res = new GetWeatherByZipCodeResponse(); //THIS NEXT LINE IS WHERE I GET A NULLPOINTEREXCEPTION String zipCode = body.getZipCode(); WeatherForecastsType weather = new WeatherForecastsType(); weather.setLatitude(1); weather.setLongitude(1); weather.setPlaceName(Vienna, AT); weather.setAllocationFactor(1); res.setGetWeatherByZipCodeResult(weather); return res; } } //END SNIPPET: service Here the web.xml: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app context-param param-namecontextConfigLocation/param-name param-value classpath:cxf-services.xml /param-value /context-param listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener servlet servlet-nameCXFServlet/servlet-name display-nameCXF Servlet/display-name servlet-class org.apache.cxf.transport.servlet.CXFServlet /servlet-class /servlet servlet-mapping servlet-nameCXFServlet/servlet-name url-pattern/cxf-services/*/url-pattern /servlet-mapping /web-app Here is my configuration file, cxf-services.xml: ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:jaxws=http://cxf.apache.org/jaxws; xsi:schemaLocation= http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd; import resource=classpath:META-INF/cxf/cxf.xml / import resource=classpath:META-INF/cxf/cxf-extension-soap.xml / import resource=classpath:META-INF/cxf/cxf-servlet.xml / bean id=theService class=org.codehaus.xfire.jaxb.WeatherServiceImpl/ bean id=jaxbContext class=com.rulestream.core.shared.xml.JAXBContextFactoryBean property name=packages value=net.webservicex:org.codehaus.xfire.jaxb/ /bean bean id=jaxbBinding class=org.apache.cxf.jaxb.JAXBDataBinding property name=context ref=jaxbContext/ /bean !-- jaxws:endpoint id=serviceSoapEndPoint implementor=#theService address=/theService jaxws:serviceFactory bean