I figured out the issue. There was a NoClassDefFoundError which was swallowed by CXF/Spring runtime. That has happened because I had thrown an exception in constructor of a bean class. I had not logged the error, and that's why I missed the cause of the error.
Thanks, Bhathiya On Thu, Oct 30, 2014 at 11:55 AM, Bhathiya Jayasekara <[email protected]> wrote: > Just realized that same happens when the war is deployed. > > [2014-10-30 11:50:35,617] INFO > {org.springframework.web.context.support.XmlWebApplicationContext} - > Refreshing Root WebApplicationContext: startup date [Thu Oct 30 11:50:35 > IST 2014]; root of context hierarchy > [2014-10-30 11:50:35,692] INFO > {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading > XML bean definitions from class path resource [META-INF/cxf/cxf.xml] > [2014-10-30 11:50:35,746] 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:50:35,879] INFO > {org.springframework.beans.factory.support.DefaultListableBeanFactory} - > *Pre-instantiating > singletons* in > org.springframework.beans.factory.support.DefaultListableBeanFactory@1cdd581e: > 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:50:36,345] INFO > {org.springframework.beans.factory.support.DefaultListableBeanFactory} - > *Destroying > singletons* in > org.springframework.beans.factory.support.DefaultListableBeanFactory@1cdd581e: > 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:50:36,365] INFO > {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - *Deployed > webapp*: > StandardEngine[Catalina].StandardHost[localhost].StandardContext[/wso2-um].File[/data/products/is/wso2is-5.0.0/repository/deployment/server/webapps/wso2-um.war] > > Any ideas regarding this? > > Thanks, > Bhathiya > > On Thu, Oct 30, 2014 at 11:20 AM, Bhathiya Jayasekara <[email protected]> > wrote: > >> 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 <%2B94715478185>* >> *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/>* >> > > > > -- > *Bhathiya Jayasekara* > *Software Engineer,* > *WSO2 inc., http://wso2.com <http://wso2.com>* > > *Phone: +94715478185 <%2B94715478185>* > *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/>* > -- *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
