Hi,
you said "The combination xfire (server, expose the webservice) and client (WSClient
part of GroovyWS) works fine. " I have been trying to get this to work for a while, and can use the xfire plugin on it's own ok, or the groovyws client on it's own. But when I use both in the same application I get the following error:-
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in URL [jar:file:/C:
/Users/Myworkspace/test/lib/groovyws-standalone-0.5.0.jar!/META-INF/cxf/cxf.fixml]: Instantiation of bean failed; nested exception is org.springframework.bea
ns.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; nested exception is java.l
ang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:88)
at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:109)
at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93)
... 14 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exc
eption; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl
... 18 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl
ASEWS08 wrote:
Hey!
We've tried to integrate the GroovyWS-Plugin in a Grails-Application. Without success.
We've got problems to integrate the server-side part of the groovyWs-plugin into our application.
The sample (MathService & co) works fine without grails, but we don't know how to integrate this into grails.
We tried to integrate the ws-exposing into the BootStrap. Without success. (class not found exception)
I've already found other attemps of integration, which also doesn't work. (to implement the Class as InitializingBean)
Our Setting: Groovy 1.5.6, Grails 1.0.3, GroovyWS 0.3.1 and jdk 6u7. Our IDE is intellij 7.0.4 (incl. the jet/groovy-plugin)
The combination xfire (server, expose the webservice) and client (WSClient -> part of GroovyWS) works fine.
Did anybody know how to integrate the server-component (WSServer) into a grails application?
What's the best part of the grails-app. to put the following code in!?
server.setNode("MyService","
http://localhost:8080/services/MyService")
BestRegards
Thomas