This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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!
Joined: Jul 03, 2003
Thanks Bear, it's good to know at least this wasn't a code issue.
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.