Hi,
I have a problem with cxf eating relevant errors on spring, which has just
cost me hours on a production machine.
The issue occurs whenever there is a problem in creating the Hibernate
sessionFactory. In those cases I always get something like this, in stead of
the REAL error which remains unreported unless you completely disable cxf:
DEBUG [main] DefaultListableBeanFactory.destroyBean(477) | Retrieved
dependent beans for bean '(inner bean)': [managerTx]
DEBUG [main] DisposableBeanAdapter.invokeCustomDestroyMethod(248) | Invoking
destroy method 'shutdown' on bean with name 'cxf'
WARN [main] DisposableBeanAdapter.invokeCustomDestroyMethod(280) |
Invocation of destroy method 'shutdown' failed on bean with name 'cxf'
org.springframework.beans.factory.BeanCreationNotAllowedException: Error
creating bean with name
'org.springframework.scheduling.quartz.SchedulerFactoryBean#0': Singleton
bean creation not$
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:209)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
[...]
.BeanCreationException: Error creating bean with name
'org.apache.cxf.transport.servlet.ServletTransportFactory' defined in class
path resource [META-INF/c$
PropertyAccessException 1:
org.springframework.beans.MethodInvocationException: Property 'bus' threw
exception; nested exception is
org.springframework.beans.factory.BeanCreationException:$
PropertyAccessException 2:
org.springframework.beans.MethodInvocationException: Property 'transportIds'
threw exception; nested exception is
org.springframework.beans.factory.BeanCreationE$
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1361)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
[/code]
I am using Spring 3.05 and CXF 2.3.1
Is there a solution to this? It also seems like cxf is not properly shutdown
which is also worrying.
Marc
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-not-shutting-down-properly-and-eating-real-error-messages-tp3338081p3338081.html
Sent from the cxf-user mailing list archive at Nabble.com.