Deploy web app error using eclipse plugin, connection reset on azure - java

I have just started to use Microsoft Azure to deploy my apps. But before deploying my original work i started out with the testing of a sample app given in the docs.
Please see the following link https://learn.microsoft.com/en-gb/azure/app-service/app-service-web-get-started-java (which i followed to the line).
After installing azure plugin from eclipse(oxygen) in macOS(10.12.6) when i finally click on the deploy button it gives me an error saying "Connection reset". I tried googling stack overflow for answers but unsuccessful till now. Any help would be really appreciated. Thanks in advance.
Update:
Screenshot:

Related

After deploying java web application giving 404– Internal Server Error

I am trying to deploy my java web application in Heroku from using eclipse IDE follow by this link:
https://devcenter.heroku.com/articles/deploying-java-applications-to-heroku-from-eclipse-or-intellij-idea.
I have use WAR file to deploy this project.I have used mysql database locally.
This is github link of my project:
https://github.com/sachin1830/SmOnlineExamProject.
This is my website link:
https://onlineexam1830.herokuapp.com/.
The index page working fine but when i am getting error when I am trying to login.
Error: HTTP Status 500 – Internal Server Error ,HTTP Status 404 – Not Found showing.
This is my first project and i am new in this please give me suggestions why this error coming and how i can resolve this error?
image
Steps to repro the issue:
open website https://onlineexam1830.herokuapp.com/
Click on login on top
Enter username as nn
Enter password as uu
Expected:
User should be able to login
Actual:
Got error as 404.
Locally everything is working fine.
I think the problem is, the application is not connected to database. Here is a video I found which explains how to deploy a java application with tomcat server + mySQl in heroku.
https://www.youtube.com/watch?v=I9XqYN920hI.
[The video also explain the steps to follow if you are using Maven or if you are not using Maven]

Deploying Java Spring Boot Application to Azure Web App Linux

I struggle since 3 days with deprecated tutorials and not even working Microsoft docs.
After the Microsoft Docs did not really help me I tried to do the following:
Using the IntelliJ CE Plugin for Azure I try to deploy this demo
to Azure App Service.
From the plugin I chose "Run on Web App", which succeeds as:
Stopping Web App...
Getting Deployment Credential...
Connecting to FTP server...
Removing from FTP server: /site/wwwroot/webapps/TodoDemo-0.0.1-SNAPSHOT
Uploading artifact to: /site/wwwroot/webapps/TodoDemo-0.0.1-SNAPSHOT.war ...
Uploading successfully...
Logging out of FTP server...
Starting Web App...
Deploy successfully!
URL: https://**********.azurewebsites.net/TodoDemo-0.0.1-SNAPSHOT
Then, clicking the link "URL" I end up at:
What step am I missing?
Here some more info about the environment:
I did not change any other setting from the out-of-the-box Web App.
PS: If I deploy the same WAR to a VM on Azure, everything works fine. Happy to provide more info if necessary.
In the meantime I managed to get it to run and wrote a Medium story about my struggles and learning.
https://medium.com/#dmnkmyr/java-web-apps-on-azure-the-hunt-for-up-to-date-documentation-730e5cbabd45
Also during that time MS seems to have worked on it and there is docs now. I put them here and in Medium.
https://learn.microsoft.com/en-us/java/api/overview/azure/maven/docs/web-app-samples?view=azure-java-stable
Good look everyone

NetBeans 8.1 Cannot connect to the remote repository

I'm trying to setup github with netbeans using the https path. I go to the push menu and enter the info it needs for repo URL and username/password but when I hit next it just says "Cannot connect to the remote repository at my repository" I've done a little bit of research but nothing has helped so far.
I tried reinstalling netbeans but i'm getting the same error. I should also mention that it works just fine on my laptop.
It appears that netbeans has no network connectivity. It fails to check for updates as well. I tried disabling anti-virus and firewall but neither helped. My computer definitely has internet. I successfully checked updates on my laptop which was on the same network.
The main error that I keep seeing is Unexpected end of file from server whenever I check for updates or test connection in options.
Here is a link to the relevant log: Pastebin LogFile
Found the culprit. Apparently Covenant Eyes is blocking all network connectivity within NetBeans. After reinstalling Covenant Eyes it appears to working now. For now i'm going to mark this as solved unless something else comes up.

Azure web api with java

[Update: Problem Solved, Clear solution unable to be achieved. More information in comments]
I am new to azure and I am attempting to create a API Application following the tutorial found here https://azure.microsoft.com/en-us/documentation/articles/app-service-api-java-api-app/
Everything works fine on the local machine but when I attempt to push it to the live site and do a Postman request for http://talkapi.azurewebsites.net/api/contacts/2 I get resource not available.
I don't know what bugging tools I have and where to start. I was wondering if anyone had some advice on where to start debugging or what the problem is.
According to the tuturial and per my experience, it seems that the issue of 404 not found was caused by the incorrect deployment on Azure.
Please access the link https://talkapi.scm.azurewebsites.net/DebugConsole the Kudu tool of your API App and move to the path D:\home\site\wwwroot\webapps, then you will see the fig below.
Try to drag your ROOT.war file and drop here (\webapps), and tomcat will auto-decompress the war file and replace the directory ROOT, then you can try to request the api http://talkapi.azurewebsites.net/api/contacts/2 again.
Kudu is the engine behind git deployments in Azure Web Sites includes Azure API App, you can see more detals at https://github.com/projectkudu/kudu/wiki.
Hope it helps. Any update, please feel free to let me know.

google app engine local server doesn't work run after multiple times in eclipse

After running app-engine java project multiple times in eclipse, app-engine local server doesn't work. I am getting error "This webpage is not available" in Google chrome. But eclipse console says that "dev App Server is now running". But using dev_appserver.cmd works fine, it is too difficult when developing the project. Any ideas to solve this?
PS: rerunning is done after stopping the current execution of the server.
Choose 'Automatically select an unused port' in debug configuration.
Local server will start every time on different port, but it should solve your problem.
try to change the configuration by "run as" or "debug as" and check server and port no.
Also ensure that in Windows>>preference>>java>>jre a path to jdk (not jre) is selected.
Please provide more details of the problem if it is still there.

Categories