geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarek Gawor <jga...@gmail.com>
Subject Re: Problem when deploy CXF WebService (Service resource injection failed)
Date Mon, 29 Jun 2009 15:29:00 GMT
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.
>
>

Mime
View raw message