Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP 404 requested resource is unavailable  RSS feed

 
steve kelly
Ranch Hand
Posts: 49
  • 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?

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66187
149
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: 49
  • 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
Author and ninkuma
Marshal
Posts: 66187
149
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: 49
  • 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
Author and ninkuma
Marshal
Posts: 66187
149
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!