grails-plugin-consortium / grails-cxf Goto Github PK
View Code? Open in Web Editor NEWCXF Plugin for the Grails web framework
Home Page: http://grails.org/plugin/cxf
CXF Plugin for the Grails web framework
Home Page: http://grails.org/plugin/cxf
When I add @SiZe annotation to a Class Field it is not generated in wsdl as minLength attribute.
I've actually try more ways of adding length or pattern specification to a field to make it really mandatory, but nothing works.
My problem is, that I need to validate incoming request against WSDL generated from java classes. But whatever I do, I can't make it validate the value of incoming element.
I have this CODE element in wsdl <xs:element name="code" type="tns:riderStringValue"/> and current validation only checks, whether or not the element is present in the request. However it may be empty, and I'd love to prevent this situation by validation of the request.
The type riderStringValue is like this:
<xs:complexType name="riderStringValue">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="eId" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
and I'd need something like this:
<xs:complexType name="riderStringValue">
<xs:simpleContent>
<xs:extension base="tns:RiderCode">
<xs:attribute name="eId" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="RiderCode">
<xs:restriction base="xs:string">
<xs:minLength value="3" />
<xs:maxLength value="4" />
</xs:restriction>
</xs:simpleType>
It can be reproduced trying to add the name attribute to the demo's DemoService. The endpoint name in the WSDL shows the default instead of the value of the name attribute.
given Grails-3.0.0 just reached M2 and a final is planned to be released soon, it would be nice to see this plugin work with Grails 3 :)
(similar issue for grails-cxf-client here: Grails-Plugin-Consortium/grails-cxf-client#53)
thanks, zyro
Hello, I have a problem with correct settings (propably) of cxf-client 1.6.0. My config.groovy:
// cxf config
cxf {
client {
authLdService {
wsdl = "docs/wsdl/auth.wsdl"
namespace = "cxf.client.ld.auth"
outputDir = "src/java"
clientInterface = cxf.client.ld.auth.AuthService
serviceEndpointAddress = "${service.ld.url}/services/Auth"
}
}
}
Wsdl2java script executed successfully (java classes were generated). But when I want to test a service:
class LdAuthService {
AuthService authLdService
def loginUser(String userName, String password) {
def sid
try {
sid = authLdService.login(userName, password)
return sid
} catch (Exception e) {
e.printStackTrace()
throw new RuntimeException('login to LD failed')
}
}
}
I always got a null pointer exception (at use authLdService in controller). I supposed that authLdService should be wired automatically.... What do I wrong?
Thanks a lot.
I trying to expose method that accepts date param. If it type is java.util.Date
then WSDL generated with xsd:dateTime
type.
But when it type org.joda.time.DateTime
then generated WSDL contains custom type DateTime
instead of simple basic xsd:dateTime
. Thus I need to create custom marshaler adapter for this.
This is issue of your plugin, of CXF itself?
Previous Issue: Upgrade from 0.7.0 to 1.1.0, WSDL no longer shows fields or complex types just the main service
Thank you for your previous help, I have the wsdl almost identical to the older version but when I regenerate the client objects and peform a test that did work I now get:
When calling: GetTaxcalcResponseDocument response = stub.getTaxcalc(getTaxDoc);
org.apache.axis2.AxisFault: The given SOAPAction http://my.package.com/TaxcalcService/getTaxcalc does not match an operation.
I'm on grails 2.2.1 using GGTS if it helps.
When I got to my http://localhost:8080/Test1/services/ I can see getTaxcalc and
Endpoint address: http://localhost:8080/Test1/services/taxcalc
WSDL : {http://my.package.com/}TaxcalcServiceService
Target namespace: http://my.package.com/
I'll do a run-war
or create a war file and deploy it to a Tomcat 7 server, and I get this error on startup. I'm using version 1.0.7
Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf': Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.apache.cxf.bus.spring.BusApplicationContextResourceResolver.<init>(Lorg/springframework/context/ApplicationContext;)V
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NoSuchMethodError: org.apache.cxf.bus.spring.BusApplicationContextResourceResolver.<init>(Lorg/springframework/context/ApplicationContext;)V
at org.apache.cxf.bus.spring.SpringBus.setApplicationContext(SpringBus.java:99)
... 5 more
Getting the following errors on compile with cxf plugin version 1.1.1.
:::: WARNINGS
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: com.sun.xml.bind#jaxb-xjc;2.2.6: configuration not found in com.sun.xml.bind#jaxb-xjc;2.2.6: 'compile'. It was required from org.grails.plugins#cxf;1.1.1 compile
:: com.sun.xml.bind#jaxb-impl;2.2.6: configuration not found in com.sun.xml.bind#jaxb-impl;2.2.6: 'compile'. It was required from org.grails.plugins#cxf;1.1.1 compile
What can I do to resolve this?
Thanks
I've tried every combination I can to upgrade with Grails 2.2.0 and the latest grails-cxf plugin 1.1.0 however what I used to have working was this (how can I map it properly?):
---------------- Tried -----------------------
In MyService I've tried change the static call with @GrailsCxfEndpoint() and static expose = EndpointType.JAX_WS and also @GrailsCxfEndpoint(expose = EndpointType.JAX_WS)
In my Objects I've tried changing @XmlAccessorType(XmlAccessType.FIELD) to @XmlAccessorType(XmlAccessType.NONE) and adding @xmlelement to each field but the only thing that shows when I go to the WSDL is the main service not the complex types or fields.
---------------- ORIGINAL ----------------
class MyService {
static expose=['cxf']
MyResponse getTaxcalc(MyRequest myCalcReq) {
MyProcessingService myProcSvc = new MyService()
MyResponse myCalcResp = myProcSvc.processRequest(myCalcReq)
return myCalcResp
}
}
@XmlAccessorType(XmlAccessType.FIELD)
class MyCalculationRequest {
String uuid
MyCalculationDataLocation dataLocation
List<MyCalculationRequestLineItem> lineItems
static hasMany = [lineItems:MyCalculationRequestLineItem]
static constraints = {
//Attributes
uuid(blank:false)
//Elements
dataLocation(blank:false)
lineItems(minSize:0, nullable:true)
}
static mapping = {
dataLocation lazy:false
lineItems lazy:false
}
}
Hava a problem with spring security and cxf. Application runs on IDE fine but when deployed to Tomcat, can't start
ERROR org.springframework.boot.SpringApplication - Application startup failed org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filterInvocationInterceptorDeregistrationBean': Cannot resolve reference to bean 'filterInvocationInterceptor' while setting bean property 'filter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filterInvocationInterceptor': Invocation of init method failed; nested exception is java.lang.AssertionError: Cannot load Requestmaps; 'requestMap.className' property 'com.myapp.Requestmap' is invalid. Expression: Requestmap. Values: Requestmap = null
is there a way to easily change the endpoint address of a webservice? it seems that the cxf plugin takes the host address and not the server url configured in Config.groovy. best regards, david
All items configured under the node
/**
* cxf.servlets
* <p>
* A map of Servlet Name -> Servlet Mapping Pattern. If multiple Cxf
* servlets are required or a different mapping pattern is needed this
* configuration allows that.
*/
servlets = [
CxfServlet: '/services/*'
]
are sharing the same servlet and services. Multiple defined endpoints all look the same and have same services due to the code
def doWithWebDescriptor = { xml ->
WebDescriptorConfiguration wdc = new WebDescriptorConfiguration(xml)
with wdc.configuredServlets()
}
lastServletDescriptor() + {
servlet {
'servlet-name'(name)
'servlet-class'('org.grails.cxf.servlet.GrailsCxfServlet')
'load-on-startup'(loadOnStartup)
}
}
lastServletMappingDescriptor() + {
'servlet-mapping' {
'servlet-name'(name)
'url-pattern'(pattern)
}
}
The GrailsCxfServlet appears to be a singleton.
I haven't pinned down under what circumstances this happens but in some situations I am getting Caused by ClassNotFoundException: com.sun.xml.bind.v2.model.annotation.AnnotationReader
in a Grails 2.5.1 app which depends on :cxf:2.1.1
. I think the problem goes away by adding a runtime dependency on com.sun.xml.bind:jaxb-core:2.2.11
.
Is jaxb-core
a dependency that the plugin should be expressing?
Thanks for any help.
i tried to upgrade the cxf plugin from version 0.7.0 to 1.0.7. my service is exposed by using the static decleration expose = ['cxfjax']. futhermore the exposed services are shown in the /services view.
when i try to call a web service method i'm getting following exception:
No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
the old plugin version have used hibernate filter settings in the web-xml to inject the hibernate session. maybe this prolbem is related to this issue.
grails 2.1.1
thanking you in advance.
Hi,
Get this, when I try to expose a service via 'cxf':
2012-02-27 10:33:52,718 ERROR org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/taxa].[CXFServlet]: (): Servlet.service() for servlet [CXFServlet] in context with path [/taxa] threw exception
java.lang.IllegalStateException: No value for key [org.hibernate.impl.SessionFactoryImpl@2e559e7f] bound to thread ["http-bio-8080"-exec-2]
at org.springframework.transaction.support.TransactionSynchronizationManager.unbindResource(TransactionSynchronizationManager.java:209)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:206)
It looks as if the solution is to be found here:
Running using a new project(empty) within grails 2.0.4 and the cxf plugin , the following error is thrown:
Compiling 8 source files....
Compiling 8 source files.....
Compiling 8 source files.....
Error Error: The following plugins failed to load due to missing dependencies:
[hibernate, cxf]
Plugin: hibernate
@thorstadt can you transfer this repo over to the @Grails-Plugin-Consortium organization? I can not add travis-ci hooks until then. Thanks!
I am trying to generate a webservice using CFX in Grails.
I have added compile ":cxf:2.1.1" to BuildConfig.groovy and created a service:
package servicetest
import grails.transaction.Transactional
import javax.jws.*;
import org.grails.cxf.utils.EndpointType
@Transactional
class TestService {
static expose = EndpointType.JAX_WS
@WebMethod( operationName="createUpdateUser" )
@WebResult( name="result" )
def serviceMethod() {
}
}
This works ok. However, I want to change the target namespace in the generated WSDL. To do this, I add @webservice:
package servicetest
import grails.transaction.Transactional
import javax.jws.*;
import org.grails.cxf.utils.EndpointType
@Transactional
@WebService(name = 'CustomerServiceWsdlEndpoint',
targetNamespace = 'http://test.cxf.grails.org/',
serviceName = 'CustomerServiceWsdlEndpoint',
portName = 'CustomerServiceWsdlPort')
class TestService {
static expose = EndpointType.JAX_WS
@WebMethod( operationName="createUpdateUser" )
@WebResult( name="result" )
def serviceMethod() {
}
}
However, when I start the Grails app, I get the following error message:
|Running Grails application
Error |
2015-12-04 11:21:07,506 [localhost-startStop-1] ERROR [localhost].[/ServiceTest] - StandardWrapper.Throwable
Message: Error creating bean with name 'testServiceBean': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.apache.cxf.endpoint.Server org.apache.cxf.jaxws.JaxWsServerFactoryBean.create()] threw exception; nested exception is org.apache.cxf.service.factory.ServiceConstructionException
Line | Method
->> 593 | createApplicationContext in grails.spring.BeanBuilder
| 53 | loadAdditionalConfig in org.grails.cxf.servlet.GrailsCxfServlet
| 25 | init . . . . . . . . . . in ''
| 262 | run in java.util.concurrent.FutureTask
| 1145 | runWorker . . . . . . . in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run . . . . . . . . . . in java.lang.Thread
Caused by BeanDefinitionStoreException: Factory method [public org.apache.cxf.endpoint.Server org.apache.cxf.jaxws.JaxWsServerFactoryBean.create()] threw exception; nested exception is org.apache.cxf.service.factory.ServiceConstructionException
->> 593 | createApplicationContext in grails.spring.BeanBuilder
| 53 | loadAdditionalConfig in org.grails.cxf.servlet.GrailsCxfServlet
| 25 | init . . . . . . . . . . in ''
| 262 | run in java.util.concurrent.FutureTask
| 1145 | runWorker . . . . . . . in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run . . . . . . . . . . in java.lang.Thread
Caused by ServiceConstructionException: null
->> 336 | initialize in org.apache.cxf.jaxb.JAXBDataBinding
| 86 | initializeDataBindings in org.apache.cxf.service.factory.AbstractServiceFactoryBean
| 467 | buildServiceFromClass . in org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean
| 712 | buildServiceFromClass in org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean
| 527 | initializeServiceModel . in org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean
| 261 | create in ''
| 215 | create . . . . . . . . . in org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean
| 102 | createEndpoint in org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
| 159 | create . . . . . . . . . in org.apache.cxf.frontend.ServerFactoryBean
| 211 | create in org.apache.cxf.jaxws.JaxWsServerFactoryBean
| 593 | createApplicationContext in grails.spring.BeanBuilder
| 53 | loadAdditionalConfig in org.grails.cxf.servlet.GrailsCxfServlet
| 25 | init . . . . . . . . . . in ''
| 262 | run in java.util.concurrent.FutureTask
| 1145 | runWorker . . . . . . . in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run . . . . . . . . . . in java.lang.Thread
Caused by IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
->> 106 | check in com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder
| 460 | getTypeInfoSet in com.sun.xml.bind.v2.runtime.JAXBContextImpl
| 292 | . . . . . . . . . in ''
| 139 | in ''
| 1138 | build . . . . . . . . . in com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder
| 162 | createContext in com.sun.xml.bind.v2.ContextFactory
| 248 | newInstance . . . . . . in javax.xml.bind.ContextFinder
| 235 | newInstance in ''
| 432 | find . . . . . . . . . . in ''
| 637 | newInstance in javax.xml.bind.JAXBContext
| 347 | run . . . . . . . . . . in org.apache.cxf.common.jaxb.JAXBContextCache$2
| 345 | run in ''
| 246 | getCachedContextAndSchemas in org.apache.cxf.common.jaxb.JAXBContextCache
| 479 | createJAXBContextAndSchemas in org.apache.cxf.jaxb.JAXBDataBinding
| 334 | initialize . . . . . . . in ''
| 86 | initializeDataBindings in org.apache.cxf.service.factory.AbstractServiceFactoryBean
| 467 | buildServiceFromClass . in org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean
| 712 | buildServiceFromClass in org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean
| 527 | initializeServiceModel . in org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean
| 261 | create in ''
| 215 | create . . . . . . . . . in org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean
| 102 | createEndpoint in org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
| 159 | create . . . . . . . . . in org.apache.cxf.frontend.ServerFactoryBean
| 211 | create in org.apache.cxf.jaxws.JaxWsServerFactoryBean
| 593 | createApplicationContext in grails.spring.BeanBuilder
| 53 | loadAdditionalConfig in org.grails.cxf.servlet.GrailsCxfServlet
| 25 | init . . . . . . . . . . in ''
| 262 | run in java.util.concurrent.FutureTask
| 1145 | runWorker . . . . . . . in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run . . . . . . . . . . in java.lang.Thread
Error |
2015-12-04 11:21:07,595 [localhost-startStop-1] ERROR [localhost].[/ServiceTest] - Servlet /ServiceTest threw load() exception
Message: 1 counts of IllegalAnnotationExceptions
Line | Method
->> 106 | check in com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder
| 460 | getTypeInfoSet in com.sun.xml.bind.v2.runtime.JAXBContextImpl
| 292 | . . . . . . . . . . in ''
| 139 | in ''
| 1138 | build . . . . . . . . . . . in com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder
| 162 | createContext in com.sun.xml.bind.v2.ContextFactory
| 248 | newInstance . . . . . . . . in javax.xml.bind.ContextFinder
| 235 | newInstance in ''
| 432 | find . . . . . . . . . . . in ''
| 637 | newInstance in javax.xml.bind.JAXBContext
| 347 | run . . . . . . . . . . . . in org.apache.cxf.common.jaxb.JAXBContextCache$2
| 345 | run in ''
| 246 | getCachedContextAndSchemas in org.apache.cxf.common.jaxb.JAXBContextCache
| 479 | createJAXBContextAndSchemas in org.apache.cxf.jaxb.JAXBDataBinding
| 334 | initialize . . . . . . . . in ''
| 86 | initializeDataBindings in org.apache.cxf.service.factory.AbstractServiceFactoryBean
| 467 | buildServiceFromClass . . . in org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean
| 712 | buildServiceFromClass in org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean
| 527 | initializeServiceModel . . in org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean
| 261 | create in ''
| 215 | create . . . . . . . . . . in org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean
| 102 | createEndpoint in org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
| 159 | create . . . . . . . . . . in org.apache.cxf.frontend.ServerFactoryBean
| 211 | create in org.apache.cxf.jaxws.JaxWsServerFactoryBean
| 593 | createApplicationContext . in grails.spring.BeanBuilder
| 53 | loadAdditionalConfig in org.grails.cxf.servlet.GrailsCxfServlet
| 25 | init . . . . . . . . . . . in ''
| 262 | run in java.util.concurrent.FutureTask
| 1145 | runWorker . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run . . . . . . . . . . . . in java.lang.Thread
Can someone tell me what I am doing wrong, or if there is another way to set the target namespace?
Thanks,
Carl
Hi Ryan,
I'm very happy with your grails-cxf plug-in, its easy to use for publishing WS from my grails services. Thanks!
I just have a problem in our project, which also needs groovy-ws and other dependencies.
we like the recent grails (after 1.2) dependency management which helps us any jar files conflict. I like to suggest that grails-cxf support the dependency configuration in BuildConfig.groovy file and minimizing the jar files in the plug-in lib folder so that lots of dependency conflict will be resolved more easily.
I wish this plug-in is widely used, helping us to shoot all the troubles we meet with WS, I don't like but must use.
Thanks.
Grails version 1.3.8, CXF version 1.1.4 (have also tried 1.1.3), java JDK 1.7.0_55. After run-app the application gets as far as 'Configuring Spring Security UI', then this error is thrown:
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
Class has two properties of the same name "outputs"
this problem is related to the following location:
at public java.util.List org.apache.camel.model.ResequenceDefinition.getOutputs()
at org.apache.camel.model.ResequenceDefinition
this problem is related to the following location:
at private java.util.List org.apache.camel.model.ResequenceDefinition.outputs
at org.apache.camel.model.ResequenceDefinition
at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:106)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:471)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:303)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:142)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1174)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:162)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:286)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:133)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
at org.apache.camel.spring.handler.CamelNamespaceHandler.createJaxbContext(CamelNamespaceHandler.java:187)
at org.apache.camel.spring.handler.CamelNamespaceHandler.getJaxbContext(CamelNamespaceHandler.java:174)
at org.apache.camel.spring.handler.CamelNamespaceHandler$CamelContextBeanDefinitionParser.doParse(CamelNamespaceHandler.java:256)
at org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.parseInternal(AbstractSingleBeanDefinitionParser.java:85)
at org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:59)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73)
at org.springframework.beans.factory.xml.NamespaceHandler$parse.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.springframework.beans.factory.xml.NamespaceHandler$parse.call(Unknown Source)
at grails.spring.DynamicElementReader.invokeMethod(DynamicElementReader.groovy:131)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
at RoutingGrailsPlugin$_closure2.doCall(RoutingGrailsPlugin.groovy:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:225)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at RoutingGrailsPlugin$_closure2.doCall(RoutingGrailsPlugin.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.Closure.call(Closure.java:282)
at groovy.lang.Closure.call(Closure.java:277)
at grails.spring.BeanBuilder.invokeBeanDefiningClosure(BeanBuilder.java:723)
at grails.spring.BeanBuilder.beans(BeanBuilder.java:573)
at grails.spring.BeanBuilder.invokeMethod(BeanBuilder.java:519)
at org.codehaus.groovy.grails.plugins.DefaultGrailsPlugin.doWithRuntimeConfiguration(DefaultGrailsPlugin.java:600)
at org.codehaus.groovy.grails.plugins.AbstractGrailsPluginManager.doRuntimeConfiguration(AbstractGrailsPluginManager.java:107)
at org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator.configure(GrailsRuntimeConfigurator.java:153)
at org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator.configure(GrailsRuntimeConfigurator.java:124)
at org.codehaus.groovy.grails.web.context.GrailsConfigUtils.configureWebApplicationContext(GrailsConfigUtils.java:120)
at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebApplicationContext(GrailsContextLoader.java:73)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3961)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4456)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:515)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:708)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:286)
at org.apache.catalina.startup.Tomcat$start.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at org.grails.tomcat.InlineExplodedTomcatServer.doStart(InlineExplodedTomcatServer.groovy:112)
at org.grails.tomcat.InlineExplodedTomcatServer$doStart.callCurrent(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:157)
at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:97)
at grails.web.container.EmbeddableServer$start.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:225)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.Closure.call(Closure.java:282)
at groovy.lang.Closure.call(Closure.java:277)
at groovy.lang.Closure$call.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at groovy.lang.Closure$call.call(Unknown Source)
at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:266)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:56)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:153)
at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1104)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1060)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:706)
at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44)
at groovy.lang.Script.invokeMethod(Script.java:78)
at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1123)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1017)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:153)
at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:266)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1104)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1060)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1003)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:149)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:127)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:161)
at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:149)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:127)
at groovy.lang.Closure.call(Closure.java:282)
at groovy.lang.Closure.call(Closure.java:295)
at sun.reflect.GeneratedMethodAccessor177.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:149)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:127)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
at sun.reflect.GeneratedMethodAccessor199.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:225)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
at sun.reflect.GeneratedMethodAccessor198.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.Closure.call(Closure.java:282)
at groovy.lang.Closure.call(Closure.java:277)
at groovy.lang.Closure$call.call(Unknown Source)
at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
at sun.reflect.GeneratedMethodAccessor193.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1003)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:706)
at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44)
at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1123)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1017)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:157)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
at sun.reflect.GeneratedMethodAccessor192.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:225)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
at sun.reflect.GeneratedMethodAccessor191.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.Closure.call(Closure.java:282)
at groovy.lang.Closure.call(Closure.java:277)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1104)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1060)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:706)
at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44)
at groovy.lang.Script.invokeMethod(Script.java:78)
at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1123)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1017)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:149)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:127)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
at RunApp$_run_closure1.doCall(RunApp.groovy:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:149)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:127)
at groovy.lang.Closure.call(Closure.java:282)
at groovy.lang.Closure.call(Closure.java:295)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:149)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:127)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:225)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.Closure.call(Closure.java:282)
at groovy.lang.Closure.call(Closure.java:277)
at groovy.lang.Closure$call.call(Unknown Source)
at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1003)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:706)
at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44)
at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1123)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1017)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:157)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:225)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.Closure.call(Closure.java:282)
at groovy.lang.Closure.call(Closure.java:277)
at groovy.lang.Closure$call.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.Closure.call(Closure.java:282)
at groovy.lang.Closure.call(Closure.java:295)
at groovy.lang.Closure$call$0.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:225)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.Closure.call(Closure.java:282)
at groovy.lang.Closure.call(Closure.java:277)
at groovy.lang.Closure$call.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at gant.Gant.withBuildListeners(Gant.groovy:427)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at gant.Gant.dispatch(Gant.groovy:415)
at gant.Gant.this$2$dispatch(Gant.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:708)
at gant.Gant.invokeMethod(Gant.groovy)
at groovy.lang.GroovyObject$invokeMethod.callCurrent(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:153)
at gant.Gant.executeTargets(Gant.groovy:590)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:225)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:153)
at gant.Gant.executeTargets(Gant.groovy:589)
at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeWithGantInstance(GrailsScriptRunner.java:667)
at org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsScript(GrailsScriptRunner.java:526)
at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeCommand(GrailsScriptRunner.java:310)
at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRunner.java:135)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:234)
at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:262)
CXF 3 has lots of significant changes, but the most important one is support for the netty transport for clients. This allows for fully asynchronous and non blocking clients.
I can't find any documentation about this.
thanks.
Hi,
I have grails 2.2.3 and cxf 1.1.3 also using activeMq dependency for some queue operation.
Earlier i was using activemq plugin along with cxf and it was working fine and generating proper wsdl file. As support for activemq plugin is not available I replaced related code with including dependency org.apache.activemq:activemq-core:5.5.1 and added some jmsBroker related code to resource.groovy and worked well.
When I run the project thru STS its working but when i create war of the project , I am not able to generate wsdl url. so is it reflecting anything with newly added dependency?
do i need to exclude anything from grails plugin or dependency which i added?
Thanks
i stumbled on some problems trying to use the wsdl-to-java script.
first, there seems to be a conflicting import of org.codehaus.groovy.tools.shell.util.HelpFormatter that throws an exception if i try to run the script. replacing that with org.apache.commons.cli.HelpFormatter seems to fix that.
second, something seems wrong with the argument parsing. e.g. passing --wsdl=/path/to/my/wsdl results in an error of wsdl2java itself not finding "sdl=/path/to/my/wsdl"
am i missing something or was the script maybe just not tested in recent releases (some comment in the script along the lines of "not fully tested" hints in that direction..)?
anyhow thanks for the great work with the plugin so far! soap life got much less painful :)
I can take over. Can you summarize any outstanding issues or concerns when handing off?
Thanks
Christian
I am trying to expose a webservice using this plugin (v1.1.4). It is working as intented, right until I add a client, using functionality from the cxf-client (v1.6.2) plugin.
Surely, I should be able to both expose and consume soap web services.
I think the code at
means that if a class that is not a Service is marked with@GrailsCxfEndpoint
and does not supply a value for the address
attribute, the address url becomes /devnull
.I don't know why, but my wsdl look completely different since I've upgrade to 0.9.0 (and grails 1.3.7 to 2.0.4).
wsdl:types with the complex types are not there anymore? Is there anything special that I should do?
I have two SOAP interfaces from which I have generated Java code with cxf wsdl2java.
My Grails application should publish one interface as a service using CXF:
@WebService(name = 'CustomerServiceWsdlEndpoint',
targetNamespace = 'http://test.cxf.grails.org/',
serviceName = 'CustomerServiceWsdlEndpoint',
portName = 'CustomerServiceWsdlPort')
@GrailsCxfEndpoint(expose = EndpointType.JAX_WS_WSDL, soap12 = true)
class AnnotatedCustomerServiceWsdlEndpoint {
List<Customer> getCustomersByName(final String name) {
// do something
}
}
This works perfectly and the service is listed under /services.
Once I create a proxy for the second interface, the first interface is not published anymore and I get the messeage "No services have been found.":
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean()
factory.serviceClass = MyServicePortType.class
def proxy = (MyServicePortType) factory.create()
I use Grails 2.3.7 and cxf-plugin-1.1.1.
With Grails 2.2.4 everything works fine.
Many other plugins also use "expose" property in service classes, so the way you construct endpoints is terribly wrong.
void eachServiceArtefact(final Closure forEachGrailsClass) {
grailsApplication?.serviceClasses?.each { service ->
def expose = GrailsClassUtils.getStaticPropertyValue(service.clazz, 'expose')
def annotation = service.clazz.getAnnotation(WebService) || service.clazz.getAnnotation(GrailsCxfEndpoint)
if(expose || annotation) {
forEachGrailsClass(new DefaultGrailsEndpointClass(service.clazz))
}
}
}
Say i want to expose my services with JMX plugin and i set static expose = ['jmx']
. While having also CXF plugin installed, the service will be listed under /services as a soap endpoint. You should check if expose is in list of endpoint types.
In grails 2 branch it was possible to customise default services address like
servlets = [ CxfServlet: '/webservices/*' ]
That method doesn't work with grails 3 version of the plugin.
I create an grails 3.2 application add cxf dependency, create a DemoService
import grails.transaction.Transactional
import org.grails.cxf.utils.GrailsCxfEndpoint
import javax.jws.WebMethod
import javax.jws.WebResult
@transactional
@GrailsCxfEndpoint
class DemoService {
@WebMethod
@WebResult
String demoMethod() {
return "demo"
}
}
Run the project, and service is created as DemoServiceService instead of DemoService.
Same with grails-cxf-demo project.
The org.codehaus.groovy.grails.commons.ConfigurationHolder
class have been removed from Grails 2.4.
But it still used in CFX plugin, fro example in org.grails.cxf.utils.CxfConfigHandler
After installing the plugin I get:
| Configuring classpath
:: problems summary ::
:::: WARNINGS
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: commons-logging#commons-logging;1.1.1: configuration not found in commons-logging#commons-logging;1.1
.1: 'compile'. It was required from org.apache.cxf#cxf-rt-ws-security;2.3.0 compile
::::::::::::::::::::::::::::::::::::::::::::::
I'm using Grails version: 2.1.0
And Java:
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing)
I've copied the commons-logging-1.1.1.jar from the CXF installation to my lib folder - no change...
How can I resolve this?
When doing an exit
from a run-app, I get this error every time. I'm using 1.0.7 currently.
Servlet CxfServlet threw unload() exception
Message: Servlet.destroy() for servlet CxfServlet threw exception
Line | Method
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 680 | run . . in java.lang.Thread
Caused by NullPointerException: null
->> 143 | destroy in org.apache.cxf.transport.servlet.CXFNonSpringServlet
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run . . in ''
^ 680 | run in java.lang.Thread
Hi, I have a problem after install cxf plugin (v2.0.1). We use a standard java jar file from lib folder. In java source code we connect to WS via certificate. Everything is fine until we installed cxf plugin.
We have unit test and just call one static method from jar file. Complete ssl settings (cert, keystore) is configured in jar (that's mean there is ). Call unit test without installed cxf plugin is OK, after install cxf plugin got an error:
Caused by: javax.net.ssl.SSLHandshakeException: SSLHandshakeException invoking https://some_url Received fatal alert: handshake_failure
What is difference between call our method from external jar with and without installed cxf plugin? Some keystore settings?
Thanks a lot.
Jiri Sojka
the setter and getter mehtods of static members were also published as web serivce methods since grails version 1.3.4. the ignored methods array in the grails plugin contains all methods, also getter and setter, to exclude from publishing.
this problem doesn't occur in previous versions. any help would be appreciated.
i'm using:
thx
First - Thx for this great plugin - the automatic service generation works like charm!
But when I try to map an existing WSDL as described in doc i get the error
ERROR artefact.DefaultGrailsEndpointClass - Endpoint [testsoap.DRDataReceiverService] as WSDL at [/testsoap/DRDataReceiverService.wsdl] but it couldn't be found. Will try to generate the Cxf Service from the endpoint class.
I tried to locate the WSDL next to the Service Class and in the Web Project but did not manage to get it running. :( Seems i am to stupid.
The current grails-cfx-test does not contain the WSDL First example from the doc.
Where do I have to put the predefined WSDL do get it referenced correctly from the service class?
I seem to be receiving the following error when I start up my application with an endpoint where I have an existing WSDL:
Message: Error creating bean with name 'myDataServiceBean': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.apache.cxf.endpoint.Server org.apache.cxf.jaxws.JaxWsServerFactoryBean.create()] threw exception; nested exception is java.lang.NullPointerException
Line | Method
->> 593 | createApplicationContext in grails.spring.BeanBuilder
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 53 | loadAdditionalConfig in org.grails.cxf.servlet.GrailsCxfServlet
| 25 | init . . . . . . . . . . in ''
| 334 | innerRun in java.util.concurrent.FutureTask$Sync
| 166 | run . . . . . . . . . . in java.util.concurrent.FutureTask
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run in java.lang.Thread
Caused by BeanDefinitionStoreException: Factory method [public org.apache.cxf.endpoint.Server org.apache.cxf.jaxws.JaxWsServerFactoryBean.create()] threw exception; nested exception is java.lang.NullPointerException
->> 593 | createApplicationContext in grails.spring.BeanBuilder
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 53 | loadAdditionalConfig in org.grails.cxf.servlet.GrailsCxfServlet
| 25 | init . . . . . . . . . . in ''
| 334 | innerRun in java.util.concurrent.FutureTask$Sync
| 166 | run . . . . . . . . . . in java.util.concurrent.FutureTask
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run in java.lang.Thread
Caused by NullPointerException: null
->> 170 | getClassCode in org.apache.cxf.common.util.ASMHelper
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 320 | generateMessagePart in org.apache.cxf.jaxws.WrapperClassGenerator
| 234 | createWrapperClass . . . in ''
| 137 | generate in ''
| 669 | generatedWrapperBeanClass in org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean
| 638 | getExtraClass in ''
| 424 | buildServiceFromWSDL . . in org.apache.cxf.service.factory.ReflectionServiceFactoryBean
| 534 | initializeServiceModel in ''
| 248 | create . . . . . . . . . in ''
| 205 | create in org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean
| 101 | createEndpoint . . . . . in org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
| 159 | create in org.apache.cxf.frontend.ServerFactoryBean
| 211 | create . . . . . . . . . in org.apache.cxf.jaxws.JaxWsServerFactoryBean
| 593 | createApplicationContext in grails.spring.BeanBuilder
| 53 | loadAdditionalConfig . . in org.grails.cxf.servlet.GrailsCxfServlet
| 25 | init in ''
| 334 | innerRun . . . . . . . . in java.util.concurrent.FutureTask$Sync
| 166 | run in java.util.concurrent.FutureTask
| 1145 | runWorker . . . . . . . in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run . . . . . . . . . . in java.lang.Thread
I haven't had much success trying to pinpoint the root of the issue. I have tried configuring this same service to be a plain JAX_WS endpoint instead of JAX_WS_WSDL and that seemed to launch without issue.
The application appears to still launch successfully, even with this error. I can even reach the services page and generate a client that appears to be correct with the cxf-client plugin. The client receives soap faults when it attempts to use the service though.
I have some additional debug output if that helps any:
INFO: Initializing Spring root WebApplicationContext
2013-08-19 14:19:38,284 [localhost-startStop-1] DEBUG artefact.EndpointBeanConfiguration - Cxf Bus wired.
2013-08-19 14:19:38,898 [localhost-startStop-1] DEBUG artefact.DefaultGrailsEndpointClass - Endpoint [com.example.MyDataService] configured to use [JAX_WS_WSDL].
2013-08-19 14:19:38,899 [localhost-startStop-1] DEBUG artefact.DefaultGrailsEndpointClass - Endpoint [com.example.MyDataService] configured to exclude methods [getClass, setTransactional, isTransactional, getMetaMethods, getMetaClass, setErrors, setClass, setProperty, invokeMethod, getErrors, setMetaMethods, getProperty, setMetaClass, getTransactional].
2013-08-19 14:19:38,899 [localhost-startStop-1] DEBUG artefact.DefaultGrailsEndpointClass - Endpoint [com.example.MyDataService] configured to use address [/myData].
2013-08-19 14:19:38,900 [localhost-startStop-1] DEBUG artefact.DefaultGrailsEndpointClass - Endpoint [com.example.MyDataService] configured to servlet [CxfServlet].
2013-08-19 14:19:38,900 [localhost-startStop-1] DEBUG artefact.DefaultGrailsEndpointClass - Endpoint [com.example.MyDataService] configured to use WSDL [file:/C:/Users/auser/.grails/2.2.2/projects/myproject/resources/com/example/MyDataService.wsdl].
2013-08-19 14:19:38,901 [localhost-startStop-1] DEBUG artefact.DefaultGrailsEndpointClass - Endpoint [com.example.MyDataService] configured to use soap 1.2 [false].
2013-08-19 14:19:47,542 [localhost-startStop-1] DEBUG logging.LogUtils - Using org.apache.cxf.common.logging.Slf4jLogger for logging.
2013-08-19 14:19:48,002 [localhost-startStop-1] DEBUG spring.ConfigurerImpl - Could not determine bean name for instance of class org.apache.cxf.ws.policy.PolicyAnnotationListener.
2013-08-19 14:19:48,031 [localhost-startStop-1] DEBUG spring.ConfigurerImpl - Could not determine bean name for instance of class org.apache.cxf.service.factory.FactoryBeanListenerManager.
2013-08-19 14:19:48,036 [localhost-startStop-1] DEBUG spring.ConfigurerImpl - Could not determine bean name for instance of class org.apache.cxf.ws.policy.PolicyEngineImpl.
2013-08-19 14:19:48,037 [localhost-startStop-1] DEBUG spring.ConfigurerImpl - Could not determine bean name for instance of class org.apache.cxf.ws.policy.PolicyDataEngineImpl.
2013-08-19 14:19:48,039 [localhost-startStop-1] DEBUG spring.ConfigurerImpl - Could not determine bean name for instance of class org.apache.cxf.bus.managers.CXFBusLifeCycleManager.
2013-08-19 14:19:48,040 [localhost-startStop-1] DEBUG spring.ConfigurerImpl - Could not determine bean name for instance of class org.apache.cxf.bus.managers.ServerRegistryImpl.
2013-08-19 14:19:52,365 [localhost-startStop-1] DEBUG spring.ConfigurerImpl - Could not determine bean name for instance of class org.apache.cxf.transport.http.HTTPTransportFactory.
2013-08-19 14:19:52,377 [localhost-startStop-1] DEBUG servlet.GrailsCxfServlet - Loading additional bean configuration for [CxfServlet].
2013-08-19 14:19:52,418 [localhost-startStop-1] DEBUG artefact.DefaultGrailsEndpointClass - Endpoint [com.example.MyDataService] configured to use [JAX_WS_WSDL].
2013-08-19 14:19:52,418 [localhost-startStop-1] DEBUG artefact.DefaultGrailsEndpointClass - Endpoint [com.example.MyDataService] configured to exclude methods [getClass, setTransactional, isTransactional, getMetaMethods, getMetaClass, setErrors, setClass, setProperty, invokeMethod, getErrors, setMetaMethods, getProperty, setMetaClass, getTransactional].
2013-08-19 14:19:52,418 [localhost-startStop-1] DEBUG artefact.DefaultGrailsEndpointClass - Endpoint [com.example.MyDataService] configured to use address [/myData].
2013-08-19 14:19:52,419 [localhost-startStop-1] DEBUG artefact.DefaultGrailsEndpointClass - Endpoint [com.example.MyDataService] configured to servlet [CxfServlet].
2013-08-19 14:19:52,419 [localhost-startStop-1] DEBUG artefact.DefaultGrailsEndpointClass - Endpoint [com.example.MyDataService] configured to use WSDL [file:/C:/Users/auser/.grails/2.2.2/projects/myproject/resources/com/example/MyDataService.wsdl].
2013-08-19 14:19:52,419 [localhost-startStop-1] DEBUG artefact.DefaultGrailsEndpointClass - Endpoint [com.example.MyDataService] configured to use soap 1.2 [false].
2013-08-19 14:19:52,430 [localhost-startStop-1] DEBUG servlet.GrailsCxfServlet - Cxf endpoint bean wired for [com.example.MyDataService] on [CxfServlet] servlet.
2013-08-19 14:19:52,466 [localhost-startStop-1] INFO factory.ReflectionServiceFactoryBean - Creating Service {http://example.com/}MyDataServicePorts from WSDL: file:/C:/Users/auser/.grails/2.2.2/projects/myproject/resources/com/example/MyDataService.wsdl
2013-08-19 14:19:52,511 [localhost-startStop-1] DEBUG spring.ConfigurerImpl - Could not determine bean name for instance of class org.apache.cxf.binding.xml.wsdl11.XMLWSDLExtensionLoader.
2013-08-19 14:19:52,519 [localhost-startStop-1] DEBUG spring.ConfigurerImpl - Could not determine bean name for instance of class org.apache.cxf.ws.addressing.impl.AddressingWSDLExtensionLoader.
2013-08-19 14:19:52,522 [localhost-startStop-1] DEBUG spring.ConfigurerImpl - Could not determine bean name for instance of class org.apache.cxf.transport.http.HTTPWSDLExtensionLoader.
2013-08-19 14:19:52,524 [localhost-startStop-1] DEBUG spring.ConfigurerImpl - Could not determine bean name for instance of class org.apache.cxf.wsdl11.WSDLManagerImpl.
2013-08-19 14:19:52,553 [localhost-startStop-1] DEBUG spring.ConfigurerImpl - Could not determine bean name for instance of class org.apache.cxf.catalog.OASISCatalogManager.
2013-08-19 14:19:52,665 [localhost-startStop-1] DEBUG wsdl11.WSDLServiceBuilder - Operation {http://example.com/}searchData cannot be unwrapped, input message must reference global element declaration with same localname as operation
2013-08-19 14:19:52,673 [localhost-startStop-1] DEBUG spring.ConfigurerImpl - Could not determine bean name for instance of class org.apache.cxf.binding.soap.SoapBindingFactory.
2013-08-19 14:19:52,685 [localhost-startStop-1] DEBUG spring.ConfigurerImpl - Could not determine bean name for instance of class org.apache.cxf.binding.soap.SoapTransportFactory.
I started running into an error when unit testing controllers after adding, but not using, the CXF plugin to my build.grade file. Running Grails 3.1.10.
I was getting an error similar to this:
http://stackoverflow.com/questions/9255047/verifyerror-class-net-sf-cglib-core-debuggingclasswriter-overrides-final-method
I added
compile("org.grails.plugins:cxf:3.0.14"){ exclude group: 'org.ow2.asm' }
and it solved the conflict. Will this cause issues in using the plugin?
i am having a soap web service which will return a class type object but when service is created object is not return. i creating an error class context not found.
can any one give me example of how can i return a object through web service
I'm using grails 1.3.7 with cxf version 0.7.0 and any class I have with belongsTo shows as a circular reference in the generated wsdl is there a way around this?
My WSDL shows a service getMyInfo that has a myLocation reference; the MyLocation element shows a reference back to MyRequest.
Example:
class MyService {
static expose=['cxf']
MyResponse getMyInfo(MyRequest myReq) {
MyProcessingService myProcSvc = new MyProcessingService()
MyResponse myResp = myProcSvc.processMyRequest(myReq)
return taxCalcResp
}
}
@XmlAccessorType(XmlAccessType.FIELD)
class MyRequest {
String uuid
String originSystem
MyLocation myLocation
static hasMany = [lineItems:MyRequestLineItem]
static constraints = {
uuid(blank:false)
originSystem(blank:false)
lineItems(minSize:0, nullable:true)
}
static mapping = {
myLocation lazy:false
lineItems lazy:false
}
}
@XmlAccessorType(XmlAccessType.FIELD)
class MyLocation {
String addressLine1
String addressLine2
static belongsTo = [myReq:MyRequest]
static constraints = {
addressLine1(blank:true, nullable:true)
addressLine2(blank:true, nullable:true)
}
}
Thank you
In prior release 0.9, I called ws in this way :
http://localhost:8080/wstest03/services/test?wsdl
now, in 1.0.2, was changed to
http://localhost:8080/wstest03/services/testService?wsdl
Is it possible to call the ws like release 0.9 (without *Service) ?
Herrera
First of all, thank you all for spending time developing this plugin! We've been upgrading a grails 2 app that had the old plugin and are running into some issue with getting our new WSDL to render the same.
I'd like to give the WSDL first approach a try but there doesn't appear to be support for EndpointType.JAX_WS_WSDL in the plugin, although it is mentioned in the documentation. Am I missing something? I don't see a definition for it in the EndpointType class.
We're using Grails 3.2.1 and the 3.1 version of the plugin.
packed war is not working. cxf libraries is not included in war.
Thats all fine, but when 'static soap12 = true' the following error is thrown :
| Error 2012-10-10 14:37:49,228 [pool-5-thread-1] ERROR [localhost].[/WebService
Academico] - StandardWrapper.Throwable
Message: Error creating bean with name 'academicoServiceBean': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.apache.cxf.endpoint.Server org.apache.cxf.frontend.ServerFactoryBean.create()] threw exception; nested exception isorg.apache.cxf.service.factory.ServiceConstructionException: Could not resolve a binding for http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true
Line | Method
->> 578 | createApplicationContext in grails.spring.BeanBuilder
| 51 | loadAdditionalConfig in org.grails.cxf.servlet.GrailsCxfServlet
| 23 | init . . . . . . . . . . in ''
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . . . . . . . . . in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run . . . . . . . . . . in ''
^ 662 | run in java.lang.Thread
Caused by BeanDefinitionStoreException: Factory method [public org.apache.cxf.endpoint.Server org.apache.cxf.frontend.ServerFactoryBean.create()] threw exception; nested exception is org.apache.cxf.service.factory.ServiceConstructionException: Could not resolve a binding for http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true
->> 578 | createApplicationContext in grails.spring.BeanBuilder
| 51 | loadAdditionalConfig in org.grails.cxf.servlet.GrailsCxfServlet
| 23 | init . . . . . . . . . . in ''
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . . . . . . . . . in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run . . . . . . . . . . in ''
^ 662 | run in java.lang.Thread
Caused by ServiceConstructionException: Could not resolve a binding for http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true
->> 350 | createBindingInfo in org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
| 258 | createEndpointInfo in ''
| 143 | createEndpoint . . . . . in ''
| 159 | create in org.apache.cxf.frontend.ServerFactoryBean
| 578 | createApplicationContext in grails.spring.BeanBuilder
| 51 | loadAdditionalConfig in org.grails.cxf.servlet.GrailsCxfServlet
| 23 | init . . . . . . . . . . in ''
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . . . . . . . . . in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run . . . . . . . . . . in ''
^ 662 | run in java.lang.Thread
Caused by BusException: NO_BINDING_FACTORY_EXC
->> 123 | getBindingFactory in org.apache.cxf.bus.managers.BindingFactoryManagerImpl
| 338 | createBindingInfo in org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
| 258 | createEndpointInfo . . . in ''
| 143 | createEndpoint in ''
| 159 | create . . . . . . . . . in org.apache.cxf.frontend.ServerFactoryBean
| 578 | createApplicationContext in grails.spring.BeanBuilder
| 51 | loadAdditionalConfig . . in org.grails.cxf.servlet.GrailsCxfServlet
| 23 | init in ''
| 303 | innerRun . . . . . . . . in java.util.concurrent.FutureTask$Sync
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Wo
rker
| 908 | run in ''
^ 662 | run . . . . . . . . . . in java.lang.Thread
| Error 2012-10-10 14:37:49,278 [pool-5-thread-1] ERROR [localhost].[/WebServiceAcademico] - Servlet /WebServiceAcademico threw load() exceptionMessage: NO_BINDING_FACTORY_EXC
Line | Method
->> 123 | getBindingFactory in org.apache.cxf.bus.managers.BindingFactoryManagerImpl
| 338 | createBindingInfo in org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
| 258 | createEndpointInfo . . . in ''
| 143 | createEndpoint in ''
| 159 | create . . . . . . . . . in org.apache.cxf.frontend.ServerFactoryBean
| 578 | createApplicationContext in grails.spring.BeanBuilder
| 51 | loadAdditionalConfig . . in org.grails.cxf.servlet.GrailsCxfServlet
| 23 | init in ''
| 303 | innerRun . . . . . . . . in java.util.concurrent.FutureTask$Sync
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . . . . . . . . . in java.lang.Thread
...........
Grails cxf plugin, how to use user-defined DTO as a parameter and return value, DTO contains any-type such as greoovy def data type
I am implementing a contract first webservice implementation with a provided wsdl. When trying to get to the wsdl from the http://localhost:8080//services/?wsdl or https://localhost:8080//services/?wsdl
By just using the browser, I get a response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>None of the policy alternatives can be satisfied.</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>
The original wsdl has a policy like:
<wsp:Policy wsu:Id="http_binding_policy">
<wsp:ExactlyOne>
<wsp:All>
<http:BasicAuthentication xmlns:http="http://schemas.microsoft.com/ws/06/2004/policy/http"/>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>
<wsdl:types>
I'm trying to run a simple example where I return a list of instances of the domain class related to the service.
I'm using grails and have installed the cxf plugin.
I'm also using other plugins, like wsclient, which may interfere with cxf one.
The domain class looks like follows:
package test.package
import javax.xml.bind.annotation.*
@XmlRootElement(name='remoteReport')
@XmlAccessorType(XmlAccessType.NONE)
@XmlType(propOrder = ['errorCode','errorMessage','reportId'])
class RemoteReport {
@XmlElement
Long errorCode
@XmlElement
String errorMessage
@XmlElement
Long reportId
static constraints = {
}
}
And the service class:
package test.package
import org.grails.cxf.utils.EndpointType
import javax.jws.WebMethod
import javax.jws.WebResult
class RemoteReportService {
static expose = EndpointType.JAX_WS
@WebResult(name = 'remoteReport')
@WebMethod(operationName = 'getMeSomeReports')
List<RemoteReport> getMeSomeReports() {
List<RemoteReport> reports = []
reports
}
}
When I start my application, I get the following error:
[...]
2012-10-23 18:45:39,741 [pool-5-thread-1] INFO factory.ReflectionServiceFactoryBean - Creating Service {http://test.package/}RemoteReportServiceService from class test.package.RemoteReportService
2012-10-23 18:45:41,855 [pool-5-thread-1] DEBUG jaxb.JAXBDataBinding - Created JAXBContext "jar:file:/C:/Users/LJCF/.grails/ivy-cache/com.sun.xml.bind/jaxb-impl/jars/jaxb-impl-2.1.13.jar!/com/sun/xml/bind/v2/runtime/JAXBContextImpl.class Build-Id: 2.1.13
Classes known to this context:
[B
boolean
byte
char
test.package.RemoteReport
test.package.jaxws_asm.GetMeSomeReports
test.package.jaxws_asm.GetMeSomeReportsResponse
com.sun.xml.bind.api.CompositeStructure
double
float
int
java.awt.Image
java.io.File
java.lang.Boolean
java.lang.Byte
java.lang.Character
java.lang.Class
java.lang.Double
java.lang.Float
java.lang.Integer
java.lang.Long
java.lang.Object
java.lang.Short
java.lang.String
java.lang.Void
java.math.BigDecimal
java.math.BigInteger
java.net.URI
java.net.URL
java.util.Calendar
java.util.Date
java.util.GregorianCalendar
java.util.UUID
javax.activation.DataHandler
javax.xml.bind.JAXBElement
javax.xml.datatype.Duration
javax.xml.datatype.XMLGregorianCalendar
javax.xml.namespace.QName
javax.xml.transform.Source
long
short
void
" with classes [class test.package.jaxws_asm.GetMeSomeReports, class test.package.jaxws_asm.GetMeSomeReportsResponse, class test.package.RemoteReport].
2012-10-23 18:45:42,316 [pool-5-thread-1] DEBUG spring.ConfigurerImpl - Could not determine bean name for instance of class org.apache.cxf.binding.soap.SoapBindingFactory.
| Error 2012-10-23 18:45:42,383 [pool-5-thread-1] ERROR [localhost].[/TestApp] - StandardWrapper.Throwable
Message: Error creating bean with name 'remoteReportServiceBean': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.apache.cxf.endpoint.Server org.apache.cxf.jaxws.JaxWsServerFactoryBean.create()] threw exception; nested exception is java.lang.AbstractMethodError: org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.createEndpointInfo(Lorg/apache/cxf/service/model/ServiceInfo;Lorg/apache/cxf/service/model/BindingInfo;Ljava/util/List;)Lorg/apache/cxf/service/model/EndpointInfo;
Line | Method
->> 578 | createApplicationContext in grails.spring.BeanBuilder
| 53 | loadAdditionalConfig in org.grails.cxf.servlet.GrailsCxfServlet
| 25 | init . . . . . . . . . . in ''
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . . . . . . . . . in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run . . . . . . . . . . in ''
^ 662 | run in java.lang.Thread
Caused by BeanDefinitionStoreException: Factory method [public org.apache.cxf.endpoint.Server org.apache.cxf.jaxws.JaxWsServerFactoryBean.create()] threw exception; nested exception is java.lang.AbstractMethodError: org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.createEndpointInfo(Lorg/apache/cxf/service/model/ServiceInfo;Lorg/apache/cxf/service/model/BindingInfo;Ljava/util/List;)Lorg/apache/cxf/service/model/EndpointInfo;
->> 578 | createApplicationContext in grails.spring.BeanBuilder
| 53 | loadAdditionalConfig in org.grails.cxf.servlet.GrailsCxfServlet
| 25 | init . . . . . . . . . . in ''
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . . . . . . . . . in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run . . . . . . . . . . in ''
^ 662 | run in java.lang.Thread
Caused by AbstractMethodError: org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.createEndpointInfo(Lorg/apache/cxf/service/model/ServiceInfo;Lorg/apache/cxf/service/model/BindingInfo;Ljava/util/List;)Lorg/apache/cxf/service/model/EndpointInfo;
->> 286 | createEndpointInfo in org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
| 143 | createEndpoint in ''
| 159 | create . . . . . . . . . in org.apache.cxf.frontend.ServerFactoryBean
| 211 | create in org.apache.cxf.jaxws.JaxWsServerFactoryBean
| 578 | createApplicationContext in grails.spring.BeanBuilder
| 53 | loadAdditionalConfig in org.grails.cxf.servlet.GrailsCxfServlet
| 25 | init . . . . . . . . . . in ''
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . . . . . . . . . in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run . . . . . . . . . . in ''
^ 662 | run in java.lang.Thread
| Error 2012-10-23 18:45:42,526 [pool-5-thread-1] ERROR [localhost].[/TestApp] - Servlet /TestApp threw load() exception
Message: org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory.createEndpointInfo(Lorg/apache/cxf/service/model/ServiceInfo;Lorg/apache/cxf/service/model/BindingInfo;Ljava/util/List;)Lorg/apache/cxf/service/model/EndpointInfo;
Line | Method
->> 286 | createEndpointInfo in org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
| 143 | createEndpoint in ''
| 159 | create . . . . . . . . . in org.apache.cxf.frontend.ServerFactoryBean
| 211 | create in org.apache.cxf.jaxws.JaxWsServerFactoryBean
| 578 | createApplicationContext in grails.spring.BeanBuilder
| 53 | loadAdditionalConfig in org.grails.cxf.servlet.GrailsCxfServlet
| 25 | init . . . . . . . . . . in ''
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . . . . . . . . . in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run . . . . . . . . . . in ''
^ 662 | run in java.lang.Thread
[...]
I hope you can help me with this error, cause I've tried several things but none solves the problem.
By the way, I apologize for my poor English, I hope I've explained myself clearly enough.
If you need any other information, don't hesitate asking me.
Thank you. Javier.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.