Apache Tomcat HTTP Status 404 error after Java web app deployment - java

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.

Related

Not able to login into tomcat web application

I have a RedHat8 Linux server, so in that, I deployed my web application(Java based) on tomcat8. I tried to login into the application, but sometimes it login without any issues, and occasionally it takes more time to login. At that time I saw CPU and memory, Both are normal there is no high. (memory<40 and CPU<30). The connected database server also in azure only.
This issue happens in azure servers only because in AWS Linux2 server with the same configurations it's working fine
I don't know what is the reason. Please anyone help regarding this issue. it's very important to me.

No webpage was found for the web address: http://localhost:8080 in spring

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.

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]

JavaEE application throws HTTP 408 when debugging application with eclipse

currently I'm starting to learn JavaEE. I created a simple donation-management-system which is secured by a login form. In the past I've just deployed my code to JBoss AS 7.1.1 and accessed it via browser.
However I would like to debug my application using Eclipse, as my application is starting to get bigger. I found several tutorials on the web and here at so but they didn't bring the expected result.
Here is what I did:
I edited the "standalone.conf.bat" and uncommented the line
set "JAVA_OPTS=%JAVA_OPTS% -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
Then I created a new "Remote Java Application"-Configuration in Eclipse using localhost as hostname and 8787 as port.
Now my problem is as follows:
When I try to debug the application, the integrated eclipse browser opens up and show the expected web page, but when I enter the credentials and click "Login" I this exception:
HTTP Status 408 - The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser
When I open my application in f.e. Firefox everything works fine.
Any ideas how to fix that? I'm already getting grey hair..
Edit: For the Login-Form I use the j_security_check
Could potentially be an issue with the integrated browser in Eclipse. Perhaps it's not handling session cookies properly.
To eliminate that possibility, I believe that in your general Eclipse preferences you can change the "Web Browser" setting to an external web browser (like Firefox) and see if you still have the issue.

Applet Error : Authentication Requires

When loading Applet its asking for the Integrated Windows authentication, in the earlier deployments i am not getting these messages. Two days before i created a Applet Jar and deployed in the server(IIS) at that time i dint get any authentication messages. But today i created a new jar with the same source code and deployed in that same server, but i am getting this wizard now .I dont know what is the issue here..

Categories