Hi Anthony
Actually I found that removing xerces-2.6.2.jar & xml-apis.jar from
your $GRAILS_HOME/lib directory solves your problem. This is a problem
we have had some time ago while playing with cxf in groovy.
>From that time, these jars + xalan have been removed from the groovy
distribution. I cannot tell if there are mandatory for Grails.
Apparently using java5, my small controller can use groovyws without
any problem without them ;-)
import groovyx.net.ws.WSClient
class WebServiceController {
def convert = {
def proxy = new
WSClient("http://www.webservicex.net/CurrencyConvertor.asmx?WSDL",
this.class.classLoader)
def value = proxy.ConversionRate("EUR", "SGD")
render "One euro is ${value} Sing dollar"
}
}
Guillaume
On 10/2/07, tog <[EMAIL PROTECTED]> wrote:
> Bonjour Anthony
>
> I guess I have reproduced somehow your environment. I may hae put more
> jars into my lib directory (actually I put all the jars required for
> groovyws)
> But grails is starting fine.
>
> What I am not sure is the environment, could you tell me which are
> your conf files exactly ? Do you have only this WEB-INF/resource.xml
> ?
>
>
>
> On 9/27/07, adupre <[EMAIL PROTECTED]> wrote:
> >
> > This error comes from trying to setup a server.
> > I was able to narrow down the problem to the following steps:
> > - new grails app
> > - drop the cxf-**.jar into the lib directory (in my case
> > cxf-2.0.2-incubator.jar)
> > - drop the XmlSchema-1.2.jar (required early in by CXF)
> > - change the resource.xml to (notice that almost all is commented. The
> > <import/> is enough to create the error):
> >
> > <?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" / -->
> >
> > <!-- jaxws:endpoint
> > id="processWS"
> > implementor="com.nen.pegasus.ws.ProcessMgmtWService"
> > address="/services/processWS" /-->
> >
> > </beans>
> >
> > Whenever I run the grails app, I get the error I reported.
> >
> >
> > Now, I also tried to use GroovyWS in my grails app with no success (as a
> > client) while I had no problem with a straight groovy app.
> > My guess is that the problem is related to classloading, but I'm completely
> > stuck at this point...
> >
> >
> > --
> > View this message in context:
> > http://www.nabble.com/CXF-and-grails...-tf4524774.html#a12924445
> > Sent from the cxf-user mailing list archive at Nabble.com.
> >
> >
>
>
> --
>
> Best Regards
> Guillaume
> http://cheztog.blogspot.com
>
--
Best Regards
Guillaume
http://cheztog.blogspot.com