Hi Thirimanna, No, I used tomcat server.
Thanks, Nilashan On Mon, Jul 28, 2014 at 1:07 PM, Harsha Thirimanna <[email protected]> wrote: > Hi, > > You had mentioned that it was successful for all the changes in local ? So > what the local server that you had used ? Is it WSO2 Application Server ? > > thanks > > > > *Harsha Thirimanna* > Senior Software Engineer; WSO2, Inc.; http://wso2.com > * <http://www.apache.org/>* > * email: **[email protected]* <[email protected]>* cell: +94 71 5186770 , > +94 * > *774617784 twitter: **http://twitter.com/ > <http://twitter.com/afkham_azeez>* > *harshathirimann linked-in: **http: > <http://lk.linkedin.com/in/afkhamazeez>**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122 > <http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122>* > > *Lean . Enterprise . Middleware* > > > > On Mon, Jul 28, 2014 at 12:48 PM, Nilashan Namasivayam <[email protected] > > wrote: > >> Hi I have used resteasy-servlet. It has /* pattern. It works fine with >> localhost. But it hasn't work in cloud. >> >> My web.xml file like this. >> >> <web-app> >> <display-name>Archetype Created Web Application</display-name> >> <!-- Auto scan REST service --> >> <context-param> >> <param-name>resteasy.scan</param-name> >> <param-value>true</param-value> >> </context-param> >> <servlet> >> <servlet-name>resteasy-servlet</servlet-name> >> <servlet-class> >> >> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher >> </servlet-class> >> </servlet> >> <servlet-mapping> >> <servlet-name>resteasy-servlet</servlet-name> >> <url-pattern>/*</url-pattern> >> </servlet-mapping> >> </web-app> >> >> Thanks. >> >> Regards, >> Nilashan >> >> >> >> On Mon, Jul 28, 2014 at 12:07 PM, Danushka Fernando <[email protected]> >> wrote: >> >>> Hi >>> In that case is should redirect to /services location AFAIR. >>> >>> Thanks & Regards >>> Danushka Fernando >>> Software Engineer >>> WSO2 inc. http://wso2.com/ >>> Mobile : +94716332729 >>> >>> >>> On Mon, Jul 28, 2014 at 12:03 PM, Nilashan Namasivayam < >>> [email protected]> wrote: >>> >>>> Hi Danushka, >>>> >>>> I have created a JAX-RS type and I hosted it in cloud. >>>> >>>> Thanks. >>>> >>>> Regards, >>>> Nilashan >>>> >>>> >>>> On Mon, Jul 28, 2014 at 11:51 AM, Danushka Fernando <[email protected] >>>> > wrote: >>>> >>>>> Hi Nilashan >>>>> You have created a web application type app. So the launch url is >>>>> configured to a url like [1]. I guess what you want is something like >>>>> jax-rs web application. >>>>> >>>>> >>>>> [1] >>>>> https://appserver.dev.cloud.wso2.com/t/nilashan/webapps/tag-default-SNAPSHOT/ >>>>> >>>>> Thanks & Regards >>>>> Danushka Fernando >>>>> Software Engineer >>>>> WSO2 inc. http://wso2.com/ >>>>> Mobile : +94716332729 >>>>> >>>>> >>>>> On Mon, Jul 28, 2014 at 11:19 AM, Nilashan Namasivayam < >>>>> [email protected]> wrote: >>>>> >>>>>> If I click the launch button, it goes directly to >>>>>> https://appserver.dev.cloud.wso2.com/t/nilashan/webapps/tag-default-SNAPSHOT/ >>>>>> >>>>>> Before I add the interceptor, I have invoked the service by >>>>>> >>>>>> https://appserver.dev.cloud.wso2.com/t/nilashan/webapps/tag-default-SNAPSHOT/Tagger/getUser >>>>>> and it has worked fine. >>>>>> >>>>>> But Now I'm unable to invoke the service. >>>>>> >>>>>> Thanks. >>>>>> >>>>>> Regards, >>>>>> Nilashan >>>>>> >>>>>> >>>>>> On Mon, Jul 28, 2014 at 11:11 AM, Kasun Gajasinghe <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> >>>>>>> What's the url you are using for the wadl? Can you invoke the >>>>>>> service? >>>>>>> >>>>>>> >>>>>>> On Sun, Jul 27, 2014 at 10:11 PM, Nilashan Namasivayam < >>>>>>> [email protected]> wrote: >>>>>>> >>>>>>>> Hi All, >>>>>>>> >>>>>>>> I'm trying to deploying a web app in WSO2 App Cloud. I have written >>>>>>>> a service in using JAX-RS. I'm trying to use >>>>>>>> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher >>>>>>>> instead of org.apache.cxf.transport.servlet.CXFServlet in web.xml file >>>>>>>> as I configure a SecurityInterceptor in my project to handle roles >>>>>>>> and authentication. I couldn't find other way to use it. It works fine >>>>>>>> in >>>>>>>> my localhost. But not work in cloud. >>>>>>>> >>>>>>>> I already have added these dependencies in pom.xml. >>>>>>>> <dependency> >>>>>>>> <groupId>org.jboss.resteasy</groupId> >>>>>>>> <artifactId>resteasy-jackson-provider</artifactId> >>>>>>>> <version>2.2.1.GA <http://2.2.1.ga/></version> >>>>>>>> </dependency> >>>>>>>> >>>>>>>> <dependency> >>>>>>>> <groupId>org.jboss.resteasy</groupId> >>>>>>>> <artifactId>resteasy-jaxrs</artifactId> >>>>>>>> <version>2.3.1.GA <http://2.3.1.ga/></version> >>>>>>>> </dependency> >>>>>>>> >>>>>>>> When I build it in cloud, it shows build success as shown in below: >>>>>>>> >>>>>>>> >>>>>>>> [JENKINS] Recording test results >>>>>>>> [INFO] >>>>>>>> [INFO] *--- maven-war-plugin:2.1.1:war (default-war) @ tag --- >>>>>>>> *[INFO] Packaging webapp >>>>>>>> [INFO] Assembling webapp [tag] in >>>>>>>> [/mnt/10.0.0.196/wso2jppserver-5.2.0/repository/jenkins/tenants/nilashan/jenkinshome/jobs/tag-trunk-default/workspace/webapp] >>>>>>>> [INFO] Processing war project >>>>>>>> [INFO] Copying webapp resources >>>>>>>> [/mnt/10.0.0.196/wso2jppserver-5.2.0/repository/jenkins/tenants/nilashan/jenkinshome/jobs/tag-trunk-default/workspace/src/main/webapp] >>>>>>>> [INFO] Webapp assembled in [174 msecs] >>>>>>>> [INFO] Building war: >>>>>>>> /mnt/10.0.0.196/wso2jppserver-5.2.0/repository/jenkins/tenants/nilashan/jenkinshome/jobs/tag-trunk-default/workspace/target/tag.war >>>>>>>> [INFO] WEB-INF/web.xml already added, skipping >>>>>>>> [INFO] >>>>>>>> [INFO] *--- maven-install-plugin:2.3.1:install (default-install) @ tag >>>>>>>> --- >>>>>>>> *[INFO] Installing >>>>>>>> /mnt/10.0.0.196/wso2jppserver-5.2.0/repository/jenkins/tenants/nilashan/jenkinshome/jobs/tag-trunk-default/workspace/target/tag.war >>>>>>>> to >>>>>>>> /mnt/10.0.0.196/wso2jppserver-5.2.0/repository/jenkins/tenants/nilashan/mavenhome/repository/org/wso2/af/tag/default-SNAPSHOT/tag-default-SNAPSHOT.war >>>>>>>> [INFO] Installing >>>>>>>> /mnt/10.0.0.196/wso2jppserver-5.2.0/repository/jenkins/tenants/nilashan/jenkinshome/jobs/tag-trunk-default/workspace/pom.xml >>>>>>>> to >>>>>>>> /mnt/10.0.0.196/wso2jppserver-5.2.0/repository/jenkins/tenants/nilashan/mavenhome/repository/org/wso2/af/tag/default-SNAPSHOT/tag-default-SNAPSHOT.pom >>>>>>>> [INFO] >>>>>>>> ------------------------------------------------------------------------ >>>>>>>> [INFO] BUILD SUCCESS >>>>>>>> [INFO] >>>>>>>> ------------------------------------------------------------------------ >>>>>>>> [INFO] Total time: 5.776s >>>>>>>> [INFO] Finished at: Sun Jul 27 21:20:37 PDT 2014 >>>>>>>> [INFO] Final Memory: 14M/448M >>>>>>>> [INFO] >>>>>>>> ------------------------------------------------------------------------ >>>>>>>> [JENKINS] Archiving >>>>>>>> /mnt/10.0.0.196/wso2jppserver-5.2.0/repository/jenkins/tenants/nilashan/jenkinshome/jobs/tag-trunk-default/workspace/pom.xml >>>>>>>> to >>>>>>>> /mnt/10.0.0.196/wso2jppserver-5.2.0/repository/jenkins/tenants/nilashan/jenkinshome/jobs/tag-trunk-default/modules/org.wso2.af$tag/builds/2014-07-27_21-20-26/archive/org.wso2.af/tag/default-SNAPSHOT/tag-default-SNAPSHOT.pom >>>>>>>> [JENKINS] Archiving >>>>>>>> /mnt/10.0.0.196/wso2jppserver-5.2.0/repository/jenkins/tenants/nilashan/jenkinshome/jobs/tag-trunk-default/workspace/target/tag.war >>>>>>>> to >>>>>>>> /mnt/10.0.0.196/wso2jppserver-5.2.0/repository/jenkins/tenants/nilashan/jenkinshome/jobs/tag-trunk-default/modules/org.wso2.af$tag/builds/2014-07-27_21-20-26/archive/org.wso2.af/tag/default-SNAPSHOT/tag-default-SNAPSHOT.war >>>>>>>> Waiting for Jenkins to finish collecting data >>>>>>>> channel stopped >>>>>>>> tag : trunk : nilashan.live.com@nilashan : original >> notified as >>>>>>>> SUCCESSsending message to deploy to stage Development with tag >>>>>>>> Successfully finished tag-trunk-default #54Storing artifact >>>>>>>> permanently with the tag name Unable to create the tag >>>>>>>> directoryFinished: SUCCESS >>>>>>>> >>>>>>>> >>>>>>>> But I'm unable to find the wadl endpoint. What can be the issue? >>>>>>>> >>>>>>>> Thanks. >>>>>>>> >>>>>>>> Regards, >>>>>>>> Nilashan >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Dev mailing list >>>>>>>> [email protected] >>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. >>>>>>> email: kasung AT spamfree wso2.com >>>>>>> linked-in: http://lk.linkedin.com/in/gajasinghe >>>>>>> blog: http://kasunbg.org >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Dev mailing list >>>>>> [email protected] >>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>> >>>>>> >>>>> >>>> >>> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
