Unable to add/import WSO2 JAX-RS service into StratosLive Application Server - wso2

I have a WSO2 Application Server, version 5.0.1 installed on my local machine.
I created a JAX-RS service and tested it locally.
The WAR file was built and deployed to the local Application Server successfully. When I log in to the local Application server Admin console, I see it displayed under Applications as type JaxWebApp with 'Find Services' listed under the Actions column.
I have a StratosLive subscription and I am trying to ADD/UPLOAD this JAX-RS service as a WAR file to the StratosLive Application Server. The Admin Console for the StratosLive Application Server is different. On the Main tab, It displays Web Applications and Web Services rather than the Applications and Services on the Admin console for the 5.0.1 Application Server I am running locally.
Consequently, I do not see an option to ADD/UPLOAD my JAX-RS service as a WAR file. The only option is to add a Web Application WAR file (I tried this and it does not work properly - thinks it's a web app) or JAX-WS Web Service as a annotated JAR file.
It looks like the StratosLive Application Server I am using may be a different version (earlier maybe) than the 5.0.1 I am using locally.
Has anyone else been able to ADD/UPLOAD a JAX-RS service to a StratosLive Application Server?

Usually it takes small time to upgrade StratosLive version of a product to latest standalone product version. Now StratosLive has been upgraded to latest Application Server version and you should able to run above use case on StratosLive without any issue.

Related

WSO2 APP manager tomcat to read config file while start up

I have the web application deployed as a war in WSO2 app manager1.0.0.The web application has a config file which must be started while the server/tomcat server starts.Where can I have this located or any configurations need to be made so that the config file is read and prepared for the web application to run smooth.
It is not recommended to host back-end Web Apps on WSO2 App Manager itself.
WSO2 App Manager is intended to be used for proxying.
Therefore you can place the web application on a different server. i.e Tomcat / WSO2 Application Server etc.

WSO2 P.PaaS : Accessing the AS and other WSO2 products

So I have got WSO2 P.PaaS installed and running. I want to deploy .war file to the Application Server. It seems the AS on P.PaaS does not accept .war file; but the stand-alone one does. See here. Also, I want to use the WSO2 products deployed into the PaaS. I am not sure what URL or port I should use. Is there a tutorial that I can use to experiment?
Sorry for the brevity, but, I am new to WSO2.
What PPaaS version you have installed, 4.0.0 or from current master branch which is 4.1.0 milestone 1 version?
Here is the quick start guide Quick start guide .
You can access the management console as https://STRATOS_DOMAIN:9443/console.
Assuming you are using PP 4.0.0 version,
Log into management console
Go to cartridges page. There you can find the available cartridges, you should find Application Server as a cartridge.
Click on AS cartridge in order to subscribe for it. At subscribing process you would be asked a GIT repository URL.
After you subscribe, PP will clone what is in your GIT repository url in to Application server. So if you provide a url which has your web application, those application would be automatically deployed into the Application server. Here is a sample GIT repository , you can include your web apps under "webapps" folder.
There after if you modify your web apps (say web app version 2) and commit the changes to your repository, Stratos/PP automatically update Application server with the new web apps.
Since you have already deployed PP, you can have a loot at this screencast to see how you can deploy a web app

can wso2ues 1.0 (carbon server) run as a web app?

I'm trying to run WSO2UES (Carbon) as a web application in Apache Tomcat. I've followed the procedure discussed at http://pradeepfernando.blogspot.com/2012/09/running-wso2-carbon-as-web-app-apache.html.
I've added the web application folders into Tomcat webapps folder, configured HTTPS listener of Tomcat. Server logs show that application is successfully deployed and OSGI console is started. When I try to connect to application from https://myIp.com:8443/crbn/carbon, I get a 404 error. There are no exceptions in server logs.
Tomcat error screen contains reference to BridgeServlet: /crbn/carbon, so I know that request is correctly forwarded to BridgeServlet. I guess BridgeServlet can not locate and run the application from OSGI bundles. But I do not have any idea about why and how I can fix it.
How can I diagnose the problem, or is there any available source of information for the correct procedure?
Note: I'm using WSO2UES 1.0, Apache Tomcat 7.0.40. I've tried Java versions 6 and 7.
WSO2 UES 1.0 is based on carbon 4.1.0. AFAIK they are not officially support on web app mode.
can wso2 carbon 4.1 run as a web app (war)?
previous architecture handled using a concept called “Bridge Servlet”, so if you want to run it as previous you have to do some customized work.
here is a article on architecture difference on carbon latest.
http://wso2.com/library/articles/2014/01/understanding-wso2-carbon-architecture/

WSO2 running server and application in different machines

I am new to WSO2 and web service domain. I created an axis2 service application using wso2 carbon studio under eclipse platform. I installed WSO2 WSAS in the same machine and uploaded this service. based on this tutorial.
http://wso2.org/project/carbon-studio/1.0.11/docs/esb_proxy_service_sample.html#CreatingaProxyServiceUsingCarbonStudioIDE
and able to see the result in eclipse console. Now I want to run the server in separate machine and get the result in eclipse console. Can any one give solution for this.
Just run the server on a seperate machine, and use the IP and port on which the server is running and use that from the client code, in plce of localhost.

Web Service on Netbeans

I have created a Web Service in Net Beans 6.9 and deploy it locally. And I am using it via a java SE application by adding Web Service client in this application. How to obtain the link of the Web Serice so that it can be used from anywhere ?
2) From where to obtain WSDL file of Web Service ?
3) How to host a Web Service on the internet ?
Thank a ton in advance..!!!
You could create a new project of type web application in Netbeans.
In the web application, you will then create a web service (NOT a web service client).
For publishing and testing the web application, you will have to deploy it to a web server (e.g. GlassFish).
After publishing the web application, the WSDL file will be typically located at: http://localhost:<port>/<your web app>/<your service>?wsdl
For GlassFish, the default port is 8080.
If your current Netbeans installation doesn't support web projects or you don't have GlassFish installed, I suggest you download and install the latest version of Netbeans with Java EE support (bundled Apache Tomcat and GlassFish server in the same setup).
http://netbeans.org/downloads/index.html
Hosting SOAP web services on the internet at large has not been terribly successful. For example Google had SOAP based web services initially, and they switched to REST based services in the end. You may want to reconsider and deploy a REST based interface. If the bulk of your code is not embedded in the web service, then you should not have that difficult of a time switching the interface.
To deploy a SOAP or a REST web service, you would need to deploy a 'full' Java EE container (e.g. Glassfissh or JBoss) on a machine with access to the internet. You might virtual hosting e.g. Westhost, Amazon, or there are turnkey solutions like Heroku (note: I'm not endorsing any of the companies listed here; they're just examples). If you just want to deploy a REST based service, any web container will do e.g. Tomcat or Jetty. In addition to services mentioned above you could probably host a rest web service on any service that will let you upload a war file.