I have deployed a stand alone spring boot jar file to a Redhat Linux server. The jar is running in localhost:8081 in the Linux server.
The Spring Boot application has some endpoints. For example localhost:8081/api/some-post-endpoint.
Usually, I would hit an endpoint in my local machine using Postman by selecting the HTTP method and putting localhost:8081/api/some-post-endpoint in the url bar of Postman.
I'm clueless on how I would hit and endpoint from the instance of application I deployed in Redhat Linux server.
For example, if my Redhat Server address is u12345.test.cloud.com, when I tried to put u12345.test.cloud.com/api/some-post-endpoint in Postman, it returned an error saying
Could not send request
Error: connect ECONNREFUSED
I am able to ping the Linux server and it succeeds.
It's just my first time to deploy an app to cloud and I saw something that says "Service Name" in the deployment options.
Is Service Name required to hit a remote endpoint?
What steps can I do to check if I can possibly hit the endpoint via postman?
I'd appreciate any comments.
Thank you.
Related
Actually, I am using GSM modem application which send SMS from my mobile, and mobile is a server to send messages from any java code.
While I run the spring boot application on localhost, it works perfectly for me, but after uploading it on server, it gives Connection time out error.
I am using Linux server provided by AWS ec2 instance.
Where is your server which handles SMS sending? It looks like it is located on your local machine, and after you have deployed your app to Amazon, there is no more routing from AWS to your local computer. You need to deploy your SMS server to routable (external IP) to let the AWS server access to SMS server
I have a spring boot application (Spring Web) which has a tomcat server embedded into it (maven dependency). The application is a server and consists of several HTTP routes. This application is on my laptop. I would like to execute the application on my laptop, and be able to RESTful calls (e.g. GET, POST etc) to the server. How can I make requests to the server from my computer?
I've checked out several tutorials and they tend to use XAMP or another similar application so not sure on how to go about this. Thank you.
Once your war is deployed on your server, you can send any REST call to it using curl, a browser, or my personal favorite for testing is Postman as it circumvents cross-domain issues.
To make the REST call simply use the IP address of the server instead of localhost. You can get the IP address of the machine using ifconfig or whatsmyip.org
http://<IP address>/...
Below are the two scenarios that I am trying.
I have deployed application on server(tomcat8) using eclipse IDE. and then connecting the client with server using websocket protocol. It is working fine.
I have installed tomcat8 on a server machine, deployed the application and then connecting the client with server using websocket protocol. Then I am getting 404 not found error.
also If I run any jsp file on server using http protocol then it is working properly.
can anybody tell what I need to do to resolve this issue?
I have a JavaEE web application deployed in an Apache Tomcat 7.0.6 under Windows 7 which comunicates with a remote web service to request some data. I would like to intercept the comunication between them with an HTTP proxy, like BurpSuite (http://www.portswigger.net/burp/), so I can see the HTTP messages sent and received by the JavaEE application deployed in Tomcat. Already tried to set my BurpSuite (listening on port 8090/TCP) as a proxy system in Windows 7 and specifying some options for JVM when runs Tomcat (-Dhttp.proxyHost=10.0.2.16 -Dhttp.proxyPort=8091 -Dhttps.proxyHost=10.0.2.16 -Dhttps.proxyPort=8091).
I've been looking for a way to do this but I didn't find anything usefull. Could you please give me hand?
Greetings and thanks in advance.
There is a Webservice written in Java (using jax-ws api's), already deployed on server. Suddenly, it has started giving wierd results, for some HTTP requests, that I could not reproduce on my local-box. Is it possible that I fire the HTTP request on the same server, and start debugging the code on eclipse installed on my local box.
Please help me with the steps for the same.
Thanks
On what application server are deployed your web service ?
You need to enable remote debug on your Tomcat, JBoss, Websphere, whatever application server, and just need to create a remote debug task in eclipse to connect on the right ip/port.
This is all you have to do.
To activate remote debugging for your application server, just add the following line to the JAVA_OPTS: -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
For eclipse you can follow this link