Hi Abimaran, Did you try to deploy the same war file manually I mean by copying. If not try that to make sure no issue with war file.
Thanks, Iqbal On Thu, Oct 1, 2015 at 1:32 PM, Abimaran Kugathasan <[email protected]> wrote: > Hi Irham, > > Yes, war file path is correct. Please find the whole logs attached. > > On Thu, Oct 1, 2015 at 1:22 PM, Irham Iqbal <[email protected]> wrote: > >> Hi Abimaran, >> >> Can you send the full log. Also make sure the was file path is correct. >> >> Thanks, >> Iqbal >> >> On Thu, Oct 1, 2015 at 1:15 PM, Abimaran Kugathasan <[email protected]> >> wrote: >> >>> Hi, >>> >>> I'm getting below Exception while uploading a REST web service. >>> >>> java.rmi.RemoteException: Fail to upload webapp file >>>> :org.apache.axis2.AxisFault: Unable to read data handler for dataHandler >>> >>> >>> Below is my test method. >>> >>> public void deployArrService(String backEndUrl, String sessionCookie, >>> String serviceFilePath) >>> throws RemoteException, MalformedURLException, >>> LoginAuthenticationExceptionException, ExceptionException { >>> >>> WebAppAdminClient webAppAdminClient = new WebAppAdminClient(backEndUrl, >>> sessionCookie); >>> webAppAdminClient.warFileUplaoder(serviceFilePath); >>> >>> } >>> >>> @Test(groups = {"wso2.am"}, description = "test endpoint deployment from >>> car file") >>> public void testMethod() throws Exception { >>> String filePath = >>> ProductConstant.getResourceLocations(ProductConstant.AM_SERVER_NAME) >>> + File.separator + >>> "backendTimeout" + File.separator + "RESTFulExample.war"; >>> >>> deployArrService(amServer.getBackEndUrl(), amServer.getSessionCookie(), >>> filePath); >>> System.out.println("Running test"); >>> } >>> >>> >>> The webserive is simple REST webservice based on resteasy-jaxrs. >>> >>> <dependency> >>> <groupId>org.jboss.resteasy</groupId> >>> <artifactId>resteasy-jaxrs</artifactId> >>> <version>2.2.1.GA</version> >>> </dependency> >>> >>> >>> On Thu, Oct 1, 2015 at 10:28 AM, Abimaran Kugathasan <[email protected]> >>> wrote: >>> >>>> Thanks a lot NuwanW and Thusitha! I will use it. >>>> >>>> On Thu, Oct 1, 2015 at 10:25 AM, Thusitha Thilina Dayaratne < >>>> [email protected]> wrote: >>>> >>>>> Hi Abimaran, >>>>> In product-as we are using WebappAdminClient[1] to deploy war files. I >>>>> think you can refer to the same >>>>> [1] - >>>>> https://github.com/wso2/product-as/blob/master/modules/integration/tests-common/admin-clients/src/main/java/org/wso2/appserver/integration/common/clients/WebAppAdminClient.java >>>>> >>>>> Thanks >>>>> /Thusitha >>>>> On Thu, Oct 1, 2015 at 10:11 AM, Abimaran Kugathasan < >>>>> [email protected]> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> >>>>>> We can deploy aar files using ServiceAdminClient into a product. Can >>>>>> we do the same for war file. Does our automation framework support it? >>>>>> >>>>>> If so, can anybody please point me the Class or module name? >>>>>> >>>>>> -- >>>>>> Thanks >>>>>> Abimaran Kugathasan >>>>>> >>>>>> Software Engineer | WSO2 Inc >>>>>> Data & APIs Technologies Team >>>>>> Mobile : +94 773922820 >>>>>> >>>>>> <http://stackoverflow.com/users/515034> >>>>>> <http://lk.linkedin.com/in/abimaran> >>>>>> <http://www.lkabimaran.blogspot.com/> <https://github.com/abimarank> >>>>>> <https://twitter.com/abimaran> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Dev mailing list >>>>>> [email protected] >>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Thusitha Dayaratne >>>>> Software Engineer >>>>> WSO2 Inc. - lean . enterprise . middleware | wso2.com >>>>> >>>>> Mobile +94712756809 >>>>> Blog alokayasoya.blogspot.com >>>>> About http://about.me/thusithathilina >>>>> >>>>> >>>> >>>> >>>> -- >>>> Thanks >>>> Abimaran Kugathasan >>>> >>>> Software Engineer | WSO2 Inc >>>> Data & APIs Technologies Team >>>> Mobile : +94 773922820 >>>> >>>> <http://stackoverflow.com/users/515034> >>>> <http://lk.linkedin.com/in/abimaran> >>>> <http://www.lkabimaran.blogspot.com/> <https://github.com/abimarank> >>>> <https://twitter.com/abimaran> >>>> >>>> >>> >>> >>> -- >>> Thanks >>> Abimaran Kugathasan >>> >>> Software Engineer | WSO2 Inc >>> Data & APIs Technologies Team >>> Mobile : +94 773922820 >>> >>> <http://stackoverflow.com/users/515034> >>> <http://lk.linkedin.com/in/abimaran> >>> <http://www.lkabimaran.blogspot.com/> <https://github.com/abimarank> >>> <https://twitter.com/abimaran> >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Irham Iqbal >> Software Engineer - Test Automation >> WSO2, Inc.: http://wso2.com >> lean. enterprise. middleware >> phone: +94 777888452 >> > > > > -- > Thanks > Abimaran Kugathasan > > Software Engineer | WSO2 Inc > Data & APIs Technologies Team > Mobile : +94 773922820 > > <http://stackoverflow.com/users/515034> > <http://lk.linkedin.com/in/abimaran> > <http://www.lkabimaran.blogspot.com/> <https://github.com/abimarank> > <https://twitter.com/abimaran> > > -- Irham Iqbal Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 777888452
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
