Hi all,

I'm developing a REST API using Apache CXF. war file of the web service get
deployed successfully. But when I send requests, I can see following INFO
logs for each request, and all requests are failed. According to the logs,
REST resource beans are destroyed just after created.

I'm deploying this web service in IS. When I get this issue, I have to
replace the IS pack with a new one. Otherwise, this issue never goes away.
With a fresh pack it works again.

According to my observations, this happens when I do changes (not always
though) to backend osgi bundle, which is put in dropins.

Anyone have observed similar issues?

[2014-10-30 11:04:46,383]  INFO
{org.springframework.web.context.support.XmlWebApplicationContext} -
 Refreshing Root WebApplicationContext: startup date [Thu Oct 30 11:04:46
IST 2014]; root of context hierarchy
[2014-10-30 11:04:46,389]  INFO
{org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
[2014-10-30 11:04:46,408]  INFO
{org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
XML bean definitions from URL
[jndi:/localhost/wso2-um/WEB-INF/cxf-servlet.xml]
[2014-10-30 11:04:46,432]  INFO
{org.springframework.beans.factory.support.DefaultListableBeanFactory}
-  *Pre-instantiating
singletons *in
org.springframework.beans.factory.support.DefaultListableBeanFactory@4565105e:
defining beans
[cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,userManagementServices,tenantBean,roleBean,userBean,securityBean,featureStoreBean,jacksonJsonProvider,authenticationFilter];
root of factory hierarchy
[2014-10-30 11:04:46,440]  INFO
{org.springframework.beans.factory.support.DefaultListableBeanFactory}
-  *Destroying
singletons* in
org.springframework.beans.factory.support.DefaultListableBeanFactory@4565105e:
defining beans
[cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,userManagementServices,tenantBean,roleBean,userBean,securityBean,featureStoreBean,jacksonJsonProvider,authenticationFilter];
root of factory hierarchy

[2014-10-30 11:04:46,617]  INFO
{org.springframework.web.context.support.XmlWebApplicationContext} -
 Refreshing Root WebApplicationContext: startup date [Thu Oct 30 11:04:46
IST 2014]; root of context hierarchy
[2014-10-30 11:04:46,618]  INFO
{org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
[2014-10-30 11:04:46,633]  INFO
{org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
XML bean definitions from URL
[jndi:/localhost/wso2-um/WEB-INF/cxf-servlet.xml]
[2014-10-30 11:04:46,654]  INFO
{org.springframework.beans.factory.support.DefaultListableBeanFactory}
-  *Pre-instantiating
singletons* in
org.springframework.beans.factory.support.DefaultListableBeanFactory@39aaadc6:
defining beans
[cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,userManagementServices,tenantBean,roleBean,userBean,securityBean,featureStoreBean,jacksonJsonProvider,authenticationFilter];
root of factory hierarchy
[2014-10-30 11:04:46,662]  INFO
{org.springframework.beans.factory.support.DefaultListableBeanFactory}
-  *Destroying
singletons* in
org.springframework.beans.factory.support.DefaultListableBeanFactory@39aaadc6:
defining beans
[cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,userManagementServices,tenantBean,roleBean,userBean,securityBean,featureStoreBean,jacksonJsonProvider,authenticationFilter];
root of factory hierarchy

[2014-10-30 11:04:46,702]  INFO
{org.springframework.web.context.support.XmlWebApplicationContext} -
 Refreshing Root WebApplicationContext: startup date [Thu Oct 30 11:04:46
IST 2014]; root of context hierarchy
[2014-10-30 11:04:46,702]  INFO
{org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
[2014-10-30 11:04:46,717]  INFO
{org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
XML bean definitions from URL
[jndi:/localhost/wso2-um/WEB-INF/cxf-servlet.xml]
[2014-10-30 11:04:46,738]  INFO
{org.springframework.beans.factory.support.DefaultListableBeanFactory}
-  *Pre-instantiating
singletons* in
org.springframework.beans.factory.support.DefaultListableBeanFactory@723e7e4c:
defining beans
[cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,userManagementServices,tenantBean,roleBean,userBean,securityBean,featureStoreBean,jacksonJsonProvider,authenticationFilter];
root of factory hierarchy
[2014-10-30 11:04:46,746]  INFO
{org.springframework.beans.factory.support.DefaultListableBeanFactory}
-  *Destroying
singletons *in
org.springframework.beans.factory.support.DefaultListableBeanFactory@723e7e4c:
defining beans
[cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,userManagementServices,tenantBean,roleBean,userBean,securityBean,featureStoreBean,jacksonJsonProvider,authenticationFilter];
root of factory hierarchy

Thanks,

-- 
*Bhathiya Jayasekara*
*Software Engineer,*
*WSO2 inc., http://wso2.com <http://wso2.com>*

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
<http://www.linkedin.com/in/bhathiyaj>*
*Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
*Blog: http://movingaheadblog.blogspot.com
<http://movingaheadblog.blogspot.com/>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to