It helps to have the metro jars in your project

I was executing some unit tests on a different machine which kept failing with the error message below. After lots of googling (that didn't help), I finally figured out that I forgot to checkin the jars from the metro 1.4 distribution. The error message kind of threw me in the wrong direction. Starting integration tests ...
[copy] Copying 1 file to /Users/prhodes/.grails/1.1/projects/stitches-client/test-classes/integration
[copy] Copying 31 files to /Users/prhodes/.grails/1.1/projects/stitches-client/test-classes
[copy] Copied 26 empty directories to 6 empty directories under /Users/prhodes/.grails/1.1/projects/stitches-client/test-classes
[mkdir] Created dir: /Users/prhodes/.grails/1.1/projects/stitches-client/resources/grails-app/i18n
[native2ascii] Converting 11 files from /Users/prhodes/Documents/workspace-dmi2/stitches-client/grails-app/i18n to /Users/prhodes/.grails/1.1/projects/stitches-client/resources/grails-app/i18n
[copy] Copying 1 file to /Users/prhodes/.grails/1.1/projects/stitches-client/classes
[copy] Copying 5 files to /Users/prhodes/.grails/1.1/projects/stitches-client/resources
[copy] Copied 3 empty directories to 2 empty directories under /Users/prhodes/.grails/1.1/projects/stitches-client/resources
[copy] Copied 3 empty directories to 2 empty directories under /Users/prhodes/.grails/1.1/projects/stitches-client/resources
[copy] Copying 25 files to /Users/prhodes/.grails/1.1/projects/stitches-client/resources
[copy] Copied 22 empty directories to 6 empty directories under /Users/prhodes/.grails/1.1/projects/stitches-client/resources
[copy] Copying 1 file to /Users/prhodes/.grails/1.1/projects/stitches-client
[copy] Copying 1 file to /Users/prhodes/.grails/1.1/projects/stitches-client
Error executing script TestApp: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stitchesClientService': Cannot create inner bean '(inner bean)' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stitchesService': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.authsum.stitches.services.StitchesService org.authsum.stitches.services.StitchesService_Service.getStitchesServiceHttpPort()] threw exception; nested exception is com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class org.authsum.stitches.services.This.2.AddMessage is not found. Have you run APT to generate them?
gant.TargetExecutionException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stitchesClientService': Cannot create inner bean '(inner bean)' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stitchesService': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.authsum.stitches.services.StitchesService org.authsum.stitches.services.StitchesService_Service.getStitchesServiceHttpPort()] threw exception; nested exception is com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class org.authsum.stitches.services.This.2.AddMessage is not found. Have you run APT to generate them?
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:331)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:344)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
at gant.Gant.dispatch(Gant.groovy:334)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:495)
at gant.Gant.processTargets(Gant.groovy:480)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stitchesClientService': Cannot create inner bean '(inner bean)' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stitchesService': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.authsum.stitches.services.StitchesService org.authsum.stitches.services.StitchesService_Service.getStitchesServiceHttpPort()] threw exception; nested exception is com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class org.authsum.stitches.services.This.2.AddMessage is not found. Have you run APT to generate them?
at java.security.AccessController.doPrivileged(Native Method)
at _GrailsBootstrap_groovy$_run_closure2_closure13.doCall(_GrailsBootstrap_groovy:86)
at _GrailsBootstrap_groovy$_run_closure2_closure13.doCall(_GrailsBootstrap_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:269)
at _GrailsBootstrap_groovy$_run_closure2.doCall(_GrailsBootstrap_groovy:84)
at _GrailsBootstrap_groovy$_run_closure7.doCall(_GrailsBootstrap_groovy:142)
at _GrailsTest_groovy$_run_closure7.doCall(_GrailsTest_groovy:248)
at _GrailsTest_groovy$_run_closure7.doCall(_GrailsTest_groovy)
at _GrailsTest_groovy$_run_closure1_closure19.doCall(_GrailsTest_groovy:109)
at _GrailsTest_groovy$_run_closure1.doCall(_GrailsTest_groovy:95)
at TestApp$_run_closure1.doCall(TestApp.groovy:66)
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
... 10 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#3': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stitchesService': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.authsum.stitches.services.StitchesService org.authsum.stitches.services.StitchesService_Service.getStitchesServiceHttpPort()] threw exception; nested exception is com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class org.authsum.stitches.services.This.2.AddMessage is not found. Have you run APT to generate them?
at java.security.AccessController.doPrivileged(Native Method)
... 22 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stitchesService': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.authsum.stitches.services.StitchesService org.authsum.stitches.services.StitchesService_Service.getStitchesServiceHttpPort()] threw exception; nested exception is com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class org.authsum.stitches.services.This.2.AddMessage is not found. Have you run APT to generate them?
at java.security.AccessController.doPrivileged(Native Method)
... 23 more
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.authsum.stitches.services.StitchesService org.authsum.stitches.services.StitchesService_Service.getStitchesServiceHttpPort()] threw exception; nested exception is com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class org.authsum.stitches.services.This.2.AddMessage is not found. Have you run APT to generate them?
... 24 more
Caused by: com.sun.xml.internal.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class org.authsum.stitches.services.This.2.AddMessage is not found. Have you run APT to generate them?
at com.sun.xml.internal.ws.model.RuntimeModeler.getClass(RuntimeModeler.java:256)
at com.sun.xml.internal.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:567)
at com.sun.xml.internal.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:514)
at com.sun.xml.internal.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:341)
at com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:227)
at com.sun.xml.internal.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:588)
at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:291)
at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:274)
at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:267)
at javax.xml.ws.Service.getPort(Service.java:92)
at org.authsum.stitches.services.StitchesService_Service.getStitchesServiceHttpPort(StitchesService_Service.java:56)
... 24 more

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options