Ye lets remove the spring dependency from code . And use default product version.
Thank you, Dharshana. On Sat, Mar 5, 2016 at 1:06 PM, Bhathiya Jayasekara <[email protected]> wrote: > FYI: In APIM we have spring.framework_3.2.9.wso2v1.jar. (I don't see any > spring dependency in your webapp code.) > > Thanks, > Bhathiya > > On Sat, Mar 5, 2016 at 12:18 PM, Bhathiya Jayasekara <[email protected]> > wrote: > >> Hi Dharshana, >> >> I updated the webapp, and now I'm getting this runtime exception. >> >> *java.lang.NoSuchMethodError: >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setEnvironment(Lorg/springframework/core/env/Environment;)V* >> >> As per [1], it needs a later version of spring-beans. Can you please >> confirm if I need to update that or if I'm missing something else? >> >> [1] >> http://stackoverflow.com/questions/27607961/nosuchmethoderror-org-springframework-beans-factory-xml-xmlreadercontext-getenv >> >> Thanks, >> Bhathiya >> >> >> >> On Fri, Feb 26, 2016 at 10:31 PM, Bhathiya Jayasekara <[email protected]> >> wrote: >> >>> Thanks a lot for the detailed information Dharshana. I will add and use >>> this webapp. >>> >>> Thanks, >>> Bhathiya >>> >>> On Fri, Feb 26, 2016 at 9:42 PM, Dharshana Warusavitharana < >>> [email protected]> wrote: >>> >>>> Hi Bhatiya, >>>> >>>> This uses web app deployed in product to expose set of APIs deployed to >>>> Synapse context. We originally developed this to monitor dep sync between >>>> gateway nodes. You can take the web app form [1] and implement until as >>>> this to check this. There is a web app on APIM repo as well on [2]. But >>>> latest one is available at [1]. you can merge it to APIM product repo form >>>> [3]. >>>> >>>> >>>> Just deploy this war into product and use following REST calls to take >>>> status. >>>> >>>> Please find webapp details here >>>> *API status* >>>> >>>> All Apis >>>> >>>> http://localhost:9763/APIStatusMonitor/apiInformation/api/getApiList >>>> >>>> *http://localhost:9763/APIStatusMonitor/apiInformation/api/{tenantDomain}/{tenantId}/getApiList >>>> <http://localhost:9763/APIStatusMonitor/apiInformation/api/%7BtenantDomain%7D/%7BtenantId%7D/getApiList>* >>>> >>>> http://localhost:9763/APIStatusMonitor/apiInformation/api/wso2.org/1/getApiList >>>> >>>> Get specific API info >>>> >>>> >>>> *http://localhost:9763/APIStatusMonitor/apiInformation/api/getStatus/{webappName}/{version} >>>> <http://localhost:9763/APIStatusMonitor/apiInformation/api/getStatus/%7BwebappName%7D/%7Bversion%7D>* >>>> >>>> http://localhost:9763/APIStatusMonitor/apiInformation/api/getStatus/adminApi123/1.0.0 >>>> *http://localhost:9763/APIStatusMonitor/apiInformation/api/{tenantDomain}/{tenantId}/{webappName}/{version} >>>> <http://localhost:9763/APIStatusMonitor/apiInformation/api/%7BtenantDomain%7D/%7BtenantId%7D/%7BwebappName%7D/%7Bversion%7D>* >>>> >>>> http://localhost:9763/APIStatusMonitor/apiInformation/api/wso2.org/1/testTenantApi/1.0.0 >>>> >>>> *WebApp status* >>>> >>>> All webapps >>>> http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/allApps >>>> >>>> *http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/ >>>> <http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/>{tenantDomain}/{tenantId}/allApps* >>>> >>>> http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/wso2.org/1/allApps >>>> >>>> *Webapp Info* >>>> >>>> >>>> http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/APIStatusMonitor.war >>>> >>>> *http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/{tenantDomain}/{tenantId}/{webappName} >>>> <http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/%7BtenantDomain%7D/%7BtenantId%7D/%7BwebappName%7D>* >>>> >>>> http://localhost:9763/APIStatusMonitor/webAppStatus/webappInfo/wso2.org/1/APIStatusMonitor.war >>>> >>>> >>>> *Git repo * >>>> https://github.com/dkasunw/artifactMonitor.git >>>> >>>> >>>> >>>> [1]. https://github.com/dkasunw/artifactMonitor.git >>>> [2]. >>>> https://github.com/wso2/product-apim/tree/master/modules/integration/tests-common/backend-service/monitor-app >>>> [3]. >>>> https://github.com/krishanthasamaraweera/product-apim/tree/master/modules/integration/tests-common/backend-service/monitor-app >>>> >>>> Thank you, >>>> Dharshana. >>>> >>>> On Fri, Feb 26, 2016 at 6:41 PM, Bhathiya Jayasekara <[email protected] >>>> > wrote: >>>> >>>>> Hi TA team, >>>>> >>>>> In [1], inside waitForAPIDeploymentSync() method, it checks for >>>>> ExecutionEnvironment.PLATFORM before proceeding to wait. >>>>> >>>>> But even in standalone mode, I have seen API invocations sometimes >>>>> fail as API is not completely deployed at that time. So, removing above >>>>> conditional check and getting this functionality for standalone tests as >>>>> well looks like a solution to me. WDYT? Can you think of any issues that >>>>> can arise if we do that? >>>>> >>>>> [1] >>>>> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/base/APIMIntegrationBaseTest.java#L416 >>>>> >>>>> Thanks, >>>>> >>>>> -- >>>>> *Bhathiya Jayasekara* >>>>> *Senior 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/>* >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> Dharshana Warusavitharana >>>> Senior Software Engineer , Test Automation >>>> WSO2 Inc. http://wso2.com >>>> email : [email protected] <[email protected]> >>>> Tel : +94 11 214 5345 >>>> Fax :+94 11 2145300 >>>> cell : +94770342233 >>>> blog : http://dharshanaw.blogspot.com >>>> >>>> lean . enterprise . middleware >>>> >>> >>> >>> >>> -- >>> *Bhathiya Jayasekara* >>> *Senior 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* >> *Senior 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* > *Senior 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/>* > -- Dharshana Warusavitharana Senior Software Engineer , Test Automation WSO2 Inc. http://wso2.com email : [email protected] <[email protected]> Tel : +94 11 214 5345 Fax :+94 11 2145300 cell : +94770342233 blog : http://dharshanaw.blogspot.com lean . enterprise . middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
