• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

HTTP 404 requested resource is unavailable  RSS feed

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I have a screen I click on. The "webPage" comes back as the requested resource unavailable.

What I don't get is that when I run the server locally on my machine it works just fine. But when this is deployed out to server I get the error. The screen comes up but the data doesn't show up. Where should I look to troubleshoot this?

 
Sheriff
Posts: 67259
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(please fix the code tags in your post)

Are you using the correct context path in the URLs for the deployed application?
 
steve kelly
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bear Bibeault wrote:(please fix the code tags in your post)

Are you using the correct context path in the URLs for the deployed application?


I must not be. Where would I look for this(sorry I had this project dumped in my lap)
 
Bear Bibeault
Sheriff
Posts: 67259
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on how it is deployed. For example, if the app is being deployed as a war file, the default context path will be the name of the war file. But it could be configured to be anything.

Is it being deployed on Tomcat? Other?
 
steve kelly
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
deployed as war file and tomcat 6.0

Hmm- this reminds me. I also had noticed from the last time the war was deployed that the file name of the project had changed ever so slightly. So that must be in one of the properties files or ?
 
Bear Bibeault
Sheriff
Posts: 67259
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know what you mean by "file name of the project".

But, if Tomcat is deploying the war file using default config, the context path will be the name of the war file. So, if the war file is named xyz.war, and the servlet path is /path-to-my-servlet, the URL would be http://www.whatever.com/xyz/path-to-my-servlet.

This assumes deployment on port 80, and no Apache up-front doing URL shenanigans.
 
I've never won anything before. Not even a tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!