In order to give us more information, I'm following this tutorial:
http://cwiki.apache.org/CXF20DOC/writing-a-service-with-spring.htmlBut 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 --> geronimo-activation_1.1_spec-1.0.2.jar
· geronimo-annotation_1.0_spec-1.1.jar --> geronimo-annotation_1.0_spec-1.1.1.jar
· geronimo-javamail_1.4_spec-1.0-M1.jar --> geronimo-javamail_1.4_spec-1.3.jar
· geronimo-servlet_2.5_spec-1.1-M1.jar --> geronimo-servlet_2.5_spec-1.2.jar
· geronimo-ws-metadata_2.0_spec-1.1.1.jar --> geronimo-ws-metadata_2.0_spec-1.1.2.jar
jaxb-api-2.0.jar
jaxb-impl-2.0.5.jar
jaxws-api-2.0.jar
· neethi-2.0.jar --> neethi-2.0.4.jar
saaj-api-1.3.jar
saaj-impl-1.3.jar
stax-api-1.0.1.jar
· wsdl4j-1.6.1.jar --> wsdl4j-1.6.2.jar
· wstx-asl-3.2.1.jar --> wstx-asl-3.2.4.jar
· XmlSchema-1.2.jar --> XmlSchema-1.4.2.jar
xml-resolver-1.2.jar
aopalliance-1.0.jar
spring-core-2.0.8.jar --> spring 2.5.6
spring-beans-2.0.8.jar --> spring 2.5.6
spring-context-2.0.8.jar --> spring 2.5.6
spring-web-2.0.8.jar --> spring 2.5.6
cxf-2.1.jar --> cxf-2.0.8.jar
- I use cxf-2.0.8.jar because if I use higher (2.2.2), I get a exception (I think Apache Geronimo 2.1.4 is only configured to run with cxf 2.0.8).
- Additinally, I inform us that I export ALL of them in the WAR file.
- I remmember my environtment:
Windows Vista Home (don't kill me, please :P)
Java 1.6
Apache Geronimo (Jetty) 2.1.4
Apache CXF 2.0.8
Spring 2.5.6
One thing more: I'm using Geronimo with Jetty because I read that it comes configured for CXF, while Geronimo with Tomcat comes configured for Axis2. Is it correct?
Thanks again,
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 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 AdvancedWARWebServiceFinder.
(1)
http://cwiki.apache.org/confluence/display/GMOxDOC22/Command+Geronimo+OptionsAnything incorrect, please let me know.
Jeff C
>
> Jarek Gawor-2 wrote:
> >
> > 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 to geronimo-web.xml file:
> >
> > <dep:hidden-classes>
> > <dep:filter>org.apache.cxf</dep:filter>
> > <dep:filter>org.springframework</dep:filter>
> > <dep:filter>META-INF/spring</dep:filter>
> > </dep:hidden-classes>
> >
> > However, if your web service is just a standard JAX-WS web service you
> > can let Geronimo to deploy it. Just remove all CXF and Spring jars
> > from your application and deploy it and Geronimo should be able to
> > find your web service class.
> >
> > Jarek
> >
> > On Mon, Jun 29, 2009 at 5:22 AM, Westhveg<westhstudios@gmail.com> wrote:
> >>
> >> More details about the exception:
> >>
> >> Caused by: org.apache.xbean.recipe.MissingFactoryMethodException:
> >> Constructor has 5 arugments but expected 0 arguments: public
> >>
> org.apache.cxf.js.rhino.DOMMessageProvider(org.mozilla.javascript.Scriptable,org.mozilla.javascript.Scriptable,java.lang.String,boolean,boolean)
> >> at
> >>
> org.apache.xbean.recipe.ReflectionUtil.findConstructor(ReflectionUtil.java:546)
> >> at
> >> org.apache.xbean.recipe.ObjectRecipe.findFactory(ObjectRecipe.java:532)
> >> at
> >>
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:270)
> >> at
> >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
> >> at
> >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
> >> at
> >> org.apache.geronimo.j2ee.annotation.Holder.newInstance(Holder.java:173)
> >> at
> >>
> org.apache.geronimo.jaxws.annotations.AnnotationHolder.newInstance(AnnotationHolder.java:39)
> >> at
> >> org.apache.geronimo.cxf.pojo.POJOEndpoint.<init>(POJOEndpoint.java:76)
> >> ... 75 more
> >> --
> >> View this message in context:
> >>
>
http://www.nabble.com/Problem-when-deploy-CXF-WebService-%28Service-resource-injection-failed%29-tp24245804s134p24250919.html> >> Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
>
http://www.nabble.com/Problem-when-deploy-CXF-WebService-%28Service-resource-injection-failed%29-tp24245804s134p24260402.html> Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.
>
>