Jump to content


Photo

Problem with Java spring boot app (HTTP 404)

java http 404 problem spring

  • Please log in to reply
4 replies to this topic

#1 Bojan

Bojan

    Newbie

  • Members
  • 2 posts

Posted 15 December 2020 - 01:56 AM

Hi guys, I have an application made in spring boot and mysql, I have successfully deployed it. When I access the link http://itmarket.heli.../emt-aud-0.0.1/ it gives me the following error:

HTTP Status 404 – Not Found

Type Status Report

Message /stavb_emt-aud-0.0.1/

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

 

In my public_html i have META-INF, org, WEB-INF 

 

 

Info:

  • Username: stavb
  • WAR-file: emt-aud-0.0.1.war
  • Server: johnny

Edited by Bojan, 15 December 2020 - 02:38 AM.


#2 Krydos

Krydos

    Rank X Member

  • Root Admin
  • 21,896 posts
  • Gender:Male

Posted 15 December 2020 - 04:13 AM

Are you deploying a .war or just using .jsp? The reason I ask if because you say you're deploying a .war, but I don't see a .war on your account.

#3 Bojan

Bojan

    Newbie

  • Members
  • 2 posts

Posted 15 December 2020 - 02:22 PM

Are you deploying a .war or just using .jsp? The reason I ask if because you say you're deploying a .war, but I don't see a .war on your account.

 

In public_html i had it in extension .zip. Now I changed it to .war and it gives me the following error

 

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request

Reason: Error reading from remote server

 

Additionally, a 502 Bad Gateway error was encountered while trying to use an ErrorDocument to handle the request.


Edited by Bojan, 15 December 2020 - 02:29 PM.


#4 Krydos

Krydos

    Rank X Member

  • Root Admin
  • 21,896 posts
  • Gender:Male

Posted 15 December 2020 - 08:12 PM

2020-12-15 20:10:29.167 ERROR 30327 --- [.us-startStop-1] o.h.engine.jdbc.spi.SqlExceptionHelper   : Access denied for user 'root'@'localhost' (using password: NO)


#5 iotblend

iotblend

    Newbie

  • Members
  • 3 posts

Posted 27 December 2020 - 02:54 PM



 

Hi guys, I have an application made in spring boot and mysql, I have successfully deployed it. When I access the link http://itmarket.heli.../emt-aud-0.0.1/ it gives me the following error:

HTTP Status 404 – Not Found

Type Status Report

Message /stavb_emt-aud-0.0.1/

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

 

In my public_html i have META-INF, org, WEB-INF 

 

 

Info:

  • Username: stavb

  • WAR-file: emt-aud-0.0.1.war

  • Server: johnny

 

Hello Bojan,

 

I have an issue with the Spring boot .war file deployment.

Am using gradle as the build tool to generate the .war file and am able to run it successfully in windows machine using command "java -jar abc.war"

But when I deploy it to heliohost it fails with exception 

"SEVERE [localhost-startStop-2] org.apache.catalina.startup.ContextConfig.beforeStart Exception fixing docBase for context [/iotblend_iotb] java.util.zip.ZipException: error in opening zip file"

 

Issue link: https://www.helionet...-johnny-server/

 

If any solution please do Quote in that thread. Appreciate your help.







Also tagged with one or more of these keywords: java, http, 404, problem, spring

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users