jaygajera17 / E-commerce-project-springBoot

This project serves as an easy-to-understand setup for beginners , providing a base foundation in Spring Boot , MVC & hibernate.
https://jaygajera17.github.io/E-commerce-project-springBoot/
520 stars 512 forks source link

Spring boot: JSP not found (404)-Springboot #22

Closed KhoeLe closed 4 days ago

KhoeLe commented 1 year ago

When I have a cloned project and am having trouble loading the web with 404 status error

jaygajera17 commented 1 year ago

http://localhost:8080/ http://localhost:8080/register http://localhost:8080/admin/products http://localhost:8080/admin/customers http://localhost:8080/admin/categories http://localhost:8080/admin/Dashboard , try to open this endpoints is it opening ?

KhoeLe commented 1 year ago

Yes I try, but not working with expect .

Get Outlook for iOShttps://aka.ms/o0ukef


From: Jay Gajera @.> Sent: Tuesday, June 6, 2023 6:51:34 PM To: jaygajera17/E-commerce-project-springBoot @.> Cc: Louis Le @.>; Author @.> Subject: Re: [jaygajera17/E-commerce-project-springBoot] Spring boot: JSP not found (404)-Springboot (Issue #22)

http://localhost:8080/ http://localhost:8080/register http://localhost:8080/admin/products http://localhost:8080/admin/customers http://localhost:8080/admin/categories http://localhost:8080/admin/Dashboard , try to open this endpoints is it opening ?

— Reply to this email directly, view it on GitHubhttps://github.com/jaygajera17/E-commerce-project-springBoot/issues/22#issuecomment-1578600848, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APHECAOH3AKR7NH5AYCNSQLXJ4KUNANCNFSM6AAAAAAY4HBZVU. You are receiving this because you authored the thread.Message ID: @.***>

jaygajera17 commented 1 year ago

i havn't ios . but default land page is login page that must be showing .

KhoeLe commented 1 year ago

I have tried the URL you provided, and I've screenshot the issues below.

image image
jaygajera17 commented 1 year ago

No idea why userLogin.jsp is not found , it is already there inside webapp->views folder .

KhoeLe commented 1 year ago

This has been resolved when I start intellij IEDEA and also if I chose vscode still had error.

Bervvv commented 12 months ago

I ran both on intellij IEDEA and VSCode, but both are failed with the same issue. I ran on Mac OS. All the endpoints are failed due to the same file not found issue.


This application has no explicit mapping for /error, so you are seeing this as a fallback.

Fri Jul 21 01:30:16 PDT 2023
There was an unexpected error (type=Not Found, status=404).
JSP file [/views/userLogin.jsp] not found
Bervvv commented 12 months ago

Solved jsp file not found issue:

main-directory           <---- Content from original repo (not a java project)
--java-project-directory <----- JAVA project created here
----src
------main
--------webapp
----------WEB-INF
------------view
--------------index.jsp

Open the file from java-project-directory rather than main-directory. So for this project, use the IDE to open JtProject rather than E-commerce-project-springBoot.

Reference: https://stackoverflow.com/a/66246935

nsrg5601 commented 5 months ago

sir we are unable to add the data to table we are getting the login age after that its showing invalid user name nad password for which you have given