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]
Related
I have my apps running on java spring.
After i start the tomcat in eclipse, it runs well
But after certain minutes +- 30 minutes. It shows "This localhost page can’t be found
No webpage was found for the web address: http://localhost:8080/testadmin/Dashboard"
if i try http://localhost:8080/testadmin (it calls index.jsp), it shows the web. But function inside of index.jsp that call another controller function show 404 in the network console.
If i restart eclipse tomcat. The web runs well again. Is there any missing things on it ?
That type of problem I mostly found in eclipse so you can only clean the eclipse cache then it's gonna work fine but now I switched to IntelliJ now it's fine.
For the past 2 months, I've been working on a project for my final year in uni. I've developed a web app in Java (Eclipse) and I used to test it by benefiting the Tomcat servlet containers. However, at the final stage now I want to deploy it on the university servers, but I am experiencing a strange error. I am not sure what I've haven't configured correctly on the uni server-side, that's why I will be thankful if anyone can direct me to resolutions to the problem.
The problem is that in Eclipse when I launch the app I am given a login form, which when I type my credentials let me in my account. However, on the university server-side after I generated a war that I placed in the webapps folder I restarted the Tomcat server, but I am getting HTTP Status 404 - /auction/login error after I submit my credentials.
The conclusion is that in Eclipse everything runs smoothly, however, on the university server-side I get HTTP Status 404 - /auction/login after I type my credentials in the login form
I've checked many solutions discussed in here, but nothing seemed to be similar to what I'm experiencing. I have suspicions I've missed to configure something on the university side, but I am not sure what.
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:
I'm building and uploading App Inventor 2 to our Google App Engine account. I'm following the instructions found here: How to build App Inventor from the MIT sources.
Everything works fine until I try to upload to GAE. It builds and I'm able to run it on my local machine. The upload fails with the following...
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=com-bytedept-app-inventor-2&version=1&
400 Bad Request
Error when loading application configuration:
Found more than 100 URLMap entries in application configuration
Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=com-bytedept-app-inventor-2&version=1&
400 Bad Request
Error when loading application configuration:
Found more than 100 URLMap entries in application configuration
Please see the logs [/var/folders/qc/4l37zs2547v0jt05vwkjr_lc0000gp/T/appcfg9183580475283654947.log] for further information.
I've seen other questions referencing "Found more than 100 URLMap entries in application configuration" but I didn't see how their responses apply to this situation.
I'm using Java 1.7.0_51, and local App Engine Java SDK 1.9.1.
It looks like a bug in the GAE 1.9.1 scripts. I downgraded to version 1.8.9 at it worked without a hitch.
I am trying to deploy the example form based authentication application to my glassfish server, but everytime I launch the application, I am redirected to yahoo, saying that
The requested URL "http://localhost:8080/com-byteslounge-jaas/" cannot be found or is not available. Please check the spelling or try again later.
Anyone have any ideas? I downloaded the source straight from here:
http://www.byteslounge.com/tutorials/jaas-form-based-authentication-in-tomcat-example
You can also launch Server Domain Console (http://localhost:4848 by default) and there, in Applications section, You should have Your app listed. You can see the URL to Your app either by clicking it's name or by clicking Launch link on the right.
The example in your linked article describe the URL is http://localhost:8080/com-byteslounge-jaas-1.0-SNAPSHOT, have you ensured you deploy the app to the same context path you're requesting? Check glassfish log to see what context path your app is deployed as