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

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/

Related

How to determine if web services deployed correctly on websphere application server?

hey guys I'm a newbie at IBM websphere Application server and have a general question !
I'm trying to deploy an ear file which only has some ejb jar files(no wars) which cantains #webservice annotations to expose JAX-WS web services.
the ear structure is base on J2EE standard and it works on weblogic and glassfish as well, but when I deploy my ear on websphere 9.0 application server and try to test it's web services by SOAPUI tool I get 404 error repeatedly.
unfortunately I can't see my web services list in admin console or even their wsdl files.
Although my ear deployed successfuly and has started status at websphere application server console.
I dont know how to test it :( does it need any precondition?
these are my tested urls on address bar to see wsdl files but couldn't
http://localhost:9080/my-app-display-name/my-web-service-name.wsdl
http://localhost:8880/my-app-display-name/my-web-service-name.wsdl
See https://stackoverflow.com/a/23752121/5215049. This seems to be your case.
Enabling trace for JAX-WS should help you debug this issue.
Refer: https://www.ibm.com/developerworks/community/blogs/Dougclectica/entry/capturing_web_service_jax_ws_messages_in_websphere?lang=en for specific instructions on enabling JAX-WS trace logs in Websphere
Refer : https://www.ibm.com/support/knowledgecenter/en/SSAW57_9.0.0/com.ibm.websphere.nd.multiplatform.doc/ae/twbs_tracewbscomp.html for detailed instructions for tracing webservices in general.

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

Grails App using CXF plugin deployed in Tomcat

I am trying to deploy my Grails app, using the CXF plugin to expose some web services in Tomcat. In development mode all goes fine, but i can not acces those web service when i deploy the app in Tomcat.
If a try to navigate to this address app-name/services i get a list of all web services exposed, but if i try to see some of the wsdl of this webservices i get a 500 Internal error.
I tried to copy all the CXF jar to the lib folder in Tomcat, but no make any difference.
¿Some help? ¿Someone has the same problem?
Well, for some reason the app was not dynamically generating the 'wsdl' in production enviroment. To partially solve this problem i wrap the 'wsdl' with the 'war'.

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.

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

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.