How to deploy the Loopback in Weblogic server? Need simple explanation - loopbackjs

I am new to development. i created a small loop back application for my rest services.
its working fine in local .
I don't know how to deploy it the weblogic server. please advise step by step process for deployment.
FYI for Angular deployment we are using maven process to convert it war file
is any similar process available?

It is not possible to run a loopback application inside a weblogic server. Loopback needs node.js runtime server to run, whereas weblogic only supports Java/J2EE applications.

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.

Is it possible to write libs in clojure and deployed in WSO2 as service to export?

anyone have tried a web service written in Clojure and runing in WSO2 AS ?
WSO2 AS is based on apache tomcat. Therefore I think it should work. I haven't tried the scenario. You can create a war out of your clojure project and deploy it in the WSO2AS.
You can refer to http://www.luminusweb.net/docs/deployment.md#deploying_to_tomcat

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'.

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.

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.