Please ignore this. Indeed, I was suffering from a creeping classpath
problem.

> -----Original Message-----
> From: Benson Margulies [mailto:[EMAIL PROTECTED]
> Sent: Sunday, August 12, 2007 12:45 PM
> To: cxf-user@incubator.apache.org
> Subject: Classpath or Spring heck, I'm not sure what question I'm even
> asking here
> 
> I'm trying to add a plain old (jaxb?) service to the same app context
> where I have a working Aegis service.
> 
> I'm trying to exercise the wiring in a Junit test before I try to
lauch
> an app server.
> 
> I don't know if the xfire packages here indicate some classpath mishap
> that I've so far failed to explain, or whether there are still some
> xfire packages in the snapshot. Obviously, I have a pile of debugging
to
> do here, so feel free to ignore me while I do some of my own flailing.
> 
> org.springframework.beans.factory.BeanCreationException: Error
creating
> bean with name 'jaxws-service-factory' defined in class path resource
> [META-INF/btsws.xml]: Cannot resolve reference to bean 'aegisBean'
while
> setting bean property 'dataBinding'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
creating
> bean with name 'aegisBean' defined in class path resource
> [META-INF/btsws.xml]: Instantiation of bean failed; nested exception
is
> org.springframework.beans.BeanInstantiationException: Could not
> instantiate bean class
> [org.apache.cxf.aegis.databinding.AegisDatabinding]: Constructor threw
> exception; nested exception is java.lang.ClassCastException:
> org.codehaus.xfire.aegis.type.java5.DurationType
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'aegisBean' defined in class path
resource
> [META-INF/btsws.xml]: Instantiation of bean failed; nested exception
is
> org.springframework.beans.BeanInstantiationException: Could not
> instantiate bean class
> [org.apache.cxf.aegis.databinding.AegisDatabinding]: Constructor threw
> exception; nested exception is java.lang.ClassCastException:
> org.codehaus.xfire.aegis.type.java5.DurationType
> Caused by: org.springframework.beans.BeanInstantiationException: Could
> not instantiate bean class
> [org.apache.cxf.aegis.databinding.AegisDatabinding]: Constructor threw
> exception; nested exception is java.lang.ClassCastException:
> org.codehaus.xfire.aegis.type.java5.DurationType
> Caused by: java.lang.ClassCastException:
> org.codehaus.xfire.aegis.type.java5.DurationType
>       at
>
org.apache.cxf.aegis.type.DefaultTypeMappingRegistry.registerIfAvailable
> (DefaultTypeMappingRegistry.java:417)
>       at
>
org.apache.cxf.aegis.type.DefaultTypeMappingRegistry.createDefaultMappin
> gs(DefaultTypeMappingRegistry.java:390)
>       at
>
org.apache.cxf.aegis.type.DefaultTypeMappingRegistry.createDefaultMappin
> gs(DefaultTypeMappingRegistry.java:289)
>       at
>
org.apache.cxf.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeM
> appingRegistry.java:153)
>       at
>
org.apache.cxf.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeM
> appingRegistry.java:143)
>       at
>
org.apache.cxf.aegis.databinding.AegisDatabinding.<init>(AegisDatabindin
> g.java:91)
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>       at
>
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
> ccessorImpl.java:39)
>       at
>
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
> tructorAccessorImpl.java:27)
>       at
> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>       at
>
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
>       at
>
org.springframework.beans.factory.support.SimpleInstantiationStrategy.in
> stantiate(SimpleInstantiationStrategy.java:61)
>       at
>
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.instantiateBean(AbstractAutowireCapableBeanFactory.java:732)
>       at
>
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:720)
>       at
>
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.createBean(AbstractAutowireCapableBeanFactory.java:386)
>       at
>
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
> t(AbstractBeanFactory.java:251)
>       at
>
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
> etSingleton(DefaultSingletonBeanRegistry.java:144)
>       at
>
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
> stractBeanFactory.java:248)
>       at
>
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
> stractBeanFactory.java:160)
>       at
>
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
> solveReference(BeanDefinitionValueResolver.java:261)
>       at
>
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
> solveValueIfNecessary(BeanDefinitionValueResolver.java:109)
>       at
>
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1073)
>       at
>
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.populateBean(AbstractAutowireCapableBeanFactory.java:835)
>       at
>
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> tory.createBean(AbstractAutowireCapableBeanFactory.java:423)
>       at
>
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
> t(AbstractBeanFactory.java:251)
>       at
>
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
> etSingleton(DefaultSingletonBeanRegistry.java:144)
>       at
>
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
> stractBeanFactory.java:248)
>       at
>
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
> stractBeanFactory.java:160)
>       at
>
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
> InstantiateSingletons(DefaultListableBeanFactory.java:279)
>       at
>
org.springframework.context.support.AbstractApplicationContext.refresh(A
> bstractApplicationContext.java:360)
>       at
>
org.springframework.test.AbstractSingleSpringContextTests.createApplicat
> ionContext(AbstractSingleSpringContextTests.java:199)
>       at
>
org.springframework.test.AbstractSingleSpringContextTests.loadContextLoc
> ations(AbstractSingleSpringContextTests.java:179)
>       at
>
org.springframework.test.AbstractSingleSpringContextTests.loadContext(Ab
> stractSingleSpringContextTests.java:158)
>       at
>
org.springframework.test.AbstractSpringContextTests.getContext(AbstractS
> pringContextTests.java:105)
>       at
>
org.springframework.test.AbstractSingleSpringContextTests.setUp(Abstract
> SingleSpringContextTests.java:87)
>       at junit.framework.TestCase.runBare(TestCase.java:128)
>       at
>
org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase
> .java:69)
>       at junit.framework.TestResult$1.protect(TestResult.java:106)
>       at junit.framework.TestResult.runProtected(TestResult.java:124)
>       at junit.framework.TestResult.run(TestResult.java:109)
>       at junit.framework.TestCase.run(TestCase.java:120)
>       at junit.framework.TestSuite.runTest(TestSuite.java:230)
>       at junit.framework.TestSuite.run(TestSuite.java:225)
>       at
>
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUn
> it3TestReference.java:130)
>       at
>
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.ja
> va:38)
>       at
>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
> stRunner.java:460)
>       at
>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
> stRunner.java:673)
>       at
>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun
> ner.java:386)
>       at
>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu
> nner.java:196)

Reply via email to