| Author |
JSP does not display in Browser
|
Shannon Sims
Ranch Hand
Joined: Jul 03, 2003
Posts: 187
|
|
Hello everyone. Thanks for reading my post!
I have a simple JSP that will not display. I created a web project in Eclipse Helios (latest release) with the application server JBoss 5.0.1. When I try to view the JSP in Eclipse, I get this error: The requested resource (/DisplayDemo/TestDisplay.jsp) is not available. I also tried outside of Eclipse in IE9 using localhost:8080/DisplayDemo/TestDisplay.jsp which produces the same results: The requested resource (/DisplayDemo/TestDisplay.jsp) is not available. . I've tried several things, but I'm still doing something wrong; also search this issue and nothing seemed to help.
The JSP is located directly under the WebContent directory in Eclipse. This is the simple JSP with just the word "Hello World" (adding more code later):
And this is what is in my web.xml:
So, I hope I given you enough information to resolve this issue.
Thanks for helping me from wasting a LOT of time!
|
 |
Shannon Sims
Ranch Hand
Joined: Jul 03, 2003
Posts: 187
|
|
Thanks Bear, it's good to know at least this wasn't a code issue.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56201
|
|
|
I don't think so, but I'm not an eclipse user so it's hard to know for sure. Someone eclipse-savvy should be able to help.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Shannon Sims
Ranch Hand
Joined: Jul 03, 2003
Posts: 187
|
|
Since Bear thought this was a IDE issue, I played around with several project settings and added JBoss 5.1 as a server to my IDE. Doing all this, I noticed the "Targeted Runtimes" wasn't set on the project. I set it the JBoss 5.1 and now it's working. Hopefully, if someone comes across this issue, hopefully all you need to do is set the Target Runtime setting.
Thanks!
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56201
|
|
Thanks for posting back with your fix!
|
 |
 |
|
|
subject: JSP does not display in Browser
|
|
|