|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Integrate GroovyWS into a Grails-ApplicationHey!
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 |
|
|
Re: Integrate GroovyWS into a Grails-ApplicationThomas
Having done quite a lot with GroovyWS (Client not Server) and looking at the source of the WSServer, i'm reminded of similar pain we suffered in relation to this API. I will answer your point .
Given the way which WSServer is wiring itself up means it is deferring entirely to functionality in-built within the apache APIs, namely org.apache.cxf.frontend.ServerFactoryBean and org.apache.cxf.frontend.Server
I haven't looked in the source for these but would take a guess that this is kicking off some socket listening thread on the port and context URL that your call to setNode defines.
Assuming that is happening, none of that functionality would be linked in any way at all to the incoming request handling model of Jetty (which passes onto Grails) And given that, I don't believe the URI mappings that are inherent to Grails would be linked to the URI context specified to the setNode method
So as much as I can tell its something which isn't likely to work without further changes Cheers J
On Thu, Oct 9, 2008 at 5:41 PM, ASEWS08 <thomas.neuboeck@...> wrote:
|
|
|
Re: Integrate GroovyWS into a Grails-Application> 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? Why do you want to run WSServer in Grails? Is there some limitation in the XFire Grails Plugin? It doesn't make sense to me to run a separate HTTP server (or socket listener) inside Jetty (itself an HTTP server). If you really want to use WSServer, I would run it outside of Jetty and use something like HttpInvoker remoting to communicate between the WSServer application and the Grails one. Cheers, Peter -- Software Engineer G2One, Inc. http://www.g2one.com/ --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Integrate GroovyWS into a Grails-ApplicationHey!
We thougt it would may be problematic to use Xfire!? (long-term view) We've tried to evaluate cxf in grails. But it doesn't seem to be that useable as the xfire plugin! Will future grails-releases support XFire anyway!?? Would you recommend to use XFire!?? thx,thomas
|
|
|
Re: Integrate GroovyWS into a Grails-Application> We thougt it would may be problematic to use Xfire!? (long-term view) We've
> tried to evaluate cxf in grails. But it doesn't seem to be that useable as > the xfire plugin! I was under the impression that the latest plugin uses CXF rather than XFire, but I may be mistaken. Chanwit, the author of the plugin, should be able to confirm that. Sorry I can't be more help, Peter -- Software Engineer G2One, Inc. http://www.g2one.com/ --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Integrate GroovyWS into a Grails-ApplicationHi,
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
|
|
|
RE: Integrate GroovyWS into a Grails-ApplicationI am wondering if this is not a conflict between CXF and XFire.
Apache CXF is the newer version of the technology...it directly replaces Apache XFire. I'm guessing there's a jar conflict somewhere. It wouldn't show up until you tried to use both technologies at once. I don't think that there is a proper CXF plugin yet...may be wrong. There is this: http://www.bowlinguru.com/?p=29 This: http://books.google.com/books?id=vg09ocrbhXoC&pg=PA369&lpg=PA369&dq=grails+e xpose+cxf&source=bl&ots=ngQyGD0eQv&sig=VS1OhI9DsWS_JAaneBMJStTDQxA&hl=en&ei= iFlkSr7QBoWKsgPzw4Bn&sa=X&oi=book_result&ct=result&resnum=5 And maybe this: http://www.grails.org/plugin/springws HTH BOB > -----Original Message----- > From: rsdev [mailto:victoria.roberts@...] > Sent: Monday, 20 July 2009 7:57 AM > To: user@... > Subject: Re: [grails-user] Integrate GroovyWS into a Grails-Application > > > 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>(BusApplicationCo > ntext.java:88) > at > org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(Spr > ingBusFactory.java:109) > at > org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.j > ava: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 > > > > -- > View this message in context: http://www.nabble.com/Integrate-GroovyWS- > into-a-Grails-Application-tp19902784p24561280.html > Sent from the grails - user mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Integrate GroovyWS into a Grails-Application
I think GroovyWS uses Apache CXF as its SOAP web service stack. So it
may conflict ? I am surprised this gives a NoClassDefFound error.
Regarding the previous mail, the server.setNode("MyService","http://localhost:8080/services/MyService")
may be best put in the Boostrap.groovy (was the question already
answered ? I cannot find the beginning of the discussion).Antoine Bob Brown a écrit : --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_emailI am wondering if this is not a conflict between CXF and XFire. Apache CXF is the newer version of the technology...it directly replaces Apache XFire. I'm guessing there's a jar conflict somewhere. It wouldn't show up until you tried to use both technologies at once. I don't think that there is a proper CXF plugin yet...may be wrong. There is this: http://www.bowlinguru.com/?p=29 This: http://books.google.com/books?id=vg09ocrbhXoC&pg=PA369&lpg=PA369&dq=grails+e xpose+cxf&source=bl&ots=ngQyGD0eQv&sig=VS1OhI9DsWS_JAaneBMJStTDQxA&hl=en&ei= iFlkSr7QBoWKsgPzw4Bn&sa=X&oi=book_result&ct=result&resnum=5 And maybe this: http://www.grails.org/plugin/springws HTH BOB-----Original Message----- From: rsdev [victoria.roberts@...] Sent: Monday, 20 July 2009 7:57 AM To: user@... Subject: Re: [grails-user] Integrate GroovyWS into a Grails-Application 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>(BusApplicationCo ntext.java:88) at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(Spr ingBusFactory.java:109) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.j ava: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: |
| Free embeddable forum powered by Nabble | Forum Help |