Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-07-09 Thread chi runhua
I notified CXF community about doc problem, see if they can find someone to update the tutorial. http://www.nabble.com/Problem-in-writing-a-service-with-spring-tutorial-td24387574.html Jeff C On Tue, Jul 7, 2009 at 2:50 AM, Westhveg westhstud...@gmail.com wrote: Jarek, Finally, it works.

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-07-06 Thread Westhveg
Can anyone help me, please? Thanks, Westhveg Westhveg wrote: And if I try to test the webservice developing this spring client: ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-07-06 Thread Jarek Gawor
Westhveg, Let's back up a little. You have two options for deploying your web service: 1) Deploy your web application WITH all cxf and spring jars but you MUST: a) start the server with -Dorg.apache.geronimo.jaxws.builder.useSimpleFinder=true AND b) specify a bunch of filters in

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-07-06 Thread Westhveg
Jarek, Finally, it works. I've followed the second way. I have to do this: · Remove the spring listener from web.xml · Keep the spring contextConfigLocation in web.xml · Keep CXF Servlet but calling my interface insted of 'org.apache.cxf.transport.servlet.CXFServlet'. Thanks a lot for your

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-06-30 Thread chi runhua
Collect the usage of org.apache.geronimo.jaxws.builder.useSimpleFinder as followed into (1): org.apache.geronimo.jaxws.builder.useSimpleFinder Applied commands: TODO Option: true, false Default: not set Description: Use SimpleWARWebServiceFinder to locate WebServiceInfo objects,otherwise use

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-06-30 Thread Westhveg
Hello RunHua Chi, I'm using windows so I edit geronimo.bat (that is executed by eclipse plugin) by this way: set GERONIMO_OPTS=%GERONIMO_OPTS% %JPDA_OPTS% to set GERONIMO_OPTS=-Dorg.apache.geronimo.jaxws.builder.useSimpleFinder=true Thanks, Westhveg RunHua Chi wrote: Collect the usage

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-06-30 Thread Westhveg
In order to give us more information, I'm following this tutorial: http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.html But I don't use the same version for all libraries (I use the highest I found): commons-logging-1.1.jar · geronimo-activation_1.1_spec-1.0-M1.jar --

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-06-30 Thread Jarek Gawor
You might also want to add: dep:filterMETA-INF/cxf/dep:filter I don't know where org.xmlsoap.schemas.wsdl.http.AddressType comes from but you could try adding a filter for its package as well. Jarek On Mon, Jun 29, 2009 at 3:08 PM, Westhvegwesthstud...@gmail.com wrote: Jarek, Thanks for

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-06-30 Thread Jarek Gawor
You have to remove both, CXF and Spring. And please include a full stack trace to see what's loading that org.springframework.context.ApplicationListener class. Jarek On Mon, Jun 29, 2009 at 3:56 PM, Westhvegwesthstud...@gmail.com wrote: And if I remove the spring or cfx jar files from WAR, I

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-06-30 Thread Westhveg
Hi Jarek, Removing both jars, the exception is: Distribution of module failed. See log for details. Failed to load servlet class org.apache.cxf.transport.servlet.CXFServlet org.apache.geronimo.common.DeploymentException: Failed to load servlet class

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-06-30 Thread Westhveg
Jarek, Adding this filter: dep:filterMETA-INF/cxf/dep:filter I get the same exception, but if I add a filter for package: dep:filterorg.xmlsoap.schemas.wsdl.http/dep:filter Then I get the following exception: Redeploy of module failed. See log for details. start of

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-06-30 Thread Jarek Gawor
Ok, making progress on this front... Remove the CXFServlet from web.xml file and add a servlet (and servlet-mapping) for the class that is your web service implementation. Jarek On Tue, Jun 30, 2009 at 2:18 PM, Westhvegwesthstud...@gmail.com wrote: Hi Jarek, Removing both jars, the exception

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-06-30 Thread Jarek Gawor
Are you sure you're running with -Dorg.apache.geronimo.jaxws.builder.useSimpleFinder=true? Because Geronimo should not be finding and deploying org.apache.cxf.js.rhino.DOMMessageProvider with that option. Or maybe that's from previous deployments? Jarek On Tue, Jun 30, 2009 at 2:26 PM,

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-06-30 Thread Westhveg
Jarek, Now the exception is: Distribution of module failed. See log for details. AbstractWebModuleBuilder: Could not load listener class: org.springframework.web.context.ContextLoaderListener org.apache.geronimo.common.DeploymentException: AbstractWebModuleBuilder: Could not load listener

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-06-30 Thread Westhveg
And if I try to test the webservice developing this spring client: ?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;

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-06-29 Thread Westhveg
More details about the exception: Caused by: org.apache.xbean.recipe.MissingFactoryMethodException: Constructor has 5 arugments but expected 0 arguments: public

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-06-29 Thread Jarek Gawor
If you are deploying a web application that contains its own CXF and Spring jars, try doing the following: 1) Set the following system property before starting the server: export GERONIMO_OPTS=-Dorg.apache.geronimo.jaxws.builder.useSimpleFinder=true 2) Add the following hidden-classes/filters

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-06-29 Thread Westhveg
Jarek, Thanks for your reply. Setting the system property and adding hidden-classes in geronimo-web.xml file I get the following exception: Install New Applications start of default/ViewControllerWS/1.0/car failed org.apache.geronimo.kernel.config.LifecycleException: start of

Re: Problem when deploy CXF WebService (Service resource injection failed)

2009-06-29 Thread Westhveg
Jarek, Thanks for your reply. Setting the system property and adding hidden-classes in geronimo-web.xml file I get the following exception: Install New Applications start of default/ViewControllerWS/1.0/car failed org.apache.geronimo.kernel.config.LifecycleException: start of

Problem when deploy CXF WebService (Service resource injection failed)

2009-06-28 Thread Westhveg
Hi, I'm not able to deploy CXF WebService in Apache Geronimo. This is my environment: Java 1.6 Apache Geronimo (Jetty) 2.1.4 Apache CXF 2.0.8 Spring 2.5.6 When I deploy the application I get the following exception: Redeploy of module failed. See log for details. start of